eddev 0.2.65 → 0.2.67-beta1
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/admin/components/ImageWell.d.ts +2 -3
- package/admin/components/ImageWell.js +39 -51
- package/admin/defineField.d.ts +2 -2
- package/admin/defineWidget.d.ts +1 -1
- package/admin/defineWidget.js +2 -2
- package/admin/index.js +5 -1
- package/admin/installFieldTypes.js +26 -26
- package/admin/runWidgets.js +17 -28
- package/admin/selectMedia.d.ts +2 -2
- package/admin/selectMedia.js +1 -1
- package/blocks/ContentBlocks.d.ts +6 -6
- package/blocks/ContentBlocks.js +58 -66
- package/blocks/ErrorBoundaryEditor.d.ts +1 -1
- package/blocks/ErrorBoundaryEditor.js +16 -45
- package/blocks/ErrorBoundaryFrontend.d.ts +1 -1
- package/blocks/ErrorBoundaryFrontend.js +16 -45
- package/blocks/InspectorControls.d.ts +1 -1
- package/blocks/InspectorControls.js +3 -3
- package/blocks/blockAttributes.d.ts +2 -2
- package/blocks/blockAttributes.js +24 -44
- package/blocks/index.js +5 -1
- package/blocks/inlineEditing.d.ts +7 -7
- package/blocks/inlineEditing.js +36 -55
- package/blocks/installGutenbergHooks.js +48 -68
- package/build/babel/plugin-name-defined-components.js +15 -16
- package/build/build-favicon.js +11 -62
- package/build/clean.js +5 -52
- package/build/create-codegen-worker.js +78 -33
- package/build/create-serverless-dev-worker.js +61 -39
- package/build/create-webpack-worker.js +65 -33
- package/build/file-tree.d.ts +2 -2
- package/build/file-tree.js +12 -12
- package/build/get-webpack-config.js +341 -395
- package/build/graphql-codegen/graphql-codegen-files.js +31 -25
- package/build/graphql-codegen/graphql-codegen-no-duplicates.js +4 -4
- package/build/graphql-codegen/graphql-codegen-queries.js +102 -99
- package/build/manifests/manifest-blocks.d.ts +1 -1
- package/build/manifests/manifest-blocks.js +37 -29
- package/build/manifests/manifest-fields.d.ts +1 -1
- package/build/manifests/manifest-fields.js +23 -21
- package/build/manifests/manifest-views.d.ts +1 -1
- package/build/manifests/manifest-views.js +32 -25
- package/build/manifests/manifest-widgets.d.ts +1 -1
- package/build/manifests/manifest-widgets.js +22 -20
- package/build/manifests/manifest.d.ts +2 -2
- package/build/manifests/manifest.js +30 -90
- package/build/reporter.d.ts +1 -1
- package/build/reporter.js +29 -32
- package/build/serverless/create-next-app.d.ts +1 -1
- package/build/serverless/create-next-app.js +245 -467
- package/build/state/codegen-state.d.ts +4 -4
- package/build/state/compiler-state.d.ts +5 -5
- package/build/state/serverless-state.d.ts +3 -3
- package/build/workers/codegen-worker-script.js +392 -507
- package/build/workers/serverless-worker-dev-script.js +4 -4
- package/build/workers/webpack-worker-script.js +89 -150
- package/cli/build.dev.d.ts +1 -1
- package/cli/build.dev.js +79 -126
- package/cli/build.prod.d.ts +1 -1
- package/cli/build.prod.js +42 -98
- package/cli/cli.js +16 -55
- package/cli/display/components/BundleDisplay.d.ts +1 -2
- package/cli/display/components/BundleDisplay.js +13 -24
- package/cli/display/components/CodegenDisplay.d.ts +1 -2
- package/cli/display/components/CodegenDisplay.js +14 -25
- package/cli/display/components/DevCLIDisplay.d.ts +2 -3
- package/cli/display/components/DevCLIDisplay.js +14 -25
- package/cli/display/components/Fullscreen.js +9 -20
- package/cli/display/components/ServerlessDisplay.d.ts +2 -3
- package/cli/display/components/ServerlessDisplay.js +15 -26
- package/cli/display/components/StatusIcon.d.ts +2 -3
- package/cli/display/components/StatusIcon.js +3 -3
- package/cli/preinstall.js +4 -5
- package/cli/setup.js +25 -73
- package/components/AdminBar.d.ts +1 -2
- package/components/AdminBar.js +37 -3
- package/components/BrowserRouter.d.ts +2 -2
- package/components/BrowserRouter.js +41 -54
- package/components/InlinePage.d.ts +2 -2
- package/components/InlinePage.js +17 -29
- package/components/NextRouter.d.ts +2 -2
- package/components/NextRouter.js +20 -29
- package/components/index.js +5 -1
- package/config/config-schema.d.ts +1 -1
- package/config/config-schema.js +1 -1
- package/config/create-schema-file.js +6 -6
- package/config/get-config.js +10 -13
- package/config/index.js +5 -1
- package/config/parse-config.js +1 -1
- package/config/print-zod-errors.js +3 -3
- package/dev-ui/components/BreakpointColumnHeader.d.ts +2 -3
- package/dev-ui/components/BreakpointColumnHeader.js +7 -18
- package/dev-ui/components/BreakpointIndicator.d.ts +1 -2
- package/dev-ui/components/BreakpointIndicator.js +25 -32
- package/dev-ui/components/DevUI.d.ts +1 -2
- package/dev-ui/components/DevUI.js +13 -13
- package/dev-ui/components/Launcher.d.ts +2 -2
- package/dev-ui/components/Launcher.js +13 -25
- package/dev-ui/components/PanelWrapper.d.ts +2 -2
- package/dev-ui/components/PanelWrapper.js +8 -8
- package/dev-ui/components/ResponsiveLerpControl.d.ts +2 -3
- package/dev-ui/components/ResponsiveLerpControl.js +27 -38
- package/dev-ui/components/ResponsiveScaleEditor.d.ts +4 -5
- package/dev-ui/components/ResponsiveScaleEditor.js +64 -78
- package/dev-ui/components/atoms/Button.js +1 -1
- package/dev-ui/components/atoms/Dropdown.d.ts +3 -3
- package/dev-ui/components/atoms/Dropdown.js +8 -9
- package/dev-ui/components/atoms/NumberField.d.ts +2 -3
- package/dev-ui/components/atoms/NumberField.js +29 -42
- package/dev-ui/components/atoms/Spacer.js +1 -1
- package/dev-ui/components/atoms/Text.js +1 -1
- package/dev-ui/components/atoms/ToggleButton.d.ts +2 -2
- package/dev-ui/components/atoms/ToggleButton.js +5 -16
- package/dev-ui/components/atoms/Tooltip.d.ts +2 -2
- package/dev-ui/components/atoms/Tooltip.js +8 -20
- package/dev-ui/components/panels/AppDataDebugger.d.ts +1 -2
- package/dev-ui/components/panels/AppDataDebugger.js +8 -19
- package/dev-ui/components/panels/ColorEditor.d.ts +1 -2
- package/dev-ui/components/panels/ColorEditor.js +35 -42
- package/dev-ui/components/panels/PageDataDebugger.d.ts +1 -2
- package/dev-ui/components/panels/PageDataDebugger.js +8 -20
- package/dev-ui/components/panels/QueryDebugger.d.ts +1 -2
- package/dev-ui/components/panels/QueryDebugger.js +12 -24
- package/dev-ui/components/panels/SpacingEditor.d.ts +1 -2
- package/dev-ui/components/panels/SpacingEditor.js +34 -48
- package/dev-ui/components/panels/TypographyEditor.d.ts +1 -2
- package/dev-ui/components/panels/TypographyEditor.js +38 -46
- package/dev-ui/hooks/useBreakpoint.d.ts +1 -1
- package/dev-ui/hooks/useBreakpoint.js +13 -13
- package/dev-ui/hooks/usePersistState.js +6 -7
- package/dev-ui/hooks/useStylesheet.js +6 -6
- package/dev-ui/icons.d.ts +15 -16
- package/dev-ui/icons.js +16 -27
- package/dev-ui/index.js +5 -1
- package/dev-ui/loader.d.ts +1 -2
- package/dev-ui/loader.js +13 -9
- package/dev-ui/panels.d.ts +2 -2
- package/dev-ui/panels.js +7 -7
- package/dev-ui/theme.d.ts +96 -70
- package/dev-ui/theme.js +3 -3
- package/dynamic/dynamic-component.d.ts +1 -10
- package/dynamic/dynamic-component.js +1 -1
- package/dynamic/index.js +5 -1
- package/entry/Root.d.ts +2 -3
- package/entry/Root.js +16 -26
- package/entry/entry.admin.dev.js +4 -4
- package/entry/entry.admin.prod.js +4 -4
- package/entry/entry.monolith.dev.js +5 -5
- package/entry/entry.monolith.prod.js +5 -5
- package/gravityforms/gravity-forms.d.ts +2 -2
- package/gravityforms/index.js +5 -1
- package/gravityforms/useGravityForm.d.ts +2 -2
- package/gravityforms/useGravityForm.js +126 -130
- package/hooks/index.js +5 -1
- package/hooks/queryUtils.d.ts +14 -14
- package/hooks/queryUtils.js +101 -192
- package/hooks/useAppData.d.ts +2 -2
- package/hooks/useAppData.js +9 -9
- package/hooks/usePageLoad.js +4 -4
- package/hooks/useQueryDebug.d.ts +1 -1
- package/hooks/useQueryDebug.js +7 -7
- package/hooks/useRPC.d.ts +4 -4
- package/hooks/useRPC.js +3 -3
- package/package.json +7 -7
- package/routing/index.js +5 -1
- package/routing/remoteProps.d.ts +1 -1
- package/routing/remoteProps.js +31 -72
- package/routing/routing.d.ts +15 -15
- package/routing/routing.js +108 -170
- package/routing/updateEditLink.js +1 -1
- package/serverless/define-api.d.ts +1 -1
- package/serverless/define-rpc-router.js +8 -4
- package/serverless/index.js +6 -2
- package/serverless-template/_utils/fetch-wordpress-props.ts +0 -4
- package/serverless-template/_utils/fetch-wp.ts +0 -1
- package/style/createStitches.d.ts +375 -783
- package/style/createStitches.js +164 -142
- package/style/index.js +5 -1
- package/tsconfig.json +1 -1
- package/utils/Observable.d.ts +2 -2
- package/utils/Observable.js +12 -15
- package/utils/getRepoName.js +3 -3
- package/utils/promptIfRepoNameIncorrect.js +18 -64
- package/utils/refreshOverlayInterop.js +1 -1
- package/utils/reportErrorStack.d.ts +1 -1
- package/utils/reportErrorStack.js +1 -1
- package/utils/serverlessAppContext.js +1 -1
- package/utils/updateEnvFile.js +19 -69
- package/utils/useObservable.js +3 -3
- package/views/index.js +5 -1
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useBreakpoint = void 0;
|
|
4
4
|
// @ts-ignore
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
const _theme_1 = require("@theme");
|
|
6
|
+
const react_1 = require("react");
|
|
7
7
|
function useBreakpoint() {
|
|
8
8
|
// const [value, setValue] = useState(["initial", -1, 0] as [string, number, number])
|
|
9
|
-
|
|
9
|
+
const [value, setValue] = (0, react_1.useState)({
|
|
10
10
|
name: "initial",
|
|
11
11
|
index: -1,
|
|
12
12
|
progress: 0,
|
|
@@ -14,11 +14,11 @@ function useBreakpoint() {
|
|
|
14
14
|
width: 0,
|
|
15
15
|
bpMin: 0,
|
|
16
16
|
bpMax: 0,
|
|
17
|
-
})
|
|
18
|
-
(0, react_1.useEffect)(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
});
|
|
18
|
+
(0, react_1.useEffect)(() => {
|
|
19
|
+
const handle = () => {
|
|
20
|
+
const width = window.innerWidth;
|
|
21
|
+
const result = {
|
|
22
22
|
name: "initial",
|
|
23
23
|
index: 0,
|
|
24
24
|
offset: window.innerWidth,
|
|
@@ -27,10 +27,10 @@ function useBreakpoint() {
|
|
|
27
27
|
bpMin: 0,
|
|
28
28
|
bpMax: _theme_1.breakpoints[0].max,
|
|
29
29
|
};
|
|
30
|
-
for (
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
for (let index in _theme_1.breakpoints) {
|
|
31
|
+
const bp = _theme_1.breakpoints[index];
|
|
32
|
+
const key = bp.key;
|
|
33
|
+
const media = _theme_1.config.media[key];
|
|
34
34
|
if (!media.includes("min-width") || !media)
|
|
35
35
|
continue;
|
|
36
36
|
if (window.matchMedia(media).matches) {
|
|
@@ -52,7 +52,7 @@ function useBreakpoint() {
|
|
|
52
52
|
};
|
|
53
53
|
handle();
|
|
54
54
|
window.addEventListener("resize", handle);
|
|
55
|
-
return
|
|
55
|
+
return () => window.removeEventListener("resize", handle);
|
|
56
56
|
}, []);
|
|
57
57
|
return value;
|
|
58
58
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.usePersistState = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
if (fallback === void 0) { fallback = undefined; }
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const get = (id, fallback = undefined) => {
|
|
7
6
|
if (typeof localStorage === "undefined") {
|
|
8
7
|
return fallback;
|
|
9
8
|
}
|
|
10
|
-
|
|
9
|
+
const value = localStorage.getItem("devui_" + id);
|
|
11
10
|
if (value !== null) {
|
|
12
11
|
try {
|
|
13
12
|
return JSON.parse(value);
|
|
@@ -20,14 +19,14 @@ var get = function (id, fallback) {
|
|
|
20
19
|
return fallback;
|
|
21
20
|
}
|
|
22
21
|
};
|
|
23
|
-
|
|
22
|
+
const set = (id, value) => {
|
|
24
23
|
localStorage.setItem("devui_" + id, JSON.stringify(value));
|
|
25
24
|
};
|
|
26
25
|
function usePersistState(id, initial) {
|
|
27
|
-
|
|
26
|
+
const [value, setValue] = (0, react_1.useState)(() => get(id, initial));
|
|
28
27
|
return [
|
|
29
28
|
value,
|
|
30
|
-
|
|
29
|
+
(value) => {
|
|
31
30
|
set(id, value);
|
|
32
31
|
setValue(value);
|
|
33
32
|
},
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useStylesheet = void 0;
|
|
4
|
-
|
|
4
|
+
const react_1 = require("react");
|
|
5
5
|
function useStylesheet(id) {
|
|
6
|
-
|
|
7
|
-
(0, react_1.useEffect)(
|
|
6
|
+
const [element, setElement] = (0, react_1.useState)(null);
|
|
7
|
+
(0, react_1.useEffect)(() => {
|
|
8
8
|
if (!element) {
|
|
9
|
-
|
|
9
|
+
let style = document.getElementById("devui-" + id);
|
|
10
10
|
if (!style) {
|
|
11
11
|
style = document.createElement("style");
|
|
12
12
|
style.id = "devui-" + id;
|
|
@@ -16,12 +16,12 @@ function useStylesheet(id) {
|
|
|
16
16
|
}
|
|
17
17
|
}, [element]);
|
|
18
18
|
return {
|
|
19
|
-
clear
|
|
19
|
+
clear() {
|
|
20
20
|
if (element) {
|
|
21
21
|
element.innerHTML = "";
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
-
set
|
|
24
|
+
set(value) {
|
|
25
25
|
if (element) {
|
|
26
26
|
element.innerHTML = value;
|
|
27
27
|
}
|
package/dev-ui/icons.d.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const
|
|
15
|
-
export declare const
|
|
16
|
-
export declare const color: JSX.Element;
|
|
1
|
+
export declare const bolt: import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const typography: import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const ruler: import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const structure: import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const code: import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const share: import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const close: import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const check: import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const checkEmpty: import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const checkFilled: import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const line: import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const copy: import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const paste: import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const trash: import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const color: import("react/jsx-runtime").JSX.Element;
|
package/dev-ui/icons.js
CHANGED
|
@@ -1,30 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
3
|
exports.color = exports.trash = exports.paste = exports.copy = exports.line = exports.checkFilled = exports.checkEmpty = exports.check = exports.close = exports.share = exports.code = exports.structure = exports.ruler = exports.typography = exports.bolt = void 0;
|
|
15
|
-
|
|
16
|
-
exports.bolt = ((0, jsx_runtime_1.jsxs)("svg",
|
|
17
|
-
exports.typography = ((0, jsx_runtime_1.jsx)("svg",
|
|
18
|
-
exports.ruler = ((0, jsx_runtime_1.jsxs)("svg",
|
|
19
|
-
exports.structure = ((0, jsx_runtime_1.jsxs)("svg",
|
|
20
|
-
exports.code = ((0, jsx_runtime_1.jsxs)("svg",
|
|
21
|
-
exports.share = ((0, jsx_runtime_1.jsxs)("svg",
|
|
22
|
-
exports.close = ((0, jsx_runtime_1.jsxs)("svg",
|
|
23
|
-
exports.check = ((0, jsx_runtime_1.jsxs)("svg",
|
|
24
|
-
exports.checkEmpty = ((0, jsx_runtime_1.jsxs)("svg",
|
|
25
|
-
exports.checkFilled = ((0, jsx_runtime_1.jsxs)("svg",
|
|
26
|
-
exports.line = ((0, jsx_runtime_1.jsxs)("svg",
|
|
27
|
-
exports.copy = ((0, jsx_runtime_1.jsxs)("svg",
|
|
28
|
-
exports.paste = ((0, jsx_runtime_1.jsxs)("svg",
|
|
29
|
-
exports.trash = ((0, jsx_runtime_1.jsxs)("svg",
|
|
30
|
-
exports.color = ((0, jsx_runtime_1.jsx)("svg",
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
exports.bolt = ((0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000", children: [(0, jsx_runtime_1.jsx)("g", { children: (0, jsx_runtime_1.jsx)("rect", { fill: "none", height: "24", width: "24" }) }), (0, jsx_runtime_1.jsx)("g", { children: (0, jsx_runtime_1.jsx)("path", { d: "M11,21h-1l1-7H6.74c0,0,3.68-6.46,6.26-11h1l-1,7h4.28L11,21z" }) })] }));
|
|
6
|
+
exports.typography = ((0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000", children: (0, jsx_runtime_1.jsx)("path", { d: "M2.5 4v3h5v12h3V7h5V4h-13zm19 5h-9v3h3v7h3v-7h3V9z" }) }));
|
|
7
|
+
exports.ruler = ((0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000", children: [(0, jsx_runtime_1.jsx)("path", { d: "M0 0h24v24H0V0z", fill: "none" }), (0, jsx_runtime_1.jsx)("path", { d: "M23 6H1v12h22V6zm-2 10H3V8h2v4h2V8h2v4h2V8h2v4h2V8h2v4h2V8h2v8z" })] }));
|
|
8
|
+
exports.structure = ((0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", enableBackground: "new 0 0 24 24", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000", children: [(0, jsx_runtime_1.jsx)("g", { children: (0, jsx_runtime_1.jsx)("rect", { fill: "none", height: "24", width: "24" }) }), (0, jsx_runtime_1.jsx)("polygon", { points: "22,11 22,3 15,3 15,6 9,6 9,3 2,3 2,11 9,11 9,8 11,8 11,18 15,18 15,21 22,21 22,13 15,13 15,16 13,16 13,8 15,8 15,11" })] }));
|
|
9
|
+
exports.code = ((0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000", children: [(0, jsx_runtime_1.jsx)("path", { d: "M0 0h24v24H0V0z", fill: "none" }), (0, jsx_runtime_1.jsx)("path", { d: "M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z" })] }));
|
|
10
|
+
exports.share = ((0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", enableBackground: "new 0 0 24 24", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000", children: [(0, jsx_runtime_1.jsx)("g", { children: (0, jsx_runtime_1.jsx)("rect", { fill: "none", height: "24", width: "24" }) }), (0, jsx_runtime_1.jsx)("g", { children: (0, jsx_runtime_1.jsxs)("g", { children: [(0, jsx_runtime_1.jsx)("g", { children: (0, jsx_runtime_1.jsx)("polygon", { points: "23,3 1,3 1,13 3,13 3,5 21,5 21,21 23,21" }) }), (0, jsx_runtime_1.jsx)("g", { children: (0, jsx_runtime_1.jsx)("circle", { cx: "9", cy: "10", r: "4" }) }), (0, jsx_runtime_1.jsx)("g", { children: (0, jsx_runtime_1.jsx)("path", { d: "M15.39,16.56C13.71,15.7,11.53,15,9,15c-2.53,0-4.71,0.7-6.39,1.56C1.61,17.07,1,18.1,1,19.22V22h16v-2.78 C17,18.1,16.39,17.07,15.39,16.56z" }) })] }) })] }));
|
|
11
|
+
exports.close = ((0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000", children: [(0, jsx_runtime_1.jsx)("path", { d: "M0 0h24v24H0V0z", fill: "none" }), (0, jsx_runtime_1.jsx)("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z" })] }));
|
|
12
|
+
exports.check = ((0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000", children: [(0, jsx_runtime_1.jsx)("path", { d: "M0 0h24v24H0V0z", fill: "none" }), (0, jsx_runtime_1.jsx)("path", { d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z" })] }));
|
|
13
|
+
exports.checkEmpty = ((0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000", children: [(0, jsx_runtime_1.jsx)("path", { d: "M0 0h24v24H0V0z", fill: "none" }), (0, jsx_runtime_1.jsx)("path", { d: "M19 5v14H5V5h14m2-2H3v18h18V3z" })] }));
|
|
14
|
+
exports.checkFilled = ((0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000", children: [(0, jsx_runtime_1.jsx)("path", { d: "M0 0h24v24H0V0z", fill: "none" }), (0, jsx_runtime_1.jsx)("path", { d: "M21 3H3v18h18V3zM10 17l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" })] }));
|
|
15
|
+
exports.line = ((0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", enableBackground: "new 0 0 24 24", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000", children: [(0, jsx_runtime_1.jsx)("g", { children: (0, jsx_runtime_1.jsx)("rect", { fill: "none", height: "24", width: "24", x: "0" }) }), (0, jsx_runtime_1.jsx)("g", { children: (0, jsx_runtime_1.jsx)("g", { children: (0, jsx_runtime_1.jsx)("path", { d: "M23,8c0,1.1-0.9,2-2,2c-0.18,0-0.35-0.02-0.51-0.07l-3.56,3.55C16.98,13.64,17,13.82,17,14c0,1.1-0.9,2-2,2s-2-0.9-2-2 c0-0.18,0.02-0.36,0.07-0.52l-2.55-2.55C10.36,10.98,10.18,11,10,11c-0.18,0-0.36-0.02-0.52-0.07l-4.55,4.56 C4.98,15.65,5,15.82,5,16c0,1.1-0.9,2-2,2s-2-0.9-2-2s0.9-2,2-2c0.18,0,0.35,0.02,0.51,0.07l4.56-4.55C8.02,9.36,8,9.18,8,9 c0-1.1,0.9-2,2-2s2,0.9,2,2c0,0.18-0.02,0.36-0.07,0.52l2.55,2.55C14.64,12.02,14.82,12,15,12c0.18,0,0.36,0.02,0.52,0.07 l3.55-3.56C19.02,8.35,19,8.18,19,8c0-1.1,0.9-2,2-2S23,6.9,23,8z" }) }) })] }));
|
|
16
|
+
exports.copy = ((0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000", children: [(0, jsx_runtime_1.jsx)("path", { d: "M0 0h24v24H0V0z", fill: "none" }), (0, jsx_runtime_1.jsx)("path", { d: "M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z" })] }));
|
|
17
|
+
exports.paste = ((0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000", children: [(0, jsx_runtime_1.jsx)("path", { d: "M0 0h24v24H0V0z", fill: "none" }), (0, jsx_runtime_1.jsx)("path", { d: "M19 2h-4.18C14.4.84 13.3 0 12 0S9.6.84 9.18 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z" })] }));
|
|
18
|
+
exports.trash = ((0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000", children: [(0, jsx_runtime_1.jsx)("path", { d: "M0 0h24v24H0V0z", fill: "none" }), (0, jsx_runtime_1.jsx)("path", { d: "M6 21h12V7H6v14zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z" })] }));
|
|
19
|
+
exports.color = ((0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", height: "48", width: "48", viewBox: "0 0 48 48", children: (0, jsx_runtime_1.jsx)("path", { d: "M24 44q-4.1 0-7.75-1.575-3.65-1.575-6.375-4.3-2.725-2.725-4.3-6.375Q4 28.1 4 24q0-4.25 1.6-7.9 1.6-3.65 4.375-6.35 2.775-2.7 6.5-4.225Q20.2 4 24.45 4q3.95 0 7.5 1.325T38.175 9q2.675 2.35 4.25 5.575Q44 17.8 44 21.65q0 5.4-3.15 8.525T32.5 33.3h-3.75q-.9 0-1.55.7t-.65 1.55q0 1.35.725 2.3.725.95.725 2.2 0 1.9-1.05 2.925T24 44Zm0-20Zm-11.65 1.3q1 0 1.75-.75t.75-1.75q0-1-.75-1.75t-1.75-.75q-1 0-1.75.75t-.75 1.75q0 1 .75 1.75t1.75.75Zm6.3-8.5q1 0 1.75-.75t.75-1.75q0-1-.75-1.75t-1.75-.75q-1 0-1.75.75t-.75 1.75q0 1 .75 1.75t1.75.75Zm10.7 0q1 0 1.75-.75t.75-1.75q0-1-.75-1.75t-1.75-.75q-1 0-1.75.75t-.75 1.75q0 1 .75 1.75t1.75.75Zm6.55 8.5q1 0 1.75-.75t.75-1.75q0-1-.75-1.75t-1.75-.75q-1 0-1.75.75t-.75 1.75q0 1 .75 1.75t1.75.75ZM24 41q.55 0 .775-.225.225-.225.225-.725 0-.7-.725-1.3-.725-.6-.725-2.65 0-2.3 1.5-4.05t3.8-1.75h3.65q3.8 0 6.15-2.225Q41 25.85 41 21.65q0-6.6-5-10.625T24.45 7q-7.3 0-12.375 4.925T7 24q0 7.05 4.975 12.025Q16.95 41 24 41Z" }) }));
|
package/dev-ui/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/dev-ui/loader.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function DevUILoader(): JSX.Element | null;
|
|
1
|
+
export declare function DevUILoader(): import("react/jsx-runtime").JSX.Element | null;
|
package/dev-ui/loader.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -20,20 +24,20 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
20
24
|
};
|
|
21
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
26
|
exports.DevUILoader = void 0;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
+
const react_1 = require("react");
|
|
29
|
+
const dynamic_1 = require("../dynamic");
|
|
30
|
+
const usePersistState_1 = require("./hooks/usePersistState");
|
|
31
|
+
const DevUI = (0, dynamic_1.dynamic)(() => Promise.resolve().then(() => __importStar(require("./components/DevUI"))), { ssr: false });
|
|
28
32
|
function DevUILoader() {
|
|
29
|
-
|
|
30
|
-
(0, react_1.useEffect)(
|
|
33
|
+
const [render, setRender] = (0, usePersistState_1.usePersistState)("enable_devui", process.dev || (typeof window !== "undefined" && window["ENABLE_DEV_UI"]));
|
|
34
|
+
(0, react_1.useEffect)(() => {
|
|
31
35
|
if (document.location.search.includes("activate-dev-ui")) {
|
|
32
36
|
setRender(true);
|
|
33
37
|
}
|
|
34
38
|
}, []);
|
|
35
39
|
if (render) {
|
|
36
|
-
return (0, jsx_runtime_1.jsx)(DevUI, {}
|
|
40
|
+
return (0, jsx_runtime_1.jsx)(DevUI, {});
|
|
37
41
|
}
|
|
38
42
|
else {
|
|
39
43
|
return null;
|
package/dev-ui/panels.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentType, ReactNode } from "react";
|
|
2
|
-
|
|
2
|
+
type DevUIPanelItem = {
|
|
3
3
|
label: string;
|
|
4
4
|
icon: ReactNode;
|
|
5
5
|
component: ComponentType;
|
|
@@ -7,5 +7,5 @@ declare type DevUIPanelItem = {
|
|
|
7
7
|
export declare const DEV_UI_PANELS: {
|
|
8
8
|
[key: string]: DevUIPanelItem;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type PanelID = keyof typeof DEV_UI_PANELS;
|
|
11
11
|
export {};
|
package/dev-ui/panels.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DEV_UI_PANELS = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
const AppDataDebugger_1 = require("./components/panels/AppDataDebugger");
|
|
5
|
+
const ColorEditor_1 = require("./components/panels/ColorEditor");
|
|
6
|
+
const PageDataDebugger_1 = require("./components/panels/PageDataDebugger");
|
|
7
|
+
const QueryDebugger_1 = require("./components/panels/QueryDebugger");
|
|
8
|
+
const SpacingEditor_1 = require("./components/panels/SpacingEditor");
|
|
9
|
+
const TypographyEditor_1 = require("./components/panels/TypographyEditor");
|
|
10
|
+
const icons_1 = require("./icons");
|
|
11
11
|
exports.DEV_UI_PANELS = {
|
|
12
12
|
typography: {
|
|
13
13
|
label: "Typography",
|
package/dev-ui/theme.d.ts
CHANGED
|
@@ -1,59 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
sm: string;
|
|
39
|
-
md: string;
|
|
40
|
-
lg: string;
|
|
41
|
-
};
|
|
42
|
-
transitions: {
|
|
43
|
-
default: string;
|
|
44
|
-
};
|
|
45
|
-
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>(type: Type, ...composers: { [K in keyof Composers]: string extends Composers[K] ? Composers[K] : Composers[K] extends string | import("@stitches/react/types/util").Function | import("react").ComponentType<any> ? Composers[K] : import("@stitches/react/types/stitches").RemoveIndex<CSS> & {
|
|
46
|
-
variants?: {
|
|
47
|
-
[x: string]: {
|
|
48
|
-
[x: string]: CSS;
|
|
49
|
-
[x: number]: CSS;
|
|
1
|
+
export declare const styled: {
|
|
2
|
+
withConfig: (config: {
|
|
3
|
+
componentId?: string | undefined;
|
|
4
|
+
displayName?: string | undefined;
|
|
5
|
+
shouldForwardStitchesProp?: ((prop: "css" | (string & {})) => boolean | void) | undefined;
|
|
6
|
+
}) => import("@stitches/react/types/stitches").StyledFunctionType<{}, {
|
|
7
|
+
space: {
|
|
8
|
+
smallButtonHeight: string;
|
|
9
|
+
buttonHeight: string;
|
|
10
|
+
0: string;
|
|
11
|
+
1: string;
|
|
12
|
+
2: string;
|
|
13
|
+
3: string;
|
|
14
|
+
4: string;
|
|
15
|
+
5: string;
|
|
16
|
+
6: string;
|
|
17
|
+
};
|
|
18
|
+
colors: {
|
|
19
|
+
bg: string;
|
|
20
|
+
bgHover: string;
|
|
21
|
+
bgHoverLight: string;
|
|
22
|
+
bgLine: string;
|
|
23
|
+
bgLineStrong: string;
|
|
24
|
+
button: string;
|
|
25
|
+
buttonHover: string;
|
|
26
|
+
fg: string;
|
|
27
|
+
fgFaded: string;
|
|
28
|
+
};
|
|
29
|
+
fontSizes: {
|
|
30
|
+
sm: string;
|
|
31
|
+
md: string;
|
|
32
|
+
lg: string;
|
|
33
|
+
xl: string;
|
|
34
|
+
};
|
|
35
|
+
fonts: {
|
|
36
|
+
body: string;
|
|
37
|
+
mono: string;
|
|
50
38
|
};
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
39
|
+
radii: {
|
|
40
|
+
sm: string;
|
|
41
|
+
md: string;
|
|
42
|
+
lg: string;
|
|
43
|
+
};
|
|
44
|
+
transitions: {
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {}>;
|
|
48
|
+
} & import("@stitches/react/types/stitches").StyledFunctionType<{}, {
|
|
57
49
|
space: {
|
|
58
50
|
smallButtonHeight: string;
|
|
59
51
|
buttonHeight: string;
|
|
@@ -94,9 +86,54 @@ export declare const styled: <Type extends import("@stitches/react/types/util").
|
|
|
94
86
|
transitions: {
|
|
95
87
|
default: string;
|
|
96
88
|
};
|
|
97
|
-
}, import("@stitches/react/types/config").DefaultThemeMap, {}
|
|
98
|
-
|
|
99
|
-
|
|
89
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {}>, css: {
|
|
90
|
+
withConfig: (config: {
|
|
91
|
+
componentId?: string | undefined;
|
|
92
|
+
displayName?: string | undefined;
|
|
93
|
+
shouldForwardStitchesProp?: ((prop: "css" | (string & {})) => boolean | void) | undefined;
|
|
94
|
+
}) => import("@stitches/react/types/stitches").CssFunctionType<{}, {
|
|
95
|
+
space: {
|
|
96
|
+
smallButtonHeight: string;
|
|
97
|
+
buttonHeight: string;
|
|
98
|
+
0: string;
|
|
99
|
+
1: string;
|
|
100
|
+
2: string;
|
|
101
|
+
3: string;
|
|
102
|
+
4: string;
|
|
103
|
+
5: string;
|
|
104
|
+
6: string;
|
|
105
|
+
};
|
|
106
|
+
colors: {
|
|
107
|
+
bg: string;
|
|
108
|
+
bgHover: string;
|
|
109
|
+
bgHoverLight: string;
|
|
110
|
+
bgLine: string;
|
|
111
|
+
bgLineStrong: string;
|
|
112
|
+
button: string;
|
|
113
|
+
buttonHover: string;
|
|
114
|
+
fg: string;
|
|
115
|
+
fgFaded: string;
|
|
116
|
+
};
|
|
117
|
+
fontSizes: {
|
|
118
|
+
sm: string;
|
|
119
|
+
md: string;
|
|
120
|
+
lg: string;
|
|
121
|
+
xl: string;
|
|
122
|
+
};
|
|
123
|
+
fonts: {
|
|
124
|
+
body: string;
|
|
125
|
+
mono: string;
|
|
126
|
+
};
|
|
127
|
+
radii: {
|
|
128
|
+
sm: string;
|
|
129
|
+
md: string;
|
|
130
|
+
lg: string;
|
|
131
|
+
};
|
|
132
|
+
transitions: {
|
|
133
|
+
default: string;
|
|
134
|
+
};
|
|
135
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {}>;
|
|
136
|
+
} & import("@stitches/react/types/stitches").CssFunctionType<{}, {
|
|
100
137
|
space: {
|
|
101
138
|
smallButtonHeight: string;
|
|
102
139
|
buttonHeight: string;
|
|
@@ -137,15 +174,4 @@ export declare const styled: <Type extends import("@stitches/react/types/util").
|
|
|
137
174
|
transitions: {
|
|
138
175
|
default: string;
|
|
139
176
|
};
|
|
140
|
-
}, import("@stitches/react/types/config").DefaultThemeMap, {}
|
|
141
|
-
variants?: {
|
|
142
|
-
[x: string]: {
|
|
143
|
-
[x: string]: CSS;
|
|
144
|
-
[x: number]: CSS;
|
|
145
|
-
};
|
|
146
|
-
} | undefined;
|
|
147
|
-
compoundVariants?: (("variants" extends keyof Composers[K] ? { [Name in keyof Composers[K][keyof Composers[K] & "variants"]]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name]> | undefined; } : import("@stitches/react/types/util").WideObject) & {
|
|
148
|
-
css: CSS;
|
|
149
|
-
})[] | undefined;
|
|
150
|
-
defaultVariants?: ("variants" extends keyof Composers[K] ? { [Name_1 in keyof Composers[K][keyof Composers[K] & "variants"]]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name_1]> | undefined; } : import("@stitches/react/types/util").WideObject) | undefined;
|
|
151
|
-
} & CSS & { [K2 in keyof Composers[K]]: K2 extends "compoundVariants" | "defaultVariants" | "variants" ? unknown : K2 extends keyof CSS ? CSS[K2] : unknown; }; }) => import("@stitches/react/types/styled-component").CssComponent<import("@stitches/react/types/styled-component").StyledComponentType<Composers>, import("@stitches/react/types/styled-component").StyledComponentProps<Composers>, {}, CSS>;
|
|
177
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {}>;
|
package/dev-ui/theme.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.css = exports.styled = void 0;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
const react_1 = require("@stitches/react");
|
|
6
|
+
_a = (0, react_1.createStitches)({
|
|
7
7
|
theme: {
|
|
8
8
|
space: {
|
|
9
9
|
smallButtonHeight: "22px",
|
|
@@ -47,4 +47,4 @@ exports.styled = (_a = (0, react_1.createStitches)({
|
|
|
47
47
|
},
|
|
48
48
|
},
|
|
49
49
|
prefix: "eddev",
|
|
50
|
-
}), _a.styled
|
|
50
|
+
}), exports.styled = _a.styled, exports.css = _a.css;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const dynamic: {
|
|
3
|
-
<Props, Module = import("@loadable/component").DefaultComponent<Props>>(loadFn: (props: Props) => Promise<Module>, options: import("@loadable/component").OptionsWithResolver<Props, Module>): import("@loadable/component").LoadableComponent<Props>;
|
|
4
|
-
<Props_1>(loadFn: (props: Props_1) => Promise<import("@loadable/component").DefaultComponent<Props_1>>, options?: import("@loadable/component").OptionsWithoutResolver<Props_1> | undefined): import("@loadable/component").LoadableComponent<Props_1>;
|
|
5
|
-
<Component extends import("react").ComponentClass<any, any>>(loadFn: (props: import("react").ComponentProps<Component>) => Promise<Component | {
|
|
6
|
-
default: Component;
|
|
7
|
-
}>, options?: import("@loadable/component").Options<import("react").ComponentProps<Component>, Component> | undefined): import("@loadable/component").LoadableClassComponent<Component>;
|
|
8
|
-
} & {
|
|
9
|
-
lib: <Props_2, Module_1>(loadFn: (props: Props_2) => Promise<Module_1>, options?: import("@loadable/component").OptionsWithoutResolver<Props_2> | undefined) => import("@loadable/component").LoadableLibrary<Module_1>;
|
|
10
|
-
};
|
|
1
|
+
export declare const dynamic: any;
|
|
@@ -4,5 +4,5 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.dynamic = void 0;
|
|
7
|
-
|
|
7
|
+
const component_1 = __importDefault(require("@loadable/component"));
|
|
8
8
|
exports.dynamic = component_1.default;
|
package/dynamic/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/entry/Root.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare
|
|
3
|
-
declare const _default: typeof Root | import("next/types").NextComponentType<import("next/types").NextPageContext, {}, {}>;
|
|
1
|
+
declare function Root(): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const _default: typeof Root | import("next/types").NextComponentType;
|
|
4
3
|
export default _default;
|