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.
- package/es/{attributes-Bfbf60g8.mjs → attributes-B-HnT330.mjs} +1 -1
- package/es/{attributes-BL0o0sPi.mjs → attributes-BU4RteR4.mjs} +1 -1
- package/es/{attributes-COqeO1sM.mjs → attributes-BVf57pkp.mjs} +1 -1
- package/es/{attributes-C5CnEOVO.mjs → attributes-BbimeCWH.mjs} +1 -1
- package/es/{attributes-DrbTSAq7.mjs → attributes-BpbbmYhM.mjs} +1 -1
- package/es/{attributes-C64FfSI6.mjs → attributes-CMthjycV.mjs} +1 -1
- package/es/{attributes-xzP7st08.mjs → attributes-CRXnxBzA.mjs} +2 -2
- package/es/{attributes-woY1Zfl3.mjs → attributes-CT0FOCY5.mjs} +1 -1
- package/es/{attributes-Dp2yHpTx.mjs → attributes-CtQvGbYt.mjs} +1 -1
- package/es/{attributes-9sJ7OCyP.mjs → attributes-DsE3dkzP.mjs} +1 -1
- package/es/{attributes-B23RrL8i.mjs → attributes-Dz98d9lm.mjs} +1 -1
- package/es/{attributes-Di0JYz_d.mjs → attributes-aebdh3-2.mjs} +1 -1
- package/es/{index-CRraYtwg.mjs → index-BJWDg_cD.mjs} +2 -2
- package/es/{index-vk4BFyhF.mjs → index-BTio6V_c.mjs} +2 -2
- package/es/{index-w5Djwuhu.mjs → index-BlOuO44L.mjs} +2 -2
- package/es/{index-D_XJCVB-.mjs → index-BoLXnAtC.mjs} +3 -3
- package/es/{index-B1V_yDHb.mjs → index-BuyncOQP.mjs} +2 -2
- package/es/{index-DzOSmpKj.mjs → index-By-60WbF.mjs} +2 -2
- package/es/{index-Dqe0ts3H.mjs → index-ByNVYAww.mjs} +2 -2
- package/es/{index-C4z4Sjq2.mjs → index-BydqrGsF.mjs} +96 -90
- package/es/{index-Di6zy82j.mjs → index-C1IN4HrE.mjs} +2 -2
- package/es/{index-D9o0U9Ub.mjs → index-CCU-VzDv.mjs} +1 -1
- package/es/{index-B9wcrwqH.mjs → index-CFg0WKFQ.mjs} +819 -813
- package/es/{index-CXzm2s6x.mjs → index-CIspZGHv.mjs} +2 -2
- package/es/{index-D8pMW8U5.mjs → index-COVxsHS9.mjs} +3 -3
- package/es/{index-Cg9iT8Uy.mjs → index-CVCPzSmu.mjs} +2 -2
- package/es/{index-BEdp0lB5.mjs → index-CW1RuHQK.mjs} +3 -3
- package/es/{index-D2B6_fCJ.mjs → index-ChS976cJ.mjs} +2 -2
- package/es/{index-BhEDT1MV.mjs → index-D7TCGxYg.mjs} +2 -2
- package/es/{index-B8GWWFIH.mjs → index-D8iQUy0r.mjs} +2 -2
- package/es/{index-DG3JLNqh.mjs → index-DC_DhKaS.mjs} +3 -3
- package/es/{index-CTuwto2f.mjs → index-DW5eZVLq.mjs} +2 -2
- package/es/{index-CFTpYaN8.mjs → index-GzFjRCz_.mjs} +1 -1
- package/es/{index-C3rjkbw6.mjs → index-V6j7Zu7r.mjs} +2 -2
- package/es/{index-BkI6wVdV.mjs → index-gBfOXBIy.mjs} +2 -2
- package/es/{index-CG3CqHvP.mjs → index-oK1Pyk5T.mjs} +2 -2
- package/es/{index-DvVQnQMe.mjs → index-qyKdx0SV.mjs} +2 -2
- package/es/{index-XNZ9XEE4.mjs → index-sSfWkA8B.mjs} +2 -2
- package/es/index.mjs +1 -1
- package/es/{selectPage-B19KQBZQ.mjs → selectPage-BdrK7e7G.mjs} +1 -1
- package/es/{useCurrentPageId-BzI1Jj2f.mjs → useCurrentPageId-CPdhqp51.mjs} +1 -1
- package/package.json +1 -1
- package/types/src/export/components/RenderEditor/index.d.ts +6 -5
- package/types/src/export/index.d.ts +3 -7
- 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-
|
|
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-
|
|
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-
|
|
3
|
-
import { n as u } from "./index-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
13
|
-
import { DEFAULT_OPTIONS as g } from "./attributes-
|
|
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-
|
|
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-
|
|
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-
|
|
3
|
-
import { n as r } from "./index-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
13
|
-
import { u as L } from "./useCurrentPageId-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
3
|
-
import { n as a } from "./index-
|
|
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-
|
|
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-
|
|
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-
|
|
3
|
-
import { n as e } from "./index-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
package/package.json
CHANGED
|
@@ -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
|
|
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
|
-
/**
|
|
9
|
-
pageLogo?: React.FC | React.ReactNode;
|
|
11
|
+
/** json加载完成回调 */
|
|
10
12
|
onJSONLoad?: () => void;
|
|
11
13
|
}
|
|
12
|
-
export default function (props:
|
|
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 {
|
|
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
|
|
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
|
|
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:
|
|
7
|
-
export {};
|
|
22
|
+
export default function Header(props: RbsEditorHeaderProps): import("react/jsx-runtime").JSX.Element;
|