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,12 +1,11 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
import { useSelector } from "react-redux";
|
|
3
|
-
|
|
4
|
-
import { SliceMachineStoreType } from "@src/redux/type";
|
|
5
|
-
import { getLastSyncChange, getUserReview } from "@src/modules/userContext";
|
|
6
|
-
import { selectAllCustomTypes } from "@src/modules/availableCustomTypes";
|
|
7
|
-
import { getLibraries } from "@src/modules/slices";
|
|
8
1
|
import { hasLocal } from "@lib/models/common/ModelData";
|
|
9
2
|
import { useInAppGuide } from "@src/features/inAppGuide/InAppGuideContext";
|
|
3
|
+
import { selectAllCustomTypes } from "@src/modules/availableCustomTypes";
|
|
4
|
+
import { getLibraries } from "@src/modules/slices";
|
|
5
|
+
import { getLastSyncChange, getUserReview } from "@src/modules/userContext";
|
|
6
|
+
import { SliceMachineStoreType } from "@src/redux/type";
|
|
7
|
+
import { FC } from "react";
|
|
8
|
+
import { useSelector } from "react-redux";
|
|
10
9
|
|
|
11
10
|
import { ReviewForm } from "./ReviewForm";
|
|
12
11
|
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { useState } from "react";
|
|
2
|
-
import { Flex, Text, Spinner } from "theme-ui";
|
|
3
|
-
import { useHotkeys } from "react-hotkeys-hook";
|
|
4
|
-
import { toast } from "react-toastify";
|
|
5
|
-
import { AiOutlineCloudUpload } from "react-icons/ai";
|
|
6
|
-
|
|
7
|
-
import { acceptedImagesTypes } from "@lib/consts";
|
|
8
|
-
import useSliceMachineActions from "@src/modules/useSliceMachineActions";
|
|
9
1
|
import { ScreenshotPreview } from "@components/ScreenshotPreview";
|
|
2
|
+
import { acceptedImagesTypes } from "@lib/consts";
|
|
10
3
|
import { ComponentUI } from "@lib/models/common/ComponentUI";
|
|
11
4
|
import { uploadSliceScreenshot } from "@src/features/slices/actions/uploadSliceScreenshot";
|
|
5
|
+
import useSliceMachineActions from "@src/modules/useSliceMachineActions";
|
|
6
|
+
import { useState } from "react";
|
|
7
|
+
import { useHotkeys } from "react-hotkeys-hook";
|
|
8
|
+
import { AiOutlineCloudUpload } from "react-icons/ai";
|
|
9
|
+
import { toast } from "react-toastify";
|
|
10
|
+
import { Flex, Spinner, Text } from "theme-ui";
|
|
12
11
|
|
|
13
12
|
import useCustomScreenshot from "./useCustomScreenshot";
|
|
14
13
|
|
|
@@ -1,25 +1,21 @@
|
|
|
1
|
-
import { useEffect, useState } from "react";
|
|
2
|
-
import { useSelector } from "react-redux";
|
|
3
|
-
import { Flex, Heading, Close, Box, Text } from "theme-ui";
|
|
4
|
-
|
|
5
1
|
import Card from "@components/Card";
|
|
6
|
-
import { AiOutlinePicture } from "react-icons/ai";
|
|
7
|
-
import { RiErrorWarningLine } from "react-icons/ri";
|
|
8
2
|
import SliceMachineModal from "@components/SliceMachineModal";
|
|
9
|
-
|
|
3
|
+
import { ComponentUI } from "@lib/models/common/ComponentUI";
|
|
4
|
+
import { Kbd } from "@src/components/Kbd";
|
|
5
|
+
import { FigmaIcon } from "@src/icons/FigmaIcon";
|
|
10
6
|
import { isModalOpen } from "@src/modules/modal";
|
|
11
|
-
|
|
12
|
-
import { SliceMachineStoreType } from "@src/redux/type";
|
|
13
7
|
import { ModalKeysEnum } from "@src/modules/modal/types";
|
|
14
|
-
import { ComponentUI } from "@lib/models/common/ComponentUI";
|
|
15
8
|
import useSliceMachineActions from "@src/modules/useSliceMachineActions";
|
|
9
|
+
import { SliceMachineStoreType } from "@src/redux/type";
|
|
10
|
+
import { getOS, OS } from "@src/utils/os";
|
|
11
|
+
import { useEffect, useState } from "react";
|
|
12
|
+
import { AiOutlinePicture } from "react-icons/ai";
|
|
13
|
+
import { RiErrorWarningLine } from "react-icons/ri";
|
|
14
|
+
import { useSelector } from "react-redux";
|
|
15
|
+
import { Box, Close, Flex, Heading, Text } from "theme-ui";
|
|
16
16
|
|
|
17
17
|
import VariationDropZone from "./VariationDropZone";
|
|
18
18
|
|
|
19
|
-
import { FigmaIcon } from "@src/icons/FigmaIcon";
|
|
20
|
-
import { getOS, OS } from "@src/utils/os";
|
|
21
|
-
import { Kbd } from "@src/components/Kbd";
|
|
22
|
-
|
|
23
19
|
export type SliceVariationSelector = { sliceID: string; variationID: string };
|
|
24
20
|
|
|
25
21
|
const FigmaTip = () => {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
import { acceptedImagesTypes } from "@lib/consts";
|
|
1
2
|
import React, { useRef } from "react";
|
|
2
3
|
import { Label } from "theme-ui";
|
|
3
4
|
|
|
4
|
-
import { acceptedImagesTypes } from "@lib/consts";
|
|
5
|
-
|
|
6
5
|
type HandleFileProp = {
|
|
7
6
|
inputFile: React.RefObject<HTMLInputElement>;
|
|
8
7
|
children?: React.ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { memo } from "react";
|
|
2
|
-
import { Flex, Image, Text, ThemeUIStyleObject } from "theme-ui";
|
|
3
2
|
import { MdInfoOutline } from "react-icons/md";
|
|
3
|
+
import { Flex, Image, Text, ThemeUIStyleObject } from "theme-ui";
|
|
4
4
|
|
|
5
5
|
const MemoedImage = memo<{ src: string | undefined }>(({ src }) => (
|
|
6
6
|
<Image src={src} alt="Preview image" sx={{ maxHeight: "100%" }} />
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import Card from "@components/Card";
|
|
2
|
+
import { ScreenshotPreview } from "@components/ScreenshotPreview";
|
|
1
3
|
import SliceMachineModal from "@components/SliceMachineModal";
|
|
2
|
-
import { useSelector } from "react-redux";
|
|
3
|
-
import { SliceMachineStoreType } from "@src/redux/type";
|
|
4
4
|
import { isModalOpen } from "@src/modules/modal";
|
|
5
5
|
import { ModalKeysEnum } from "@src/modules/modal/types";
|
|
6
6
|
import useSliceMachineActions from "@src/modules/useSliceMachineActions";
|
|
7
|
+
import { SliceMachineStoreType } from "@src/redux/type";
|
|
8
|
+
import { useSelector } from "react-redux";
|
|
7
9
|
import { Button, Close, Flex, Heading } from "theme-ui";
|
|
8
|
-
import Card from "@components/Card";
|
|
9
|
-
import { ScreenshotPreview } from "@components/ScreenshotPreview";
|
|
10
10
|
|
|
11
11
|
type ScreenshotModalProps = {
|
|
12
12
|
sliceName: string;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { Image, Link, Text } from "theme-ui";
|
|
2
|
-
import FullPage from "../FullPage";
|
|
3
|
-
|
|
4
1
|
import { Button } from "@components/Button";
|
|
5
|
-
|
|
6
2
|
import { IoMdRefresh } from "react-icons/io";
|
|
3
|
+
import { Image, Link, Text } from "theme-ui";
|
|
4
|
+
|
|
5
|
+
import FullPage from "../FullPage";
|
|
7
6
|
|
|
8
7
|
const FailedConnect = ({ onRetrigger }: { onRetrigger: () => void }) => (
|
|
9
8
|
<FullPage>
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { VariationSM } from "@lib/models/common/Slice";
|
|
1
2
|
import React, { useEffect, useState } from "react";
|
|
3
|
+
import { RiArrowDropDownFill, RiArrowDropUpFill } from "react-icons/ri";
|
|
2
4
|
import { Popover } from "react-tiny-popover";
|
|
5
|
+
import { Box, Button, ThemeUICSSObject, ThemeUIStyleObject } from "theme-ui";
|
|
3
6
|
|
|
4
7
|
import MenuList from "./MenuList";
|
|
5
8
|
|
|
6
|
-
import { Button, Box, ThemeUICSSObject, ThemeUIStyleObject } from "theme-ui";
|
|
7
|
-
|
|
8
|
-
import { RiArrowDropDownFill, RiArrowDropUpFill } from "react-icons/ri";
|
|
9
|
-
import { VariationSM } from "@lib/models/common/Slice";
|
|
10
|
-
|
|
11
9
|
const VarationsPopover: React.FunctionComponent<{
|
|
12
10
|
buttonSx?: ThemeUICSSObject;
|
|
13
11
|
defaultValue?: VariationSM;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import router from "next/router";
|
|
2
|
-
import { Text, Flex, Switch, Label } from "theme-ui";
|
|
3
|
-
|
|
4
1
|
import { Button } from "@components/Button";
|
|
5
|
-
import VariationsPopover from "@components/Simulator/components/Header/VariationsPopover";
|
|
6
2
|
import * as Links from "@components/Simulator/components/Header/links";
|
|
7
|
-
import
|
|
3
|
+
import VariationsPopover from "@components/Simulator/components/Header/VariationsPopover";
|
|
8
4
|
import { ComponentUI } from "@lib/models/common/ComponentUI";
|
|
9
5
|
import { VariationSM } from "@lib/models/common/Slice";
|
|
6
|
+
import SliceMachineLogo from "@src/icons/SliceMachineLogo";
|
|
7
|
+
import router from "next/router";
|
|
8
|
+
import { Flex, Label, Switch, Text } from "theme-ui";
|
|
10
9
|
|
|
11
10
|
const redirect = (
|
|
12
11
|
model: ComponentUI,
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { Flex } from "theme-ui";
|
|
4
|
-
|
|
1
|
+
import { ScreenDimensions } from "@lib/models/common/Screenshots";
|
|
5
2
|
import { SimulatorClient } from "@prismicio/simulator";
|
|
6
3
|
import { useElementSize } from "@src/hooks/useElementSize";
|
|
7
|
-
import {
|
|
4
|
+
import { RefCallback, useCallback, useEffect, useRef, useState } from "react";
|
|
5
|
+
import { Flex } from "theme-ui";
|
|
8
6
|
|
|
9
7
|
function useSimulatorClient(): readonly [
|
|
10
8
|
SimulatorClient | undefined,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DropDownMenu } from "@components/DropDownSelector";
|
|
2
|
-
import {
|
|
2
|
+
import { ScreenDimensions } from "@lib/models/common/Screenshots";
|
|
3
3
|
import { useState } from "react";
|
|
4
|
-
|
|
4
|
+
import { RiCloseLine } from "react-icons/ri";
|
|
5
5
|
import { Flex } from "theme-ui";
|
|
6
6
|
|
|
7
7
|
import {
|
|
@@ -10,8 +10,6 @@ import {
|
|
|
10
10
|
ScreenSizes,
|
|
11
11
|
} from "./ScreensizeInput";
|
|
12
12
|
|
|
13
|
-
import { ScreenDimensions } from "@lib/models/common/Screenshots";
|
|
14
|
-
|
|
15
13
|
type ToolbarProps = {
|
|
16
14
|
handleScreenSizeChange: (screenDimensions: ScreenDimensions) => void;
|
|
17
15
|
screenDimensions: ScreenDimensions;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
import ScreenshotPreviewModal from "@components/ScreenshotPreviewModal";
|
|
2
|
+
import { ComponentUI } from "@lib/models/common/ComponentUI";
|
|
3
|
+
import { ScreenDimensions } from "@lib/models/common/Screenshots";
|
|
4
|
+
import { Slices, VariationSM } from "@lib/models/common/Slice";
|
|
5
|
+
import { EditorConfig, SharedSliceEditor } from "@prismicio/editor-fields";
|
|
6
|
+
import { DefaultErrorMessage } from "@prismicio/editor-ui";
|
|
7
|
+
import { renderSliceMock } from "@prismicio/mocks";
|
|
8
|
+
import { SharedSliceContent } from "@prismicio/types-internal/lib/content";
|
|
9
|
+
import { saveSliceMock, telemetry } from "@src/apiClient";
|
|
10
|
+
import { ErrorBoundary } from "@src/ErrorBoundary";
|
|
11
|
+
import useThrottle from "@src/hooks/useThrottle";
|
|
12
|
+
import { selectEndpoints, selectSimulatorUrl } from "@src/modules/environment";
|
|
13
|
+
import useSliceMachineActions from "@src/modules/useSliceMachineActions";
|
|
14
|
+
import { SliceMachineStoreType } from "@src/redux/type";
|
|
15
|
+
import { defaultSharedSliceContent } from "@src/utils/editor";
|
|
1
16
|
import {
|
|
2
17
|
FC,
|
|
3
18
|
Suspense,
|
|
@@ -7,41 +22,19 @@ import {
|
|
|
7
22
|
useRef,
|
|
8
23
|
useState,
|
|
9
24
|
} from "react";
|
|
10
|
-
import {
|
|
11
|
-
import { DefaultErrorMessage } from "@prismicio/editor-ui";
|
|
25
|
+
import { useSelector } from "react-redux";
|
|
12
26
|
import { toast } from "react-toastify";
|
|
13
|
-
|
|
14
|
-
import { defaultSharedSliceContent } from "@src/utils/editor";
|
|
15
|
-
|
|
16
27
|
import { BaseStyles, Box, Flex, Spinner } from "theme-ui";
|
|
17
28
|
|
|
29
|
+
import FailedConnect from "./components/FailedConnect";
|
|
30
|
+
import FullPage from "./components/FullPage";
|
|
18
31
|
import Header from "./components/Header";
|
|
19
|
-
|
|
20
|
-
import { saveSliceMock, telemetry } from "@src/apiClient";
|
|
21
|
-
import { useSelector } from "react-redux";
|
|
22
|
-
import { selectEndpoints, selectSimulatorUrl } from "@src/modules/environment";
|
|
23
|
-
import { SliceMachineStoreType } from "@src/redux/type";
|
|
32
|
+
import IframeRenderer from "./components/IframeRenderer";
|
|
24
33
|
import { Toolbar } from "./components/Toolbar";
|
|
25
34
|
import {
|
|
26
35
|
ScreenSizeOptions,
|
|
27
36
|
ScreenSizes,
|
|
28
37
|
} from "./components/Toolbar/ScreensizeInput";
|
|
29
|
-
import { ScreenDimensions } from "@lib/models/common/Screenshots";
|
|
30
|
-
import ScreenshotPreviewModal from "@components/ScreenshotPreviewModal";
|
|
31
|
-
import { renderSliceMock } from "@prismicio/mocks";
|
|
32
|
-
|
|
33
|
-
import { SharedSliceContent } from "@prismicio/types-internal/lib/content";
|
|
34
|
-
|
|
35
|
-
import useThrottle from "@src/hooks/useThrottle";
|
|
36
|
-
import useSliceMachineActions from "@src/modules/useSliceMachineActions";
|
|
37
|
-
|
|
38
|
-
import IframeRenderer from "./components/IframeRenderer";
|
|
39
|
-
import { ErrorBoundary } from "@src/ErrorBoundary";
|
|
40
|
-
|
|
41
|
-
import FullPage from "./components/FullPage";
|
|
42
|
-
import FailedConnect from "./components/FailedConnect";
|
|
43
|
-
import { Slices, VariationSM } from "@lib/models/common/Slice";
|
|
44
|
-
import { ComponentUI } from "@lib/models/common/ComponentUI";
|
|
45
38
|
|
|
46
39
|
type SimulatorProps = {
|
|
47
40
|
slice: ComponentUI;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Card from "@components/Card";
|
|
2
2
|
import Drawer from "rc-drawer";
|
|
3
|
+
import React from "react";
|
|
3
4
|
import { Close, Flex, Heading } from "theme-ui";
|
|
4
|
-
import Card from "@components/Card";
|
|
5
5
|
|
|
6
6
|
export const SliceMachineDrawerUI: React.FunctionComponent<{
|
|
7
7
|
isOpen: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IconButton } from "theme-ui";
|
|
2
1
|
import { IconButtonProps } from "@theme-ui/components";
|
|
3
2
|
import { IconType } from "react-icons/lib";
|
|
3
|
+
import { IconButton } from "theme-ui";
|
|
4
4
|
|
|
5
5
|
const defaultActiveSx = (active: boolean, hasError: boolean | null): object => {
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
2
|
+
import { MdDangerous, MdDone, MdError, MdWarning } from "react-icons/md";
|
|
3
3
|
import {
|
|
4
|
-
|
|
4
|
+
Slide,
|
|
5
5
|
toast,
|
|
6
|
+
ToastContainer as ReactToastifyContainer,
|
|
6
7
|
TypeOptions,
|
|
7
|
-
Slide,
|
|
8
8
|
} from "react-toastify";
|
|
9
9
|
|
|
10
|
-
import { MdDangerous, MdDone, MdError, MdWarning } from "react-icons/md";
|
|
11
|
-
|
|
12
10
|
const getIconAccordingToasterType = ({
|
|
13
11
|
type,
|
|
14
12
|
}: {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ReactTooltipPortal } from "@components/ReactTooltipPortal";
|
|
2
2
|
import React, { ElementType, useEffect, useRef, useState } from "react";
|
|
3
|
+
import ReactTooltip from "react-tooltip";
|
|
3
4
|
import { Text, ThemeUIStyleObject } from "theme-ui";
|
|
4
5
|
|
|
5
|
-
import { ReactTooltipPortal } from "@components/ReactTooltipPortal";
|
|
6
|
-
|
|
7
6
|
interface TextWithTooltipProps {
|
|
8
7
|
text: string;
|
|
9
8
|
as: ElementType;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { useThemeUI } from "theme-ui";
|
|
2
|
-
import ReactTooltip from "react-tooltip";
|
|
3
|
-
|
|
4
1
|
import { ReactTooltipPortal } from "@components/ReactTooltipPortal";
|
|
2
|
+
import ReactTooltip from "react-tooltip";
|
|
3
|
+
import { useThemeUI } from "theme-ui";
|
|
5
4
|
|
|
6
5
|
const Tooltip = (props) => {
|
|
7
6
|
const { theme, colorMode } = useThemeUI();
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { Close, Flex, Heading, Paragraph } from "theme-ui";
|
|
2
|
-
import { FC } from "react";
|
|
3
|
-
|
|
4
1
|
import { Button } from "@components/Button";
|
|
5
2
|
import Card from "@components/Card";
|
|
6
3
|
import SliceMachineModal from "@components/SliceMachineModal";
|
|
4
|
+
import { FC } from "react";
|
|
5
|
+
import { Close, Flex, Heading, Paragraph } from "theme-ui";
|
|
7
6
|
|
|
8
7
|
type DeleteSliceZoneModalProps = {
|
|
9
8
|
deleteSliceZone: () => void;
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import React, { useEffect } from "react";
|
|
2
|
-
import { toast } from "react-toastify";
|
|
3
|
-
|
|
4
1
|
import Grid from "@components/Grid";
|
|
2
|
+
import { ComponentUI } from "@lib/models/common/ComponentUI";
|
|
5
3
|
import {
|
|
6
4
|
NonSharedSliceInSliceZone,
|
|
7
5
|
SliceZoneSlice,
|
|
8
6
|
} from "@lib/models/common/CustomType/sliceZone";
|
|
9
|
-
import { ComponentUI } from "@lib/models/common/ComponentUI";
|
|
10
7
|
import { CustomTypeFormat } from "@slicemachine/manager";
|
|
11
8
|
import { CUSTOM_TYPES_MESSAGES } from "@src/features/customTypes/customTypesMessages";
|
|
9
|
+
import { useLab } from "@src/features/labs/labsList/useLab";
|
|
12
10
|
import { NonSharedSliceCard } from "@src/features/slices/sliceCards/NonSharedSliceCard";
|
|
13
11
|
import { SharedSliceCard } from "@src/features/slices/sliceCards/SharedSliceCard";
|
|
14
|
-
import {
|
|
12
|
+
import React, { useEffect } from "react";
|
|
13
|
+
import { toast } from "react-toastify";
|
|
15
14
|
|
|
16
15
|
interface SlicesListProps {
|
|
17
16
|
format: CustomTypeFormat;
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
import { Text } from "theme-ui";
|
|
3
|
-
import { SharedSlice } from "@prismicio/types-internal/lib/customtypes";
|
|
4
|
-
|
|
5
|
-
import { SliceTemplate } from "@src/features/slicesTemplates/useSlicesTemplates";
|
|
6
|
-
import { Slices } from "@lib/models/common/Slice";
|
|
7
1
|
import { ComponentUI } from "@lib/models/common/ComponentUI";
|
|
8
|
-
import { createSlicesTemplates } from "@src/features/slicesTemplates/actions/createSlicesTemplates";
|
|
9
2
|
import { LibraryUI } from "@lib/models/common/LibraryUI";
|
|
3
|
+
import { Slices } from "@lib/models/common/Slice";
|
|
4
|
+
import { SharedSlice } from "@prismicio/types-internal/lib/customtypes";
|
|
10
5
|
import { getState } from "@src/apiClient";
|
|
11
|
-
import
|
|
6
|
+
import { createSlicesTemplates } from "@src/features/slicesTemplates/actions/createSlicesTemplates";
|
|
7
|
+
import { SliceTemplate } from "@src/features/slicesTemplates/useSlicesTemplates";
|
|
12
8
|
import { managerClient } from "@src/managerClient";
|
|
9
|
+
import useSliceMachineActions from "@src/modules/useSliceMachineActions";
|
|
10
|
+
import { FC } from "react";
|
|
11
|
+
import { Text } from "theme-ui";
|
|
13
12
|
|
|
14
13
|
import ModalFormCard from "../../../../components/ModalFormCard";
|
|
15
|
-
import UpdateSliceZoneModalList from "./UpdateSliceZoneModalList";
|
|
16
14
|
import { sliceTemplatesComingSoon } from "./sliceTemplatesComingSoon";
|
|
15
|
+
import UpdateSliceZoneModalList from "./UpdateSliceZoneModalList";
|
|
17
16
|
|
|
18
17
|
interface UpdateSliceModalProps {
|
|
19
18
|
formId: string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Text } from "theme-ui";
|
|
2
|
-
import { SharedSlice } from "@prismicio/types-internal/lib/customtypes";
|
|
3
|
-
|
|
4
1
|
import { ComponentUI } from "@lib/models/common/ComponentUI";
|
|
2
|
+
import { SharedSlice } from "@prismicio/types-internal/lib/customtypes";
|
|
3
|
+
import { Text } from "theme-ui";
|
|
5
4
|
|
|
6
5
|
import ModalFormCard from "../../../../components/ModalFormCard";
|
|
7
6
|
import UpdateSliceZoneModalList from "./UpdateSliceZoneModalList";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { FieldArray } from "formik";
|
|
2
|
-
|
|
3
1
|
import Grid from "@components/Grid";
|
|
4
|
-
import { SliceZoneFormValues } from "./UpdateSliceZoneModal";
|
|
5
2
|
import { ComponentUI } from "@lib/models/common/ComponentUI";
|
|
6
3
|
import { SharedSliceCard } from "@src/features/slices/sliceCards/SharedSliceCard";
|
|
4
|
+
import { FieldArray } from "formik";
|
|
5
|
+
|
|
6
|
+
import { SliceZoneFormValues } from "./UpdateSliceZoneModal";
|
|
7
7
|
|
|
8
8
|
const UpdateSliceZoneModalList: React.FC<{
|
|
9
9
|
availableSlices: ReadonlyArray<ComponentUI>;
|
|
@@ -1,44 +1,43 @@
|
|
|
1
|
+
import { CreateSliceModal } from "@components/Forms/CreateSliceModal";
|
|
2
|
+
import { ToastMessageWithPath } from "@components/ToasterContainer";
|
|
3
|
+
import type { ComponentUI } from "@lib/models/common/ComponentUI";
|
|
4
|
+
import { CustomTypes, CustomTypeSM } from "@lib/models/common/CustomType";
|
|
5
|
+
import type { SliceZoneSlice } from "@lib/models/common/CustomType/sliceZone";
|
|
6
|
+
import type { LibraryUI } from "@lib/models/common/LibraryUI";
|
|
7
|
+
import type { SlicesSM } from "@lib/models/common/Slices";
|
|
1
8
|
import {
|
|
9
|
+
Badge,
|
|
2
10
|
Button,
|
|
3
|
-
Switch,
|
|
4
11
|
DropdownMenu,
|
|
5
|
-
DropdownMenuTrigger,
|
|
6
12
|
DropdownMenuContent,
|
|
7
13
|
DropdownMenuItem,
|
|
14
|
+
DropdownMenuTrigger,
|
|
8
15
|
Icon,
|
|
9
|
-
|
|
16
|
+
Switch,
|
|
10
17
|
} from "@prismicio/editor-ui";
|
|
11
|
-
import { useEffect, useMemo, useState } from "react";
|
|
12
|
-
import { useSelector } from "react-redux";
|
|
13
|
-
import { BaseStyles } from "theme-ui";
|
|
14
|
-
import { useRouter } from "next/router";
|
|
15
|
-
import { toast } from "react-toastify";
|
|
16
18
|
import { SharedSlice } from "@prismicio/types-internal/lib/customtypes";
|
|
17
|
-
|
|
18
|
-
import { CustomTypeSM, CustomTypes } from "@lib/models/common/CustomType";
|
|
19
|
-
import { CreateSliceModal } from "@components/Forms/CreateSliceModal";
|
|
20
|
-
import type { SliceZoneSlice } from "@lib/models/common/CustomType/sliceZone";
|
|
21
|
-
import type { ComponentUI } from "@lib/models/common/ComponentUI";
|
|
22
|
-
import type { LibraryUI } from "@lib/models/common/LibraryUI";
|
|
23
|
-
import type { SlicesSM } from "@lib/models/common/Slices";
|
|
19
|
+
import { telemetry } from "@src/apiClient";
|
|
24
20
|
import { ListHeader } from "@src/components/List";
|
|
21
|
+
import { useCustomTypeState } from "@src/features/customTypes/customTypesBuilder/CustomTypeProvider";
|
|
25
22
|
import { SliceZoneBlankSlate } from "@src/features/customTypes/customTypesBuilder/SliceZoneBlankSlate";
|
|
26
|
-
import {
|
|
23
|
+
import { addSlicesToSliceZone } from "@src/features/slices/actions/addSlicesToSliceZone";
|
|
24
|
+
import { useSlicesTemplates } from "@src/features/slicesTemplates/useSlicesTemplates";
|
|
27
25
|
import {
|
|
28
26
|
getFrontendSlices,
|
|
29
27
|
getLibraries,
|
|
30
28
|
getRemoteSlices,
|
|
31
29
|
} from "@src/modules/slices";
|
|
32
30
|
import type { SliceMachineStoreType } from "@src/redux/type";
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
31
|
+
import { useRouter } from "next/router";
|
|
32
|
+
import { useEffect, useMemo, useState } from "react";
|
|
33
|
+
import { useSelector } from "react-redux";
|
|
34
|
+
import { toast } from "react-toastify";
|
|
35
|
+
import { BaseStyles } from "theme-ui";
|
|
37
36
|
|
|
38
37
|
import { DeleteSliceZoneModal } from "./DeleteSliceZoneModal";
|
|
39
|
-
import UpdateSliceZoneModal from "./UpdateSliceZoneModal";
|
|
40
|
-
import { SlicesTemplatesModal } from "./SlicesTemplatesModal";
|
|
41
38
|
import { SlicesList } from "./List";
|
|
39
|
+
import { SlicesTemplatesModal } from "./SlicesTemplatesModal";
|
|
40
|
+
import UpdateSliceZoneModal from "./UpdateSliceZoneModal";
|
|
42
41
|
|
|
43
42
|
const mapAvailableAndSharedSlices = (
|
|
44
43
|
sliceZone: SlicesSM,
|
|
@@ -1,45 +1,44 @@
|
|
|
1
|
-
import { Box, ProgressCircle } from "@prismicio/editor-ui";
|
|
2
|
-
import { FC, Suspense } from "react";
|
|
3
|
-
import { flushSync } from "react-dom";
|
|
4
|
-
import type { DropResult } from "react-beautiful-dnd";
|
|
5
|
-
import type { AnyObjectSchema } from "yup";
|
|
6
|
-
import { useRouter } from "next/router";
|
|
7
|
-
|
|
8
|
-
import ctBuilderArray from "@lib/models/common/widgets/ctBuilderArray";
|
|
9
1
|
import {
|
|
10
|
-
|
|
2
|
+
CustomTypes,
|
|
11
3
|
type TabField,
|
|
12
4
|
type TabFields,
|
|
13
|
-
CustomTypes,
|
|
14
5
|
TabFieldsModel,
|
|
6
|
+
TabSM,
|
|
15
7
|
} from "@lib/models/common/CustomType";
|
|
8
|
+
import ctBuilderArray from "@lib/models/common/widgets/ctBuilderArray";
|
|
16
9
|
import type { AnyWidget } from "@lib/models/common/widgets/Widget";
|
|
17
10
|
import { ensureDnDDestination, ensureWidgetTypeExistence } from "@lib/utils";
|
|
18
|
-
import {
|
|
11
|
+
import { Box, ProgressCircle } from "@prismicio/editor-ui";
|
|
12
|
+
import {
|
|
13
|
+
FieldType,
|
|
14
|
+
Group,
|
|
15
|
+
NestableWidget,
|
|
16
|
+
UID,
|
|
17
|
+
} from "@prismicio/types-internal/lib/customtypes";
|
|
19
18
|
import { telemetry } from "@src/apiClient";
|
|
20
|
-
import {
|
|
21
|
-
import { useCustomTypeState } from "@src/features/customTypes/customTypesBuilder/CustomTypeProvider";
|
|
19
|
+
import { List } from "@src/components/List";
|
|
22
20
|
import {
|
|
21
|
+
addField,
|
|
23
22
|
createSectionSliceZone,
|
|
23
|
+
deleteField,
|
|
24
24
|
deleteSectionSliceZone,
|
|
25
25
|
deleteSliceZoneSlice,
|
|
26
|
-
addField,
|
|
27
|
-
deleteField,
|
|
28
26
|
reorderField,
|
|
29
27
|
updateField,
|
|
30
28
|
} from "@src/domain/customType";
|
|
31
29
|
import { ErrorBoundary } from "@src/ErrorBoundary";
|
|
30
|
+
import { useCustomTypeState } from "@src/features/customTypes/customTypesBuilder/CustomTypeProvider";
|
|
31
|
+
import { transformKeyAccessor } from "@utils/str";
|
|
32
|
+
import { useRouter } from "next/router";
|
|
33
|
+
import { FC, Suspense } from "react";
|
|
34
|
+
import type { DropResult } from "react-beautiful-dnd";
|
|
35
|
+
import { flushSync } from "react-dom";
|
|
36
|
+
import type { AnyObjectSchema } from "yup";
|
|
32
37
|
|
|
33
38
|
import * as Widgets from "../../../../lib/models/common/widgets/withGroup";
|
|
34
39
|
import EditModal from "../../common/EditModal";
|
|
35
40
|
import Zone from "../../common/Zone";
|
|
36
41
|
import SliceZone from "../SliceZone";
|
|
37
|
-
import {
|
|
38
|
-
FieldType,
|
|
39
|
-
Group,
|
|
40
|
-
NestableWidget,
|
|
41
|
-
UID,
|
|
42
|
-
} from "@prismicio/types-internal/lib/customtypes";
|
|
43
42
|
|
|
44
43
|
interface TabZoneProps {
|
|
45
44
|
tabId: string;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
+
import { CustomTypes } from "@lib/models/common/CustomType";
|
|
1
2
|
import { DropdownMenuItem, Icon } from "@prismicio/editor-ui";
|
|
2
|
-
import { useState } from "react";
|
|
3
|
-
import { useRouter } from "next/router";
|
|
4
|
-
|
|
5
3
|
import {
|
|
6
4
|
Window,
|
|
7
5
|
WindowFrame,
|
|
@@ -10,13 +8,14 @@ import {
|
|
|
10
8
|
WindowTabsList,
|
|
11
9
|
WindowTabsTrigger,
|
|
12
10
|
} from "@src/components/Window";
|
|
13
|
-
import { useCustomTypeState } from "@src/features/customTypes/customTypesBuilder/CustomTypeProvider";
|
|
14
|
-
import { CustomTypes } from "@lib/models/common/CustomType";
|
|
15
11
|
import {
|
|
16
12
|
createSection,
|
|
17
13
|
deleteSection,
|
|
18
14
|
renameSection,
|
|
19
15
|
} from "@src/domain/customType";
|
|
16
|
+
import { useCustomTypeState } from "@src/features/customTypes/customTypesBuilder/CustomTypeProvider";
|
|
17
|
+
import { useRouter } from "next/router";
|
|
18
|
+
import { useState } from "react";
|
|
20
19
|
|
|
21
20
|
import CreateModal from "./TabModal/create";
|
|
22
21
|
import DeleteModal from "./TabModal/delete";
|