react-big-screen 0.0.14 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/es/{IInputNumber-Vk6zq2bP.mjs → IInputNumber-PnHJNf9H.mjs} +1 -1
  2. package/es/{Line-DVDoMjnT.mjs → Line-CLgwvraj.mjs} +2 -2
  3. package/es/{attributes-C9O8_sg4.mjs → attributes-B2zdUkEM.mjs} +6 -5
  4. package/es/{attributes-CWY2_iW1.mjs → attributes-BoihG0Pf.mjs} +13 -12
  5. package/es/{attributes-C3fvsuzJ.mjs → attributes-CCphg5Uz.mjs} +6 -5
  6. package/es/{attributes-D6BpnolK.mjs → attributes-CGZYjvqh.mjs} +12 -12
  7. package/es/{attributes-CW_9BAq2.mjs → attributes-CReX9tBs.mjs} +7 -6
  8. package/es/{attributes-DUZPLASc.mjs → attributes-Cp6DmzH2.mjs} +6 -5
  9. package/es/{attributes-Dhnyf9QU.mjs → attributes-D0U-wvwb.mjs} +9 -8
  10. package/es/{attributes-BmekoT3X.mjs → attributes-DDwE7z2U.mjs} +6 -5
  11. package/es/{attributes-BPU7D3rB.mjs → attributes-DFoyvXIt.mjs} +6 -5
  12. package/es/{attributes-Btb0WFLF.mjs → attributes-DiQPq5cp.mjs} +6 -5
  13. package/es/{attributes-D4wypprY.mjs → attributes-GO1j5FqP.mjs} +6 -5
  14. package/es/{attributes-BQYKMvcj.mjs → attributes-IldrBXRw.mjs} +6 -5
  15. package/es/{index-Bi3qRAX3.mjs → index-3f6NpN6Q.mjs} +7 -6
  16. package/es/{index-0kmSz75m.mjs → index-3yjjqo9a.mjs} +14 -13
  17. package/es/{index-DYMjU1YC.mjs → index-7SrSU63A.mjs} +23 -22
  18. package/es/{index-D-3DbMMl.mjs → index-94huGSfW.mjs} +8 -7
  19. package/es/{index-CK1f83Ne.mjs → index-BCzhbh3u.mjs} +28 -27
  20. package/es/{index-pjNmKgyo.mjs → index-BOLcaCeQ.mjs} +5 -5
  21. package/es/{index-DWpwc6bV.mjs → index-BaY0buPw.mjs} +8 -7
  22. package/es/{index-Cj_g4N5m.mjs → index-BfVztt-6.mjs} +7 -6
  23. package/es/{index-BZYcTX5j.mjs → index-BqPf_Hxm.mjs} +38 -38
  24. package/es/{index-CwijThLu.mjs → index-C2gXj9yh.mjs} +3 -3
  25. package/es/{index-Cslh09K5.mjs → index-CEejLCq7.mjs} +7 -6
  26. package/es/{index-CwGNi732.mjs → index-CNgtHfNT.mjs} +12 -11
  27. package/es/{index-LSiyLbzB.mjs → index-COdMO6-N.mjs} +8 -7
  28. package/es/{index-s23NvDdl.mjs → index-CSzeRH1c.mjs} +4 -4
  29. package/es/{index-Dx-GVWd-.mjs → index-D1jy9Oi_.mjs} +6 -6
  30. package/es/{index-Cq0uVP0H.mjs → index-D1ux0Voe.mjs} +1 -1
  31. package/es/{index-DThqOiX3.mjs → index-D3O-30zC.mjs} +7 -6
  32. package/es/{index-yEom7dpa.mjs → index-D44zLboN.mjs} +7 -6
  33. package/es/{index-LjyKMBIL.mjs → index-DJy3VCmO.mjs} +8 -7
  34. package/es/{index-B2DgN7Ho.mjs → index-DbwrHA2p.mjs} +12 -11
  35. package/es/{index-efgz51Ht.mjs → index-DcqPY0qy.mjs} +12 -12
  36. package/es/{index-CTx-cvWk.mjs → index-DdNS18i9.mjs} +12 -12
  37. package/es/{index-DpRRQVh-.mjs → index-I1LC9rW6.mjs} +120 -120
  38. package/es/{index-BlACjoGr.mjs → index-Id1jg1qj.mjs} +7 -6
  39. package/es/{index-DSz8a2B7.mjs → index-VRwDBwp0.mjs} +10 -9
  40. package/es/{index-C6Xzniz1.mjs → index-X3IxUabI.mjs} +7 -6
  41. package/es/{index-kvRZQZJ-.mjs → index-guYPVm3G.mjs} +1 -1
  42. package/es/{index-Cz49jHht.mjs → index-jD_EEzQJ.mjs} +17 -16
  43. package/es/index.mjs +7 -6
  44. package/es/{selectPage-bS9p5soG.mjs → selectPage-DGZoj14b.mjs} +2 -2
  45. package/es/{useCurrentPageId-Cc4bRYxO.mjs → useCurrentPageId-CuYS8NBR.mjs} +6 -5
  46. package/es/useEffectOnce-l5sUTCBG.mjs +7 -0
  47. package/es/useListenRef-B01dENv0.mjs +8 -0
  48. package/es/{useResizeDom-BUgMcz6M.mjs → useResizeDom-B6mM4jrh.mjs} +2 -2
  49. package/package.json +1 -1
  50. package/types/src/export/components/RenderEditor/index.d.ts +2 -2
  51. package/types/src/export/index.d.ts +2 -2
  52. package/types/src/pages/components/Header/index.d.ts +1 -1
  53. package/es/useEffectOnce-Ct0JMBZd.mjs +0 -7
  54. package/es/useListenRef-Dqm6KZRj.mjs +0 -8
@@ -1,13 +1,14 @@
1
1
  import { jsx as o } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { R as m } from "./index-CwijThLu.mjs";
3
- import { n as r } from "./index-BZYcTX5j.mjs";
2
+ import { R as m } from "./index-C2gXj9yh.mjs";
3
+ import { n as r } from "./index-BqPf_Hxm.mjs";
4
4
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
5
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
6
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
5
+ import "react";
6
+ import "react-dom";
7
7
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
8
+ import "antd";
8
9
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
9
10
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
10
- const g = r((t) => {
11
+ const f = r((t) => {
11
12
  const { width: a, height: e } = t;
12
13
  return /* @__PURE__ */ o(
13
14
  m,
@@ -44,5 +45,5 @@ const g = r((t) => {
44
45
  );
45
46
  });
46
47
  export {
47
- g as default
48
+ f as default
48
49
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as l, jsxs as x } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { forwardRef as I, useRef as r, useState as i, useImperativeHandle as M, useEffect as w } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
2
+ import { forwardRef as I, useRef as r, useState as i, useImperativeHandle as M, useEffect as w } from "react";
3
3
  import y from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
4
4
  const A = "_autoScroll_h2edl_59", D = "_autoScroll_inner_h2edl_65", H = "_scroll_h2edl_112", P = "_scroll_paused_h2edl_115", n = {
5
5
  autoScroll: A,
@@ -1,16 +1,17 @@
1
1
  import { jsx as p } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { R as h } from "./index-CwijThLu.mjs";
3
- import { n as x } from "./index-BZYcTX5j.mjs";
2
+ import { R as h } from "./index-C2gXj9yh.mjs";
3
+ import { n as x } from "./index-BqPf_Hxm.mjs";
4
4
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
5
- import { useRef as g, useMemo as I } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
6
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
5
+ import { useRef as g, useMemo as I } from "react";
6
+ import "react-dom";
7
7
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
8
+ import "antd";
8
9
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
9
10
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
10
- import { u as y } from "./useEffectOnce-Ct0JMBZd.mjs";
11
- import { DEFAULT_OPTIONS as b } from "./attributes-BQYKMvcj.mjs";
12
- const S = ["私有化项目", "培训项目", "演示项目", "tjh项目", "xyz项目"], i = [1048, 735, 580, 484, 300], j = x((m) => {
13
- const { width: u, height: d, options: t } = m, o = g(), f = I(() => {
11
+ import { u as y } from "./useEffectOnce-l5sUTCBG.mjs";
12
+ import { DEFAULT_OPTIONS as b } from "./attributes-IldrBXRw.mjs";
13
+ const S = ["私有化项目", "培训项目", "演示项目", "tjh项目", "xyz项目"], i = [1048, 735, 580, 484, 300], W = x((m) => {
14
+ const { width: u, height: d, options: t } = m, n = g(), f = I(() => {
14
15
  const e = S.map((r, l) => ({
15
16
  name: r,
16
17
  value: i[l]
@@ -66,18 +67,18 @@ const S = ["私有化项目", "培训项目", "演示项目", "tjh项目", "xyz
66
67
  };
67
68
  }, [t == null ? void 0 : t.titleColor, t == null ? void 0 : t.subtextColor]);
68
69
  return y(() => {
69
- let e = null, a = 0;
70
+ let e = null, o = 0;
70
71
  function r() {
71
- var s, n, c;
72
- e !== null && ((s = o.current) == null || s.dispatchAction({
72
+ var s, a, c;
73
+ e !== null && ((s = n.current) == null || s.dispatchAction({
73
74
  type: "downplay",
74
75
  seriesIndex: 0,
75
76
  dataIndex: e
76
- })), (c = (n = o.current) == null ? void 0 : n.dispatchAction) == null || c.call(n, {
77
+ })), (c = (a = n.current) == null ? void 0 : a.dispatchAction) == null || c.call(a, {
77
78
  type: "highlight",
78
79
  seriesIndex: 0,
79
- dataIndex: e = a
80
- }), a = ++a >= i.length ? 0 : a;
80
+ dataIndex: e = o
81
+ }), o = ++o >= i.length ? 0 : o;
81
82
  }
82
83
  r();
83
84
  let l = setInterval(r, 2e3);
@@ -87,7 +88,7 @@ const S = ["私有化项目", "培训项目", "演示项目", "tjh项目", "xyz
87
88
  }), /* @__PURE__ */ p(
88
89
  h,
89
90
  {
90
- onGetInstance: (e) => o.current = e,
91
+ onGetInstance: (e) => n.current = e,
91
92
  options: f,
92
93
  style: {
93
94
  width: u,
@@ -97,5 +98,5 @@ const S = ["私有化项目", "培训项目", "演示项目", "tjh项目", "xyz
97
98
  );
98
99
  }, b);
99
100
  export {
100
- j as default
101
+ W as default
101
102
  };
package/es/index.mjs CHANGED
@@ -1,11 +1,12 @@
1
1
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { q as p, R as e, p as m, s as E } from "./index-BZYcTX5j.mjs";
2
+ import { q as m, R as e, p as E, s as f } from "./index-BqPf_Hxm.mjs";
3
3
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
4
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
5
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
4
+ import "react";
5
+ import "react-dom";
6
+ import "antd";
6
7
  export {
7
- p as EXAMPLE,
8
+ m as EXAMPLE,
8
9
  e as RbsEngine,
9
- m as defaultPackage,
10
- E as startDriver
10
+ E as defaultPackage,
11
+ f as startDriver
11
12
  };
@@ -1,5 +1,5 @@
1
- import { useState as g, useEffect as r } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
2
- import { u as i, R as a } from "./index-BZYcTX5j.mjs";
1
+ import { useState as g, useEffect as r } from "react";
2
+ import { u as i, R as a } from "./index-BqPf_Hxm.mjs";
3
3
  function f() {
4
4
  const [n, e] = g([]), { engine: t } = i();
5
5
  return r(() => {
@@ -1,17 +1,18 @@
1
- import { b as i, D as m } from "./index-BZYcTX5j.mjs";
1
+ import { b as i, D as m } from "./index-BqPf_Hxm.mjs";
2
2
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
3
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
4
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
3
+ import "react";
4
+ import "react-dom";
5
5
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
6
+ import "antd";
6
7
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
7
8
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
8
9
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
9
- function g() {
10
+ function l() {
10
11
  return i((r) => {
11
12
  var o;
12
13
  return ((o = r == null ? void 0 : r.config) == null ? void 0 : o.currentPageId) || m.id;
13
14
  });
14
15
  }
15
16
  export {
16
- g as u
17
+ l as u
17
18
  };
@@ -0,0 +1,7 @@
1
+ import { useEffect as f } from "react";
2
+ function c(e) {
3
+ f(e, []);
4
+ }
5
+ export {
6
+ c as u
7
+ };
@@ -0,0 +1,8 @@
1
+ import { useRef as n } from "react";
2
+ function f(e) {
3
+ const r = n(e);
4
+ return r.current = e, r;
5
+ }
6
+ export {
7
+ f as u
8
+ };
@@ -1,5 +1,5 @@
1
- import { useEffect as i } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
2
- import { u as m } from "./useListenRef-Dqm6KZRj.mjs";
1
+ import { useEffect as i } from "react";
2
+ import { u as m } from "./useListenRef-B01dENv0.mjs";
3
3
  function p(r, n) {
4
4
  const e = m(n);
5
5
  i(() => {
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "author": "tangjiahui-cn",
6
6
  "description": "一个前端大屏看板项目",
7
7
  "license": "ISC",
8
- "version": "0.0.14",
8
+ "version": "0.0.17",
9
9
  "module": "./es/index.mjs",
10
10
  "types": "./types/src/export/index.d.ts",
11
11
  "scripts": {
@@ -4,9 +4,9 @@ interface Props {
4
4
  json?: JsonType;
5
5
  engine: Engine;
6
6
  /** 页面底部 */
7
- pageFooter?: React.ReactNode;
7
+ pageFooter?: React.FC;
8
8
  /** 页面logo */
9
- pageLogo?: React.ReactNode;
9
+ pageLogo?: React.FC;
10
10
  onJSONLoad?: () => void;
11
11
  }
12
12
  export default function (props: Props): import("react/jsx-runtime").JSX.Element;
@@ -13,9 +13,9 @@ export interface RbsEngineOptions {
13
13
  /** 开始预览 hook */
14
14
  onStartPreview?: (engine: Engine) => void;
15
15
  /** 页面底部 */
16
- pageFooter?: React.ReactNode;
16
+ pageFooter?: React.FC;
17
17
  /** 页面logo */
18
- pageLogo?: React.ReactNode;
18
+ pageLogo?: React.FC;
19
19
  }
20
20
  export declare class RbsEngine {
21
21
  /** react createApp */
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  interface Props {
3
3
  /** 页面logo */
4
- pageLogo?: React.ReactNode;
4
+ pageLogo?: React.FC;
5
5
  }
6
6
  export default function Header(props: Props): import("react/jsx-runtime").JSX.Element;
7
7
  export {};
@@ -1,7 +0,0 @@
1
- import { useEffect as f } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
2
- function c(e) {
3
- f(e, []);
4
- }
5
- export {
6
- c as u
7
- };
@@ -1,8 +0,0 @@
1
- import { useRef as n } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
2
- function f(e) {
3
- const r = n(e);
4
- return r.current = e, r;
5
- }
6
- export {
7
- f as u
8
- };