react-big-screen 0.0.23 → 0.0.25

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 (45) hide show
  1. package/es/{attributes-Bfbf60g8.mjs → attributes-B-HnT330.mjs} +1 -1
  2. package/es/{attributes-BL0o0sPi.mjs → attributes-BU4RteR4.mjs} +1 -1
  3. package/es/{attributes-COqeO1sM.mjs → attributes-BVf57pkp.mjs} +1 -1
  4. package/es/{attributes-C5CnEOVO.mjs → attributes-BbimeCWH.mjs} +1 -1
  5. package/es/{attributes-DrbTSAq7.mjs → attributes-BpbbmYhM.mjs} +1 -1
  6. package/es/{attributes-C64FfSI6.mjs → attributes-CMthjycV.mjs} +1 -1
  7. package/es/{attributes-xzP7st08.mjs → attributes-CRXnxBzA.mjs} +2 -2
  8. package/es/{attributes-woY1Zfl3.mjs → attributes-CT0FOCY5.mjs} +1 -1
  9. package/es/{attributes-Dp2yHpTx.mjs → attributes-CtQvGbYt.mjs} +1 -1
  10. package/es/{attributes-9sJ7OCyP.mjs → attributes-DsE3dkzP.mjs} +1 -1
  11. package/es/{attributes-B23RrL8i.mjs → attributes-Dz98d9lm.mjs} +1 -1
  12. package/es/{attributes-Di0JYz_d.mjs → attributes-aebdh3-2.mjs} +1 -1
  13. package/es/{index-CRraYtwg.mjs → index-BJWDg_cD.mjs} +2 -2
  14. package/es/{index-vk4BFyhF.mjs → index-BTio6V_c.mjs} +2 -2
  15. package/es/{index-w5Djwuhu.mjs → index-BlOuO44L.mjs} +2 -2
  16. package/es/{index-D_XJCVB-.mjs → index-BoLXnAtC.mjs} +3 -3
  17. package/es/{index-B1V_yDHb.mjs → index-BuyncOQP.mjs} +2 -2
  18. package/es/{index-DzOSmpKj.mjs → index-By-60WbF.mjs} +2 -2
  19. package/es/{index-Dqe0ts3H.mjs → index-ByNVYAww.mjs} +2 -2
  20. package/es/{index-C4z4Sjq2.mjs → index-BydqrGsF.mjs} +96 -90
  21. package/es/{index-Di6zy82j.mjs → index-C1IN4HrE.mjs} +2 -2
  22. package/es/{index-D9o0U9Ub.mjs → index-CCU-VzDv.mjs} +1 -1
  23. package/es/{index-B9wcrwqH.mjs → index-CFg0WKFQ.mjs} +819 -813
  24. package/es/{index-CXzm2s6x.mjs → index-CIspZGHv.mjs} +2 -2
  25. package/es/{index-D8pMW8U5.mjs → index-COVxsHS9.mjs} +3 -3
  26. package/es/{index-Cg9iT8Uy.mjs → index-CVCPzSmu.mjs} +2 -2
  27. package/es/{index-BEdp0lB5.mjs → index-CW1RuHQK.mjs} +3 -3
  28. package/es/{index-D2B6_fCJ.mjs → index-ChS976cJ.mjs} +2 -2
  29. package/es/{index-BhEDT1MV.mjs → index-D7TCGxYg.mjs} +2 -2
  30. package/es/{index-B8GWWFIH.mjs → index-D8iQUy0r.mjs} +2 -2
  31. package/es/{index-DG3JLNqh.mjs → index-DC_DhKaS.mjs} +3 -3
  32. package/es/{index-CTuwto2f.mjs → index-DW5eZVLq.mjs} +2 -2
  33. package/es/{index-CFTpYaN8.mjs → index-GzFjRCz_.mjs} +1 -1
  34. package/es/{index-C3rjkbw6.mjs → index-V6j7Zu7r.mjs} +2 -2
  35. package/es/{index-BkI6wVdV.mjs → index-gBfOXBIy.mjs} +2 -2
  36. package/es/{index-CG3CqHvP.mjs → index-oK1Pyk5T.mjs} +2 -2
  37. package/es/{index-DvVQnQMe.mjs → index-qyKdx0SV.mjs} +2 -2
  38. package/es/{index-XNZ9XEE4.mjs → index-sSfWkA8B.mjs} +2 -2
  39. package/es/index.mjs +1 -1
  40. package/es/{selectPage-B19KQBZQ.mjs → selectPage-BdrK7e7G.mjs} +1 -1
  41. package/es/{useCurrentPageId-BzI1Jj2f.mjs → useCurrentPageId-CPdhqp51.mjs} +1 -1
  42. package/package.json +1 -1
  43. package/types/src/export/components/RenderEditor/index.d.ts +6 -5
  44. package/types/src/export/index.d.ts +3 -7
  45. package/types/src/pages/components/Header/index.d.ts +18 -3
@@ -1,5 +1,5 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
- import { n as b } from "./index-C4z4Sjq2.mjs";
2
+ import { n as b } from "./index-BydqrGsF.mjs";
3
3
  import "localforage";
4
4
  import { useState as u, useMemo as x } from "react";
5
5
  import "react-dom";
@@ -11,7 +11,7 @@ import "driver.js/dist/driver.css";
11
11
  import "lodash-es";
12
12
  import { u as d } from "./useEffectOnce-l5sUTCBG.mjs";
13
13
  import "ahooks";
14
- import { R as h } from "./index-CFTpYaN8.mjs";
14
+ import { R as h } from "./index-GzFjRCz_.mjs";
15
15
  const g = ["06-01", "06-02", "06-03", "06-04", "06-05", "06-06", "06-07"], r = 250, a = [210, 200, 195, 200, 202, 195, 180], O = b((i) => {
16
16
  const { width: n, height: s } = i, [e, l] = u(a), m = x(() => {
17
17
  const o = e.map((t) => t * 100 / r);
@@ -1,6 +1,6 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
- import { R as p } from "./index-CFTpYaN8.mjs";
3
- import { n as u } from "./index-C4z4Sjq2.mjs";
2
+ import { R as p } from "./index-GzFjRCz_.mjs";
3
+ import { n as u } from "./index-BydqrGsF.mjs";
4
4
  import "localforage";
5
5
  import { useMemo as f } from "react";
6
6
  import "react-dom";
@@ -10,7 +10,7 @@ import "driver.js";
10
10
  import "driver.js/dist/driver.css";
11
11
  import "lodash-es";
12
12
  import "ahooks";
13
- import { DEFAULT_OPTIONS as g } from "./attributes-9sJ7OCyP.mjs";
13
+ import { DEFAULT_OPTIONS as g } from "./attributes-DsE3dkzP.mjs";
14
14
  function l(m = "name", o, n) {
15
15
  return !(o != null && o.length) || !(n != null && n.length) ? {
16
16
  source: []
@@ -1,5 +1,5 @@
1
1
  import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
- import { n as i } from "./index-C4z4Sjq2.mjs";
2
+ import { n as i } from "./index-BydqrGsF.mjs";
3
3
  import "localforage";
4
4
  import "react";
5
5
  import "react-dom";
@@ -9,7 +9,7 @@ import "driver.js";
9
9
  import "driver.js/dist/driver.css";
10
10
  import "lodash-es";
11
11
  import "ahooks";
12
- import { DEFAULT_OPTIONS as c } from "./attributes-Bfbf60g8.mjs";
12
+ import { DEFAULT_OPTIONS as c } from "./attributes-B-HnT330.mjs";
13
13
  import { DoubleRightOutlined as s } from "@ant-design/icons";
14
14
  const _ = "_specialCard_1s46n_59", t = "_specialCard_head_1s46n_64", m = "_specialCard_head_arrow_1s46n_71", o = "_specialCard_head_title_1s46n_74", a = {
15
15
  specialCard: _,
@@ -1,5 +1,5 @@
1
1
  import { jsx as b } from "react/jsx-runtime";
2
- import { n as C } from "./index-C4z4Sjq2.mjs";
2
+ import { n as C } from "./index-BydqrGsF.mjs";
3
3
  import "localforage";
4
4
  import "react";
5
5
  import "react-dom";
@@ -9,8 +9,8 @@ import "driver.js";
9
9
  import "driver.js/dist/driver.css";
10
10
  import "lodash-es";
11
11
  import { useRequest as v } from "ahooks";
12
- import { R as S } from "./index-CFTpYaN8.mjs";
13
- import { DEFAULT_OPTIONS as g } from "./attributes-B23RrL8i.mjs";
12
+ import { R as S } from "./index-GzFjRCz_.mjs";
13
+ import { DEFAULT_OPTIONS as g } from "./attributes-Dz98d9lm.mjs";
14
14
  const n = "chinaOutline";
15
15
  async function p() {
16
16
  var t, o;
@@ -1,5 +1,5 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
- import { n as p } from "./index-C4z4Sjq2.mjs";
2
+ import { n as p } from "./index-BydqrGsF.mjs";
3
3
  import "localforage";
4
4
  import "react";
5
5
  import "react-dom";
@@ -9,7 +9,7 @@ import "driver.js";
9
9
  import "driver.js/dist/driver.css";
10
10
  import "lodash-es";
11
11
  import "ahooks";
12
- import { DEFAULT_OPTIONS as n } from "./attributes-C5CnEOVO.mjs";
12
+ import { DEFAULT_OPTIONS as n } from "./attributes-BbimeCWH.mjs";
13
13
  const l = p((o) => {
14
14
  const { options: t, width: r, height: i } = o;
15
15
  return /* @__PURE__ */ m("div", { style: { width: r, height: i, background: t.background } });
@@ -1,6 +1,6 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
- import { R as e } from "./index-CFTpYaN8.mjs";
3
- import { n as r } from "./index-C4z4Sjq2.mjs";
2
+ import { R as e } from "./index-GzFjRCz_.mjs";
3
+ import { n as r } from "./index-BydqrGsF.mjs";
4
4
  import "localforage";
5
5
  import "react";
6
6
  import "react-dom";
@@ -1,7 +1,7 @@
1
1
  var R = Object.defineProperty;
2
2
  var T = (e, n, t) => n in e ? R(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
3
  var b = (e, n, t) => T(e, typeof n != "symbol" ? n + "" : n, t);
4
- import { b as O, u as k, I as x, R as F } from "./index-C4z4Sjq2.mjs";
4
+ import { b as O, u as k, I as x, R as F } from "./index-BydqrGsF.mjs";
5
5
  import "localforage";
6
6
  import N, { useEffect as y, useMemo as M, useRef as w, useState as _, useCallback as z } from "react";
7
7
  import "react-dom";
@@ -15,7 +15,7 @@ import "ahooks";
15
15
  import Z from "umi-request";
16
16
  import { u as j } from "./useListenRef-B01dENv0.mjs";
17
17
  import { u as Q } from "./useEffectOnce-l5sUTCBG.mjs";
18
- import { u as V } from "./useCurrentPageId-BzI1Jj2f.mjs";
18
+ import { u as V } from "./useCurrentPageId-CPdhqp51.mjs";
19
19
  import I from "hotkeys-js";
20
20
  import "dayjs";
21
21
  function X(e) {
@@ -1,5 +1,5 @@
1
1
  import { jsx as d, jsxs as h, Fragment as m } from "react/jsx-runtime";
2
- import { n as u } from "./index-C4z4Sjq2.mjs";
2
+ import { n as u } from "./index-BydqrGsF.mjs";
3
3
  import "localforage";
4
4
  import { useMemo as v } from "react";
5
5
  import "react-dom";
@@ -9,8 +9,8 @@ import "driver.js";
9
9
  import "driver.js/dist/driver.css";
10
10
  import "lodash-es";
11
11
  import "ahooks";
12
- import { u as f, s as I } from "./selectPage-B19KQBZQ.mjs";
13
- import { u as L } from "./useCurrentPageId-BzI1Jj2f.mjs";
12
+ import { u as f, s as I } from "./selectPage-BdrK7e7G.mjs";
13
+ import { u as L } from "./useCurrentPageId-CPdhqp51.mjs";
14
14
  import S from "classnames";
15
15
  import "hotkeys-js";
16
16
  import "dayjs";
@@ -1,5 +1,5 @@
1
1
  import { jsx as o, jsxs as a } from "react/jsx-runtime";
2
- import { n as d } from "./index-C4z4Sjq2.mjs";
2
+ import { n as d } from "./index-BydqrGsF.mjs";
3
3
  import "localforage";
4
4
  import "react";
5
5
  import "react-dom";
@@ -9,7 +9,7 @@ import "driver.js";
9
9
  import "driver.js/dist/driver.css";
10
10
  import "lodash-es";
11
11
  import "ahooks";
12
- import { DEFAULT_OPTIONS as p } from "./attributes-BL0o0sPi.mjs";
12
+ import { DEFAULT_OPTIONS as p } from "./attributes-BU4RteR4.mjs";
13
13
  import { A as _ } from "./index-D5seKG8I.mjs";
14
14
  import { CalendarOutlined as f } from "@ant-design/icons";
15
15
  const m = "_scrollList_ni091_59", L = "_scrollList_line_ni091_62", s = {
@@ -6,7 +6,7 @@ import { TitleComponent as O, TooltipComponent as j, ToolboxComponent as w, Visu
6
6
  import { LabelLayout as F, UniversalTransition as P } from "echarts/features";
7
7
  import { CanvasRenderer as S } from "echarts/renderers";
8
8
  import { useUpdateEffect as V } from "ahooks";
9
- import "./index-C4z4Sjq2.mjs";
9
+ import "./index-BydqrGsF.mjs";
10
10
  import "react-dom/client";
11
11
  import { u as q } from "./useResizeDom-B6mM4jrh.mjs";
12
12
  f.use([
@@ -1,6 +1,6 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { R as r } from "./index-CFTpYaN8.mjs";
3
- import { n as a } from "./index-C4z4Sjq2.mjs";
2
+ import { R as r } from "./index-GzFjRCz_.mjs";
3
+ import { n as a } from "./index-BydqrGsF.mjs";
4
4
  import "localforage";
5
5
  import "react";
6
6
  import "react-dom";
@@ -1,6 +1,6 @@
1
1
  import { jsx as s, Fragment as f } from "react/jsx-runtime";
2
2
  import g, { useState as w, useMemo as m, useEffect as y, useRef as l, Suspense as C } from "react";
3
- import { u as R } from "./index-C4z4Sjq2.mjs";
3
+ import { u as R } from "./index-BydqrGsF.mjs";
4
4
  import "localforage";
5
5
  import "react-dom";
6
6
  import "react-dom/client";
@@ -8,7 +8,7 @@ import "antd";
8
8
  import "driver.js";
9
9
  import "driver.js/dist/driver.css";
10
10
  import "lodash-es";
11
- import { d as S, e as v, f as x, h as N, u as H, l as q, c as B, b as P, P as _ } from "./index-B8GWWFIH.mjs";
11
+ import { d as S, e as v, f as x, h as N, u as H, l as q, c as B, b as P, P as _ } from "./index-D8iQUy0r.mjs";
12
12
  import "ahooks";
13
13
  import $ from "classnames";
14
14
  import { u as b } from "./useResizeDom-B6mM4jrh.mjs";
@@ -1,6 +1,6 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { R as p } from "./index-CFTpYaN8.mjs";
3
- import { n as e } from "./index-C4z4Sjq2.mjs";
2
+ import { R as p } from "./index-GzFjRCz_.mjs";
3
+ import { n as e } from "./index-BydqrGsF.mjs";
4
4
  import "localforage";
5
5
  import "react";
6
6
  import "react-dom";
@@ -1,5 +1,5 @@
1
1
  import { jsx as f } from "react/jsx-runtime";
2
- import { n as l } from "./index-C4z4Sjq2.mjs";
2
+ import { n as l } from "./index-BydqrGsF.mjs";
3
3
  import "localforage";
4
4
  import { useRef as c, useEffect as a } from "react";
5
5
  import "react-dom";
@@ -9,7 +9,7 @@ import "driver.js";
9
9
  import "driver.js/dist/driver.css";
10
10
  import "lodash-es";
11
11
  import "ahooks";
12
- import { DEFAULT_OPTIONS as p } from "./attributes-C64FfSI6.mjs";
12
+ import { DEFAULT_OPTIONS as p } from "./attributes-CMthjycV.mjs";
13
13
  import u from "dayjs";
14
14
  const T = l((m) => {
15
15
  const { width: i, height: o, options: r } = m, t = c(null);
@@ -1,5 +1,5 @@
1
1
  import { jsx as o, jsxs as a } from "react/jsx-runtime";
2
- import { n as h } from "./index-C4z4Sjq2.mjs";
2
+ import { n as h } from "./index-BydqrGsF.mjs";
3
3
  import "localforage";
4
4
  import { useState as p, useMemo as L, useEffect as x } from "react";
5
5
  import "react-dom";
@@ -10,7 +10,7 @@ import "driver.js";
10
10
  import "driver.js/dist/driver.css";
11
11
  import { cloneDeep as v } from "lodash-es";
12
12
  import "ahooks";
13
- import { DEFAULT_OPTIONS as I } from "./attributes-woY1Zfl3.mjs";
13
+ import { DEFAULT_OPTIONS as I } from "./attributes-CT0FOCY5.mjs";
14
14
  import { A as M } from "./index-D5seKG8I.mjs";
15
15
  import { DoubleRightOutlined as z } from "@ant-design/icons";
16
16
  const N = "_progressList_xy0sd_59", P = "_progressList_line_xy0sd_62", A = "_progressList_line_header_xy0sd_69", c = {
package/es/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { q as m, R as e, p as E, s as f } from "./index-C4z4Sjq2.mjs";
2
+ import { q as m, R as e, p as E, s as f } from "./index-BydqrGsF.mjs";
3
3
  import "react-dom/client";
4
4
  import "react";
5
5
  import "react-dom";
@@ -1,5 +1,5 @@
1
1
  import { useState as g, useEffect as r } from "react";
2
- import { u as i, R as a } from "./index-C4z4Sjq2.mjs";
2
+ import { u as i, R as a } from "./index-BydqrGsF.mjs";
3
3
  function f() {
4
4
  const [n, e] = g([]), { engine: t } = i();
5
5
  return r(() => {
@@ -1,4 +1,4 @@
1
- import { b as i, D as m } from "./index-C4z4Sjq2.mjs";
1
+ import { b as i, D as m } from "./index-BydqrGsF.mjs";
2
2
  import "localforage";
3
3
  import "react";
4
4
  import "react-dom";
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "author": "tangjiahui-cn",
6
6
  "description": "一个前端大屏看板项目",
7
7
  "license": "ISC",
8
- "version": "0.0.23",
8
+ "version": "0.0.25",
9
9
  "module": "./es/index.mjs",
10
10
  "types": "./types/src/export/index.d.ts",
11
11
  "scripts": {
@@ -1,13 +1,14 @@
1
+ import { RbsEditorHeaderProps } from '../../../pages/components/Header';
1
2
  import { JsonType, Engine } from '../../../engine';
2
3
  import { default as React } from 'react';
3
- interface Props {
4
+ export interface RbsEditorProps extends RbsEditorHeaderProps {
5
+ /** json数据 */
4
6
  json?: JsonType;
7
+ /** 低代码内核 */
5
8
  engine: Engine;
6
9
  /** 页面底部 */
7
10
  pageFooter?: React.FC | React.ReactNode;
8
- /** 页面logo */
9
- pageLogo?: React.FC | React.ReactNode;
11
+ /** json加载完成回调 */
10
12
  onJSONLoad?: () => void;
11
13
  }
12
- export default function (props: Props): import("react/jsx-runtime").JSX.Element;
13
- export {};
14
+ export default function (props: RbsEditorProps): import("react/jsx-runtime").JSX.Element;
@@ -1,22 +1,18 @@
1
1
  import { JsonType, Engine, EngineOptions } from '../engine';
2
- import { default as React } from 'react';
2
+ import { RbsEditorProps } from './components/RenderEditor';
3
3
  export type RbsHookType = "startPreview";
4
4
  export type * from '../engine/types';
5
5
  export * from './resources';
6
6
  export { startDriver } from '../utils';
7
7
  export { defaultPackage } from '../engine';
8
- export interface RbsEngineOptions {
8
+ export type RbsEngineOptions = Pick<RbsEditorProps, "pageLogo" | "pageToolBar" | "pageFooter" | "toolBarOptions"> & {
9
9
  /** 挂载 dom */
10
10
  dom?: HTMLElement;
11
11
  /** 激活全局(但实例请确保为true,此选项为多实例优化时使用) */
12
12
  activeGlobal?: boolean;
13
13
  /** 开始预览 hook */
14
14
  onStartPreview?: (engine: Engine) => void;
15
- /** 页面底部 */
16
- pageFooter?: React.FC | React.ReactNode;
17
- /** 页面logo */
18
- pageLogo?: React.FC | React.ReactNode;
19
- }
15
+ };
20
16
  export declare class RbsEngine {
21
17
  /** react createApp */
22
18
  private app;
@@ -1,7 +1,22 @@
1
1
  import { default as React } from 'react';
2
- interface Props {
2
+ export interface RbsEditorHeaderProps {
3
3
  /** 页面logo */
4
4
  pageLogo?: React.FC | React.ReactNode;
5
+ /** 页面toolbar */
6
+ pageToolBar?: React.FC<{
7
+ /** 源 toolbar */
8
+ origin: React.ReactNode;
9
+ /** "开始预览" 按钮的 id(用于步骤引导) */
10
+ previewDriverId: string;
11
+ }> | React.ReactNode;
12
+ /** toolbar配置 */
13
+ toolBarOptions?: {
14
+ /** 显示语言按钮 */
15
+ showLanguage?: boolean;
16
+ /** 显示保存按钮 */
17
+ showSave?: boolean;
18
+ /** 显示预览按钮 */
19
+ showPreview?: boolean;
20
+ };
5
21
  }
6
- export default function Header(props: Props): import("react/jsx-runtime").JSX.Element;
7
- export {};
22
+ export default function Header(props: RbsEditorHeaderProps): import("react/jsx-runtime").JSX.Element;