@crediblemark/build 0.24.3 → 0.24.5
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/dist/{ArrayField-MR3B7WKR.mjs → ArrayField-F7OLZF6U.mjs} +9 -9
- package/dist/{Editor-5TR52PVR.mjs → Editor-HOZVZZIZ.mjs} +7 -7
- package/dist/{ObjectField-ZGTFFKHJ.mjs → ObjectField-4SN4ZYFF.mjs} +8 -8
- package/dist/{chunk-RUAHVDDE.mjs → chunk-2VS2BST6.mjs} +1 -1
- package/dist/{chunk-6TAU2PST.mjs → chunk-5OK3IPVN.mjs} +1 -1
- package/dist/{chunk-XUV5DF24.mjs → chunk-5VWWS4RS.mjs} +30 -29
- package/dist/{chunk-FC3ZRBT2.mjs → chunk-6RPYD5IO.mjs} +2 -2
- package/dist/{chunk-62JTNLF7.mjs → chunk-BQW2NTNG.mjs} +1 -1
- package/dist/{chunk-E7XYUXJM.mjs → chunk-GIUKL443.mjs} +7 -7
- package/dist/{chunk-ACKK2BYK.mjs → chunk-H2LU4EW3.mjs} +6 -6
- package/dist/{chunk-P6XSBCUA.mjs → chunk-IRJS3HWQ.mjs} +1 -1
- package/dist/{chunk-7HQNPCGI.mjs → chunk-LBMMY5IM.mjs} +1 -1
- package/dist/{chunk-AP7SVXSU.mjs → chunk-VBNE6GK2.mjs} +7 -7
- package/dist/{chunk-QA2U7BOE.mjs → chunk-WKMRHPOM.mjs} +1 -1
- package/dist/{full-AGQP4VE6.mjs → full-65U7W6EN.mjs} +5 -5
- package/dist/index.css +24 -25
- package/dist/index.js +31 -30
- package/dist/index.mjs +10 -10
- package/dist/{loaded-QZ5Z7NDX.mjs → loaded-2CPFB62H.mjs} +2 -2
- package/dist/{loaded-IATND5Y2.mjs → loaded-3NNC6Q35.mjs} +2 -2
- package/dist/{loaded-PWOXIOQ2.mjs → loaded-GYA4OMNE.mjs} +2 -2
- package/dist/no-external.css +24 -25
- package/dist/no-external.js +31 -30
- package/dist/no-external.mjs +10 -10
- package/package.json +1 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SubField
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IRJS3HWQ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DragIcon,
|
|
6
6
|
createDynamicCollisionDetector,
|
|
7
7
|
setDeep,
|
|
8
8
|
useSensors
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BQW2NTNG.mjs";
|
|
10
10
|
import {
|
|
11
11
|
getDeep,
|
|
12
12
|
useFieldStore,
|
|
13
13
|
useFieldStoreApi,
|
|
14
14
|
useNestedFieldContext
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-H2LU4EW3.mjs";
|
|
16
|
+
import "./chunk-2VS2BST6.mjs";
|
|
17
17
|
import "./chunk-AL77I3BV.mjs";
|
|
18
18
|
import {
|
|
19
19
|
IconButton
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-VBNE6GK2.mjs";
|
|
21
|
+
import "./chunk-LBMMY5IM.mjs";
|
|
22
|
+
import "./chunk-WKMRHPOM.mjs";
|
|
23
|
+
import "./chunk-5OK3IPVN.mjs";
|
|
24
24
|
import {
|
|
25
25
|
Copy,
|
|
26
26
|
List,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
replace,
|
|
31
31
|
useAppStore,
|
|
32
32
|
useAppStoreApi
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-GIUKL443.mjs";
|
|
34
34
|
import {
|
|
35
35
|
populateIds
|
|
36
36
|
} from "./chunk-64A37UUC.mjs";
|
|
@@ -3,19 +3,19 @@ import {
|
|
|
3
3
|
} from "./chunk-DEUK76GN.mjs";
|
|
4
4
|
import {
|
|
5
5
|
LoadedRichTextMenu
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6RPYD5IO.mjs";
|
|
7
7
|
import {
|
|
8
8
|
EditorInner
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2VS2BST6.mjs";
|
|
10
10
|
import "./chunk-AL77I3BV.mjs";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-VBNE6GK2.mjs";
|
|
12
|
+
import "./chunk-LBMMY5IM.mjs";
|
|
13
|
+
import "./chunk-WKMRHPOM.mjs";
|
|
14
|
+
import "./chunk-5OK3IPVN.mjs";
|
|
15
15
|
import {
|
|
16
16
|
useAppStore,
|
|
17
17
|
useAppStoreApi
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GIUKL443.mjs";
|
|
19
19
|
import "./chunk-64A37UUC.mjs";
|
|
20
20
|
import "./chunk-SMAWAXVX.mjs";
|
|
21
21
|
import "./chunk-BFHV72KK.mjs";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SubField
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IRJS3HWQ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getDeep,
|
|
6
6
|
useFieldStoreApi,
|
|
7
7
|
useNestedFieldContext
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-H2LU4EW3.mjs";
|
|
9
|
+
import "./chunk-2VS2BST6.mjs";
|
|
10
10
|
import "./chunk-AL77I3BV.mjs";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-VBNE6GK2.mjs";
|
|
12
|
+
import "./chunk-LBMMY5IM.mjs";
|
|
13
|
+
import "./chunk-WKMRHPOM.mjs";
|
|
14
|
+
import "./chunk-5OK3IPVN.mjs";
|
|
15
15
|
import {
|
|
16
16
|
EllipsisVertical,
|
|
17
17
|
useAppStore
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GIUKL443.mjs";
|
|
19
19
|
import "./chunk-64A37UUC.mjs";
|
|
20
20
|
import "./chunk-SMAWAXVX.mjs";
|
|
21
21
|
import {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LoadedRichTextMenu
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6RPYD5IO.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DragIcon,
|
|
6
6
|
collisionStore,
|
|
7
7
|
createDynamicCollisionDetector,
|
|
8
8
|
setDeep,
|
|
9
9
|
useSensors
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BQW2NTNG.mjs";
|
|
11
11
|
import {
|
|
12
12
|
AutoFieldPrivate,
|
|
13
13
|
Button,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
fieldContextStore,
|
|
17
17
|
useContextStore,
|
|
18
18
|
useSafeId
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-H2LU4EW3.mjs";
|
|
20
20
|
import {
|
|
21
21
|
RichTextRenderFallback,
|
|
22
22
|
SlotRender,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
ActionBar,
|
|
31
31
|
IconButton,
|
|
32
32
|
Loader
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-VBNE6GK2.mjs";
|
|
34
34
|
import {
|
|
35
35
|
Box,
|
|
36
36
|
ChartColumn,
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
useRegisterHistorySlice,
|
|
86
86
|
useRegisterPermissionsSlice,
|
|
87
87
|
useResetAutoZoom
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-GIUKL443.mjs";
|
|
89
89
|
import {
|
|
90
90
|
getItem,
|
|
91
91
|
insert,
|
|
@@ -1518,7 +1518,7 @@ import {
|
|
|
1518
1518
|
} from "react";
|
|
1519
1519
|
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
1520
1520
|
var Editor = lazy(
|
|
1521
|
-
() => import("./Editor-
|
|
1521
|
+
() => import("./Editor-HOZVZZIZ.mjs").then((m) => ({
|
|
1522
1522
|
default: m.Editor
|
|
1523
1523
|
}))
|
|
1524
1524
|
);
|
|
@@ -4006,7 +4006,7 @@ function PropsProvider(props) {
|
|
|
4006
4006
|
var usePropsContext = () => useContext10(propsContext);
|
|
4007
4007
|
|
|
4008
4008
|
// css-module:/home/crediblemark/Project/Credibuild/components/CredBuild/components/Layout/styles.module.css#css-module
|
|
4009
|
-
var styles_module_default13 = { "CredBuildLayout": "
|
|
4009
|
+
var styles_module_default13 = { "CredBuildLayout": "_CredBuildLayout_14aaz_1", "CredBuildLayout-inner": "_CredBuildLayout-inner_14aaz_8", "CredBuildLayout--leftSideBarVisible": "_CredBuildLayout--leftSideBarVisible_14aaz_29", "CredBuildLayout--rightSideBarVisible": "_CredBuildLayout--rightSideBarVisible_14aaz_33", "CredBuild--hidePlugins": "_CredBuild--hidePlugins_14aaz_37", "CredBuildLayout-item": "_CredBuildLayout-item_14aaz_43", "CredBuildLayout-header": "_CredBuildLayout-header_14aaz_49", "CredBuildLayout-left": "_CredBuildLayout-left_14aaz_54", "CredBuildLayout-editor": "_CredBuildLayout-editor_14aaz_67", "CredBuildLayout-right": "_CredBuildLayout-right_14aaz_75", "CredBuildLayout-sidebar": "_CredBuildLayout-sidebar_14aaz_92", "CredBuildPluginTab": "_CredBuildPluginTab_14aaz_107", "CredBuildPluginTab--visible": "_CredBuildPluginTab--visible_14aaz_114", "CredBuildPluginTab-body": "_CredBuildPluginTab-body_14aaz_118", "CredBuildLayout--mounted": "_CredBuildLayout--mounted_14aaz_134" };
|
|
4010
4010
|
|
|
4011
4011
|
// lib/use-inject-css.ts
|
|
4012
4012
|
import { useEffect as useEffect16, useState as useState10 } from "react";
|
|
@@ -4932,18 +4932,18 @@ var ViewportControls = ({
|
|
|
4932
4932
|
const defaultsContainAutoZoom = defaultZoomOptions.find(
|
|
4933
4933
|
(option) => option.value === autoZoom
|
|
4934
4934
|
);
|
|
4935
|
-
const zoomOptions = useMemo16(
|
|
4936
|
-
|
|
4935
|
+
const zoomOptions = useMemo16(() => {
|
|
4936
|
+
const options = [
|
|
4937
4937
|
...defaultZoomOptions,
|
|
4938
|
-
...defaultsContainAutoZoom ? [] : [
|
|
4938
|
+
...defaultsContainAutoZoom || isNaN(autoZoom) ? [] : [
|
|
4939
4939
|
{
|
|
4940
4940
|
value: autoZoom,
|
|
4941
4941
|
label: `${(autoZoom * 100).toFixed(0)}% (Auto)`
|
|
4942
4942
|
}
|
|
4943
4943
|
]
|
|
4944
|
-
].filter((a) => a.value <= autoZoom).sort((a, b) => a.value > b.value ? 1 : -1)
|
|
4945
|
-
|
|
4946
|
-
);
|
|
4944
|
+
].filter((a) => a.value <= (autoZoom || 1)).sort((a, b) => a.value > b.value ? 1 : -1);
|
|
4945
|
+
return options.length > 0 ? options : defaultZoomOptions;
|
|
4946
|
+
}, [autoZoom, defaultsContainAutoZoom]);
|
|
4947
4947
|
const [activeViewport, setActiveViewport] = useState12(
|
|
4948
4948
|
uiViewports.current.width
|
|
4949
4949
|
);
|
|
@@ -4976,15 +4976,15 @@ var ViewportControls = ({
|
|
|
4976
4976
|
ActionButton,
|
|
4977
4977
|
{
|
|
4978
4978
|
title: "Zoom viewport out",
|
|
4979
|
-
disabled: zoom <= zoomOptions[0]?.value,
|
|
4979
|
+
disabled: zoom <= (zoomOptions[0]?.value || 0),
|
|
4980
4980
|
onClick: (e) => {
|
|
4981
4981
|
e.stopPropagation();
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
)].value
|
|
4982
|
+
const currentIndex = zoomOptions.findIndex((option) => option.value === zoom);
|
|
4983
|
+
const nextIndex = Math.max(
|
|
4984
|
+
(currentIndex === -1 ? zoomOptions.length : currentIndex) - 1,
|
|
4985
|
+
0
|
|
4987
4986
|
);
|
|
4987
|
+
onZoom(zoomOptions[nextIndex]?.value || 1);
|
|
4988
4988
|
},
|
|
4989
4989
|
children: /* @__PURE__ */ jsx28(ZoomOut, { size: 16 })
|
|
4990
4990
|
}
|
|
@@ -4993,15 +4993,15 @@ var ViewportControls = ({
|
|
|
4993
4993
|
ActionButton,
|
|
4994
4994
|
{
|
|
4995
4995
|
title: "Zoom viewport in",
|
|
4996
|
-
disabled: zoom >= zoomOptions[zoomOptions.length - 1]?.value,
|
|
4996
|
+
disabled: zoom >= (zoomOptions[zoomOptions.length - 1]?.value || 2),
|
|
4997
4997
|
onClick: (e) => {
|
|
4998
4998
|
e.stopPropagation();
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
)].value
|
|
4999
|
+
const currentIndex = zoomOptions.findIndex((option) => option.value === zoom);
|
|
5000
|
+
const nextIndex = Math.min(
|
|
5001
|
+
(currentIndex === -1 ? -1 : currentIndex) + 1,
|
|
5002
|
+
zoomOptions.length - 1
|
|
5004
5003
|
);
|
|
5004
|
+
onZoom(zoomOptions[nextIndex]?.value || 1);
|
|
5005
5005
|
},
|
|
5006
5006
|
children: /* @__PURE__ */ jsx28(ZoomIn, { size: 16 })
|
|
5007
5007
|
}
|
|
@@ -5583,7 +5583,8 @@ var Canvas = () => {
|
|
|
5583
5583
|
className: getClassName17("root"),
|
|
5584
5584
|
style: {
|
|
5585
5585
|
width: iframe.enabled ? viewports.current.width : "100%",
|
|
5586
|
-
height: zoomConfig.rootHeight,
|
|
5586
|
+
height: !zoomConfig.rootHeight || isNaN(zoomConfig.rootHeight) ? "100%" : zoomConfig.rootHeight,
|
|
5587
|
+
minHeight: "100%",
|
|
5587
5588
|
transform: iframe.enabled ? `scale(${zoomConfig.zoom})` : void 0,
|
|
5588
5589
|
transition: showTransition ? `width ${TRANSITION_DURATION}ms ease-out, height ${TRANSITION_DURATION}ms ease-out, transform ${TRANSITION_DURATION}ms ease-out` : "",
|
|
5589
5590
|
overflow: iframe.enabled ? void 0 : "auto"
|
|
@@ -6084,7 +6085,7 @@ var Layout = ({ children }) => {
|
|
|
6084
6085
|
})}`,
|
|
6085
6086
|
"data-theme": theme,
|
|
6086
6087
|
id: instanceId,
|
|
6087
|
-
style: { height },
|
|
6088
|
+
style: { height: typeof height === "number" && isNaN(height) ? void 0 : height },
|
|
6088
6089
|
children: [
|
|
6089
6090
|
/* @__PURE__ */ jsx36(DragDropContext, { disableAutoScroll: dnd?.disableAutoScroll, children: /* @__PURE__ */ jsx36(CustomCredBuild, { children: children || /* @__PURE__ */ jsx36(FrameProvider, { children: /* @__PURE__ */ jsx36(
|
|
6090
6091
|
"div",
|
|
@@ -6097,7 +6098,7 @@ var Layout = ({ children }) => {
|
|
|
6097
6098
|
mobilePanelHeightToggle: mobilePanelHeightMode === "toggle",
|
|
6098
6099
|
mobilePanelHeightMinContent: mobilePanelHeightMode === "min-content"
|
|
6099
6100
|
}),
|
|
6100
|
-
style: { height },
|
|
6101
|
+
style: { height: typeof height === "number" && isNaN(height) ? void 0 : height },
|
|
6101
6102
|
children: /* @__PURE__ */ jsxs16(
|
|
6102
6103
|
"div",
|
|
6103
6104
|
{
|
|
@@ -6147,7 +6148,7 @@ var Layout = ({ children }) => {
|
|
|
6147
6148
|
]
|
|
6148
6149
|
}
|
|
6149
6150
|
),
|
|
6150
|
-
/* @__PURE__ */ jsx36(
|
|
6151
|
+
/* @__PURE__ */ jsx36(Canvas, {}),
|
|
6151
6152
|
!hasDesktopFieldsPlugin && /* @__PURE__ */ jsx36(
|
|
6152
6153
|
Sidebar,
|
|
6153
6154
|
{
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LoadedRichTextMenuInner
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VBNE6GK2.mjs";
|
|
4
4
|
|
|
5
5
|
// components/RichTextMenu/index.tsx
|
|
6
6
|
import { lazy, Suspense } from "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
var LoadedRichTextMenuFull = lazy(
|
|
9
|
-
() => import("./full-
|
|
9
|
+
() => import("./full-65U7W6EN.mjs").then((m) => ({
|
|
10
10
|
default: m.LoadedRichTextMenuFull
|
|
11
11
|
}))
|
|
12
12
|
);
|
|
@@ -1652,22 +1652,22 @@ var getZoomConfig = (uiViewport, frame, zoom) => {
|
|
|
1652
1652
|
const viewportHeight = uiViewport.height === "auto" ? frameHeight : uiViewport.height;
|
|
1653
1653
|
let rootHeight = 0;
|
|
1654
1654
|
let autoZoom = 1;
|
|
1655
|
-
if (typeof uiViewport.width === "number" && (uiViewport.width > frameWidth || viewportHeight > frameHeight)) {
|
|
1655
|
+
if (typeof uiViewport.width === "number" && uiViewport.width > 0 && (uiViewport.width > frameWidth || typeof viewportHeight === "number" && viewportHeight > frameHeight)) {
|
|
1656
1656
|
const widthZoom = Math.min(frameWidth / uiViewport.width, 1);
|
|
1657
|
-
const heightZoom = Math.min(frameHeight / viewportHeight, 1);
|
|
1658
|
-
zoom = widthZoom;
|
|
1657
|
+
const heightZoom = typeof viewportHeight === "number" ? Math.min(frameHeight / viewportHeight, 1) : 1;
|
|
1658
|
+
zoom = Math.max(widthZoom, 0.01);
|
|
1659
1659
|
if (widthZoom < heightZoom) {
|
|
1660
|
-
rootHeight = viewportHeight / zoom;
|
|
1660
|
+
rootHeight = typeof viewportHeight === "number" ? viewportHeight / zoom : frameHeight;
|
|
1661
1661
|
} else {
|
|
1662
|
-
rootHeight = viewportHeight;
|
|
1663
|
-
zoom = heightZoom;
|
|
1662
|
+
rootHeight = typeof viewportHeight === "number" ? viewportHeight : 0;
|
|
1663
|
+
zoom = Math.max(heightZoom, 0.01);
|
|
1664
1664
|
}
|
|
1665
1665
|
autoZoom = zoom;
|
|
1666
1666
|
} else {
|
|
1667
1667
|
if (RESET_ZOOM_SMALLER_THAN_FRAME) {
|
|
1668
1668
|
autoZoom = 1;
|
|
1669
1669
|
zoom = 1;
|
|
1670
|
-
rootHeight = viewportHeight;
|
|
1670
|
+
rootHeight = typeof viewportHeight === "number" ? viewportHeight : 0;
|
|
1671
1671
|
}
|
|
1672
1672
|
}
|
|
1673
1673
|
return { autoZoom, rootHeight, zoom };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EditorInner
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2VS2BST6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
IconButton,
|
|
6
6
|
LoadedRichTextMenuInner,
|
|
7
7
|
Loader
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VBNE6GK2.mjs";
|
|
9
9
|
import {
|
|
10
10
|
ChevronDown,
|
|
11
11
|
CircleCheckBig,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
SlidersHorizontal,
|
|
18
18
|
Type,
|
|
19
19
|
useAppStore
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-GIUKL443.mjs";
|
|
21
21
|
import {
|
|
22
22
|
get_class_name_factory_default
|
|
23
23
|
} from "./chunk-BFHV72KK.mjs";
|
|
@@ -907,7 +907,7 @@ EditorFallback.displayName = "EditorFallback";
|
|
|
907
907
|
// components/AutoField/fields/RichtextField/index.tsx
|
|
908
908
|
import { Fragment as Fragment4, jsx as jsx14 } from "react/jsx-runtime";
|
|
909
909
|
var Editor = lazy(
|
|
910
|
-
() => import("./Editor-
|
|
910
|
+
() => import("./Editor-HOZVZZIZ.mjs").then((m) => ({
|
|
911
911
|
default: m.Editor
|
|
912
912
|
}))
|
|
913
913
|
);
|
|
@@ -944,8 +944,8 @@ var RichtextField = ({
|
|
|
944
944
|
|
|
945
945
|
// components/AutoField/AutoFieldInternal.tsx
|
|
946
946
|
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
947
|
-
var ArrayField = lazy2(() => import("./ArrayField-
|
|
948
|
-
var ObjectField = lazy2(() => import("./ObjectField-
|
|
947
|
+
var ArrayField = lazy2(() => import("./ArrayField-F7OLZF6U.mjs").then((m) => ({ default: m.ArrayField })));
|
|
948
|
+
var ObjectField = lazy2(() => import("./ObjectField-4SN4ZYFF.mjs").then((m) => ({ default: m.ObjectField })));
|
|
949
949
|
var getClassNameWrapper = get_class_name_factory_default("InputWrapper", styles_module_default);
|
|
950
950
|
var defaultFields = {
|
|
951
951
|
array: ArrayField,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useAlignOptions
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LBMMY5IM.mjs";
|
|
4
4
|
import {
|
|
5
5
|
useHeadingOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WKMRHPOM.mjs";
|
|
7
7
|
import {
|
|
8
8
|
useListOptions
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5OK3IPVN.mjs";
|
|
10
10
|
import {
|
|
11
11
|
Bold,
|
|
12
12
|
Code,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
TextAlignStart,
|
|
27
27
|
Underline,
|
|
28
28
|
useControlContext
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-GIUKL443.mjs";
|
|
30
30
|
import {
|
|
31
31
|
get_class_name_factory_default
|
|
32
32
|
} from "./chunk-BFHV72KK.mjs";
|
|
@@ -310,7 +310,7 @@ function AlignSelectFallback() {
|
|
|
310
310
|
// components/RichTextMenu/controls/AlignSelect/index.tsx
|
|
311
311
|
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
312
312
|
var AlignSelectLoaded = lazy(
|
|
313
|
-
() => import("./loaded-
|
|
313
|
+
() => import("./loaded-GYA4OMNE.mjs").then((m) => ({
|
|
314
314
|
default: m.AlignSelectLoaded
|
|
315
315
|
}))
|
|
316
316
|
);
|
|
@@ -529,7 +529,7 @@ function HeadingSelectFallback() {
|
|
|
529
529
|
// components/RichTextMenu/controls/HeadingSelect/index.tsx
|
|
530
530
|
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
531
531
|
var HeadingSelectLoaded = lazy2(
|
|
532
|
-
() => import("./loaded-
|
|
532
|
+
() => import("./loaded-2CPFB62H.mjs").then((m) => ({
|
|
533
533
|
default: m.HeadingSelectLoaded
|
|
534
534
|
}))
|
|
535
535
|
);
|
|
@@ -559,7 +559,7 @@ function ListSelectFallback() {
|
|
|
559
559
|
// components/RichTextMenu/controls/ListSelect/index.tsx
|
|
560
560
|
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
561
561
|
var ListSelectLoaded = lazy3(
|
|
562
|
-
() => import("./loaded-
|
|
562
|
+
() => import("./loaded-3NNC6Q35.mjs").then((m) => ({
|
|
563
563
|
default: m.ListSelectLoaded
|
|
564
564
|
}))
|
|
565
565
|
);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LoadedRichTextMenuInner
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-VBNE6GK2.mjs";
|
|
4
|
+
import "./chunk-LBMMY5IM.mjs";
|
|
5
|
+
import "./chunk-WKMRHPOM.mjs";
|
|
6
|
+
import "./chunk-5OK3IPVN.mjs";
|
|
7
|
+
import "./chunk-GIUKL443.mjs";
|
|
8
8
|
import "./chunk-64A37UUC.mjs";
|
|
9
9
|
import "./chunk-SMAWAXVX.mjs";
|
|
10
10
|
import "./chunk-BFHV72KK.mjs";
|
package/dist/index.css
CHANGED
|
@@ -2054,13 +2054,13 @@ body:has(._DropZone--isAnimating_1vmgt_68:empty) [data-credbuild-overlay] {
|
|
|
2054
2054
|
}
|
|
2055
2055
|
|
|
2056
2056
|
/* css-module:/home/crediblemark/Project/Credibuild/components/CredBuild/components/Layout/styles.module.css/#css-module-data */
|
|
2057
|
-
.
|
|
2057
|
+
._CredBuildLayout_14aaz_1 {
|
|
2058
2058
|
display: flex;
|
|
2059
2059
|
flex: 1;
|
|
2060
2060
|
height: 100vh;
|
|
2061
2061
|
overflow: hidden;
|
|
2062
2062
|
}
|
|
2063
|
-
._CredBuildLayout-
|
|
2063
|
+
._CredBuildLayout-inner_14aaz_8 {
|
|
2064
2064
|
display: grid;
|
|
2065
2065
|
flex: 1;
|
|
2066
2066
|
grid-template-areas: "header";
|
|
@@ -2070,7 +2070,7 @@ body:has(._DropZone--isAnimating_1vmgt_68:empty) [data-credbuild-overlay] {
|
|
|
2070
2070
|
overflow: hidden;
|
|
2071
2071
|
}
|
|
2072
2072
|
@media (min-width: 638px) {
|
|
2073
|
-
._CredBuildLayout-
|
|
2073
|
+
._CredBuildLayout-inner_14aaz_8 {
|
|
2074
2074
|
--credbuild-side-bar-width: 300px;
|
|
2075
2075
|
--cb-left-sidebar-width: 0px;
|
|
2076
2076
|
--cb-right-sidebar-width: 0px;
|
|
@@ -2078,27 +2078,27 @@ body:has(._DropZone--isAnimating_1vmgt_68:empty) [data-credbuild-overlay] {
|
|
|
2078
2078
|
grid-template-columns: var(--cb-left-sidebar-width) 1fr var(--cb-right-sidebar-width);
|
|
2079
2079
|
grid-template-rows: 40px 1fr;
|
|
2080
2080
|
}
|
|
2081
|
-
._CredBuildLayout--
|
|
2081
|
+
._CredBuildLayout--leftSideBarVisible_14aaz_29 ._CredBuildLayout-inner_14aaz_8 {
|
|
2082
2082
|
--cb-left-sidebar-width: var(--credbuild-user-left-side-bar-width, var(--credbuild-side-bar-width));
|
|
2083
2083
|
}
|
|
2084
|
-
._CredBuildLayout--
|
|
2084
|
+
._CredBuildLayout--rightSideBarVisible_14aaz_33 ._CredBuildLayout-inner_14aaz_8 {
|
|
2085
2085
|
--cb-right-sidebar-width: var(--credbuild-user-right-side-bar-width, var(--credbuild-side-bar-width));
|
|
2086
2086
|
}
|
|
2087
|
-
._CredBuild--
|
|
2087
|
+
._CredBuild--hidePlugins_14aaz_37 ._CredBuildLayout-inner_14aaz_8 {
|
|
2088
2088
|
grid-template-areas: "header header" "editor right";
|
|
2089
2089
|
grid-template-columns: 1fr auto;
|
|
2090
2090
|
}
|
|
2091
2091
|
}
|
|
2092
|
-
._CredBuildLayout-
|
|
2092
|
+
._CredBuildLayout-item_14aaz_43 {
|
|
2093
2093
|
box-sizing: border-box;
|
|
2094
2094
|
overflow: hidden;
|
|
2095
2095
|
position: relative;
|
|
2096
2096
|
}
|
|
2097
|
-
._CredBuildLayout-
|
|
2097
|
+
._CredBuildLayout-header_14aaz_49 {
|
|
2098
2098
|
grid-area: header;
|
|
2099
2099
|
z-index: 20;
|
|
2100
2100
|
}
|
|
2101
|
-
._CredBuildLayout-
|
|
2101
|
+
._CredBuildLayout-left_14aaz_54 {
|
|
2102
2102
|
grid-area: left;
|
|
2103
2103
|
display: flex;
|
|
2104
2104
|
flex-direction: column;
|
|
@@ -2106,36 +2106,35 @@ body:has(._DropZone--isAnimating_1vmgt_68:empty) [data-credbuild-overlay] {
|
|
|
2106
2106
|
overflow: hidden;
|
|
2107
2107
|
border-right: 1px solid var(--credbuild-color-grey-10);
|
|
2108
2108
|
}
|
|
2109
|
-
.
|
|
2109
|
+
._CredBuildLayout_14aaz_1:not(._CredBuildLayout--leftSideBarVisible_14aaz_29) ._CredBuildLayout-left_14aaz_54 {
|
|
2110
2110
|
border-right: none;
|
|
2111
2111
|
}
|
|
2112
|
-
._CredBuildLayout-
|
|
2112
|
+
._CredBuildLayout-editor_14aaz_67 {
|
|
2113
2113
|
grid-area: editor;
|
|
2114
2114
|
background-color: var(--credbuild-color-grey-09);
|
|
2115
2115
|
display: flex;
|
|
2116
2116
|
flex-direction: column;
|
|
2117
2117
|
position: relative;
|
|
2118
|
-
overflow: auto;
|
|
2119
2118
|
}
|
|
2120
|
-
._CredBuildLayout-
|
|
2119
|
+
._CredBuildLayout-right_14aaz_75 {
|
|
2121
2120
|
grid-area: right;
|
|
2122
2121
|
z-index: 10;
|
|
2123
2122
|
border-left: 1px solid var(--credbuild-color-grey-10);
|
|
2124
2123
|
overflow: auto;
|
|
2125
2124
|
}
|
|
2126
|
-
.
|
|
2125
|
+
._CredBuildLayout_14aaz_1:not(._CredBuildLayout--rightSideBarVisible_14aaz_33) ._CredBuildLayout-right_14aaz_75 {
|
|
2127
2126
|
border-left: none;
|
|
2128
2127
|
}
|
|
2129
|
-
._CredBuildLayout-
|
|
2130
|
-
._CredBuildLayout-
|
|
2128
|
+
._CredBuildLayout-left_14aaz_54,
|
|
2129
|
+
._CredBuildLayout-right_14aaz_75 {
|
|
2131
2130
|
background-color: var(--credbuild-color-white);
|
|
2132
2131
|
height: 100%;
|
|
2133
2132
|
}
|
|
2134
|
-
._CredBuildLayout-
|
|
2133
|
+
._CredBuildLayout-sidebar_14aaz_92 {
|
|
2135
2134
|
display: none;
|
|
2136
2135
|
}
|
|
2137
2136
|
@media (min-width: 638px) {
|
|
2138
|
-
._CredBuildLayout-
|
|
2137
|
+
._CredBuildLayout-sidebar_14aaz_92 {
|
|
2139
2138
|
display: block;
|
|
2140
2139
|
height: 100%;
|
|
2141
2140
|
overflow: hidden;
|
|
@@ -2143,31 +2142,31 @@ body:has(._DropZone--isAnimating_1vmgt_68:empty) [data-credbuild-overlay] {
|
|
|
2143
2142
|
flex-direction: column;
|
|
2144
2143
|
}
|
|
2145
2144
|
}
|
|
2146
|
-
.
|
|
2145
|
+
._CredBuildPluginTab_14aaz_107 {
|
|
2147
2146
|
display: none;
|
|
2148
2147
|
flex-direction: column;
|
|
2149
2148
|
flex: 1;
|
|
2150
2149
|
overflow: hidden;
|
|
2151
2150
|
}
|
|
2152
|
-
._CredBuildPluginTab--
|
|
2151
|
+
._CredBuildPluginTab--visible_14aaz_114 {
|
|
2153
2152
|
display: flex;
|
|
2154
2153
|
}
|
|
2155
|
-
._CredBuildPluginTab-
|
|
2154
|
+
._CredBuildPluginTab-body_14aaz_118 {
|
|
2156
2155
|
display: flex;
|
|
2157
2156
|
flex-direction: column;
|
|
2158
2157
|
flex: 1;
|
|
2159
2158
|
overflow-y: auto;
|
|
2160
2159
|
padding-bottom: 32px;
|
|
2161
2160
|
}
|
|
2162
|
-
._CredBuildLayout-
|
|
2163
|
-
._CredBuildLayout-
|
|
2164
|
-
._CredBuildLayout-
|
|
2161
|
+
._CredBuildLayout-left_14aaz_54,
|
|
2162
|
+
._CredBuildLayout-right_14aaz_75,
|
|
2163
|
+
._CredBuildLayout-header_14aaz_49 {
|
|
2165
2164
|
border-radius: 0 !important;
|
|
2166
2165
|
margin: 0 !important;
|
|
2167
2166
|
box-shadow: none !important;
|
|
2168
2167
|
border-top: none;
|
|
2169
2168
|
}
|
|
2170
|
-
._CredBuildLayout--
|
|
2169
|
+
._CredBuildLayout--mounted_14aaz_134 ._CredBuildLayout-inner_14aaz_8 {
|
|
2171
2170
|
opacity: 1;
|
|
2172
2171
|
}
|
|
2173
2172
|
|
package/dist/index.js
CHANGED
|
@@ -4405,22 +4405,22 @@ var init_get_zoom_config = __esm({
|
|
|
4405
4405
|
const viewportHeight = uiViewport.height === "auto" ? frameHeight : uiViewport.height;
|
|
4406
4406
|
let rootHeight = 0;
|
|
4407
4407
|
let autoZoom = 1;
|
|
4408
|
-
if (typeof uiViewport.width === "number" && (uiViewport.width > frameWidth || viewportHeight > frameHeight)) {
|
|
4408
|
+
if (typeof uiViewport.width === "number" && uiViewport.width > 0 && (uiViewport.width > frameWidth || typeof viewportHeight === "number" && viewportHeight > frameHeight)) {
|
|
4409
4409
|
const widthZoom = Math.min(frameWidth / uiViewport.width, 1);
|
|
4410
|
-
const heightZoom = Math.min(frameHeight / viewportHeight, 1);
|
|
4411
|
-
zoom = widthZoom;
|
|
4410
|
+
const heightZoom = typeof viewportHeight === "number" ? Math.min(frameHeight / viewportHeight, 1) : 1;
|
|
4411
|
+
zoom = Math.max(widthZoom, 0.01);
|
|
4412
4412
|
if (widthZoom < heightZoom) {
|
|
4413
|
-
rootHeight = viewportHeight / zoom;
|
|
4413
|
+
rootHeight = typeof viewportHeight === "number" ? viewportHeight / zoom : frameHeight;
|
|
4414
4414
|
} else {
|
|
4415
|
-
rootHeight = viewportHeight;
|
|
4416
|
-
zoom = heightZoom;
|
|
4415
|
+
rootHeight = typeof viewportHeight === "number" ? viewportHeight : 0;
|
|
4416
|
+
zoom = Math.max(heightZoom, 0.01);
|
|
4417
4417
|
}
|
|
4418
4418
|
autoZoom = zoom;
|
|
4419
4419
|
} else {
|
|
4420
4420
|
if (RESET_ZOOM_SMALLER_THAN_FRAME) {
|
|
4421
4421
|
autoZoom = 1;
|
|
4422
4422
|
zoom = 1;
|
|
4423
|
-
rootHeight = viewportHeight;
|
|
4423
|
+
rootHeight = typeof viewportHeight === "number" ? viewportHeight : 0;
|
|
4424
4424
|
}
|
|
4425
4425
|
}
|
|
4426
4426
|
return { autoZoom, rootHeight, zoom };
|
|
@@ -12509,7 +12509,7 @@ var usePropsContext = () => (0, import_react86.useContext)(propsContext);
|
|
|
12509
12509
|
|
|
12510
12510
|
// css-module:/home/crediblemark/Project/Credibuild/components/CredBuild/components/Layout/styles.module.css#css-module
|
|
12511
12511
|
init_react_import();
|
|
12512
|
-
var styles_module_default22 = { "CredBuildLayout": "
|
|
12512
|
+
var styles_module_default22 = { "CredBuildLayout": "_CredBuildLayout_14aaz_1", "CredBuildLayout-inner": "_CredBuildLayout-inner_14aaz_8", "CredBuildLayout--leftSideBarVisible": "_CredBuildLayout--leftSideBarVisible_14aaz_29", "CredBuildLayout--rightSideBarVisible": "_CredBuildLayout--rightSideBarVisible_14aaz_33", "CredBuild--hidePlugins": "_CredBuild--hidePlugins_14aaz_37", "CredBuildLayout-item": "_CredBuildLayout-item_14aaz_43", "CredBuildLayout-header": "_CredBuildLayout-header_14aaz_49", "CredBuildLayout-left": "_CredBuildLayout-left_14aaz_54", "CredBuildLayout-editor": "_CredBuildLayout-editor_14aaz_67", "CredBuildLayout-right": "_CredBuildLayout-right_14aaz_75", "CredBuildLayout-sidebar": "_CredBuildLayout-sidebar_14aaz_92", "CredBuildPluginTab": "_CredBuildPluginTab_14aaz_107", "CredBuildPluginTab--visible": "_CredBuildPluginTab--visible_14aaz_114", "CredBuildPluginTab-body": "_CredBuildPluginTab-body_14aaz_118", "CredBuildLayout--mounted": "_CredBuildLayout--mounted_14aaz_134" };
|
|
12513
12513
|
|
|
12514
12514
|
// lib/use-inject-css.ts
|
|
12515
12515
|
init_react_import();
|
|
@@ -13480,18 +13480,18 @@ var ViewportControls = ({
|
|
|
13480
13480
|
const defaultsContainAutoZoom = defaultZoomOptions.find(
|
|
13481
13481
|
(option) => option.value === autoZoom
|
|
13482
13482
|
);
|
|
13483
|
-
const zoomOptions = (0, import_react91.useMemo)(
|
|
13484
|
-
|
|
13483
|
+
const zoomOptions = (0, import_react91.useMemo)(() => {
|
|
13484
|
+
const options = [
|
|
13485
13485
|
...defaultZoomOptions,
|
|
13486
|
-
...defaultsContainAutoZoom ? [] : [
|
|
13486
|
+
...defaultsContainAutoZoom || isNaN(autoZoom) ? [] : [
|
|
13487
13487
|
{
|
|
13488
13488
|
value: autoZoom,
|
|
13489
13489
|
label: `${(autoZoom * 100).toFixed(0)}% (Auto)`
|
|
13490
13490
|
}
|
|
13491
13491
|
]
|
|
13492
|
-
].filter((a) => a.value <= autoZoom).sort((a, b) => a.value > b.value ? 1 : -1)
|
|
13493
|
-
|
|
13494
|
-
);
|
|
13492
|
+
].filter((a) => a.value <= (autoZoom || 1)).sort((a, b) => a.value > b.value ? 1 : -1);
|
|
13493
|
+
return options.length > 0 ? options : defaultZoomOptions;
|
|
13494
|
+
}, [autoZoom, defaultsContainAutoZoom]);
|
|
13495
13495
|
const [activeViewport, setActiveViewport] = (0, import_react91.useState)(
|
|
13496
13496
|
uiViewports.current.width
|
|
13497
13497
|
);
|
|
@@ -13524,15 +13524,15 @@ var ViewportControls = ({
|
|
|
13524
13524
|
ActionButton,
|
|
13525
13525
|
{
|
|
13526
13526
|
title: "Zoom viewport out",
|
|
13527
|
-
disabled: zoom <= zoomOptions[0]?.value,
|
|
13527
|
+
disabled: zoom <= (zoomOptions[0]?.value || 0),
|
|
13528
13528
|
onClick: (e) => {
|
|
13529
13529
|
e.stopPropagation();
|
|
13530
|
-
|
|
13531
|
-
|
|
13532
|
-
|
|
13533
|
-
|
|
13534
|
-
)].value
|
|
13530
|
+
const currentIndex = zoomOptions.findIndex((option) => option.value === zoom);
|
|
13531
|
+
const nextIndex = Math.max(
|
|
13532
|
+
(currentIndex === -1 ? zoomOptions.length : currentIndex) - 1,
|
|
13533
|
+
0
|
|
13535
13534
|
);
|
|
13535
|
+
onZoom(zoomOptions[nextIndex]?.value || 1);
|
|
13536
13536
|
},
|
|
13537
13537
|
children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(ZoomOut, { size: 16 })
|
|
13538
13538
|
}
|
|
@@ -13541,15 +13541,15 @@ var ViewportControls = ({
|
|
|
13541
13541
|
ActionButton,
|
|
13542
13542
|
{
|
|
13543
13543
|
title: "Zoom viewport in",
|
|
13544
|
-
disabled: zoom >= zoomOptions[zoomOptions.length - 1]?.value,
|
|
13544
|
+
disabled: zoom >= (zoomOptions[zoomOptions.length - 1]?.value || 2),
|
|
13545
13545
|
onClick: (e) => {
|
|
13546
13546
|
e.stopPropagation();
|
|
13547
|
-
|
|
13548
|
-
|
|
13549
|
-
|
|
13550
|
-
|
|
13551
|
-
)].value
|
|
13547
|
+
const currentIndex = zoomOptions.findIndex((option) => option.value === zoom);
|
|
13548
|
+
const nextIndex = Math.min(
|
|
13549
|
+
(currentIndex === -1 ? -1 : currentIndex) + 1,
|
|
13550
|
+
zoomOptions.length - 1
|
|
13552
13551
|
);
|
|
13552
|
+
onZoom(zoomOptions[nextIndex]?.value || 1);
|
|
13553
13553
|
},
|
|
13554
13554
|
children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(ZoomIn, { size: 16 })
|
|
13555
13555
|
}
|
|
@@ -14214,7 +14214,8 @@ var Canvas = () => {
|
|
|
14214
14214
|
className: getClassName36("root"),
|
|
14215
14215
|
style: {
|
|
14216
14216
|
width: iframe.enabled ? viewports.current.width : "100%",
|
|
14217
|
-
height: zoomConfig.rootHeight,
|
|
14217
|
+
height: !zoomConfig.rootHeight || isNaN(zoomConfig.rootHeight) ? "100%" : zoomConfig.rootHeight,
|
|
14218
|
+
minHeight: "100%",
|
|
14218
14219
|
transform: iframe.enabled ? `scale(${zoomConfig.zoom})` : void 0,
|
|
14219
14220
|
transition: showTransition ? `width ${TRANSITION_DURATION}ms ease-out, height ${TRANSITION_DURATION}ms ease-out, transform ${TRANSITION_DURATION}ms ease-out` : "",
|
|
14220
14221
|
overflow: iframe.enabled ? void 0 : "auto"
|
|
@@ -14809,7 +14810,7 @@ var Layout = ({ children }) => {
|
|
|
14809
14810
|
})}`,
|
|
14810
14811
|
"data-theme": theme,
|
|
14811
14812
|
id: instanceId,
|
|
14812
|
-
style: { height },
|
|
14813
|
+
style: { height: typeof height === "number" && isNaN(height) ? void 0 : height },
|
|
14813
14814
|
children: [
|
|
14814
14815
|
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(DragDropContext, { disableAutoScroll: dnd?.disableAutoScroll, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(CustomCredBuild, { children: children || /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(FrameProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
14815
14816
|
"div",
|
|
@@ -14822,7 +14823,7 @@ var Layout = ({ children }) => {
|
|
|
14822
14823
|
mobilePanelHeightToggle: mobilePanelHeightMode === "toggle",
|
|
14823
14824
|
mobilePanelHeightMinContent: mobilePanelHeightMode === "min-content"
|
|
14824
14825
|
}),
|
|
14825
|
-
style: { height },
|
|
14826
|
+
style: { height: typeof height === "number" && isNaN(height) ? void 0 : height },
|
|
14826
14827
|
children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
|
|
14827
14828
|
"div",
|
|
14828
14829
|
{
|
|
@@ -14872,7 +14873,7 @@ var Layout = ({ children }) => {
|
|
|
14872
14873
|
]
|
|
14873
14874
|
}
|
|
14874
14875
|
),
|
|
14875
|
-
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
14876
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Canvas, {}),
|
|
14876
14877
|
!hasDesktopFieldsPlugin && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
14877
14878
|
Sidebar,
|
|
14878
14879
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -12,17 +12,17 @@ import {
|
|
|
12
12
|
registerOverlayPortal,
|
|
13
13
|
useCredBuild,
|
|
14
14
|
useGetCredBuild
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-5VWWS4RS.mjs";
|
|
16
|
+
import "./chunk-6RPYD5IO.mjs";
|
|
17
17
|
import {
|
|
18
18
|
setDeep
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-BQW2NTNG.mjs";
|
|
20
20
|
import {
|
|
21
21
|
AutoField,
|
|
22
22
|
Button,
|
|
23
23
|
FieldLabel
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-H2LU4EW3.mjs";
|
|
25
|
+
import "./chunk-2VS2BST6.mjs";
|
|
26
26
|
import {
|
|
27
27
|
migrate,
|
|
28
28
|
resolveAllData,
|
|
@@ -37,11 +37,11 @@ import {
|
|
|
37
37
|
Label,
|
|
38
38
|
RichTextMenu,
|
|
39
39
|
Separator
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
40
|
+
} from "./chunk-VBNE6GK2.mjs";
|
|
41
|
+
import "./chunk-LBMMY5IM.mjs";
|
|
42
|
+
import "./chunk-WKMRHPOM.mjs";
|
|
43
|
+
import "./chunk-5OK3IPVN.mjs";
|
|
44
|
+
import "./chunk-GIUKL443.mjs";
|
|
45
45
|
import "./chunk-64A37UUC.mjs";
|
|
46
46
|
import "./chunk-SMAWAXVX.mjs";
|
|
47
47
|
import "./chunk-BFHV72KK.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useHeadingOptions
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WKMRHPOM.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Heading,
|
|
6
6
|
SelectControl,
|
|
7
7
|
useControlContext
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GIUKL443.mjs";
|
|
9
9
|
import "./chunk-64A37UUC.mjs";
|
|
10
10
|
import "./chunk-SMAWAXVX.mjs";
|
|
11
11
|
import "./chunk-BFHV72KK.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useListOptions
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5OK3IPVN.mjs";
|
|
4
4
|
import {
|
|
5
5
|
List,
|
|
6
6
|
SelectControl,
|
|
7
7
|
useControlContext
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GIUKL443.mjs";
|
|
9
9
|
import "./chunk-64A37UUC.mjs";
|
|
10
10
|
import "./chunk-SMAWAXVX.mjs";
|
|
11
11
|
import "./chunk-BFHV72KK.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useAlignOptions
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LBMMY5IM.mjs";
|
|
4
4
|
import {
|
|
5
5
|
SelectControl,
|
|
6
6
|
TextAlignStart,
|
|
7
7
|
useControlContext
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GIUKL443.mjs";
|
|
9
9
|
import "./chunk-64A37UUC.mjs";
|
|
10
10
|
import "./chunk-SMAWAXVX.mjs";
|
|
11
11
|
import "./chunk-BFHV72KK.mjs";
|
package/dist/no-external.css
CHANGED
|
@@ -1817,13 +1817,13 @@ body:has(._DropZone--isAnimating_1vmgt_68:empty) [data-credbuild-overlay] {
|
|
|
1817
1817
|
}
|
|
1818
1818
|
|
|
1819
1819
|
/* css-module:/home/crediblemark/Project/Credibuild/components/CredBuild/components/Layout/styles.module.css/#css-module-data */
|
|
1820
|
-
.
|
|
1820
|
+
._CredBuildLayout_14aaz_1 {
|
|
1821
1821
|
display: flex;
|
|
1822
1822
|
flex: 1;
|
|
1823
1823
|
height: 100vh;
|
|
1824
1824
|
overflow: hidden;
|
|
1825
1825
|
}
|
|
1826
|
-
._CredBuildLayout-
|
|
1826
|
+
._CredBuildLayout-inner_14aaz_8 {
|
|
1827
1827
|
display: grid;
|
|
1828
1828
|
flex: 1;
|
|
1829
1829
|
grid-template-areas: "header";
|
|
@@ -1833,7 +1833,7 @@ body:has(._DropZone--isAnimating_1vmgt_68:empty) [data-credbuild-overlay] {
|
|
|
1833
1833
|
overflow: hidden;
|
|
1834
1834
|
}
|
|
1835
1835
|
@media (min-width: 638px) {
|
|
1836
|
-
._CredBuildLayout-
|
|
1836
|
+
._CredBuildLayout-inner_14aaz_8 {
|
|
1837
1837
|
--credbuild-side-bar-width: 300px;
|
|
1838
1838
|
--cb-left-sidebar-width: 0px;
|
|
1839
1839
|
--cb-right-sidebar-width: 0px;
|
|
@@ -1841,27 +1841,27 @@ body:has(._DropZone--isAnimating_1vmgt_68:empty) [data-credbuild-overlay] {
|
|
|
1841
1841
|
grid-template-columns: var(--cb-left-sidebar-width) 1fr var(--cb-right-sidebar-width);
|
|
1842
1842
|
grid-template-rows: 40px 1fr;
|
|
1843
1843
|
}
|
|
1844
|
-
._CredBuildLayout--
|
|
1844
|
+
._CredBuildLayout--leftSideBarVisible_14aaz_29 ._CredBuildLayout-inner_14aaz_8 {
|
|
1845
1845
|
--cb-left-sidebar-width: var(--credbuild-user-left-side-bar-width, var(--credbuild-side-bar-width));
|
|
1846
1846
|
}
|
|
1847
|
-
._CredBuildLayout--
|
|
1847
|
+
._CredBuildLayout--rightSideBarVisible_14aaz_33 ._CredBuildLayout-inner_14aaz_8 {
|
|
1848
1848
|
--cb-right-sidebar-width: var(--credbuild-user-right-side-bar-width, var(--credbuild-side-bar-width));
|
|
1849
1849
|
}
|
|
1850
|
-
._CredBuild--
|
|
1850
|
+
._CredBuild--hidePlugins_14aaz_37 ._CredBuildLayout-inner_14aaz_8 {
|
|
1851
1851
|
grid-template-areas: "header header" "editor right";
|
|
1852
1852
|
grid-template-columns: 1fr auto;
|
|
1853
1853
|
}
|
|
1854
1854
|
}
|
|
1855
|
-
._CredBuildLayout-
|
|
1855
|
+
._CredBuildLayout-item_14aaz_43 {
|
|
1856
1856
|
box-sizing: border-box;
|
|
1857
1857
|
overflow: hidden;
|
|
1858
1858
|
position: relative;
|
|
1859
1859
|
}
|
|
1860
|
-
._CredBuildLayout-
|
|
1860
|
+
._CredBuildLayout-header_14aaz_49 {
|
|
1861
1861
|
grid-area: header;
|
|
1862
1862
|
z-index: 20;
|
|
1863
1863
|
}
|
|
1864
|
-
._CredBuildLayout-
|
|
1864
|
+
._CredBuildLayout-left_14aaz_54 {
|
|
1865
1865
|
grid-area: left;
|
|
1866
1866
|
display: flex;
|
|
1867
1867
|
flex-direction: column;
|
|
@@ -1869,36 +1869,35 @@ body:has(._DropZone--isAnimating_1vmgt_68:empty) [data-credbuild-overlay] {
|
|
|
1869
1869
|
overflow: hidden;
|
|
1870
1870
|
border-right: 1px solid var(--credbuild-color-grey-10);
|
|
1871
1871
|
}
|
|
1872
|
-
.
|
|
1872
|
+
._CredBuildLayout_14aaz_1:not(._CredBuildLayout--leftSideBarVisible_14aaz_29) ._CredBuildLayout-left_14aaz_54 {
|
|
1873
1873
|
border-right: none;
|
|
1874
1874
|
}
|
|
1875
|
-
._CredBuildLayout-
|
|
1875
|
+
._CredBuildLayout-editor_14aaz_67 {
|
|
1876
1876
|
grid-area: editor;
|
|
1877
1877
|
background-color: var(--credbuild-color-grey-09);
|
|
1878
1878
|
display: flex;
|
|
1879
1879
|
flex-direction: column;
|
|
1880
1880
|
position: relative;
|
|
1881
|
-
overflow: auto;
|
|
1882
1881
|
}
|
|
1883
|
-
._CredBuildLayout-
|
|
1882
|
+
._CredBuildLayout-right_14aaz_75 {
|
|
1884
1883
|
grid-area: right;
|
|
1885
1884
|
z-index: 10;
|
|
1886
1885
|
border-left: 1px solid var(--credbuild-color-grey-10);
|
|
1887
1886
|
overflow: auto;
|
|
1888
1887
|
}
|
|
1889
|
-
.
|
|
1888
|
+
._CredBuildLayout_14aaz_1:not(._CredBuildLayout--rightSideBarVisible_14aaz_33) ._CredBuildLayout-right_14aaz_75 {
|
|
1890
1889
|
border-left: none;
|
|
1891
1890
|
}
|
|
1892
|
-
._CredBuildLayout-
|
|
1893
|
-
._CredBuildLayout-
|
|
1891
|
+
._CredBuildLayout-left_14aaz_54,
|
|
1892
|
+
._CredBuildLayout-right_14aaz_75 {
|
|
1894
1893
|
background-color: var(--credbuild-color-white);
|
|
1895
1894
|
height: 100%;
|
|
1896
1895
|
}
|
|
1897
|
-
._CredBuildLayout-
|
|
1896
|
+
._CredBuildLayout-sidebar_14aaz_92 {
|
|
1898
1897
|
display: none;
|
|
1899
1898
|
}
|
|
1900
1899
|
@media (min-width: 638px) {
|
|
1901
|
-
._CredBuildLayout-
|
|
1900
|
+
._CredBuildLayout-sidebar_14aaz_92 {
|
|
1902
1901
|
display: block;
|
|
1903
1902
|
height: 100%;
|
|
1904
1903
|
overflow: hidden;
|
|
@@ -1906,31 +1905,31 @@ body:has(._DropZone--isAnimating_1vmgt_68:empty) [data-credbuild-overlay] {
|
|
|
1906
1905
|
flex-direction: column;
|
|
1907
1906
|
}
|
|
1908
1907
|
}
|
|
1909
|
-
.
|
|
1908
|
+
._CredBuildPluginTab_14aaz_107 {
|
|
1910
1909
|
display: none;
|
|
1911
1910
|
flex-direction: column;
|
|
1912
1911
|
flex: 1;
|
|
1913
1912
|
overflow: hidden;
|
|
1914
1913
|
}
|
|
1915
|
-
._CredBuildPluginTab--
|
|
1914
|
+
._CredBuildPluginTab--visible_14aaz_114 {
|
|
1916
1915
|
display: flex;
|
|
1917
1916
|
}
|
|
1918
|
-
._CredBuildPluginTab-
|
|
1917
|
+
._CredBuildPluginTab-body_14aaz_118 {
|
|
1919
1918
|
display: flex;
|
|
1920
1919
|
flex-direction: column;
|
|
1921
1920
|
flex: 1;
|
|
1922
1921
|
overflow-y: auto;
|
|
1923
1922
|
padding-bottom: 32px;
|
|
1924
1923
|
}
|
|
1925
|
-
._CredBuildLayout-
|
|
1926
|
-
._CredBuildLayout-
|
|
1927
|
-
._CredBuildLayout-
|
|
1924
|
+
._CredBuildLayout-left_14aaz_54,
|
|
1925
|
+
._CredBuildLayout-right_14aaz_75,
|
|
1926
|
+
._CredBuildLayout-header_14aaz_49 {
|
|
1928
1927
|
border-radius: 0 !important;
|
|
1929
1928
|
margin: 0 !important;
|
|
1930
1929
|
box-shadow: none !important;
|
|
1931
1930
|
border-top: none;
|
|
1932
1931
|
}
|
|
1933
|
-
._CredBuildLayout--
|
|
1932
|
+
._CredBuildLayout--mounted_14aaz_134 ._CredBuildLayout-inner_14aaz_8 {
|
|
1934
1933
|
opacity: 1;
|
|
1935
1934
|
}
|
|
1936
1935
|
|
package/dist/no-external.js
CHANGED
|
@@ -4405,22 +4405,22 @@ var init_get_zoom_config = __esm({
|
|
|
4405
4405
|
const viewportHeight = uiViewport.height === "auto" ? frameHeight : uiViewport.height;
|
|
4406
4406
|
let rootHeight = 0;
|
|
4407
4407
|
let autoZoom = 1;
|
|
4408
|
-
if (typeof uiViewport.width === "number" && (uiViewport.width > frameWidth || viewportHeight > frameHeight)) {
|
|
4408
|
+
if (typeof uiViewport.width === "number" && uiViewport.width > 0 && (uiViewport.width > frameWidth || typeof viewportHeight === "number" && viewportHeight > frameHeight)) {
|
|
4409
4409
|
const widthZoom = Math.min(frameWidth / uiViewport.width, 1);
|
|
4410
|
-
const heightZoom = Math.min(frameHeight / viewportHeight, 1);
|
|
4411
|
-
zoom = widthZoom;
|
|
4410
|
+
const heightZoom = typeof viewportHeight === "number" ? Math.min(frameHeight / viewportHeight, 1) : 1;
|
|
4411
|
+
zoom = Math.max(widthZoom, 0.01);
|
|
4412
4412
|
if (widthZoom < heightZoom) {
|
|
4413
|
-
rootHeight = viewportHeight / zoom;
|
|
4413
|
+
rootHeight = typeof viewportHeight === "number" ? viewportHeight / zoom : frameHeight;
|
|
4414
4414
|
} else {
|
|
4415
|
-
rootHeight = viewportHeight;
|
|
4416
|
-
zoom = heightZoom;
|
|
4415
|
+
rootHeight = typeof viewportHeight === "number" ? viewportHeight : 0;
|
|
4416
|
+
zoom = Math.max(heightZoom, 0.01);
|
|
4417
4417
|
}
|
|
4418
4418
|
autoZoom = zoom;
|
|
4419
4419
|
} else {
|
|
4420
4420
|
if (RESET_ZOOM_SMALLER_THAN_FRAME) {
|
|
4421
4421
|
autoZoom = 1;
|
|
4422
4422
|
zoom = 1;
|
|
4423
|
-
rootHeight = viewportHeight;
|
|
4423
|
+
rootHeight = typeof viewportHeight === "number" ? viewportHeight : 0;
|
|
4424
4424
|
}
|
|
4425
4425
|
}
|
|
4426
4426
|
return { autoZoom, rootHeight, zoom };
|
|
@@ -12509,7 +12509,7 @@ var usePropsContext = () => (0, import_react86.useContext)(propsContext);
|
|
|
12509
12509
|
|
|
12510
12510
|
// css-module:/home/crediblemark/Project/Credibuild/components/CredBuild/components/Layout/styles.module.css#css-module
|
|
12511
12511
|
init_react_import();
|
|
12512
|
-
var styles_module_default22 = { "CredBuildLayout": "
|
|
12512
|
+
var styles_module_default22 = { "CredBuildLayout": "_CredBuildLayout_14aaz_1", "CredBuildLayout-inner": "_CredBuildLayout-inner_14aaz_8", "CredBuildLayout--leftSideBarVisible": "_CredBuildLayout--leftSideBarVisible_14aaz_29", "CredBuildLayout--rightSideBarVisible": "_CredBuildLayout--rightSideBarVisible_14aaz_33", "CredBuild--hidePlugins": "_CredBuild--hidePlugins_14aaz_37", "CredBuildLayout-item": "_CredBuildLayout-item_14aaz_43", "CredBuildLayout-header": "_CredBuildLayout-header_14aaz_49", "CredBuildLayout-left": "_CredBuildLayout-left_14aaz_54", "CredBuildLayout-editor": "_CredBuildLayout-editor_14aaz_67", "CredBuildLayout-right": "_CredBuildLayout-right_14aaz_75", "CredBuildLayout-sidebar": "_CredBuildLayout-sidebar_14aaz_92", "CredBuildPluginTab": "_CredBuildPluginTab_14aaz_107", "CredBuildPluginTab--visible": "_CredBuildPluginTab--visible_14aaz_114", "CredBuildPluginTab-body": "_CredBuildPluginTab-body_14aaz_118", "CredBuildLayout--mounted": "_CredBuildLayout--mounted_14aaz_134" };
|
|
12513
12513
|
|
|
12514
12514
|
// lib/use-inject-css.ts
|
|
12515
12515
|
init_react_import();
|
|
@@ -13480,18 +13480,18 @@ var ViewportControls = ({
|
|
|
13480
13480
|
const defaultsContainAutoZoom = defaultZoomOptions.find(
|
|
13481
13481
|
(option) => option.value === autoZoom
|
|
13482
13482
|
);
|
|
13483
|
-
const zoomOptions = (0, import_react91.useMemo)(
|
|
13484
|
-
|
|
13483
|
+
const zoomOptions = (0, import_react91.useMemo)(() => {
|
|
13484
|
+
const options = [
|
|
13485
13485
|
...defaultZoomOptions,
|
|
13486
|
-
...defaultsContainAutoZoom ? [] : [
|
|
13486
|
+
...defaultsContainAutoZoom || isNaN(autoZoom) ? [] : [
|
|
13487
13487
|
{
|
|
13488
13488
|
value: autoZoom,
|
|
13489
13489
|
label: `${(autoZoom * 100).toFixed(0)}% (Auto)`
|
|
13490
13490
|
}
|
|
13491
13491
|
]
|
|
13492
|
-
].filter((a) => a.value <= autoZoom).sort((a, b) => a.value > b.value ? 1 : -1)
|
|
13493
|
-
|
|
13494
|
-
);
|
|
13492
|
+
].filter((a) => a.value <= (autoZoom || 1)).sort((a, b) => a.value > b.value ? 1 : -1);
|
|
13493
|
+
return options.length > 0 ? options : defaultZoomOptions;
|
|
13494
|
+
}, [autoZoom, defaultsContainAutoZoom]);
|
|
13495
13495
|
const [activeViewport, setActiveViewport] = (0, import_react91.useState)(
|
|
13496
13496
|
uiViewports.current.width
|
|
13497
13497
|
);
|
|
@@ -13524,15 +13524,15 @@ var ViewportControls = ({
|
|
|
13524
13524
|
ActionButton,
|
|
13525
13525
|
{
|
|
13526
13526
|
title: "Zoom viewport out",
|
|
13527
|
-
disabled: zoom <= zoomOptions[0]?.value,
|
|
13527
|
+
disabled: zoom <= (zoomOptions[0]?.value || 0),
|
|
13528
13528
|
onClick: (e) => {
|
|
13529
13529
|
e.stopPropagation();
|
|
13530
|
-
|
|
13531
|
-
|
|
13532
|
-
|
|
13533
|
-
|
|
13534
|
-
)].value
|
|
13530
|
+
const currentIndex = zoomOptions.findIndex((option) => option.value === zoom);
|
|
13531
|
+
const nextIndex = Math.max(
|
|
13532
|
+
(currentIndex === -1 ? zoomOptions.length : currentIndex) - 1,
|
|
13533
|
+
0
|
|
13535
13534
|
);
|
|
13535
|
+
onZoom(zoomOptions[nextIndex]?.value || 1);
|
|
13536
13536
|
},
|
|
13537
13537
|
children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(ZoomOut, { size: 16 })
|
|
13538
13538
|
}
|
|
@@ -13541,15 +13541,15 @@ var ViewportControls = ({
|
|
|
13541
13541
|
ActionButton,
|
|
13542
13542
|
{
|
|
13543
13543
|
title: "Zoom viewport in",
|
|
13544
|
-
disabled: zoom >= zoomOptions[zoomOptions.length - 1]?.value,
|
|
13544
|
+
disabled: zoom >= (zoomOptions[zoomOptions.length - 1]?.value || 2),
|
|
13545
13545
|
onClick: (e) => {
|
|
13546
13546
|
e.stopPropagation();
|
|
13547
|
-
|
|
13548
|
-
|
|
13549
|
-
|
|
13550
|
-
|
|
13551
|
-
)].value
|
|
13547
|
+
const currentIndex = zoomOptions.findIndex((option) => option.value === zoom);
|
|
13548
|
+
const nextIndex = Math.min(
|
|
13549
|
+
(currentIndex === -1 ? -1 : currentIndex) + 1,
|
|
13550
|
+
zoomOptions.length - 1
|
|
13552
13551
|
);
|
|
13552
|
+
onZoom(zoomOptions[nextIndex]?.value || 1);
|
|
13553
13553
|
},
|
|
13554
13554
|
children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(ZoomIn, { size: 16 })
|
|
13555
13555
|
}
|
|
@@ -14214,7 +14214,8 @@ var Canvas = () => {
|
|
|
14214
14214
|
className: getClassName36("root"),
|
|
14215
14215
|
style: {
|
|
14216
14216
|
width: iframe.enabled ? viewports.current.width : "100%",
|
|
14217
|
-
height: zoomConfig.rootHeight,
|
|
14217
|
+
height: !zoomConfig.rootHeight || isNaN(zoomConfig.rootHeight) ? "100%" : zoomConfig.rootHeight,
|
|
14218
|
+
minHeight: "100%",
|
|
14218
14219
|
transform: iframe.enabled ? `scale(${zoomConfig.zoom})` : void 0,
|
|
14219
14220
|
transition: showTransition ? `width ${TRANSITION_DURATION}ms ease-out, height ${TRANSITION_DURATION}ms ease-out, transform ${TRANSITION_DURATION}ms ease-out` : "",
|
|
14220
14221
|
overflow: iframe.enabled ? void 0 : "auto"
|
|
@@ -14809,7 +14810,7 @@ var Layout = ({ children }) => {
|
|
|
14809
14810
|
})}`,
|
|
14810
14811
|
"data-theme": theme,
|
|
14811
14812
|
id: instanceId,
|
|
14812
|
-
style: { height },
|
|
14813
|
+
style: { height: typeof height === "number" && isNaN(height) ? void 0 : height },
|
|
14813
14814
|
children: [
|
|
14814
14815
|
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(DragDropContext, { disableAutoScroll: dnd?.disableAutoScroll, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(CustomCredBuild, { children: children || /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(FrameProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
14815
14816
|
"div",
|
|
@@ -14822,7 +14823,7 @@ var Layout = ({ children }) => {
|
|
|
14822
14823
|
mobilePanelHeightToggle: mobilePanelHeightMode === "toggle",
|
|
14823
14824
|
mobilePanelHeightMinContent: mobilePanelHeightMode === "min-content"
|
|
14824
14825
|
}),
|
|
14825
|
-
style: { height },
|
|
14826
|
+
style: { height: typeof height === "number" && isNaN(height) ? void 0 : height },
|
|
14826
14827
|
children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
|
|
14827
14828
|
"div",
|
|
14828
14829
|
{
|
|
@@ -14872,7 +14873,7 @@ var Layout = ({ children }) => {
|
|
|
14872
14873
|
]
|
|
14873
14874
|
}
|
|
14874
14875
|
),
|
|
14875
|
-
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
14876
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Canvas, {}),
|
|
14876
14877
|
!hasDesktopFieldsPlugin && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
14877
14878
|
Sidebar,
|
|
14878
14879
|
{
|
package/dist/no-external.mjs
CHANGED
|
@@ -12,17 +12,17 @@ import {
|
|
|
12
12
|
registerOverlayPortal,
|
|
13
13
|
useCredBuild,
|
|
14
14
|
useGetCredBuild
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-5VWWS4RS.mjs";
|
|
16
|
+
import "./chunk-6RPYD5IO.mjs";
|
|
17
17
|
import {
|
|
18
18
|
setDeep
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-BQW2NTNG.mjs";
|
|
20
20
|
import {
|
|
21
21
|
AutoField,
|
|
22
22
|
Button,
|
|
23
23
|
FieldLabel
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-H2LU4EW3.mjs";
|
|
25
|
+
import "./chunk-2VS2BST6.mjs";
|
|
26
26
|
import {
|
|
27
27
|
migrate,
|
|
28
28
|
resolveAllData,
|
|
@@ -37,11 +37,11 @@ import {
|
|
|
37
37
|
Label,
|
|
38
38
|
RichTextMenu,
|
|
39
39
|
Separator
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
40
|
+
} from "./chunk-VBNE6GK2.mjs";
|
|
41
|
+
import "./chunk-LBMMY5IM.mjs";
|
|
42
|
+
import "./chunk-WKMRHPOM.mjs";
|
|
43
|
+
import "./chunk-5OK3IPVN.mjs";
|
|
44
|
+
import "./chunk-GIUKL443.mjs";
|
|
45
45
|
import "./chunk-64A37UUC.mjs";
|
|
46
46
|
import "./chunk-SMAWAXVX.mjs";
|
|
47
47
|
import "./chunk-BFHV72KK.mjs";
|