eddev 0.3.35 → 2.0.0-beta.1
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/bin/eddev.js +1 -3
- package/css/devtools.css +15 -0
- package/css/editor-styles.css +94 -0
- package/dist/app/entry/Root.d.ts +1 -0
- package/dist/app/entry/Root.js +9 -0
- package/dist/app/entry/main.admin.d.ts +3 -0
- package/dist/app/entry/main.admin.js +10 -0
- package/dist/app/entry/main.frontend.spa.d.ts +3 -0
- package/dist/app/entry/main.frontend.spa.js +13 -0
- package/dist/app/entry/main.frontend.ssr.d.ts +21 -0
- package/dist/app/entry/main.frontend.ssr.js +79 -0
- package/dist/app/entry/main.serverless.dev.d.ts +4 -0
- package/dist/app/entry/main.serverless.dev.js +21 -0
- package/{admin → dist/app/lib/admin}/defineField.d.ts +2 -2
- package/dist/app/lib/admin/defineField.js +3 -0
- package/{admin → dist/app/lib/admin}/defineWidget.d.ts +1 -1
- package/dist/app/lib/admin/defineWidget.js +6 -0
- package/dist/app/lib/admin/index.d.ts +2 -0
- package/dist/app/lib/admin/index.js +2 -0
- package/dist/app/lib/admin/installFieldTypes.js +92 -0
- package/dist/app/lib/admin/runWidgets.js +38 -0
- package/dist/app/lib/blocks/ContentBlocks.d.ts +83 -0
- package/dist/app/lib/blocks/ContentBlocks.js +92 -0
- package/dist/app/lib/blocks/EditableText.d.ts +41 -0
- package/dist/app/lib/blocks/EditableText.js +50 -0
- package/{blocks → dist/app/lib/blocks}/ErrorBoundaryFrontend.d.ts +2 -2
- package/dist/app/lib/blocks/ErrorBoundaryFrontend.js +35 -0
- package/dist/app/lib/blocks/InnerBlocks.d.ts +42 -0
- package/dist/app/lib/blocks/InnerBlocks.js +55 -0
- package/dist/app/lib/blocks/block-utils.d.ts +24 -0
- package/dist/app/lib/blocks/block-utils.js +41 -0
- package/dist/app/lib/blocks/defineBlock.d.ts +2 -0
- package/dist/app/lib/blocks/defineBlock.js +3 -0
- package/dist/app/lib/blocks/editor/EditorSupport.d.ts +5 -0
- package/dist/app/lib/blocks/editor/EditorSupport.js +19 -0
- package/{blocks → dist/app/lib/blocks/editor}/ErrorBoundaryEditor.d.ts +1 -1
- package/dist/app/lib/blocks/editor/ErrorBoundaryEditor.js +28 -0
- package/dist/app/lib/blocks/editor/block-templates.d.ts +3 -0
- package/dist/app/lib/blocks/editor/block-templates.js +9 -0
- package/dist/app/lib/blocks/editor/blocks-by-tag.d.ts +7 -0
- package/dist/app/lib/blocks/editor/blocks-by-tag.js +42 -0
- package/dist/app/lib/blocks/editor/controls.d.ts +10 -0
- package/dist/app/lib/blocks/editor/controls.js +20 -0
- package/dist/app/lib/blocks/editor/editor-config.d.ts +58 -0
- package/dist/app/lib/blocks/editor/editor-config.js +191 -0
- package/dist/app/lib/blocks/editor/installGutenbergHooks.d.ts +2 -0
- package/dist/app/lib/blocks/editor/installGutenbergHooks.js +131 -0
- package/dist/app/lib/blocks/editor/usePostEditor.d.ts +27 -0
- package/dist/app/lib/blocks/editor/usePostEditor.js +79 -0
- package/dist/app/lib/blocks/index.d.ts +9 -0
- package/dist/app/lib/blocks/index.js +9 -0
- package/dist/app/lib/blocks/inline-editing.d.ts +54 -0
- package/dist/app/lib/blocks/inline-editing.js +114 -0
- package/dist/app/lib/devtools/components/BreakpointIndicator.js +79 -0
- package/{dev-ui → dist/app/lib/devtools}/components/DevUI.d.ts +1 -0
- package/dist/app/lib/devtools/components/DevUI.js +6 -0
- package/dist/app/lib/devtools/hooks/usePersistState.js +31 -0
- package/dist/app/lib/devtools/hooks/useTailwind.d.ts +4184 -0
- package/dist/app/lib/devtools/hooks/useTailwind.js +6 -0
- package/dist/app/lib/devtools/index.js +1 -0
- package/dist/app/lib/devtools/loader.js +23 -0
- package/dist/app/lib/devtools/tailwind.config.d.ts +23 -0
- package/dist/app/lib/devtools/tailwind.config.js +24 -0
- package/{hooks → dist/app/lib/devtools}/useQueryDebug.d.ts +1 -1
- package/dist/app/lib/devtools/useQueryDebug.js +13 -0
- package/dist/app/lib/dynamic/dynamic.d.ts +8 -0
- package/dist/app/lib/dynamic/dynamic.js +25 -0
- package/dist/app/lib/dynamic/index.d.ts +1 -0
- package/dist/app/lib/dynamic/index.js +1 -0
- package/dist/app/lib/hooks/apiConfig.d.ts +18 -0
- package/dist/app/lib/hooks/apiConfig.js +4 -0
- package/{hooks → dist/app/lib/hooks}/index.d.ts +2 -0
- package/dist/app/lib/hooks/index.js +5 -0
- package/dist/app/lib/hooks/queryUtils.d.ts +46 -0
- package/dist/app/lib/hooks/queryUtils.js +183 -0
- package/dist/app/lib/hooks/useAppData.d.ts +4 -0
- package/dist/app/lib/hooks/useAppData.js +11 -0
- package/{hooks → dist/app/lib/hooks}/usePageLoad.d.ts +1 -1
- package/dist/app/lib/hooks/usePageLoad.js +5 -0
- package/dist/app/lib/hooks/useRPC.d.ts +9 -0
- package/dist/app/lib/hooks/useRPC.js +9 -0
- package/dist/app/lib/internal/index.d.ts +4 -0
- package/dist/app/lib/internal/index.js +4 -0
- package/dist/app/lib/internal/internal-store.d.ts +11 -0
- package/dist/app/lib/internal/internal-store.js +9 -0
- package/dist/app/lib/internal/read-admin-manifest.d.ts +19 -0
- package/dist/app/lib/internal/read-admin-manifest.js +17 -0
- package/dist/app/lib/internal/read-block-manifest.d.ts +15 -0
- package/dist/app/lib/internal/read-block-manifest.js +16 -0
- package/dist/app/lib/internal/read-view-manifest.d.ts +12 -0
- package/dist/app/lib/internal/read-view-manifest.js +3 -0
- package/dist/app/lib/legacy-stitches/createStitches.d.ts +615 -0
- package/dist/app/lib/legacy-stitches/createStitches.js +439 -0
- package/dist/app/lib/legacy-stitches/index.js +1 -0
- package/{components → dist/app/lib/routing/components}/BrowserRouter.d.ts +2 -4
- package/dist/app/lib/routing/components/BrowserRouter.js +351 -0
- package/dist/app/lib/routing/components/ClientOnly.d.ts +12 -0
- package/dist/app/lib/routing/components/ClientOnly.js +14 -0
- package/dist/app/lib/routing/components/Link.d.ts +26 -0
- package/dist/app/lib/routing/components/Link.js +93 -0
- package/dist/app/lib/routing/components/RouteRenderer.d.ts +9 -0
- package/dist/app/lib/routing/components/RouteRenderer.js +28 -0
- package/dist/app/lib/routing/components/SSRRouter.d.ts +9 -0
- package/dist/app/lib/routing/components/SSRRouter.js +14 -0
- package/dist/app/lib/routing/components/ScrollRestoration.d.ts +15 -0
- package/dist/app/lib/routing/components/ScrollRestoration.js +32 -0
- package/dist/app/lib/routing/context.d.ts +5 -0
- package/dist/app/lib/routing/context.js +129 -0
- package/dist/app/lib/routing/hooks/useIsSSR.d.ts +8 -0
- package/dist/app/lib/routing/hooks/useIsSSR.js +22 -0
- package/dist/app/lib/routing/hooks/useRestorableState.d.ts +5 -0
- package/dist/app/lib/routing/hooks/useRestorableState.js +17 -0
- package/dist/app/lib/routing/hooks/useRoute.d.ts +2 -0
- package/dist/app/lib/routing/hooks/useRoute.js +5 -0
- package/dist/app/lib/routing/hooks/useRouteTransition.d.ts +4 -0
- package/dist/app/lib/routing/hooks/useRouteTransition.js +12 -0
- package/dist/app/lib/routing/hooks/useRouter.d.ts +2 -0
- package/dist/app/lib/routing/hooks/useRouter.js +11 -0
- package/dist/app/lib/routing/hooks/useRouterEvents.d.ts +2 -0
- package/dist/app/lib/routing/hooks/useRouterEvents.js +10 -0
- package/dist/app/lib/routing/hooks/useRouterState.d.ts +2 -0
- package/dist/app/lib/routing/hooks/useRouterState.js +8 -0
- package/dist/app/lib/routing/hooks/useSearchParams.d.ts +10 -0
- package/dist/app/lib/routing/hooks/useSearchParams.js +30 -0
- package/dist/app/lib/routing/index.d.ts +13 -0
- package/dist/app/lib/routing/index.js +13 -0
- package/dist/app/lib/routing/loader.d.ts +30 -0
- package/dist/app/lib/routing/loader.js +106 -0
- package/dist/app/lib/routing/types.d.ts +138 -0
- package/dist/app/lib/routing/utils.d.ts +15 -0
- package/dist/app/lib/routing/utils.js +94 -0
- package/dist/app/lib/views/defineView.d.ts +4 -0
- package/dist/app/lib/views/defineView.js +3 -0
- package/dist/app/lib/views/index.js +1 -0
- package/dist/app/server/create-api-builtin-hono.d.ts +8 -0
- package/dist/app/server/create-api-builtin-hono.js +80 -0
- package/dist/app/server/create-ssr-hono.d.ts +18 -0
- package/dist/app/server/create-ssr-hono.js +104 -0
- package/dist/app/server/utils/headers.d.ts +4 -0
- package/dist/app/server/utils/headers.js +11 -0
- package/dist/app/server/utils/index.html.d.ts +2 -0
- package/dist/app/server/utils/index.html.js +14 -0
- package/dist/app/server/utils/replace-host.d.ts +8 -0
- package/dist/app/server/utils/replace-host.js +14 -0
- package/dist/app/utils/query-client.d.ts +2 -0
- package/dist/app/utils/query-client.js +16 -0
- package/dist/app/utils/wp.d.ts +26 -0
- package/dist/node/cli/cli-mode.d.ts +10 -0
- package/dist/node/cli/cli-mode.js +12 -0
- package/dist/node/cli/cli-worker.d.ts +13 -0
- package/dist/node/cli/cli-worker.js +114 -0
- package/dist/node/cli/cli.js +166 -0
- package/dist/node/cli/display/CLIApp.d.ts +16 -0
- package/dist/node/cli/display/CLIApp.js +117 -0
- package/dist/node/cli/display/boot-cli-app.d.ts +2 -0
- package/dist/node/cli/display/boot-cli-app.js +10 -0
- package/{cli → dist/node/cli}/display/components/Fullscreen.d.ts +1 -1
- package/dist/node/cli/display/components/Fullscreen.js +24 -0
- package/dist/node/cli/display/components/LogEntries.d.ts +13 -0
- package/dist/node/cli/display/components/LogEntries.js +87 -0
- package/dist/node/cli/display/components/MenuItem.d.ts +6 -0
- package/dist/node/cli/display/components/MenuItem.js +11 -0
- package/dist/node/cli/display/components/TextInput.d.ts +44 -0
- package/dist/node/cli/display/components/TextInput.js +105 -0
- package/dist/node/cli/display/hooks/useManifest.d.ts +2 -0
- package/dist/node/cli/display/hooks/useManifest.js +8 -0
- package/dist/node/cli/display/hooks/useStatefulLog.d.ts +11 -0
- package/dist/node/cli/display/hooks/useStatefulLog.js +51 -0
- package/dist/node/cli/display/tools/BlockList.d.ts +2 -0
- package/dist/node/cli/display/tools/BlockList.js +10 -0
- package/dist/node/cli/display/tools/CreateBlock.d.ts +2 -0
- package/dist/node/cli/display/tools/CreateBlock.js +8 -0
- package/dist/node/cli/display/tools/cli-tool-list.d.ts +2 -0
- package/dist/node/cli/display/tools/cli-tool-list.js +23 -0
- package/dist/node/cli/display/tools/cli-tools.d.ts +26 -0
- package/dist/node/cli/display/tools/cli-tools.js +15 -0
- package/dist/node/cli/display/util/colors.d.ts +4 -0
- package/dist/node/cli/display/util/colors.js +63 -0
- package/dist/node/cli/version.d.ts +1 -0
- package/dist/node/cli/version.js +1 -0
- package/dist/node/compiler/bundler.admin.d.ts +13 -0
- package/dist/node/compiler/bundler.admin.js +37 -0
- package/dist/node/compiler/bundler.frontend.d.ts +13 -0
- package/dist/node/compiler/bundler.frontend.js +37 -0
- package/dist/node/compiler/index.html.d.ts +2 -0
- package/dist/node/compiler/index.html.js +15 -0
- package/dist/node/compiler/serverless.dev.d.ts +16 -0
- package/dist/node/compiler/serverless.dev.js +215 -0
- package/dist/node/compiler/vite/get-vite-config.d.ts +13 -0
- package/dist/node/compiler/vite/get-vite-config.js +315 -0
- package/dist/node/compiler/vite/plugin-admin.d.ts +4 -0
- package/dist/node/compiler/vite/plugin-admin.js +67 -0
- package/dist/node/compiler/vite/plugin-blocks.d.ts +4 -0
- package/dist/node/compiler/vite/plugin-blocks.js +73 -0
- package/dist/node/compiler/vite/plugin-entry.d.ts +6 -0
- package/dist/node/compiler/vite/plugin-entry.js +16 -0
- package/dist/node/compiler/vite/plugin-resolved-tailwind.d.ts +4 -0
- package/dist/node/compiler/vite/plugin-resolved-tailwind.js +29 -0
- package/dist/node/compiler/vite/plugin-theme.d.ts +4 -0
- package/dist/node/compiler/vite/plugin-theme.js +40 -0
- package/dist/node/compiler/vite/plugin-views.d.ts +4 -0
- package/dist/node/compiler/vite/plugin-views.js +51 -0
- package/dist/node/graphql/graphql-codegen.d.ts +30 -0
- package/dist/node/graphql/graphql-codegen.js +503 -0
- package/dist/node/graphql/graphql-schema-loader.d.ts +17 -0
- package/dist/node/graphql/graphql-schema-loader.js +94 -0
- package/dist/node/graphql/plugins/gql-plugin-files.d.ts +14 -0
- package/dist/node/graphql/plugins/gql-plugin-files.js +66 -0
- package/dist/node/graphql/plugins/gql-plugin-no-duplicates.d.ts +8 -0
- package/dist/node/graphql/plugins/gql-plugin-no-duplicates.js +10 -0
- package/dist/node/graphql/plugins/gql-plugin-queries.d.ts +8 -0
- package/dist/node/graphql/plugins/gql-plugin-queries.js +263 -0
- package/dist/node/graphql/query-files-loader.d.ts +26 -0
- package/dist/node/graphql/query-files-loader.js +54 -0
- package/dist/node/graphql/wp-info-query.d.ts +1 -0
- package/dist/node/graphql/wp-info-query.js +29 -0
- package/{config/config-schema.d.ts → dist/node/project/config.d.ts} +54 -38
- package/dist/node/project/config.js +138 -0
- package/dist/node/project/eddev-build-file.d.ts +10 -0
- package/dist/node/project/eddev-build-file.js +79 -0
- package/dist/node/project/env.d.ts +39 -0
- package/dist/node/project/env.js +77 -0
- package/dist/node/project/favicons.d.ts +0 -0
- package/dist/node/project/favicons.js +1 -0
- package/dist/node/project/manifest/block-manifest.d.ts +19 -0
- package/dist/node/project/manifest/block-manifest.js +206 -0
- package/dist/node/project/manifest/field-manifest.d.ts +17 -0
- package/dist/node/project/manifest/field-manifest.js +42 -0
- package/dist/node/project/manifest/manifest.d.ts +30 -0
- package/dist/node/project/manifest/manifest.js +105 -0
- package/dist/node/project/manifest/view-manifest.d.ts +19 -0
- package/dist/node/project/manifest/view-manifest.js +152 -0
- package/dist/node/project/manifest/widget-manifest.d.ts +17 -0
- package/dist/node/project/manifest/widget-manifest.js +42 -0
- package/dist/node/project/project.d.ts +57 -0
- package/dist/node/project/project.js +115 -0
- package/dist/node/project/wp-info.d.ts +32 -0
- package/dist/node/project/wp-info.js +34 -0
- package/dist/node/types/block-type.d.ts +92 -0
- package/dist/node/types/block-type.js +82 -0
- package/dist/node/types/view-type.d.ts +31 -0
- package/dist/node/types/view-type.js +54 -0
- package/dist/node/utils/console.d.ts +21 -0
- package/dist/node/utils/console.js +28 -0
- package/dist/node/utils/export-extractor.d.ts +9 -0
- package/dist/node/utils/export-extractor.js +71 -0
- package/dist/node/utils/formatZodError.d.ts +3 -0
- package/dist/node/utils/formatZodError.js +33 -0
- package/dist/node/utils/fs.d.ts +106 -0
- package/dist/node/utils/fs.js +56 -0
- package/dist/node/utils/getRepoInfo.d.ts +7 -0
- package/dist/node/utils/getRepoInfo.js +21 -0
- package/dist/node/utils/helpers.d.ts +2 -0
- package/dist/node/utils/helpers.js +14 -0
- package/dist/node/utils/highlightCode.d.ts +10 -0
- package/dist/node/utils/highlightCode.js +30 -0
- package/dist/node/utils/isDeploying.d.ts +4 -0
- package/dist/node/utils/isDeploying.js +6 -0
- package/dist/node/utils/report-builder.d.ts +9 -0
- package/dist/node/utils/report-builder.js +51 -0
- package/dist/node/utils/selfSignedCert.d.ts +4 -0
- package/dist/node/utils/selfSignedCert.js +35 -0
- package/dist/node/utils/statefulLog.d.ts +65 -0
- package/dist/node/utils/statefulLog.js +223 -0
- package/dist/node/utils/unsafe-fetch.d.ts +2 -0
- package/dist/node/utils/unsafe-fetch.js +19 -0
- package/dist/node/utils/watchFileTree.d.ts +11 -0
- package/dist/node/utils/watchFileTree.js +58 -0
- package/package.json +123 -102
- package/stitches-archive/config.d.ts +210 -0
- package/stitches-archive/css-util.d.ts +119 -0
- package/stitches-archive/css.d.ts +9797 -0
- package/stitches-archive/index.d.mts +144 -0
- package/stitches-archive/index.d.ts +82 -0
- package/stitches-archive/index.mjs +2 -0
- package/stitches-archive/stitches.d.ts +288 -0
- package/stitches-archive/styled-component.d.ts +163 -0
- package/stitches-archive/theme.d.ts +43 -0
- package/stitches-archive/util.d.ts +32 -0
- package/tsconfig.app.json +20 -0
- package/tsconfig.json +2 -104
- package/tsconfig.node.json +20 -0
- package/tsup.config.ts +40 -0
- package/types.app.d.ts +22 -0
- package/types.app.internal.d.ts +13 -0
- package/types.env.d.ts +16 -0
- package/types.manifests.d.ts +22 -0
- package/types.meta.d.ts +319 -0
- package/types.node.d.ts +3 -0
- package/admin/components/FileWell.d.ts +0 -8
- package/admin/components/FileWell.js +0 -189
- package/admin/components/ImageWell.d.ts +0 -9
- package/admin/components/ImageWell.js +0 -209
- package/admin/defineField.js +0 -7
- package/admin/defineWidget.js +0 -10
- package/admin/index.d.ts +0 -4
- package/admin/index.js +0 -16
- package/admin/installFieldTypes.js +0 -71
- package/admin/runWidgets.js +0 -55
- package/admin/selectMedia.d.ts +0 -31
- package/admin/selectMedia.js +0 -9
- package/blocks/ContentBlocks.d.ts +0 -40
- package/blocks/ContentBlocks.js +0 -125
- package/blocks/ErrorBoundaryEditor.js +0 -64
- package/blocks/ErrorBoundaryFrontend.js +0 -69
- package/blocks/InspectorControls.d.ts +0 -2
- package/blocks/InspectorControls.js +0 -13
- package/blocks/blockAttributes.d.ts +0 -20
- package/blocks/blockAttributes.js +0 -81
- package/blocks/defineBlock.d.ts +0 -2
- package/blocks/defineBlock.js +0 -7
- package/blocks/index.d.ts +0 -5
- package/blocks/index.js +0 -23
- package/blocks/inlineEditing.d.ts +0 -32
- package/blocks/inlineEditing.js +0 -141
- package/blocks/installGutenbergHooks.d.ts +0 -2
- package/blocks/installGutenbergHooks.js +0 -211
- package/build/babel/plugin-name-defined-components.d.ts +0 -7
- package/build/babel/plugin-name-defined-components.js +0 -47
- package/build/build-favicon.d.ts +0 -1
- package/build/build-favicon.js +0 -71
- package/build/clean.d.ts +0 -1
- package/build/clean.js +0 -60
- package/build/create-codegen-worker.d.ts +0 -3
- package/build/create-codegen-worker.js +0 -71
- package/build/create-serverless-dev-worker.d.ts +0 -3
- package/build/create-serverless-dev-worker.js +0 -99
- package/build/create-webpack-worker.d.ts +0 -3
- package/build/create-webpack-worker.js +0 -64
- package/build/file-tree.d.ts +0 -5
- package/build/file-tree.js +0 -45
- package/build/get-webpack-config.d.ts +0 -3
- package/build/get-webpack-config.js +0 -426
- package/build/graphql-codegen/graphql-codegen-blocks.d.ts +0 -1
- package/build/graphql-codegen/graphql-codegen-blocks.js +0 -7
- package/build/graphql-codegen/graphql-codegen-files.js +0 -64
- package/build/graphql-codegen/graphql-codegen-no-duplicates.js +0 -13
- package/build/graphql-codegen/graphql-codegen-queries.d.ts +0 -1
- package/build/graphql-codegen/graphql-codegen-queries.js +0 -248
- package/build/manifests/manifest-blocks.d.ts +0 -12
- package/build/manifests/manifest-blocks.js +0 -61
- package/build/manifests/manifest-fields.d.ts +0 -12
- package/build/manifests/manifest-fields.js +0 -42
- package/build/manifests/manifest-views.d.ts +0 -12
- package/build/manifests/manifest-views.js +0 -49
- package/build/manifests/manifest-widgets.d.ts +0 -12
- package/build/manifests/manifest-widgets.js +0 -42
- package/build/manifests/manifest.d.ts +0 -11
- package/build/manifests/manifest.js +0 -100
- package/build/reporter.d.ts +0 -12
- package/build/reporter.js +0 -102
- package/build/serverless/create-next-app.d.ts +0 -9
- package/build/serverless/create-next-app.js +0 -536
- package/build/state/codegen-state.d.ts +0 -32
- package/build/state/codegen-state.js +0 -2
- package/build/state/compiler-state.d.ts +0 -49
- package/build/state/compiler-state.js +0 -2
- package/build/state/serverless-state.d.ts +0 -26
- package/build/state/serverless-state.js +0 -2
- package/build/workers/codegen-worker-script.d.ts +0 -2
- package/build/workers/codegen-worker-script.js +0 -624
- package/build/workers/serverless-worker-dev-script.d.ts +0 -1
- package/build/workers/serverless-worker-dev-script.js +0 -21
- package/build/workers/webpack-worker-script.d.ts +0 -2
- package/build/workers/webpack-worker-script.js +0 -171
- package/cli/build.dev.d.ts +0 -7
- package/cli/build.dev.js +0 -136
- package/cli/build.prod.d.ts +0 -5
- package/cli/build.prod.js +0 -107
- package/cli/cli.js +0 -90
- package/cli/display/components/BundleDisplay.d.ts +0 -5
- package/cli/display/components/BundleDisplay.js +0 -56
- package/cli/display/components/CodegenDisplay.d.ts +0 -5
- package/cli/display/components/CodegenDisplay.js +0 -62
- package/cli/display/components/DevCLIDisplay.d.ts +0 -12
- package/cli/display/components/DevCLIDisplay.js +0 -42
- package/cli/display/components/Fullscreen.js +0 -39
- package/cli/display/components/ServerlessDisplay.d.ts +0 -8
- package/cli/display/components/ServerlessDisplay.js +0 -68
- package/cli/display/components/StatusIcon.d.ts +0 -5
- package/cli/display/components/StatusIcon.js +0 -9
- package/cli/preinstall.d.ts +0 -1
- package/cli/preinstall.js +0 -19
- package/cli/setup.d.ts +0 -1
- package/cli/setup.js +0 -90
- package/components/AdminBar.d.ts +0 -1
- package/components/AdminBar.js +0 -9
- package/components/BrowserRouter.js +0 -155
- package/components/InlinePage.d.ts +0 -11
- package/components/InlinePage.js +0 -70
- package/components/NextRouter.d.ts +0 -9
- package/components/NextRouter.js +0 -45
- package/components/index.d.ts +0 -2
- package/components/index.js +0 -14
- package/config/config-schema.js +0 -38
- package/config/create-schema-file.d.ts +0 -1
- package/config/create-schema-file.js +0 -20
- package/config/get-config.d.ts +0 -78
- package/config/get-config.js +0 -32
- package/config/index.d.ts +0 -2
- package/config/index.js +0 -14
- package/config/parse-config.d.ts +0 -51
- package/config/parse-config.js +0 -8
- package/config/print-zod-errors.d.ts +0 -2
- package/config/print-zod-errors.js +0 -14
- package/dev-ui/components/BreakpointColumnHeader.d.ts +0 -10
- package/dev-ui/components/BreakpointColumnHeader.js +0 -47
- package/dev-ui/components/BreakpointIndicator.js +0 -139
- package/dev-ui/components/DevUI.js +0 -28
- package/dev-ui/components/Launcher.d.ts +0 -98
- package/dev-ui/components/Launcher.js +0 -94
- package/dev-ui/components/PanelWrapper.d.ts +0 -8
- package/dev-ui/components/PanelWrapper.js +0 -37
- package/dev-ui/components/ResponsiveLerpControl.d.ts +0 -7
- package/dev-ui/components/ResponsiveLerpControl.js +0 -176
- package/dev-ui/components/ResponsiveScaleEditor.d.ts +0 -25
- package/dev-ui/components/ResponsiveScaleEditor.js +0 -238
- package/dev-ui/components/atoms/Button.d.ts +0 -47
- package/dev-ui/components/atoms/Button.js +0 -67
- package/dev-ui/components/atoms/Dropdown.d.ts +0 -13
- package/dev-ui/components/atoms/Dropdown.js +0 -50
- package/dev-ui/components/atoms/NumberField.d.ts +0 -11
- package/dev-ui/components/atoms/NumberField.js +0 -111
- package/dev-ui/components/atoms/Spacer.d.ts +0 -42
- package/dev-ui/components/atoms/Spacer.js +0 -8
- package/dev-ui/components/atoms/Text.d.ts +0 -45
- package/dev-ui/components/atoms/Text.js +0 -39
- package/dev-ui/components/atoms/ToggleButton.d.ts +0 -8
- package/dev-ui/components/atoms/ToggleButton.js +0 -41
- package/dev-ui/components/atoms/Tooltip.d.ts +0 -9
- package/dev-ui/components/atoms/Tooltip.js +0 -66
- package/dev-ui/components/panels/AppDataDebugger.d.ts +0 -1
- package/dev-ui/components/panels/AppDataDebugger.js +0 -29
- package/dev-ui/components/panels/ColorEditor.d.ts +0 -1
- package/dev-ui/components/panels/ColorEditor.js +0 -128
- package/dev-ui/components/panels/PageDataDebugger.d.ts +0 -1
- package/dev-ui/components/panels/PageDataDebugger.js +0 -30
- package/dev-ui/components/panels/QueryDebugger.d.ts +0 -1
- package/dev-ui/components/panels/QueryDebugger.js +0 -46
- package/dev-ui/components/panels/SpacingEditor.d.ts +0 -1
- package/dev-ui/components/panels/SpacingEditor.js +0 -88
- package/dev-ui/components/panels/TypographyEditor.d.ts +0 -1
- package/dev-ui/components/panels/TypographyEditor.js +0 -97
- package/dev-ui/hooks/useBreakpoint.d.ts +0 -11
- package/dev-ui/hooks/useBreakpoint.js +0 -59
- package/dev-ui/hooks/usePersistState.js +0 -36
- package/dev-ui/hooks/useStylesheet.d.ts +0 -4
- package/dev-ui/hooks/useStylesheet.js +0 -31
- package/dev-ui/icons.d.ts +0 -15
- package/dev-ui/icons.js +0 -30
- package/dev-ui/index.d.ts +0 -1
- package/dev-ui/index.js +0 -13
- package/dev-ui/loader.js +0 -44
- package/dev-ui/panels.d.ts +0 -11
- package/dev-ui/panels.js +0 -47
- package/dev-ui/theme.d.ts +0 -151
- package/dev-ui/theme.js +0 -50
- package/dynamic/dynamic-component.d.ts +0 -10
- package/dynamic/dynamic-component.js +0 -8
- package/dynamic/index.d.ts +0 -1
- package/dynamic/index.js +0 -13
- package/entry/Root.d.ts +0 -3
- package/entry/Root.js +0 -56
- package/entry/entry.admin.dev.d.ts +0 -1
- package/entry/entry.admin.dev.js +0 -26
- package/entry/entry.admin.prod.d.ts +0 -1
- package/entry/entry.admin.prod.js +0 -16
- package/entry/entry.monolith.dev.d.ts +0 -6
- package/entry/entry.monolith.dev.js +0 -19
- package/entry/entry.monolith.prod.d.ts +0 -6
- package/entry/entry.monolith.prod.js +0 -18
- package/entry/entry.publicPath.js +0 -6
- package/gravityforms/index.d.ts +0 -2
- package/gravityforms/index.js +0 -14
- package/gravityforms/types.d.ts +0 -140
- package/gravityforms/types.js +0 -2
- package/gravityforms/useGravityForm.d.ts +0 -30
- package/gravityforms/useGravityForm.js +0 -292
- package/hooks/index.js +0 -15
- package/hooks/queryUtils.d.ts +0 -63
- package/hooks/queryUtils.js +0 -281
- package/hooks/useAppData.d.ts +0 -10
- package/hooks/useAppData.js +0 -37
- package/hooks/usePageLoad.js +0 -11
- package/hooks/useQuery.d.ts +0 -1
- package/hooks/useQuery.js +0 -10
- package/hooks/useQueryDebug.js +0 -21
- package/hooks/useRPC.d.ts +0 -12
- package/hooks/useRPC.js +0 -20
- package/index.d.ts +0 -1
- package/index.js +0 -5
- package/routing/index.d.ts +0 -1
- package/routing/index.js +0 -13
- package/routing/remoteProps.d.ts +0 -22
- package/routing/remoteProps.js +0 -103
- package/routing/routing.d.ts +0 -96
- package/routing/routing.js +0 -442
- package/routing/updateEditLink.d.ts +0 -1
- package/routing/updateEditLink.js +0 -12
- package/routing/updateHeadTags.d.ts +0 -2
- package/routing/updateHeadTags.js +0 -11
- package/serverless/define-api.d.ts +0 -2
- package/serverless/define-api.js +0 -66
- package/serverless/define-rpc-router.d.ts +0 -6
- package/serverless/define-rpc-router.js +0 -35
- package/serverless/error-codes.d.ts +0 -2
- package/serverless/error-codes.js +0 -14
- package/serverless/index.d.ts +0 -5
- package/serverless/index.js +0 -18
- package/serverless/rpc-provider.d.ts +0 -1
- package/serverless/rpc-provider.js +0 -5
- package/serverless-template/README.md +0 -34
- package/serverless-template/_utils/PageMeta.tsx +0 -44
- package/serverless-template/_utils/ed-config.ts +0 -5
- package/serverless-template/_utils/fetch-wordpress-props.ts +0 -62
- package/serverless-template/_utils/fetch-wp.ts +0 -34
- package/serverless-template/_utils/swr.ts +0 -43
- package/serverless-template/global.d.ts +0 -15
- package/serverless-template/next-env.d.ts +0 -3
- package/serverless-template/next.config.js +0 -119
- package/serverless-template/null.ts +0 -1
- package/serverless-template/package.json +0 -21
- package/serverless-template/pages/404.tsx +0 -12
- package/serverless-template/pages/[...slug].tsx +0 -35
- package/serverless-template/pages/_app.tsx +0 -55
- package/serverless-template/pages/_document.tsx +0 -65
- package/serverless-template/pages/api/rest/[...method].ts +0 -54
- package/serverless-template/pages/api/robots.ts +0 -49
- package/serverless-template/pages/api/sitemap/[...sitemap].ts +0 -56
- package/serverless-template/pages/api/trpc/[...trpc].ts +0 -41
- package/serverless-template/pages/index.tsx +0 -15
- package/serverless-template/tsconfig.json +0 -39
- package/style/createStitches.d.ts +0 -1058
- package/style/createStitches.js +0 -443
- package/style/index.js +0 -13
- package/utils/Observable.d.ts +0 -11
- package/utils/Observable.js +0 -34
- package/utils/getRepoName.d.ts +0 -4
- package/utils/getRepoName.js +0 -30
- package/utils/merge-refs.d.ts +0 -2
- package/utils/merge-refs.js +0 -17
- package/utils/promptIfRepoNameIncorrect.d.ts +0 -1
- package/utils/promptIfRepoNameIncorrect.js +0 -72
- package/utils/refreshOverlayInterop.d.ts +0 -4
- package/utils/refreshOverlayInterop.js +0 -12
- package/utils/reportErrorStack.d.ts +0 -7
- package/utils/reportErrorStack.js +0 -13
- package/utils/serverlessAppContext.d.ts +0 -3
- package/utils/serverlessAppContext.js +0 -6
- package/utils/updateEnvFile.d.ts +0 -1
- package/utils/updateEnvFile.js +0 -76
- package/utils/useObservable.d.ts +0 -2
- package/utils/useObservable.js +0 -12
- package/views/defineView.d.ts +0 -2
- package/views/defineView.js +0 -7
- package/views/index.js +0 -13
- /package/{admin → dist/app/lib/admin}/installFieldTypes.d.ts +0 -0
- /package/{admin → dist/app/lib/admin}/runWidgets.d.ts +0 -0
- /package/{dev-ui → dist/app/lib/devtools}/components/BreakpointIndicator.d.ts +0 -0
- /package/{dev-ui → dist/app/lib/devtools}/hooks/usePersistState.d.ts +0 -0
- /package/{entry/entry.publicPath.d.ts → dist/app/lib/devtools/index.d.ts} +0 -0
- /package/{dev-ui → dist/app/lib/devtools}/loader.d.ts +0 -0
- /package/{style → dist/app/lib/legacy-stitches}/index.d.ts +0 -0
- /package/{build/graphql-codegen/graphql-codegen-files.d.ts → dist/app/lib/routing/types.js} +0 -0
- /package/{views → dist/app/lib/views}/index.d.ts +0 -0
- /package/{build/graphql-codegen/graphql-codegen-no-duplicates.d.ts → dist/app/utils/wp.js} +0 -0
- /package/{cli → dist/node/cli}/cli.d.ts +0 -0
package/style/createStitches.js
DELETED
|
@@ -1,443 +0,0 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.createStitches = exports.parseResponsiveTokens = exports.getResponsiveObjectStyles = exports.parseResponsiveObject = exports.parseBreakpoints = void 0;
|
|
15
|
-
var react_1 = require("@stitches/react");
|
|
16
|
-
var typeKeyMap = {
|
|
17
|
-
fontSize: "fontSizes",
|
|
18
|
-
fontFamily: "fonts",
|
|
19
|
-
lineHeight: "lineHeights",
|
|
20
|
-
letterSpacing: "letterSpacings",
|
|
21
|
-
fontWeight: "fontWeights",
|
|
22
|
-
};
|
|
23
|
-
function parseBreakpoints(names, medias) {
|
|
24
|
-
var breakpoints = [];
|
|
25
|
-
// Add an initial breakpoint
|
|
26
|
-
breakpoints.push({ key: "initial", min: "0px", max: null });
|
|
27
|
-
// Parse each breakpoint
|
|
28
|
-
for (var key in medias) {
|
|
29
|
-
if (!names.includes(key))
|
|
30
|
-
continue;
|
|
31
|
-
var media = medias[key];
|
|
32
|
-
var minMatch = media.match(/min-width: ([0-9]+[a-z]+)/);
|
|
33
|
-
var maxMatch = media.match(/max-width: ([0-9]+[a-z]+)/);
|
|
34
|
-
if (!minMatch && !maxMatch)
|
|
35
|
-
continue;
|
|
36
|
-
breakpoints.push({
|
|
37
|
-
key: key,
|
|
38
|
-
min: minMatch ? minMatch[1] : null,
|
|
39
|
-
max: maxMatch ? maxMatch[1] : null,
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
// Ensure each breakpoint has a min/max value (except for first and last)
|
|
43
|
-
for (var i = 0; i < breakpoints.length; i++) {
|
|
44
|
-
var bp = breakpoints[i];
|
|
45
|
-
var prev = breakpoints[i - 1];
|
|
46
|
-
var next = breakpoints[i + 1];
|
|
47
|
-
if (bp.min === null && prev && prev.max) {
|
|
48
|
-
bp.min = prev.max;
|
|
49
|
-
}
|
|
50
|
-
if (bp.max === null && next && next.min) {
|
|
51
|
-
bp.max = next.min;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return breakpoints;
|
|
55
|
-
}
|
|
56
|
-
exports.parseBreakpoints = parseBreakpoints;
|
|
57
|
-
var unitless = function (value) { return parseFloat(value); };
|
|
58
|
-
function parseTypography(theme, breakpoints, typography) {
|
|
59
|
-
var globals = {};
|
|
60
|
-
var typeVariants = {};
|
|
61
|
-
breakpoints.forEach(function (bp) { return (globals["@" + bp.key] = {}); });
|
|
62
|
-
globals["@editor"] = {};
|
|
63
|
-
var resolveValue = function (scale, value) {
|
|
64
|
-
if (typeof value === "string" && value.match(/^\$[a-z0-9\-\_]+$/)) {
|
|
65
|
-
// Single scale
|
|
66
|
-
return theme[scale][value.replace("$", "")];
|
|
67
|
-
}
|
|
68
|
-
else {
|
|
69
|
-
return value;
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
var resolveThemeVar = function (scale, value) {
|
|
73
|
-
if (typeof value === "string" && value.match(/^\$[a-z0-9\-\_]+$/)) {
|
|
74
|
-
// Single scale
|
|
75
|
-
return "$" + scale + value;
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
return value;
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
for (var name_1 in typography) {
|
|
82
|
-
var style = typography[name_1];
|
|
83
|
-
var variant = {};
|
|
84
|
-
typeVariants[name_1] = variant;
|
|
85
|
-
for (var key in style) {
|
|
86
|
-
var value = style[key];
|
|
87
|
-
var varName = "--type-".concat(name_1, "-").concat(key);
|
|
88
|
-
variant[key] = "var(".concat(varName, ")");
|
|
89
|
-
var tokenPrefix = typeKeyMap[key];
|
|
90
|
-
if (typeof value === "string" || typeof value === "number") {
|
|
91
|
-
// A simple string or number value is used
|
|
92
|
-
var result = void 0;
|
|
93
|
-
if (key === "lineHeight" &&
|
|
94
|
-
(typeof value === "number" || (typeof value === "string" && value.match(/^[0-9\.]+$/)))) {
|
|
95
|
-
result = value + "em";
|
|
96
|
-
}
|
|
97
|
-
else {
|
|
98
|
-
result = resolveThemeVar(tokenPrefix, value);
|
|
99
|
-
}
|
|
100
|
-
globals["@initial"][varName] = result;
|
|
101
|
-
}
|
|
102
|
-
else if (value && typeof value === "object") {
|
|
103
|
-
// A responsive object value
|
|
104
|
-
var unit = key === "lineHeight" ? "%" : "px";
|
|
105
|
-
var unitlessUnit = key === "lineHeight" ? "em" : unit;
|
|
106
|
-
var _a = getResponsiveObjectStyles(breakpoints, value, varName, unit, unitlessUnit), tokenGlobals = _a[0], initial = _a[1];
|
|
107
|
-
for (var key_1 in tokenGlobals) {
|
|
108
|
-
globals[key_1] = __assign(__assign({}, globals[key_1]), tokenGlobals[key_1]);
|
|
109
|
-
}
|
|
110
|
-
// const entries = Object.entries(value)
|
|
111
|
-
// entries.forEach(([bpName, responsiveValue], i) => {
|
|
112
|
-
// if (Array.isArray(responsiveValue)) {
|
|
113
|
-
// responsiveValue = responsiveValue[0]
|
|
114
|
-
// // An array in the format [value] signifies font locking between the current breakpoint and the next defined one
|
|
115
|
-
// const minSize = breakpoints.find((bp) => "@" + bp.key === bpName)?.min
|
|
116
|
-
// const nextBreakpoint = breakpoints.find((bp) => "@" + bp.key === entries[i + 1]?.[0])
|
|
117
|
-
// if (!nextBreakpoint)
|
|
118
|
-
// throw new Error(
|
|
119
|
-
// `Cannot create responsive '${key}' for '${name}' at breakpoint '${bpName}', since it is the last-defined breakpoint. Your last size should be a string/number/token.`
|
|
120
|
-
// )
|
|
121
|
-
// const maxSize = nextBreakpoint.min
|
|
122
|
-
// let responsiveValue2 = (value as any)["@" + nextBreakpoint.key]
|
|
123
|
-
// if (Array.isArray(responsiveValue2)) responsiveValue2 = responsiveValue2[0]
|
|
124
|
-
// let size1 = resolveValue(tokenPrefix, responsiveValue)
|
|
125
|
-
// let size2 = resolveValue(tokenPrefix, responsiveValue2)
|
|
126
|
-
// responsiveValue = `calc(${size1} + (100vw - ${minSize}) / (${unitless(maxSize)} - ${unitless(
|
|
127
|
-
// minSize
|
|
128
|
-
// )}) * (${unitless(size2)} - ${unitless(size1)}))`
|
|
129
|
-
// }
|
|
130
|
-
// globals[bpName][varName] = responsiveValue
|
|
131
|
-
// })
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
// debugger
|
|
136
|
-
return { globalTypography: globals, typeVariants: typeVariants };
|
|
137
|
-
}
|
|
138
|
-
function parseGrid(theme, media, grid) {
|
|
139
|
-
var globalGrid = {};
|
|
140
|
-
var resolveThemeVar = function (scale, value) {
|
|
141
|
-
if (typeof value === "string" && value.match(/^\$[a-z0-9\-\_]+$/)) {
|
|
142
|
-
// Single scale
|
|
143
|
-
return "$" + scale + value;
|
|
144
|
-
}
|
|
145
|
-
else {
|
|
146
|
-
return value;
|
|
147
|
-
}
|
|
148
|
-
};
|
|
149
|
-
for (var _i = 0, _a = Object.entries(grid.breakpoints); _i < _a.length; _i++) {
|
|
150
|
-
var _b = _a[_i], bpName = _b[0], breakpoint = _b[1];
|
|
151
|
-
globalGrid[bpName] = {
|
|
152
|
-
"--grid-columns": grid.columns,
|
|
153
|
-
"--grid-outer-width": breakpoint.container,
|
|
154
|
-
"--grid-inner-width": "calc(".concat(breakpoint.container, " - ").concat(resolveThemeVar("spaces", breakpoint.margin), " * 2)"),
|
|
155
|
-
"--grid-gutter": breakpoint.gutter,
|
|
156
|
-
"--grid-margin": breakpoint.margin,
|
|
157
|
-
"--grid-col-width": "calc((var(--grid-inner-width) - (".concat(grid.columns - 1, " * var(--grid-gutter))) / ").concat(grid.columns, ")"),
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
return { gridVariants: {}, globalGrid: globalGrid };
|
|
161
|
-
}
|
|
162
|
-
function parseResponsiveValue(val) {
|
|
163
|
-
if (Array.isArray(val)) {
|
|
164
|
-
return __assign(__assign({}, parseResponsiveValue(val[0])), { lerpStart: true });
|
|
165
|
-
}
|
|
166
|
-
else if (typeof val === "string") {
|
|
167
|
-
if (val.match(/^x[0-9\.]+$/)) {
|
|
168
|
-
return {
|
|
169
|
-
lerpStart: false,
|
|
170
|
-
type: "multiplier",
|
|
171
|
-
value: parseFloat(val.replace(/^x/, "")),
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
else if (val.match(/^[0-9\.]+%$/)) {
|
|
175
|
-
return {
|
|
176
|
-
lerpStart: false,
|
|
177
|
-
type: "percent",
|
|
178
|
-
value: parseFloat(val.replace(/^x/, "")),
|
|
179
|
-
};
|
|
180
|
-
}
|
|
181
|
-
else if (val.match(/^[0-9\.]+px$/)) {
|
|
182
|
-
return {
|
|
183
|
-
lerpStart: false,
|
|
184
|
-
type: "px",
|
|
185
|
-
value: parseFloat(val.replace(/px$/, "")),
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
else if (typeof val === "number") {
|
|
190
|
-
return {
|
|
191
|
-
lerpStart: false,
|
|
192
|
-
type: "number",
|
|
193
|
-
value: val,
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
else if (val === undefined || val === null) {
|
|
197
|
-
return {
|
|
198
|
-
lerpStart: false,
|
|
199
|
-
type: "undefined",
|
|
200
|
-
};
|
|
201
|
-
}
|
|
202
|
-
return {
|
|
203
|
-
lerpStart: false,
|
|
204
|
-
type: "unknown",
|
|
205
|
-
value: val,
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
function parseResponsiveObject(breakpoints, object) {
|
|
209
|
-
// Breakpoint hash
|
|
210
|
-
var breakpointHash = {};
|
|
211
|
-
for (var _i = 0, breakpoints_1 = breakpoints; _i < breakpoints_1.length; _i++) {
|
|
212
|
-
var bp = breakpoints_1[_i];
|
|
213
|
-
breakpointHash[bp.key] = {
|
|
214
|
-
min: bp.min ? parseFloat(bp.min) : null,
|
|
215
|
-
max: bp.max ? parseFloat(bp.max) : null,
|
|
216
|
-
};
|
|
217
|
-
}
|
|
218
|
-
var result = [];
|
|
219
|
-
var lerpStart = "initial";
|
|
220
|
-
var lastDefined = "initial";
|
|
221
|
-
var concreteValues = {};
|
|
222
|
-
for (var _a = 0, breakpoints_2 = breakpoints; _a < breakpoints_2.length; _a++) {
|
|
223
|
-
var bp = breakpoints_2[_a];
|
|
224
|
-
var value = parseResponsiveValue(object["@" + bp.key]);
|
|
225
|
-
var defined = value.type !== "undefined";
|
|
226
|
-
var base = !defined || value.type === "multiplier" ? lastDefined : bp.key;
|
|
227
|
-
lerpStart = value.lerpStart ? bp.key : lerpStart && !defined ? lerpStart : null;
|
|
228
|
-
if (value.type === "px" || value.type === "number") {
|
|
229
|
-
concreteValues[bp.key] = value.value;
|
|
230
|
-
}
|
|
231
|
-
else if (value.type === "multiplier") {
|
|
232
|
-
concreteValues[bp.key] = value.value * concreteValues[base];
|
|
233
|
-
}
|
|
234
|
-
else if (value.type === "percent") {
|
|
235
|
-
concreteValues[bp.key] = value.value;
|
|
236
|
-
}
|
|
237
|
-
result.push(__assign(__assign({}, value), { defined: defined, breakpoint: bp.key, lastBreakpoint: lastDefined, baseBreakpoint: base, lerping: lerpStart
|
|
238
|
-
? {
|
|
239
|
-
fromBP: lerpStart,
|
|
240
|
-
toBP: null,
|
|
241
|
-
minMedia: 0,
|
|
242
|
-
maxMedia: 0,
|
|
243
|
-
minValue: 0,
|
|
244
|
-
maxValue: 0,
|
|
245
|
-
}
|
|
246
|
-
: undefined, concreteValue: concreteValues[bp.key] }));
|
|
247
|
-
if (defined) {
|
|
248
|
-
lastDefined = bp.key;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
var nextBreakpoints = [];
|
|
252
|
-
var lastBreakpoint = null;
|
|
253
|
-
for (var i = breakpoints.length - 1; i >= 0; i--) {
|
|
254
|
-
var bp = breakpoints[i];
|
|
255
|
-
nextBreakpoints[i] = lastBreakpoint;
|
|
256
|
-
if (result[i].defined) {
|
|
257
|
-
lastBreakpoint = bp.key;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
result.forEach(function (item, i) {
|
|
261
|
-
if (item.lerping) {
|
|
262
|
-
item.lerping.toBP = nextBreakpoints[i];
|
|
263
|
-
}
|
|
264
|
-
});
|
|
265
|
-
result.forEach(function (item, i) {
|
|
266
|
-
var lerp = item.lerping;
|
|
267
|
-
if (lerp) {
|
|
268
|
-
var fromBP = lerp.fromBP ? breakpointHash[lerp.fromBP] : null;
|
|
269
|
-
var toBP = lerp.toBP ? breakpointHash[lerp.toBP] : null;
|
|
270
|
-
if (!fromBP || fromBP.min === null) {
|
|
271
|
-
throw new Error("Cannot create responsive style for first breakpoint");
|
|
272
|
-
}
|
|
273
|
-
if (!toBP || toBP.min === null) {
|
|
274
|
-
throw new Error("Cannot create responsive style for last breakpoint");
|
|
275
|
-
}
|
|
276
|
-
lerp.minMedia = fromBP.min;
|
|
277
|
-
lerp.maxMedia = toBP.min;
|
|
278
|
-
lerp.minValue = item.concreteValue;
|
|
279
|
-
lerp.maxValue = result.find(function (o) { return o.breakpoint === lerp.toBP; }).concreteValue;
|
|
280
|
-
}
|
|
281
|
-
});
|
|
282
|
-
return result;
|
|
283
|
-
}
|
|
284
|
-
exports.parseResponsiveObject = parseResponsiveObject;
|
|
285
|
-
function getResponsiveObjectStyles(breakpoints, object, varName, unit, unitlessUnit) {
|
|
286
|
-
var _a, _b, _c;
|
|
287
|
-
var _d;
|
|
288
|
-
if (unit === void 0) { unit = "px"; }
|
|
289
|
-
if (unitlessUnit === void 0) { unitlessUnit = unit; }
|
|
290
|
-
// Prescale object
|
|
291
|
-
object = __assign({}, object);
|
|
292
|
-
if (unitlessUnit) {
|
|
293
|
-
for (var key in object) {
|
|
294
|
-
if (typeof object[key] === "number") {
|
|
295
|
-
object[key] = object[key] + unitlessUnit;
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
var parsed = parseResponsiveObject(breakpoints, object);
|
|
300
|
-
var globals = {};
|
|
301
|
-
for (var _i = 0, parsed_1 = parsed; _i < parsed_1.length; _i++) {
|
|
302
|
-
var atom = parsed_1[_i];
|
|
303
|
-
if (atom.lerpStart && atom.lerping) {
|
|
304
|
-
var lerp = atom.lerping;
|
|
305
|
-
globals["@" + atom.breakpoint] = (_a = {},
|
|
306
|
-
_a[varName] = "calc(".concat(lerp.minValue).concat(unit, " + (100vw - ").concat(lerp.minMedia).concat(unit, ") / (").concat(lerp.maxMedia, " - ").concat(lerp.minMedia, ") * (").concat(lerp.maxValue, " - ").concat(lerp.minValue, "))"),
|
|
307
|
-
_a);
|
|
308
|
-
}
|
|
309
|
-
else if (atom.concreteValue) {
|
|
310
|
-
globals["@" + atom.breakpoint] = (_b = {},
|
|
311
|
-
_b[varName] = atom.concreteValue + unit,
|
|
312
|
-
_b);
|
|
313
|
-
}
|
|
314
|
-
else if (atom.defined) {
|
|
315
|
-
globals["@" + atom.breakpoint] = (_c = {},
|
|
316
|
-
_c[varName] = atom.value,
|
|
317
|
-
_c);
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
return [globals, (_d = globals["@initial"]) === null || _d === void 0 ? void 0 : _d[varName]];
|
|
321
|
-
}
|
|
322
|
-
exports.getResponsiveObjectStyles = getResponsiveObjectStyles;
|
|
323
|
-
// parseResponsiveTokens({'@initial': blah, '@desktop': blah}, breakpoints, )
|
|
324
|
-
function parseResponsiveTokens(theme, breakpoints) {
|
|
325
|
-
var globalResponsive = {
|
|
326
|
-
"@initial": {},
|
|
327
|
-
};
|
|
328
|
-
var initialResponsive = {};
|
|
329
|
-
for (var scale in theme) {
|
|
330
|
-
var initials = {};
|
|
331
|
-
initialResponsive[scale] = initials;
|
|
332
|
-
for (var key in theme[scale]) {
|
|
333
|
-
var val = theme[scale][key];
|
|
334
|
-
if (val && typeof val === "object") {
|
|
335
|
-
var _a = getResponsiveObjectStyles(breakpoints, val, "--" + scale + "-" + key), tokenGlobals = _a[0], initial = _a[1];
|
|
336
|
-
for (var bp in tokenGlobals) {
|
|
337
|
-
globalResponsive[bp] = __assign(__assign({}, globalResponsive[bp]), tokenGlobals[bp]);
|
|
338
|
-
}
|
|
339
|
-
initials[key] = initial;
|
|
340
|
-
}
|
|
341
|
-
else {
|
|
342
|
-
initials[key] = val;
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
return { initialResponsive: initialResponsive, globalResponsive: globalResponsive };
|
|
347
|
-
}
|
|
348
|
-
exports.parseResponsiveTokens = parseResponsiveTokens;
|
|
349
|
-
function createStitches(config) {
|
|
350
|
-
var breakpoints = parseBreakpoints(config.breakpoints, config.media);
|
|
351
|
-
var _a = parseTypography(config.theme, breakpoints, config.typography), typeVariants = _a.typeVariants, globalTypography = _a.globalTypography;
|
|
352
|
-
var _b = parseGrid(config.theme, config.media, config.grid), gridVariants = _b.gridVariants, globalGrid = _b.globalGrid;
|
|
353
|
-
var _c = parseResponsiveTokens(config.responsive, breakpoints), initialResponsive = _c.initialResponsive, globalResponsive = _c.globalResponsive;
|
|
354
|
-
var stitches = (0, react_1.createStitches)({
|
|
355
|
-
// prefix: config.prefix,
|
|
356
|
-
media: __assign({ initial: "" }, config.media),
|
|
357
|
-
theme: __assign(__assign({}, config.theme), initialResponsive),
|
|
358
|
-
themeMap: config.themeMap,
|
|
359
|
-
utils: __assign(__assign({}, (config.utils || {})), { typography: function (key) { return typeVariants[key]; }, m: function (value) { return ({
|
|
360
|
-
margin: value,
|
|
361
|
-
}); }, mt: function (value) { return ({
|
|
362
|
-
marginTop: value,
|
|
363
|
-
}); }, mr: function (value) { return ({
|
|
364
|
-
marginRight: value,
|
|
365
|
-
}); }, mb: function (value) { return ({
|
|
366
|
-
marginBottom: value,
|
|
367
|
-
}); }, ml: function (value) { return ({
|
|
368
|
-
marginLeft: value,
|
|
369
|
-
}); }, mx: function (value) { return ({
|
|
370
|
-
marginLeft: value,
|
|
371
|
-
marginRight: value,
|
|
372
|
-
}); }, my: function (value) { return ({
|
|
373
|
-
marginTop: value,
|
|
374
|
-
marginBottom: value,
|
|
375
|
-
}); }, p: function (value) { return ({
|
|
376
|
-
padding: value,
|
|
377
|
-
}); }, pt: function (value) { return ({
|
|
378
|
-
paddingTop: value,
|
|
379
|
-
}); }, pr: function (value) { return ({
|
|
380
|
-
paddingRight: value,
|
|
381
|
-
}); }, pb: function (value) { return ({
|
|
382
|
-
paddingBottom: value,
|
|
383
|
-
}); }, pl: function (value) { return ({
|
|
384
|
-
paddingLeft: value,
|
|
385
|
-
}); }, px: function (value) { return ({
|
|
386
|
-
paddingLeft: value,
|
|
387
|
-
paddingRight: value,
|
|
388
|
-
}); }, py: function (value) { return ({
|
|
389
|
-
paddingTop: value,
|
|
390
|
-
paddingBottom: value,
|
|
391
|
-
}); }, cols: function (value) { return ({
|
|
392
|
-
gridColumn: "auto / span ".concat(value),
|
|
393
|
-
"--grid-columns": value,
|
|
394
|
-
}); } }),
|
|
395
|
-
});
|
|
396
|
-
// Typography globals
|
|
397
|
-
var typeGlobals = {};
|
|
398
|
-
Object.entries(globalTypography).forEach(function (_a) {
|
|
399
|
-
var key = _a[0], styles = _a[1];
|
|
400
|
-
if (key === "@initial") {
|
|
401
|
-
typeGlobals[":root"] = styles;
|
|
402
|
-
}
|
|
403
|
-
else if (key === "@editor") {
|
|
404
|
-
typeGlobals[":root body.block-editor-page"] = styles;
|
|
405
|
-
}
|
|
406
|
-
else {
|
|
407
|
-
typeGlobals[key] = { ":root": styles };
|
|
408
|
-
}
|
|
409
|
-
});
|
|
410
|
-
stitches.globalCss(typeGlobals)();
|
|
411
|
-
// Grid globals
|
|
412
|
-
var gridGlobals = {};
|
|
413
|
-
Object.entries(globalGrid).forEach(function (_a) {
|
|
414
|
-
var key = _a[0], styles = _a[1];
|
|
415
|
-
if (key === "@initial") {
|
|
416
|
-
gridGlobals[":root"] = styles;
|
|
417
|
-
}
|
|
418
|
-
else if (key === "@editor") {
|
|
419
|
-
gridGlobals[":root body.block-editor-page"] = styles;
|
|
420
|
-
}
|
|
421
|
-
else {
|
|
422
|
-
gridGlobals[key] = { ":root": styles };
|
|
423
|
-
}
|
|
424
|
-
});
|
|
425
|
-
stitches.globalCss(gridGlobals)();
|
|
426
|
-
var responsiveGlobals = {};
|
|
427
|
-
Object.entries(globalResponsive).forEach(function (_a) {
|
|
428
|
-
var key = _a[0], styles = _a[1];
|
|
429
|
-
if (key === "@initial") {
|
|
430
|
-
responsiveGlobals[":root"] = styles;
|
|
431
|
-
}
|
|
432
|
-
else if (key === "@editor") {
|
|
433
|
-
responsiveGlobals[":root body.block-editor-page"] = styles;
|
|
434
|
-
}
|
|
435
|
-
else {
|
|
436
|
-
responsiveGlobals[key] = { ":root": styles };
|
|
437
|
-
}
|
|
438
|
-
});
|
|
439
|
-
stitches.globalCss(responsiveGlobals)();
|
|
440
|
-
var responsiveTokens = {};
|
|
441
|
-
return __assign(__assign({}, stitches), { originalConfig: config, breakpoints: breakpoints, typeVariants: typeVariants, gridVariants: gridVariants, responsiveTokens: responsiveTokens, responsiveGlobals: responsiveGlobals });
|
|
442
|
-
}
|
|
443
|
-
exports.createStitches = createStitches;
|
package/style/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./createStitches"), exports);
|
package/utils/Observable.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
declare type Observer<T> = (value: T) => void;
|
|
2
|
-
declare type Disposer = () => void;
|
|
3
|
-
export declare class Observable<T> {
|
|
4
|
-
value: T;
|
|
5
|
-
private _observers;
|
|
6
|
-
constructor(value: T);
|
|
7
|
-
subscribe(observer: Observer<T>): Disposer;
|
|
8
|
-
unsubscribe(observer: Observer<T>): void;
|
|
9
|
-
update(data: T | ((t: T) => T)): void;
|
|
10
|
-
}
|
|
11
|
-
export {};
|
package/utils/Observable.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Observable = void 0;
|
|
4
|
-
var Observable = /** @class */ (function () {
|
|
5
|
-
function Observable(value) {
|
|
6
|
-
this._observers = [];
|
|
7
|
-
this.value = value;
|
|
8
|
-
}
|
|
9
|
-
Observable.prototype.subscribe = function (observer) {
|
|
10
|
-
var _this = this;
|
|
11
|
-
this._observers.push(observer);
|
|
12
|
-
observer(this.value);
|
|
13
|
-
return function () { return _this.unsubscribe(observer); };
|
|
14
|
-
};
|
|
15
|
-
Observable.prototype.unsubscribe = function (observer) {
|
|
16
|
-
var index = this._observers.indexOf(observer);
|
|
17
|
-
if (index > -1) {
|
|
18
|
-
this._observers.splice(index, 1);
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
Observable.prototype.update = function (data) {
|
|
22
|
-
var _this = this;
|
|
23
|
-
if (typeof data === "function") {
|
|
24
|
-
// @ts-ignore
|
|
25
|
-
this.value = data(this.value);
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
this.value = data;
|
|
29
|
-
}
|
|
30
|
-
this._observers.forEach(function (observer) { return observer(_this.value); });
|
|
31
|
-
};
|
|
32
|
-
return Observable;
|
|
33
|
-
}());
|
|
34
|
-
exports.Observable = Observable;
|
package/utils/getRepoName.d.ts
DELETED
package/utils/getRepoName.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getRepoName = void 0;
|
|
7
|
-
var git_repo_name_1 = __importDefault(require("git-repo-name"));
|
|
8
|
-
var path_1 = __importDefault(require("path"));
|
|
9
|
-
function getRepoName(dir) {
|
|
10
|
-
if (process.env.VERCEL) {
|
|
11
|
-
return {
|
|
12
|
-
repoName: process.env.VERCEL_GIT_REPO_SLUG,
|
|
13
|
-
themeName: process.env.VERCEL_GIT_REPO_SLUG,
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
var info = "";
|
|
18
|
-
try {
|
|
19
|
-
info = git_repo_name_1.default.sync(dir);
|
|
20
|
-
}
|
|
21
|
-
catch (e) {
|
|
22
|
-
info = path_1.default.basename(dir);
|
|
23
|
-
}
|
|
24
|
-
return {
|
|
25
|
-
repoName: info || "",
|
|
26
|
-
themeName: path_1.default.basename(dir),
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.getRepoName = getRepoName;
|
package/utils/merge-refs.d.ts
DELETED
package/utils/merge-refs.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mergeRefs = void 0;
|
|
4
|
-
function mergeRefs(refs) {
|
|
5
|
-
return function (value) {
|
|
6
|
-
refs.forEach(function (ref) {
|
|
7
|
-
if (typeof ref === "function") {
|
|
8
|
-
ref(value);
|
|
9
|
-
}
|
|
10
|
-
else if (ref != null) {
|
|
11
|
-
;
|
|
12
|
-
ref.current = value;
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
exports.mergeRefs = mergeRefs;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function promptIfRepoThemeMismatch(): Promise<void>;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
-
};
|
|
41
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
-
exports.promptIfRepoThemeMismatch = void 0;
|
|
43
|
-
var inquirer_1 = __importDefault(require("inquirer"));
|
|
44
|
-
var getRepoName_1 = require("./getRepoName");
|
|
45
|
-
function promptIfRepoThemeMismatch() {
|
|
46
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
47
|
-
var _a, repoName, themeName, result;
|
|
48
|
-
return __generator(this, function (_b) {
|
|
49
|
-
switch (_b.label) {
|
|
50
|
-
case 0: return [4 /*yield*/, (0, getRepoName_1.getRepoName)(process.cwd())];
|
|
51
|
-
case 1:
|
|
52
|
-
_a = _b.sent(), repoName = _a.repoName, themeName = _a.themeName;
|
|
53
|
-
if (!(repoName && repoName !== themeName)) return [3 /*break*/, 3];
|
|
54
|
-
return [4 /*yield*/, inquirer_1.default.prompt([
|
|
55
|
-
{
|
|
56
|
-
type: "confirm",
|
|
57
|
-
name: "continueAnyway",
|
|
58
|
-
message: "WARNING: The Git repo name (".concat(repoName, ") does not match the theme folder name (").concat(themeName, ").\nContinue anyway?"),
|
|
59
|
-
},
|
|
60
|
-
])];
|
|
61
|
-
case 2:
|
|
62
|
-
result = _b.sent();
|
|
63
|
-
if (!result.continueAnyway) {
|
|
64
|
-
process.exit();
|
|
65
|
-
}
|
|
66
|
-
_b.label = 3;
|
|
67
|
-
case 3: return [2 /*return*/];
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
exports.promptIfRepoThemeMismatch = promptIfRepoThemeMismatch;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.showCompileError = exports.clearCompileError = exports.handleRuntimeError = exports.clearRuntimeErrors = void 0;
|
|
4
|
-
var react_error_overlay_1 = require("react-error-overlay");
|
|
5
|
-
exports.clearRuntimeErrors = react_error_overlay_1.dismissRuntimeErrors;
|
|
6
|
-
exports.handleRuntimeError = react_error_overlay_1.reportRuntimeError;
|
|
7
|
-
exports.clearCompileError = react_error_overlay_1.dismissBuildError;
|
|
8
|
-
exports.showCompileError = react_error_overlay_1.reportBuildError;
|
|
9
|
-
function start() {
|
|
10
|
-
(0, react_error_overlay_1.startReportingRuntimeErrors)({});
|
|
11
|
-
}
|
|
12
|
-
start();
|