slice-machine-ui 1.26.1-beta.10 → 1.26.1-beta.11
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/.eslintrc.js +6 -1
- package/.storybook/preview.tsx +2 -1
- package/components/App/index.tsx +6 -7
- package/components/AppLayout/index.tsx +4 -6
- package/components/AuthInstructions/index.jsx +1 -1
- package/components/Button/index.tsx +1 -2
- package/components/Card/Default.jsx +2 -1
- package/components/Card/Preview.jsx +1 -1
- package/components/Card/WithTabs/components.jsx +1 -1
- package/components/Card/WithTabs/index.jsx +4 -3
- package/components/Card/index.tsx +1 -0
- package/components/Changelog/index.tsx +6 -7
- package/components/Changelog/navigation/VersionBadge.tsx +2 -1
- package/components/Changelog/navigation/VersionTag.tsx +1 -0
- package/components/Changelog/navigation/index.tsx +3 -4
- package/components/Changelog/versionDetails/ReleaseNotesDetails.tsx +1 -1
- package/components/Changelog/versionDetails/UpdateCommandBox.tsx +4 -5
- package/components/Changelog/versionDetails/VersionKindLabel.tsx +3 -4
- package/components/Changelog/versionDetails/index.tsx +4 -5
- package/components/ChangesEmptyState/AuthErrorPage.tsx +2 -3
- package/components/ChangesEmptyState/OfflinePage.tsx +1 -1
- package/components/ChangesEmptyState/index.ts +1 -1
- package/components/ChangesItems/ChangesItems.tsx +9 -10
- package/components/ChangesItems/DevCollaborationExperiment.tsx +2 -3
- package/components/ChangesItems/ErrorBanner.tsx +1 -1
- package/components/CodeBlock/index.tsx +3 -4
- package/components/ConfigErrors/index.jsx +1 -1
- package/components/CustomTypeTable/changesPage.tsx +6 -6
- package/components/DeleteCTModal/index.tsx +6 -7
- package/components/DeleteDocumentsDrawer/AssociatedDocumentsCard.tsx +2 -3
- package/components/DeleteDocumentsDrawer/HardDeleteDocumentsDrawer.tsx +8 -9
- package/components/DeleteDocumentsDrawer/SoftDeleteDocumentsDrawer.tsx +8 -8
- package/components/DeleteDocumentsDrawer/index.tsx +1 -1
- package/components/DeleteSliceModal/index.tsx +6 -7
- package/components/DeleteVariationModal/index.tsx +5 -6
- package/components/DropDownSelector/index.tsx +2 -4
- package/components/EmptyState/index.tsx +3 -4
- package/components/FormFields/Array.jsx +2 -4
- package/components/FormFields/Checkbox.jsx +1 -1
- package/components/FormFields/CheckboxControl.jsx +1 -1
- package/components/FormFields/Input.tsx +1 -1
- package/components/FormFields/SelectDefaultValue.jsx +1 -1
- package/components/Forms/CreateCustomTypeModal/CreateCustomTypeModal.tsx +15 -16
- package/components/Forms/CreateSliceModal/CreateSliceModal.tsx +9 -10
- package/components/Forms/RenameCustomTypeModal/RenameCustomTypeModal.tsx +11 -12
- package/components/Forms/RenameSliceModal/RenameSliceModal.tsx +6 -7
- package/components/Forms/RenameVariationModal/RenameVariationModal.tsx +5 -6
- package/components/Forms/components/InputBox.tsx +2 -2
- package/components/Forms/components/SelectRepeatable.tsx +3 -3
- package/components/Forms/formsValidator.ts +3 -2
- package/components/FullPage/index.tsx +1 -1
- package/components/InputDeleteIcon/index.jsx +1 -1
- package/components/ItemHeader/index.tsx +1 -1
- package/components/ListItem/Header.tsx +1 -1
- package/components/ListItem/index.tsx +7 -10
- package/components/LoadingPage/index.tsx +1 -0
- package/components/LoginModal/index.tsx +22 -23
- package/components/ModalFormCard/index.tsx +5 -5
- package/components/Navigation/ChangesItem.tsx +8 -9
- package/components/Navigation/Environment.tsx +7 -8
- package/components/Navigation/RunningVersion.tsx +1 -2
- package/components/Navigation/UpdateBox.tsx +3 -4
- package/components/Navigation/VideoItem.tsx +16 -16
- package/components/Navigation/index.test.tsx +14 -12
- package/components/Navigation/index.tsx +18 -20
- package/components/ReviewModal/ReviewForm.tsx +12 -13
- package/components/ReviewModal/ReviewFormSelect.tsx +1 -1
- package/components/ReviewModal/ReviewModal.tsx +6 -7
- package/components/ScreenshotChangesModal/VariationDropZone.tsx +7 -8
- package/components/ScreenshotChangesModal/index.tsx +10 -14
- package/components/ScreenshotChangesModal/useCustomScreenshot.tsx +1 -2
- package/components/ScreenshotPreview/index.tsx +1 -1
- package/components/ScreenshotPreviewModal/index.tsx +4 -4
- package/components/Simulator/components/FailedConnect/index.tsx +3 -4
- package/components/Simulator/components/Header/VariationsPopover/index.tsx +3 -5
- package/components/Simulator/components/Header/index.tsx +4 -5
- package/components/Simulator/components/IframeRenderer/index.tsx +3 -5
- package/components/Simulator/components/Toolbar/index.tsx +2 -4
- package/components/Simulator/index.tsx +19 -26
- package/components/SliceMachineDrawer/index.tsx +2 -2
- package/components/SliceMachineIconButton/index.tsx +1 -1
- package/components/SliceMachineModal/index.tsx +1 -1
- package/components/ToasterContainer/index.tsx +3 -5
- package/components/Tooltip/TextWithTooltip.tsx +2 -3
- package/components/Tooltip/index.jsx +2 -3
- package/components/Warnings/index.jsx +1 -1
- package/lib/builders/CustomTypeBuilder/SliceZone/DeleteSliceZoneModal.tsx +2 -3
- package/lib/builders/CustomTypeBuilder/SliceZone/List.tsx +4 -5
- package/lib/builders/CustomTypeBuilder/SliceZone/SlicesTemplatesModal.tsx +8 -9
- package/lib/builders/CustomTypeBuilder/SliceZone/UpdateSliceZoneModal.tsx +2 -3
- package/lib/builders/CustomTypeBuilder/SliceZone/UpdateSliceZoneModalList.tsx +3 -3
- package/lib/builders/CustomTypeBuilder/SliceZone/index.tsx +21 -22
- package/lib/builders/CustomTypeBuilder/TabModal/InputBox.tsx +1 -1
- package/lib/builders/CustomTypeBuilder/TabModal/delete.tsx +1 -1
- package/lib/builders/CustomTypeBuilder/TabModal/update.tsx +1 -1
- package/lib/builders/CustomTypeBuilder/TabZone/index.tsx +20 -21
- package/lib/builders/CustomTypeBuilder/index.tsx +4 -5
- package/lib/builders/SliceBuilder/FieldZones/index.tsx +17 -18
- package/lib/builders/SliceBuilder/Sidebar/AddVariationModal.tsx +7 -8
- package/lib/builders/SliceBuilder/Sidebar/index.tsx +7 -8
- package/lib/builders/SliceBuilder/SimulatorButton/index.tsx +9 -12
- package/lib/builders/SliceBuilder/index.tsx +6 -7
- package/lib/builders/common/EditModal/Field.jsx +2 -5
- package/lib/builders/common/EditModal/Form.jsx +1 -1
- package/lib/builders/common/EditModal/index.jsx +11 -17
- package/lib/builders/common/SelectFieldTypeModal/index.jsx +3 -5
- package/lib/builders/common/Zone/Card/components/ErrorTooltip.tsx +2 -3
- package/lib/builders/common/Zone/Card/components/Hints/CodeBlock.tsx +4 -6
- package/lib/builders/common/Zone/Card/components/Hints/index.tsx +1 -1
- package/lib/builders/common/Zone/Card/components/NewField.tsx +13 -14
- package/lib/builders/common/Zone/Card/index.jsx +2 -3
- package/lib/builders/common/Zone/components/EmptyState/index.tsx +1 -1
- package/lib/builders/common/Zone/index.jsx +3 -4
- package/lib/forms/defaults.ts +1 -1
- package/lib/forms/fields.ts +1 -2
- package/lib/forms/index.ts +1 -0
- package/lib/models/common/ComponentUI.ts +1 -1
- package/lib/models/common/CustomType/index.ts +5 -4
- package/lib/models/common/CustomType/sliceZone.ts +2 -1
- package/lib/models/common/CustomType/tab.ts +4 -4
- package/lib/models/common/DeprecatedMockConfigMessage.tsx +2 -2
- package/lib/models/common/Environment.ts +2 -2
- package/lib/models/common/Fields.ts +1 -1
- package/lib/models/common/Group.ts +3 -2
- package/lib/models/common/Library.ts +2 -1
- package/lib/models/common/LibraryUI.ts +1 -1
- package/lib/models/common/ModelData.ts +1 -1
- package/lib/models/common/ModelStatus/compareCustomTypeModels.ts +2 -1
- package/lib/models/common/ModelStatus/compareSliceModels.ts +2 -1
- package/lib/models/common/ModelStatus/index.ts +10 -9
- package/lib/models/common/Slice.ts +2 -2
- package/lib/models/common/Slices.ts +2 -2
- package/lib/models/common/normalizers/customType.ts +1 -1
- package/lib/models/common/normalizers/slices.ts +3 -2
- package/lib/models/common/widgets/Boolean/index.ts +5 -7
- package/lib/models/common/widgets/Color/index.ts +2 -3
- package/lib/models/common/widgets/ContentRelationship/Form.tsx +7 -9
- package/lib/models/common/widgets/ContentRelationship/index.ts +7 -8
- package/lib/models/common/widgets/Date/index.ts +2 -2
- package/lib/models/common/widgets/Embed/index.ts +2 -2
- package/lib/models/common/widgets/GeoPoint/index.ts +2 -3
- package/lib/models/common/widgets/Group/Form.jsx +3 -4
- package/lib/models/common/widgets/Group/ListItem/index.jsx +13 -23
- package/lib/models/common/widgets/Group/index.ts +4 -3
- package/lib/models/common/widgets/Image/Form.tsx +8 -11
- package/lib/models/common/widgets/Image/components.tsx +5 -5
- package/lib/models/common/widgets/Image/index.ts +3 -5
- package/lib/models/common/widgets/Link/Form.jsx +3 -5
- package/lib/models/common/widgets/Link/index.ts +3 -3
- package/lib/models/common/widgets/LinkToMedia/Form.jsx +2 -4
- package/lib/models/common/widgets/LinkToMedia/index.ts +3 -4
- package/lib/models/common/widgets/Number/index.ts +2 -2
- package/lib/models/common/widgets/Select/FormFields.jsx +7 -8
- package/lib/models/common/widgets/Select/index.ts +3 -6
- package/lib/models/common/widgets/StructuredText/Form.tsx +10 -10
- package/lib/models/common/widgets/StructuredText/index.ts +3 -6
- package/lib/models/common/widgets/StructuredText/options.tsx +2 -2
- package/lib/models/common/widgets/Text/index.ts +5 -5
- package/lib/models/common/widgets/Timestamp/index.ts +4 -5
- package/lib/models/common/widgets/UID/index.ts +4 -5
- package/lib/models/common/widgets/Widget.ts +2 -1
- package/lib/models/common/widgets/index.ts +1 -1
- package/lib/models/common/widgets/withGroup.ts +1 -2
- package/lib/models/server/ServerState.ts +4 -3
- package/lib/utils/index.ts +4 -5
- package/out/404.html +1 -1
- package/out/_next/static/{w56F6n1XbyP8jyJHeri22 → 6WrgMw0SELcypoJCYNiKd}/_buildManifest.js +1 -1
- package/out/_next/static/chunks/{25-792af14760d9df34.js → 25-607d5cfe6492f4e8.js} +1 -1
- package/out/_next/static/chunks/286-6ee80333008646b9.js +1 -0
- package/out/_next/static/chunks/318-c84322cba57be932.js +1 -0
- package/out/_next/static/chunks/382-8194eab141c7ea2f.js +1 -0
- package/out/_next/static/chunks/727-b53258380c1a11f1.js +1 -0
- package/out/_next/static/chunks/799-68887319f3169f78.js +1 -0
- package/out/_next/static/chunks/pages/{_app-f7ec0d037993439e.js → _app-6177e3581af44083.js} +1 -1
- package/out/_next/static/chunks/pages/changelog-2d061c06b2b82e28.js +1 -0
- package/out/_next/static/chunks/pages/changes-cde59d56dc849106.js +1 -0
- package/out/_next/static/chunks/pages/index-b5817351a77c6d40.js +1 -0
- package/out/_next/static/chunks/pages/labs-0fc7d01b8c9bfc2a.js +1 -0
- package/out/_next/static/chunks/pages/settings-897ad13a08f73048.js +1 -0
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-ed3157875529f0f2.js +1 -0
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-69cf4b12bb354f9f.js +1 -0
- package/out/_next/static/chunks/pages/slices-391f6c4b30af0759.js +1 -0
- package/out/_next/static/css/{fa4e416634515cbb.css → 243a4d347efcfd53.css} +1 -1
- package/out/_next/static/css/70e3649c6ba13fdc.css +1 -0
- package/out/changelog.html +1 -1
- package/out/changes.html +1 -1
- package/out/custom-types/[customTypeId].html +1 -1
- package/out/custom-types.html +1 -1
- package/out/index.html +1 -1
- package/out/labs.html +1 -1
- package/out/page-types/[pageTypeId].html +1 -1
- package/out/settings.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
- package/out/slices.html +1 -1
- package/package.json +3 -3
- package/pages/_app.tsx +6 -8
- package/pages/changelog.tsx +1 -2
- package/pages/changes.tsx +14 -15
- package/pages/custom-types.tsx +1 -2
- package/pages/index.tsx +1 -2
- package/pages/slices/[lib]/[sliceName]/[variation]/index.tsx +2 -3
- package/pages/slices/[lib]/[sliceName]/[variation]/simulator.tsx +2 -3
- package/pages/slices.tsx +18 -19
- package/sentry.client.config.ts +1 -1
- package/src/ErrorBoundary.tsx +1 -2
- package/src/apiClient.ts +7 -8
- package/src/components/BaseHoverCard/BaseHoverCard.stories.tsx +1 -1
- package/src/components/BaseHoverCard/BaseHoverCard.test.tsx +1 -1
- package/src/components/BaseHoverCard/BaseHoverCard.tsx +1 -1
- package/src/components/BlankSlate/BlankSlate.stories.tsx +1 -1
- package/src/components/BlankSlate/index.ts +1 -1
- package/src/components/Breadcrumb/Breadcrumb.tsx +1 -1
- package/src/components/Card/Card.stories.tsx +1 -2
- package/src/components/Card/Card.tsx +3 -2
- package/src/components/CodeBlock/CodeBlock.tsx +6 -7
- package/src/components/ContentTabs/ContentTabs.tsx +1 -1
- package/src/components/Count/Count.tsx +1 -2
- package/src/components/Divider/Divider.stories.tsx +1 -1
- package/src/components/HoverCard/HoverCard.stories.tsx +3 -2
- package/src/components/HoverCard/HoverCard.test.tsx +2 -2
- package/src/components/HoverCard/HoverCard.tsx +2 -3
- package/src/components/HoverCard/index.ts +3 -3
- package/src/components/SideNav/SideNav.stories.tsx +6 -7
- package/src/components/SideNav/SideNav.tsx +6 -6
- package/src/components/SideNav/SideNavEnvironmentSelector.tsx +3 -4
- package/src/components/Table/Table.stories.tsx +2 -2
- package/src/components/Table/Table.test.tsx +1 -2
- package/src/components/Table/Table.tsx +2 -2
- package/src/components/Table/index.ts +1 -1
- package/src/components/TextLink/TextLink.stories.tsx +1 -1
- package/src/components/TextLink/TextLink.tsx +1 -1
- package/src/domain/__tests__/customType.test.ts +1 -2
- package/src/domain/__tests__/slice.test.ts +3 -4
- package/src/domain/customType.ts +1 -2
- package/src/domain/slice.ts +4 -5
- package/src/features/autoSave/AutoSaveStatusIndicator.tsx +1 -2
- package/src/features/changelog/useSliceMachineLatestNonBreakingVersion.ts +0 -1
- package/src/features/changelog/useSliceMachineReleaseNotes.ts +0 -1
- package/src/features/changelog/useSliceMachineVersions.ts +0 -1
- package/src/features/changes/BlankSlates/NoChangesBlankSlate.tsx +9 -13
- package/src/features/changes/PushChangesButton.tsx +5 -6
- package/src/features/changes/StatusBadge.tsx +2 -3
- package/src/features/customTypes/EditDropdown.tsx +6 -10
- package/src/features/customTypes/PageTypeOnboarding.tsx +4 -5
- package/src/features/customTypes/__tests__/CustomTypeBuilderPage.test.tsx +7 -9
- package/src/features/customTypes/__tests__/CustomTypesTablePage.test.tsx +7 -7
- package/src/features/customTypes/actions/convertCustomToPageType.ts +2 -3
- package/src/features/customTypes/actions/createCustomType.ts +2 -3
- package/src/features/customTypes/actions/deleteCustomType.ts +2 -3
- package/src/features/customTypes/actions/renameCustomType.ts +2 -3
- package/src/features/customTypes/customTypesBuilder/CustomTypeProvider.tsx +8 -9
- package/src/features/customTypes/customTypesBuilder/CustomTypesBuilderPage.tsx +14 -13
- package/src/features/customTypes/customTypesBuilder/PageSnippetDialog/PageSnippetDialog.tsx +4 -5
- package/src/features/customTypes/customTypesBuilder/SliceZoneBlankSlate.tsx +1 -2
- package/src/features/customTypes/customTypesBuilder/useCustomType.ts +0 -1
- package/src/features/customTypes/customTypesConfig.ts +1 -2
- package/src/features/customTypes/customTypesTable/CustomTypesTable.tsx +14 -15
- package/src/features/customTypes/customTypesTable/CustomTypesTablePage.tsx +11 -12
- package/src/features/customTypes/customTypesTable/useCustomTypes.ts +4 -5
- package/src/features/documentation/MarkdownRenderer/index.tsx +5 -7
- package/src/features/documentation/useDocumentation.ts +0 -1
- package/src/features/environments/actions/getActiveEnvironment.ts +0 -1
- package/src/features/environments/actions/setEnvironment.ts +1 -2
- package/src/features/inAppGuide/InAppGuideContext.tsx +2 -3
- package/src/features/inAppGuide/InAppGuideDialog.tsx +2 -3
- package/src/features/inAppGuide/inAppGuideContent.tsx +1 -2
- package/src/features/labs/labsList/LabsList.tsx +2 -2
- package/src/features/labs/labsList/LabsListItem.tsx +1 -1
- package/src/features/labs/labsList/LabsPage.tsx +4 -5
- package/src/features/labs/labsList/useLab.tsx +0 -1
- package/src/features/settings/SettingsPage.tsx +5 -6
- package/src/features/settings/git/ConnectGitRepository.tsx +2 -3
- package/src/features/settings/git/GitOwnerSelect.tsx +1 -2
- package/src/features/settings/git/GitProvider.ts +0 -1
- package/src/features/settings/git/GitProviderConnectButtons.tsx +1 -2
- package/src/features/settings/git/GitRepositoriesList.tsx +1 -2
- package/src/features/settings/git/GitRepositoriesSearch.tsx +1 -2
- package/src/features/settings/git/GitRepositoryConnectDialog.tsx +3 -4
- package/src/features/settings/git/useGitOwners.ts +0 -1
- package/src/features/settings/git/useGitRepos.ts +0 -1
- package/src/features/settings/git/useLinkedGitRepos.ts +0 -1
- package/src/features/settings/git/useWriteAPIToken.ts +0 -1
- package/src/features/slices/actions/addSlicesToSliceZone.ts +1 -2
- package/src/features/slices/actions/createSlice.ts +3 -4
- package/src/features/slices/actions/deleteSlice.ts +1 -2
- package/src/features/slices/actions/renameSlice.ts +3 -4
- package/src/features/slices/actions/uploadSliceScreenshot.ts +1 -2
- package/src/features/slices/convertLegacySlice/ConvertLegacySliceAsNewSliceDialog.tsx +8 -9
- package/src/features/slices/convertLegacySlice/ConvertLegacySliceAsNewVariationDialog.tsx +6 -7
- package/src/features/slices/convertLegacySlice/ConvertLegacySliceButton.tsx +10 -11
- package/src/features/slices/convertLegacySlice/ConvertLegacySliceMergeWithIdenticalDialog.tsx +3 -3
- package/src/features/slices/convertLegacySlice/types.ts +1 -1
- package/src/features/slices/sliceBuilder/FloatingBackButton.tsx +3 -4
- package/src/features/slices/sliceBuilder/SliceBuilderProvider.tsx +9 -10
- package/src/features/slices/sliceBuilder/actions/deleteVariation.ts +2 -3
- package/src/features/slices/sliceBuilder/actions/renameVariation.ts +1 -2
- package/src/features/slices/sliceCards/NonSharedSliceCard.tsx +2 -3
- package/src/features/slices/sliceCards/SharedSliceCard.tsx +4 -5
- package/src/features/slicesTemplates/actions/createSlicesTemplates.ts +2 -3
- package/src/features/sync/AutoSyncProvider.tsx +17 -18
- package/src/features/sync/actions/pushChanges.ts +1 -1
- package/src/features/sync/components/AutoSyncStatusIndicator.tsx +2 -3
- package/src/features/sync/fetchUnSyncChanges.ts +1 -1
- package/src/features/sync/getUnSyncChanges.ts +4 -4
- package/src/features/sync/useUnSyncChanges.ts +4 -5
- package/src/hooks/useActionQueue.tsx +5 -5
- package/src/hooks/useAdapterName.ts +0 -1
- package/src/hooks/useAuthStatus.ts +1 -2
- package/src/hooks/useCurrentSlice.tsx +2 -3
- package/src/hooks/useEditorContent.ts +3 -3
- package/src/hooks/useExperimentVariant.ts +0 -1
- package/src/hooks/useIsEmptyProject.ts +0 -1
- package/src/hooks/useRepositoryInformation.ts +2 -3
- package/src/hooks/useRouteChange.tsx +1 -1
- package/src/hooks/useSMTracker.ts +4 -5
- package/src/hooks/useScreenshotChangesModal.ts +3 -3
- package/src/hooks/useServerState.ts +4 -5
- package/src/hooks/useSliceMachineConfig.ts +1 -2
- package/src/hooks/useSliceMachineRunningVersion.ts +0 -1
- package/src/hooks/useThrottle.ts +1 -1
- package/src/hooks/useUpdateAvailable.ts +0 -1
- package/src/hooks/useWindowDimensions.ts +1 -1
- package/src/hooks/useWindowSize.ts +2 -1
- package/src/modules/availableCustomTypes/index.ts +13 -12
- package/src/modules/environment/index.ts +9 -8
- package/src/modules/loading/index.ts +3 -2
- package/src/modules/modal/index.ts +3 -2
- package/src/modules/slices/index.ts +4 -4
- package/src/modules/slices/types.ts +1 -1
- package/src/modules/useSliceMachineActions.ts +22 -21
- package/src/modules/userContext/index.ts +5 -4
- package/src/redux/reducer.ts +5 -5
- package/src/redux/store.ts +6 -5
- package/src/redux/type.ts +4 -4
- package/src/theme.ts +1 -2
- package/vite.config.ts +4 -3
- package/out/_next/static/chunks/286-e0950c3083c672e8.js +0 -1
- package/out/_next/static/chunks/318-77a29f41c3a027e3.js +0 -1
- package/out/_next/static/chunks/382-aacd61be9adba45a.js +0 -1
- package/out/_next/static/chunks/727-d0d6a29f0793bde2.js +0 -1
- package/out/_next/static/chunks/799-7b910b896ff60ebe.js +0 -1
- package/out/_next/static/chunks/pages/changelog-055db8139a22a592.js +0 -1
- package/out/_next/static/chunks/pages/changes-f43ad4ab5e00f9b9.js +0 -1
- package/out/_next/static/chunks/pages/index-cf93d16e9c63b6db.js +0 -1
- package/out/_next/static/chunks/pages/labs-73a12d2fe0233fb9.js +0 -1
- package/out/_next/static/chunks/pages/settings-417f1d5c1e558c88.js +0 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-01d67e97cb901e46.js +0 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-a8933b0ef10806cd.js +0 -1
- package/out/_next/static/chunks/pages/slices-3c9b08adf578b020.js +0 -1
- package/out/_next/static/css/be1f49e49a5aa7eb.css +0 -1
- /package/out/_next/static/{w56F6n1XbyP8jyJHeri22 → 6WrgMw0SELcypoJCYNiKd}/_ssgManifest.js +0 -0
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { BooleanField } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
|
|
2
2
|
import { BsToggleOn } from "react-icons/bs";
|
|
3
|
+
import * as yup from "yup";
|
|
3
4
|
|
|
5
|
+
import { createValidationSchema } from "../../../../forms";
|
|
6
|
+
import { DefaultFields } from "../../../../forms/defaults";
|
|
7
|
+
import { CheckBox, Input } from "../../../../forms/fields";
|
|
4
8
|
/** {
|
|
5
9
|
"type" : "Boolean",
|
|
6
10
|
"config" : {
|
|
@@ -10,14 +14,8 @@ import { BsToggleOn } from "react-icons/bs";
|
|
|
10
14
|
"label" : "bool"
|
|
11
15
|
}
|
|
12
16
|
} */
|
|
13
|
-
|
|
14
17
|
import { removeProp } from "../../../../utils";
|
|
15
|
-
import { createValidationSchema } from "../../../../forms";
|
|
16
|
-
import { DefaultFields } from "../../../../forms/defaults";
|
|
17
|
-
import { Input, CheckBox } from "../../../../forms/fields";
|
|
18
|
-
|
|
19
18
|
import { Widget } from "../Widget";
|
|
20
|
-
import { BooleanField } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
|
|
21
19
|
|
|
22
20
|
const Meta = {
|
|
23
21
|
icon: BsToggleOn,
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
import { Color } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
|
|
1
2
|
import { MdColorLens } from "react-icons/md";
|
|
2
|
-
import { createDefaultWidgetValues } from "../../../../utils";
|
|
3
3
|
|
|
4
|
+
import { createDefaultWidgetValues } from "../../../../utils";
|
|
4
5
|
import { Widget } from "../Widget";
|
|
5
6
|
|
|
6
|
-
import { Color } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
|
|
7
|
-
|
|
8
7
|
/** {
|
|
9
8
|
"type" : "Color",
|
|
10
9
|
"config" : {
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import * as yup from "yup";
|
|
2
|
-
import { Label, Box } from "theme-ui";
|
|
3
|
-
|
|
4
|
-
import { DefaultFields } from "@lib/forms/defaults";
|
|
5
|
-
|
|
6
|
-
import WidgetFormField from "@lib/builders/common/EditModal/Field";
|
|
7
|
-
|
|
8
|
-
import Select from "react-select";
|
|
9
1
|
import { Col, Flex as FlexGrid } from "@components/Flex";
|
|
2
|
+
import WidgetFormField from "@lib/builders/common/EditModal/Field";
|
|
10
3
|
import { createFieldNameFromKey } from "@lib/forms";
|
|
11
|
-
import {
|
|
4
|
+
import { DefaultFields } from "@lib/forms/defaults";
|
|
12
5
|
import { selectAllCustomTypes } from "@src/modules/availableCustomTypes";
|
|
13
6
|
import { FormikProps } from "formik";
|
|
7
|
+
import { useSelector } from "react-redux";
|
|
8
|
+
import Select from "react-select";
|
|
9
|
+
import { Box, Label } from "theme-ui";
|
|
10
|
+
import * as yup from "yup";
|
|
11
|
+
|
|
14
12
|
import { hasLocal } from "../../ModelData";
|
|
15
13
|
|
|
16
14
|
const FormFields = {
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { hasLocal } from "@lib/models/common/ModelData";
|
|
2
|
+
import { Link } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
|
|
3
|
+
import { selectAllCustomTypes } from "@src/modules/availableCustomTypes";
|
|
4
4
|
import { MdSettingsEthernet } from "react-icons/md";
|
|
5
|
+
import { useSelector } from "react-redux";
|
|
6
|
+
import * as yup from "yup";
|
|
5
7
|
|
|
6
|
-
import { Widget } from "../Widget";
|
|
7
8
|
import { linkConfigSchema } from "../Link";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { selectAllCustomTypes } from "@src/modules/availableCustomTypes";
|
|
11
|
-
import { hasLocal } from "@lib/models/common/ModelData";
|
|
9
|
+
import { Widget } from "../Widget";
|
|
10
|
+
import Form, { FormFields } from "./Form";
|
|
12
11
|
|
|
13
12
|
/**
|
|
14
13
|
* {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { Date } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
|
|
1
2
|
import { MdDateRange } from "react-icons/md";
|
|
2
|
-
import { createDefaultWidgetValues } from "../../../../utils";
|
|
3
3
|
|
|
4
|
+
import { createDefaultWidgetValues } from "../../../../utils";
|
|
4
5
|
import { Widget } from "../Widget";
|
|
5
|
-
import { Date } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
|
|
6
6
|
|
|
7
7
|
/** {
|
|
8
8
|
"type" : "Date",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { Embed } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
|
|
1
2
|
import { FiCode } from "react-icons/fi";
|
|
2
|
-
import { createDefaultWidgetValues } from "../../../../utils";
|
|
3
3
|
|
|
4
|
+
import { createDefaultWidgetValues } from "../../../../utils";
|
|
4
5
|
import { Widget } from "../Widget";
|
|
5
|
-
import { Embed } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
|
|
6
6
|
|
|
7
7
|
/** {
|
|
8
8
|
"type" : "Embed",
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { GeoPoint } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
|
|
2
2
|
import { MdPlace } from "react-icons/md";
|
|
3
|
+
import * as yup from "yup";
|
|
3
4
|
|
|
4
5
|
import { DefaultFields } from "../../../../forms/defaults";
|
|
5
|
-
|
|
6
6
|
import { Widget } from "../Widget";
|
|
7
|
-
import { GeoPoint } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
|
|
8
7
|
|
|
9
8
|
/** : {
|
|
10
9
|
"type" : "GeoPoint",
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { Checkbox, Label, Box } from "theme-ui";
|
|
2
|
-
|
|
3
1
|
import { Col, Flex as FlexGrid } from "@components/Flex";
|
|
4
|
-
import { DefaultFields } from "@lib/forms/defaults";
|
|
5
2
|
import WidgetFormField from "@lib/builders/common/EditModal/Field";
|
|
6
|
-
import { CheckBox } from "@lib/forms/fields";
|
|
7
3
|
import { createFieldNameFromKey } from "@lib/forms";
|
|
4
|
+
import { DefaultFields } from "@lib/forms/defaults";
|
|
5
|
+
import { CheckBox } from "@lib/forms/fields";
|
|
6
|
+
import { Box, Checkbox, Label } from "theme-ui";
|
|
8
7
|
|
|
9
8
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
10
9
|
const FormFields = {
|
|
@@ -1,36 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import { DragDropContext, Droppable } from "react-beautiful-dnd";
|
|
5
|
-
|
|
6
|
-
import { Box, Button } from "theme-ui";
|
|
7
|
-
|
|
8
|
-
import { ensureDnDDestination, ensureWidgetTypeExistence } from "@lib/utils";
|
|
9
|
-
|
|
10
|
-
import { transformKeyAccessor } from "@utils/str";
|
|
11
|
-
|
|
1
|
+
import { findWidgetByConfigOrType } from "@builders/utils";
|
|
2
|
+
import ListItem from "@components/ListItem";
|
|
3
|
+
import EditModal from "@lib/builders/common/EditModal";
|
|
12
4
|
import SelectFieldTypeModal from "@lib/builders/common/SelectFieldTypeModal";
|
|
5
|
+
import Hint from "@lib/builders/common/Zone/Card/components/Hints";
|
|
13
6
|
import NewField from "@lib/builders/common/Zone/Card/components/NewField";
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
import { findWidgetByConfigOrType } from "@builders/utils";
|
|
17
|
-
|
|
7
|
+
import { TabFieldsModel } from "@lib/models/common/CustomType";
|
|
18
8
|
import * as Widgets from "@lib/models/common/widgets";
|
|
19
|
-
|
|
20
9
|
import sliceBuilderArray from "@lib/models/common/widgets/sliceBuilderArray";
|
|
21
|
-
|
|
22
|
-
import
|
|
23
|
-
|
|
24
|
-
import ListItem from "@components/ListItem";
|
|
25
|
-
import { useCustomTypeState } from "@src/features/customTypes/customTypesBuilder/CustomTypeProvider";
|
|
26
|
-
import { TabFieldsModel } from "@lib/models/common/CustomType";
|
|
10
|
+
import { ensureDnDDestination, ensureWidgetTypeExistence } from "@lib/utils";
|
|
11
|
+
import { telemetry } from "@src/apiClient";
|
|
27
12
|
import {
|
|
28
13
|
addGroupField,
|
|
29
14
|
deleteGroupField,
|
|
30
15
|
reorderGroupField,
|
|
31
16
|
updateGroupField,
|
|
32
17
|
} from "@src/domain/customType";
|
|
33
|
-
import {
|
|
18
|
+
import { useCustomTypeState } from "@src/features/customTypes/customTypesBuilder/CustomTypeProvider";
|
|
19
|
+
import { transformKeyAccessor } from "@utils/str";
|
|
20
|
+
import { Fragment, useState } from "react";
|
|
21
|
+
import { DragDropContext, Droppable } from "react-beautiful-dnd";
|
|
22
|
+
import { flushSync } from "react-dom";
|
|
23
|
+
import { Box, Button } from "theme-ui";
|
|
34
24
|
|
|
35
25
|
/* eslint-disable */
|
|
36
26
|
const CustomListItem = ({
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { GroupSM } from "@lib/models/common/Group";
|
|
2
2
|
import { MdPlaylistAdd } from "react-icons/md";
|
|
3
|
+
import * as yup from "yup";
|
|
4
|
+
|
|
3
5
|
import { Widget } from "../Widget";
|
|
4
|
-
import CustomListItem from "./ListItem";
|
|
5
|
-
import { GroupSM } from "@lib/models/common/Group";
|
|
6
6
|
import Form, { FormFields } from "./Form";
|
|
7
|
+
import CustomListItem from "./ListItem";
|
|
7
8
|
|
|
8
9
|
const Meta = {
|
|
9
10
|
icon: MdPlaylistAdd,
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useEffect, useState, Fragment } from "react";
|
|
3
|
-
|
|
4
|
-
import { DefaultFields } from "@lib/forms/defaults";
|
|
5
|
-
import { createFieldNameFromKey } from "@lib/forms";
|
|
6
|
-
|
|
1
|
+
import { Col, Flex as FlexGrid } from "@components/Flex";
|
|
7
2
|
import WidgetFormField from "@lib/builders/common/EditModal/Field";
|
|
8
|
-
|
|
3
|
+
import { createFieldNameFromKey } from "@lib/forms";
|
|
4
|
+
import { DefaultFields } from "@lib/forms/defaults";
|
|
5
|
+
import { TabFields } from "@lib/models/common/CustomType";
|
|
9
6
|
import { FieldArray } from "formik";
|
|
7
|
+
import { Fragment, useEffect, useState } from "react";
|
|
8
|
+
import { Card, Flex, Label } from "theme-ui";
|
|
9
|
+
import * as yup from "yup";
|
|
10
10
|
|
|
11
|
-
import { Label, Card, Flex } from "theme-ui";
|
|
12
|
-
import { Col, Flex as FlexGrid } from "@components/Flex";
|
|
13
11
|
import {
|
|
14
|
-
ThumbnailButton,
|
|
15
12
|
AddThumbnailButton,
|
|
16
13
|
ConstraintForm,
|
|
14
|
+
ThumbnailButton,
|
|
17
15
|
} from "./components";
|
|
18
|
-
import { TabFields } from "@lib/models/common/CustomType";
|
|
19
16
|
|
|
20
17
|
const nullableNumberSchema = () => {
|
|
21
18
|
return yup
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BsImage, BsFillPlusSquareFill } from "react-icons/bs";
|
|
3
|
-
import { MdCancel } from "react-icons/md";
|
|
4
|
-
import { Text, Badge, Flex, ThemeUIStyleObject } from "theme-ui";
|
|
1
|
+
import { FormFieldInput } from "@components/FormFields";
|
|
5
2
|
import SliceMachineIconButton, {
|
|
6
3
|
SliceMachineIconButtonProps,
|
|
7
4
|
} from "@components/SliceMachineIconButton";
|
|
8
|
-
import { FormFieldInput } from "@components/FormFields";
|
|
9
5
|
import { FieldMetaProps, useField } from "formik";
|
|
6
|
+
import React, { Fragment } from "react";
|
|
7
|
+
import { BsFillPlusSquareFill, BsImage } from "react-icons/bs";
|
|
8
|
+
import { MdCancel } from "react-icons/md";
|
|
9
|
+
import { Badge, Flex, Text, ThemeUIStyleObject } from "theme-ui";
|
|
10
10
|
|
|
11
11
|
type ThumbnailButtonProps = Pick<
|
|
12
12
|
SliceMachineIconButtonProps,
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Form, { FormFields } from "./Form";
|
|
1
|
+
import { Image } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
|
|
3
2
|
import { BsImage } from "react-icons/bs";
|
|
3
|
+
import * as yup from "yup";
|
|
4
4
|
|
|
5
5
|
import { createValidationSchema } from "../../../../forms";
|
|
6
|
-
|
|
7
6
|
import { removeProp } from "../../../../utils";
|
|
8
|
-
|
|
9
7
|
import { Widget } from "../Widget";
|
|
10
|
-
import {
|
|
8
|
+
import Form, { FormFields } from "./Form";
|
|
11
9
|
|
|
12
10
|
/**
|
|
13
11
|
* {
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { DefaultFields } from "@lib/forms/defaults";
|
|
2
|
-
|
|
3
|
-
import WidgetFormField from "@lib/builders/common/EditModal/Field";
|
|
4
|
-
import { CheckBox } from "@lib/forms/fields";
|
|
5
|
-
|
|
6
1
|
import { Col, Flex as FlexGrid } from "@components/Flex";
|
|
2
|
+
import WidgetFormField from "@lib/builders/common/EditModal/Field";
|
|
7
3
|
import { createFieldNameFromKey } from "@lib/forms";
|
|
4
|
+
import { DefaultFields } from "@lib/forms/defaults";
|
|
5
|
+
import { CheckBox } from "@lib/forms/fields";
|
|
8
6
|
|
|
9
7
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
10
8
|
const FormFields = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Form, { FormFields } from "./Form";
|
|
1
|
+
import { Link } from "@prismicio/types-internal/lib/customtypes";
|
|
3
2
|
import { FiLink2 } from "react-icons/fi";
|
|
3
|
+
import * as yup from "yup";
|
|
4
4
|
|
|
5
5
|
import { Widget } from "../Widget";
|
|
6
|
-
import {
|
|
6
|
+
import Form, { FormFields } from "./Form";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* {
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { DefaultFields } from "@lib/forms/defaults";
|
|
2
|
-
|
|
3
|
-
import WidgetFormField from "@lib/builders/common/EditModal/Field";
|
|
4
|
-
|
|
5
1
|
import { Col, Flex as FlexGrid } from "@components/Flex";
|
|
2
|
+
import WidgetFormField from "@lib/builders/common/EditModal/Field";
|
|
6
3
|
import { createFieldNameFromKey } from "@lib/forms";
|
|
4
|
+
import { DefaultFields } from "@lib/forms/defaults";
|
|
7
5
|
|
|
8
6
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
9
7
|
const FormFields = {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { linkConfigSchema } from "@lib/models/common/widgets/Link";
|
|
2
|
+
import { Link } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
|
|
2
3
|
import { MdAttachment } from "react-icons/md";
|
|
4
|
+
import * as yup from "yup";
|
|
3
5
|
|
|
4
6
|
import { Widget } from "../Widget";
|
|
5
|
-
|
|
6
|
-
import { linkConfigSchema } from "@lib/models/common/widgets/Link";
|
|
7
7
|
import Form, { FormFields } from "./Form";
|
|
8
|
-
import { Link } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
|
|
9
8
|
|
|
10
9
|
const Meta = {
|
|
11
10
|
icon: MdAttachment,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { Number as PrismicNumber } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
|
|
1
2
|
import { AiOutlineFieldNumber } from "react-icons/ai";
|
|
2
|
-
import { createDefaultWidgetValues } from "../../../../utils";
|
|
3
3
|
|
|
4
|
+
import { createDefaultWidgetValues } from "../../../../utils";
|
|
4
5
|
import { Widget } from "../Widget";
|
|
5
|
-
import { Number as PrismicNumber } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
|
|
6
6
|
|
|
7
7
|
/** {
|
|
8
8
|
"type" : "Number",
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { FormTypes } from "@lib/forms/types";
|
|
7
|
-
|
|
1
|
+
import {
|
|
2
|
+
FormFieldArray,
|
|
3
|
+
FormFieldCheckboxControl,
|
|
4
|
+
} from "@components/FormFields";
|
|
8
5
|
import { DefaultFields } from "@lib/forms/defaults";
|
|
9
|
-
import {
|
|
6
|
+
import { FormTypes } from "@lib/forms/types";
|
|
7
|
+
import { useFormikContext } from "formik";
|
|
8
|
+
import * as yup from "yup";
|
|
10
9
|
|
|
11
10
|
const label = (controlledValue) =>
|
|
12
11
|
`use first value as default ${
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Select } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
|
|
2
2
|
import { MdDns } from "react-icons/md";
|
|
3
|
+
import * as yup from "yup";
|
|
3
4
|
|
|
4
5
|
import { createValidationSchema } from "../../../../forms";
|
|
5
|
-
|
|
6
6
|
import { removeProp } from "../../../../utils";
|
|
7
|
-
|
|
8
|
-
import FormFields from "./FormFields";
|
|
9
|
-
|
|
10
7
|
import { Widget } from "../Widget";
|
|
11
|
-
import
|
|
8
|
+
import FormFields from "./FormFields";
|
|
12
9
|
|
|
13
10
|
/**
|
|
14
11
|
* {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { useEffect, useState } from "react";
|
|
2
|
-
import * as yup from "yup";
|
|
3
|
-
import { createFieldNameFromKey } from "@lib/forms";
|
|
4
|
-
import { CheckBox as CheckBoxConstructor } from "@lib/forms/fields";
|
|
5
|
-
import { DefaultFields } from "@lib/forms/defaults";
|
|
6
|
-
import options, { optionValues } from "./options";
|
|
7
|
-
import WidgetFormField from "@lib/builders/common/EditModal/Field";
|
|
8
|
-
import { Text, Button, Label, Checkbox, Flex, Box } from "theme-ui";
|
|
9
1
|
import { Col, Flex as FlexGrid } from "@components/Flex";
|
|
10
2
|
import SliceMachineIconButton from "@components/SliceMachineIconButton";
|
|
11
|
-
|
|
3
|
+
import WidgetFormField from "@lib/builders/common/EditModal/Field";
|
|
4
|
+
import { createFieldNameFromKey } from "@lib/forms";
|
|
5
|
+
import { DefaultFields } from "@lib/forms/defaults";
|
|
6
|
+
import { CheckBox as CheckBoxConstructor } from "@lib/forms/fields";
|
|
12
7
|
import { has } from "fp-ts/Record";
|
|
13
|
-
import { AnyObject } from "yup/lib/types";
|
|
14
8
|
import { isObject, isString } from "lodash";
|
|
9
|
+
import { useEffect, useState } from "react";
|
|
10
|
+
import { Box, Button, Checkbox, Flex, Label, Text } from "theme-ui";
|
|
11
|
+
import * as yup from "yup";
|
|
12
|
+
import { AnyObject } from "yup/lib/types";
|
|
13
|
+
|
|
14
|
+
import options, { optionValues } from "./options";
|
|
15
15
|
|
|
16
16
|
const isAllSet = (curr: Array<string>): boolean =>
|
|
17
17
|
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Form, { FormFields } from "./Form";
|
|
3
|
-
|
|
1
|
+
import { RichText } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
|
|
4
2
|
import { MdTextFields } from "react-icons/md";
|
|
3
|
+
import * as yup from "yup";
|
|
5
4
|
|
|
6
5
|
import { createValidationSchema } from "../../../../forms";
|
|
7
|
-
|
|
8
6
|
import { removeProp } from "../../../../utils";
|
|
9
7
|
import { Widget } from "../Widget";
|
|
10
|
-
|
|
8
|
+
import Form, { FormFields } from "./Form";
|
|
11
9
|
import { optionValues } from "./options";
|
|
12
|
-
import { RichText } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
|
|
13
10
|
|
|
14
11
|
/**
|
|
15
12
|
* {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FiLink2, FiImage, FiCode, FiList } from "react-icons/fi";
|
|
2
|
-
import { BsListOl } from "react-icons/bs";
|
|
3
1
|
import React from "react";
|
|
2
|
+
import { BsListOl } from "react-icons/bs";
|
|
3
|
+
import { FiCode, FiImage, FiLink2, FiList } from "react-icons/fi";
|
|
4
4
|
import { IconType } from "react-icons/lib";
|
|
5
5
|
|
|
6
6
|
const Icon =
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Text } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
|
|
2
2
|
import { MdTitle } from "react-icons/md";
|
|
3
|
+
import * as yup from "yup";
|
|
4
|
+
|
|
5
|
+
import { createValidationSchema } from "../../../../forms";
|
|
6
|
+
import { DefaultFields } from "../../../../forms/defaults";
|
|
3
7
|
/**
|
|
4
8
|
* {
|
|
5
9
|
"type": "Text",
|
|
@@ -9,12 +13,8 @@ import { MdTitle } from "react-icons/md";
|
|
|
9
13
|
}
|
|
10
14
|
}
|
|
11
15
|
*/
|
|
12
|
-
|
|
13
16
|
import { removeProp } from "../../../../utils";
|
|
14
|
-
import { DefaultFields } from "../../../../forms/defaults";
|
|
15
|
-
import { createValidationSchema } from "../../../../forms";
|
|
16
17
|
import { Widget } from "../Widget";
|
|
17
|
-
import { Text } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
|
|
18
18
|
|
|
19
19
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
20
20
|
const FormFields = DefaultFields;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Timestamp } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
|
|
2
2
|
import { MdDateRange } from "react-icons/md";
|
|
3
|
+
import * as yup from "yup";
|
|
3
4
|
|
|
5
|
+
import { createValidationSchema } from "../../../../forms";
|
|
6
|
+
import { DefaultFields } from "../../../../forms/defaults";
|
|
4
7
|
/** {
|
|
5
8
|
"type" : "Timestamp",
|
|
6
9
|
"config" : {
|
|
@@ -8,12 +11,8 @@ import { MdDateRange } from "react-icons/md";
|
|
|
8
11
|
"placeholder" : "timestamp"
|
|
9
12
|
}
|
|
10
13
|
} */
|
|
11
|
-
|
|
12
14
|
import { removeProp } from "../../../../utils";
|
|
13
|
-
import { DefaultFields } from "../../../../forms/defaults";
|
|
14
|
-
import { createValidationSchema } from "../../../../forms";
|
|
15
15
|
import { Widget } from "../Widget";
|
|
16
|
-
import { Timestamp } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
|
|
17
16
|
|
|
18
17
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
19
18
|
const FormFields = DefaultFields;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { UID } from "@prismicio/types-internal/lib/customtypes/widgets";
|
|
2
2
|
import { MdVpnKey } from "react-icons/md";
|
|
3
|
+
import * as yup from "yup";
|
|
3
4
|
|
|
5
|
+
import { createValidationSchema } from "../../../../forms";
|
|
6
|
+
import { DefaultFields } from "../../../../forms/defaults";
|
|
4
7
|
/**
|
|
5
8
|
* {
|
|
6
9
|
"type": "UID",
|
|
@@ -10,12 +13,8 @@ import { MdVpnKey } from "react-icons/md";
|
|
|
10
13
|
}
|
|
11
14
|
}
|
|
12
15
|
*/
|
|
13
|
-
|
|
14
16
|
import { removeProp } from "../../../../utils";
|
|
15
|
-
import { DefaultFields } from "../../../../forms/defaults";
|
|
16
|
-
import { createValidationSchema } from "../../../../forms";
|
|
17
17
|
import { Widget } from "../Widget";
|
|
18
|
-
import { UID } from "@prismicio/types-internal/lib/customtypes/widgets";
|
|
19
18
|
|
|
20
19
|
const FormFields = {
|
|
21
20
|
label: DefaultFields.label,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { TabField } from "@lib/models/common/CustomType";
|
|
1
2
|
import { FieldType } from "@prismicio/types-internal/lib/customtypes";
|
|
2
3
|
import { IconType } from "react-icons";
|
|
3
4
|
import { AnyObjectSchema } from "yup";
|
|
4
|
-
|
|
5
|
+
|
|
5
6
|
export interface Widget<F extends TabField, S extends AnyObjectSchema> {
|
|
6
7
|
TYPE_NAME: FieldType;
|
|
7
8
|
create: (label: string) => F;
|
|
@@ -23,11 +23,11 @@ export {
|
|
|
23
23
|
GeoPointWidget as GeoPoint,
|
|
24
24
|
ImageWidget as Image,
|
|
25
25
|
LinkWidget as Link,
|
|
26
|
+
LinkToMediaWidget as LinkToMedia,
|
|
26
27
|
NumberWidget as Number,
|
|
27
28
|
SelectWidget as Select,
|
|
28
29
|
StructuredTextWidget as StructuredText,
|
|
29
30
|
TextWidget as Text,
|
|
30
31
|
TimestampWidget as Timestamp,
|
|
31
32
|
UIDWidget as UID,
|
|
32
|
-
LinkToMediaWidget as LinkToMedia,
|
|
33
33
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { Boolean } from "./";
|
|
2
1
|
export { Color } from ".";
|
|
3
2
|
export { ContentRelationship } from ".";
|
|
4
3
|
export { Date } from ".";
|
|
@@ -13,7 +12,7 @@ export { StructuredText } from ".";
|
|
|
13
12
|
export { Text } from ".";
|
|
14
13
|
export { Timestamp } from ".";
|
|
15
14
|
export { UID } from ".";
|
|
16
|
-
|
|
15
|
+
export { Boolean } from "./";
|
|
17
16
|
export { GroupWidget as Group } from "./Group";
|
|
18
17
|
|
|
19
18
|
export const SharedSlice = null;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { FrontEndEnvironment } from "../common/Environment";
|
|
2
|
-
import { LibraryUI } from "../common/LibraryUI";
|
|
3
|
-
import { SliceSM } from "@lib/models/common/Slice";
|
|
4
1
|
import { CustomTypeSM } from "@lib/models/common/CustomType";
|
|
2
|
+
import { SliceSM } from "@lib/models/common/Slice";
|
|
3
|
+
|
|
4
|
+
import { FrontEndEnvironment } from "../common/Environment";
|
|
5
5
|
import ErrorWithStatus from "../common/ErrorWithStatus";
|
|
6
|
+
import { LibraryUI } from "../common/LibraryUI";
|
|
6
7
|
|
|
7
8
|
export default interface ServerState {
|
|
8
9
|
env: FrontEndEnvironment;
|
package/lib/utils/index.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
+
import { FieldType } from "@prismicio/types-internal/lib/customtypes";
|
|
2
|
+
import { DropResult } from "react-beautiful-dnd";
|
|
1
3
|
import * as yup from "yup";
|
|
2
4
|
|
|
3
|
-
import { Widget } from "../models/common/widgets/Widget";
|
|
4
|
-
|
|
5
|
-
import { DefaultFields } from "../forms/defaults";
|
|
6
5
|
import { createInitialValues, createValidationSchema } from "../forms";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { DefaultFields } from "../forms/defaults";
|
|
7
|
+
import { Widget } from "../models/common/widgets/Widget";
|
|
9
8
|
|
|
10
9
|
export const removeProp = (obj: { [x: string]: unknown }, prop: string) => {
|
|
11
10
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
package/out/404.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/243a4d347efcfd53.css" as="style"/><link rel="stylesheet" href="/_next/static/css/243a4d347efcfd53.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-6177e3581af44083.js" defer=""></script><script src="/_next/static/chunks/pages/_error-69b4f498bafdd188.js" defer=""></script><script src="/_next/static/6WrgMw0SELcypoJCYNiKd/_buildManifest.js" defer=""></script><script src="/_next/static/6WrgMw0SELcypoJCYNiKd/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"6WrgMw0SELcypoJCYNiKd","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__BUILD_MANIFEST=function(s,c,a,e,t,i,b,n,f,
|
|
1
|
+
self.__BUILD_MANIFEST=function(s,c,a,e,t,i,b,n,d,f,u,h,l,k,j,p,g,o,r){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[a,j,p,"static/chunks/pages/index-b5817351a77c6d40.js"],"/_error":["static/chunks/pages/_error-69b4f498bafdd188.js"],"/changelog":[s,e,"static/chunks/870-0c7a8a9622de78b7.js","static/chunks/pages/changelog-2d061c06b2b82e28.js"],"/changes":[s,t,"static/chunks/8eec4907-b712959d9f984b68.js",i,"static/chunks/918-5bb55fb464e34768.js",c,n,"static/css/0e0d6c4ec6bf7373.css","static/chunks/pages/changes-cde59d56dc849106.js"],"/custom-types":[a,j,p,"static/chunks/pages/custom-types-3c8e721ec6802127.js"],"/custom-types/[customTypeId]":[s,d,f,u,h,e,b,i,l,g,c,a,k,o,r,"static/chunks/pages/custom-types/[customTypeId]-89ccb93ce7409ad0.js"],"/labs":["static/chunks/pages/labs-0fc7d01b8c9bfc2a.js"],"/page-types/[pageTypeId]":[s,d,f,u,h,e,b,i,l,g,c,a,k,o,r,"static/chunks/pages/page-types/[pageTypeId]-dbf86fe3a94dc892.js"],"/settings":["static/css/ca32882a5d2d8d88.css","static/chunks/pages/settings-897ad13a08f73048.js"],"/slices":[s,t,b,c,n,"static/css/f8eb526e10bc2441.css","static/chunks/pages/slices-391f6c4b30af0759.js"],"/slices/[lib]/[sliceName]/[variation]":[s,t,d,f,u,h,e,b,i,l,c,k,n,"static/css/27f2b9b9c9f65885.css","static/chunks/pages/slices/[lib]/[sliceName]/[variation]-69cf4b12bb354f9f.js"],"/slices/[lib]/[sliceName]/[variation]/simulator":[t,"static/chunks/72585f70-28b4d7d5384b3703.js","static/chunks/18539003-a5a5d48f20a7b261.js","static/chunks/46-d22d7a121254e31d.js","static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-ed3157875529f0f2.js"],sortedPages:["/","/_app","/_error","/changelog","/changes","/custom-types","/custom-types/[customTypeId]","/labs","/page-types/[pageTypeId]","/settings","/slices","/slices/[lib]/[sliceName]/[variation]","/slices/[lib]/[sliceName]/[variation]/simulator"]}}("static/chunks/59b4e022-7a3b5554b806349f.js","static/chunks/25-607d5cfe6492f4e8.js","static/chunks/799-68887319f3169f78.js","static/chunks/183-ebd633fed7c74545.js","static/chunks/c8eae200-966ce352f7b5d2b9.js","static/chunks/543-f8766685f7f451e2.js","static/chunks/50-cfc2514205b86001.js","static/chunks/286-6ee80333008646b9.js","static/chunks/f36c6662-03bb5e9d9aa0b0aa.js","static/chunks/4c744e84-e3161d754618373f.js","static/chunks/065a3ddb-9a38ca0d60f0bf2f.js","static/chunks/1cc2734a-2c5b6c0367fcde86.js","static/chunks/696-b992b9e1ce75777e.js","static/chunks/318-c84322cba57be932.js","static/chunks/727-b53258380c1a11f1.js","static/css/70e3649c6ba13fdc.css","static/chunks/210-aee6116139329803.js","static/chunks/382-8194eab141c7ea2f.js","static/css/6e65ff596e3b465e.css"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
|