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
package/.eslintrc.js
CHANGED
|
@@ -9,7 +9,7 @@ module.exports = {
|
|
|
9
9
|
project: ["./tsconfig.json"],
|
|
10
10
|
tsconfigRootDir: __dirname,
|
|
11
11
|
},
|
|
12
|
-
plugins: ["@typescript-eslint", "import"],
|
|
12
|
+
plugins: ["@typescript-eslint", "simple-import-sort", "import"],
|
|
13
13
|
extends: [
|
|
14
14
|
"plugin:react-hooks/recommended",
|
|
15
15
|
"plugin:@typescript-eslint/recommended",
|
|
@@ -30,5 +30,10 @@ module.exports = {
|
|
|
30
30
|
],
|
|
31
31
|
"@typescript-eslint/prefer-nullish-coalescing": "warn",
|
|
32
32
|
"@typescript-eslint/strict-boolean-expressions": "warn",
|
|
33
|
+
"simple-import-sort/exports": "warn",
|
|
34
|
+
"simple-import-sort/imports": "warn",
|
|
35
|
+
"import/first": "error",
|
|
36
|
+
"import/newline-after-import": "error",
|
|
37
|
+
"import/no-duplicates": "error",
|
|
33
38
|
},
|
|
34
39
|
};
|
package/.storybook/preview.tsx
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ThemeProvider, TooltipProvider } from "@prismicio/editor-ui";
|
|
2
1
|
import "@prismicio/editor-ui/style.css";
|
|
2
|
+
|
|
3
|
+
import { ThemeProvider, TooltipProvider } from "@prismicio/editor-ui";
|
|
3
4
|
import type { Preview } from "@storybook/react";
|
|
4
5
|
|
|
5
6
|
const preview: Preview = {
|
package/components/App/index.tsx
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import type { FC, ReactNode } from "react";
|
|
2
|
-
import { useSelector } from "react-redux";
|
|
3
|
-
import { BaseStyles } from "theme-ui";
|
|
4
|
-
|
|
5
1
|
import { AppLayout, AppLayoutContent } from "@components/AppLayout";
|
|
6
2
|
import LoginModal from "@components/LoginModal";
|
|
7
|
-
import { ReviewModal } from "@components/ReviewModal";
|
|
8
3
|
import { MissingLibraries } from "@components/MissingLibraries";
|
|
4
|
+
import { ReviewModal } from "@components/ReviewModal";
|
|
9
5
|
import useServerState from "@src/hooks/useServerState";
|
|
10
|
-
import { SliceMachineStoreType } from "@src/redux/type";
|
|
11
|
-
import { getLibraries } from "@src/modules/slices";
|
|
12
6
|
import useSMTracker from "@src/hooks/useSMTracker";
|
|
7
|
+
import { getLibraries } from "@src/modules/slices";
|
|
8
|
+
import { SliceMachineStoreType } from "@src/redux/type";
|
|
9
|
+
import type { FC, ReactNode } from "react";
|
|
10
|
+
import { useSelector } from "react-redux";
|
|
11
|
+
import { BaseStyles } from "theme-ui";
|
|
13
12
|
|
|
14
13
|
type Props = Readonly<{
|
|
15
14
|
children?: ReactNode;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import { Box, Button, ButtonGroup } from "@prismicio/editor-ui";
|
|
2
|
-
import { useRouter } from "next/router";
|
|
3
|
-
import { FC, PropsWithChildren, Suspense } from "react";
|
|
4
|
-
|
|
5
|
-
import { useActiveEnvironment } from "@src/features/environments/useActiveEnvironment";
|
|
6
|
-
|
|
7
1
|
import Navigation from "@components/Navigation";
|
|
2
|
+
import { Box, Button, ButtonGroup } from "@prismicio/editor-ui";
|
|
8
3
|
import { Breadcrumb } from "@src/components/Breadcrumb";
|
|
9
4
|
import {
|
|
10
5
|
PageLayout,
|
|
@@ -13,6 +8,9 @@ import {
|
|
|
13
8
|
PageLayoutPane,
|
|
14
9
|
} from "@src/components/PageLayout";
|
|
15
10
|
import { ErrorBoundary } from "@src/ErrorBoundary";
|
|
11
|
+
import { useActiveEnvironment } from "@src/features/environments/useActiveEnvironment";
|
|
12
|
+
import { useRouter } from "next/router";
|
|
13
|
+
import { FC, PropsWithChildren, Suspense } from "react";
|
|
16
14
|
|
|
17
15
|
export const AppLayout: FC<PropsWithChildren> = ({
|
|
18
16
|
children,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { forwardRef } from "react";
|
|
2
|
-
|
|
3
|
-
import { Button as ThemeUIButton, ButtonProps, Spinner } from "theme-ui";
|
|
4
2
|
import { IconType } from "react-icons";
|
|
3
|
+
import { Button as ThemeUIButton, ButtonProps, Spinner } from "theme-ui";
|
|
5
4
|
|
|
6
5
|
export interface SmButtonProps extends ButtonProps {
|
|
7
6
|
label: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Children,
|
|
1
|
+
import { Children, memo, useState } from "react";
|
|
2
|
+
import { TabPanel, Tabs } from "react-tabs";
|
|
2
3
|
import { Box } from "theme-ui";
|
|
3
|
-
|
|
4
|
-
import { CustomTab as Tab, CustomTabList as TabList } from "./components";
|
|
4
|
+
|
|
5
5
|
import Card from "../";
|
|
6
|
+
import { CustomTab as Tab, CustomTabList as TabList } from "./components";
|
|
6
7
|
|
|
7
8
|
const WithTabs = ({
|
|
8
9
|
children,
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BaseStyles } from "theme-ui";
|
|
3
|
-
import { useSelector } from "react-redux";
|
|
1
|
+
import { AppLayout, AppLayoutContent } from "@components/AppLayout";
|
|
4
2
|
import { ErrorBoundary, ProgressCircle } from "@prismicio/editor-ui";
|
|
5
|
-
|
|
6
3
|
import { Version } from "@slicemachine/manager";
|
|
7
|
-
import { AppLayout, AppLayoutContent } from "@components/AppLayout";
|
|
8
4
|
import { useSliceMachineVersions } from "@src/features/changelog/useSliceMachineVersions";
|
|
9
|
-
import { SliceMachineStoreType } from "@src/redux/type";
|
|
10
5
|
import { getPackageManager } from "@src/modules/environment";
|
|
6
|
+
import { SliceMachineStoreType } from "@src/redux/type";
|
|
7
|
+
import { Suspense, useEffect, useState } from "react";
|
|
8
|
+
import { useSelector } from "react-redux";
|
|
9
|
+
import { BaseStyles } from "theme-ui";
|
|
11
10
|
|
|
12
11
|
import { Navigation } from "./navigation";
|
|
13
|
-
import {
|
|
12
|
+
import { ReleaseWarning, VersionDetails } from "./versionDetails";
|
|
14
13
|
|
|
15
14
|
export default function Changelog() {
|
|
16
15
|
const { packageManager } = useSelector((store: SliceMachineStoreType) => ({
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Flex, Text } from "theme-ui";
|
|
3
1
|
import { tokens } from "@prismicio/editor-ui";
|
|
4
|
-
|
|
5
2
|
import { Version } from "@slicemachine/manager";
|
|
6
|
-
import { useSliceMachineVersions } from "@src/features/changelog/useSliceMachineVersions";
|
|
7
3
|
import { useSliceMachineLatestNonBreakingVersion } from "@src/features/changelog/useSliceMachineLatestNonBreakingVersion";
|
|
4
|
+
import { useSliceMachineVersions } from "@src/features/changelog/useSliceMachineVersions";
|
|
8
5
|
import { useSliceMachineRunningVersion } from "@src/hooks/useSliceMachineRunningVersion";
|
|
9
6
|
import { useUpdateAvailable } from "@src/hooks/useUpdateAvailable";
|
|
7
|
+
import React from "react";
|
|
8
|
+
import { Flex, Text } from "theme-ui";
|
|
10
9
|
|
|
11
10
|
import { VersionBadge } from "./VersionBadge";
|
|
12
11
|
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Button, Flex, Text } from "theme-ui";
|
|
3
|
-
import { AiFillWarning } from "react-icons/ai";
|
|
4
|
-
|
|
1
|
+
import CodeBlock from "@components/CodeBlock";
|
|
5
2
|
import type { PackageManager, Version } from "@slicemachine/manager";
|
|
6
3
|
import { useSliceMachineVersions } from "@src/features/changelog/useSliceMachineVersions";
|
|
7
|
-
import CodeBlock from "@components/CodeBlock";
|
|
8
4
|
import { useAdapterName } from "@src/hooks/useAdapterName";
|
|
9
5
|
import { useUpdateAvailable } from "@src/hooks/useUpdateAvailable";
|
|
6
|
+
import React from "react";
|
|
7
|
+
import { AiFillWarning } from "react-icons/ai";
|
|
8
|
+
import { Button, Flex, Text } from "theme-ui";
|
|
10
9
|
|
|
11
10
|
interface UpdateCommandBoxProps {
|
|
12
11
|
selectedVersion: Version;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { type ThemeUIStyleObject, Text } from "theme-ui";
|
|
3
|
-
import { transparentize } from "@theme-ui/color";
|
|
4
|
-
|
|
5
1
|
import { VersionKind } from "@slicemachine/manager";
|
|
2
|
+
import { transparentize } from "@theme-ui/color";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { Text, type ThemeUIStyleObject } from "theme-ui";
|
|
6
5
|
|
|
7
6
|
interface VersionKindLabelProps {
|
|
8
7
|
versionKind: VersionKind;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Flex, Text } from "theme-ui";
|
|
3
|
-
import { AiFillWarning } from "react-icons/ai";
|
|
4
1
|
import { tokens } from "@prismicio/editor-ui";
|
|
5
|
-
|
|
6
2
|
import type { PackageManager, Version } from "@slicemachine/manager";
|
|
7
3
|
import { useSliceMachineReleaseNotes } from "@src/features/changelog/useSliceMachineReleaseNotes";
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { AiFillWarning } from "react-icons/ai";
|
|
6
|
+
import { Flex, Text } from "theme-ui";
|
|
8
7
|
|
|
9
|
-
import { VersionKindLabel } from "./VersionKindLabel";
|
|
10
8
|
import { ReleaseNotesDetails } from "./ReleaseNotesDetails";
|
|
11
9
|
import { UpdateCommandBox } from "./UpdateCommandBox";
|
|
10
|
+
import { VersionKindLabel } from "./VersionKindLabel";
|
|
12
11
|
|
|
13
12
|
interface VersionDetailsProps {
|
|
14
13
|
selectedVersion: Version;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React, { FC } from "react";
|
|
2
1
|
import { Box, Button, Text, TextLink } from "@prismicio/editor-ui";
|
|
3
|
-
|
|
4
|
-
import useSliceMachineActions from "@src/modules/useSliceMachineActions";
|
|
5
2
|
import { AuthStatus } from "@src/modules/userContext/types";
|
|
3
|
+
import useSliceMachineActions from "@src/modules/useSliceMachineActions";
|
|
4
|
+
import React, { FC } from "react";
|
|
6
5
|
|
|
7
6
|
export type AuthErrorPageProps = {
|
|
8
7
|
authStatus: AuthStatus.UNAUTHORIZED | AuthStatus.FORBIDDEN;
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import React, { Suspense } from "react";
|
|
2
|
-
import { AiFillCamera, AiOutlineExclamationCircle } from "react-icons/ai";
|
|
3
|
-
import { Box, Button, Text } from "@prismicio/editor-ui";
|
|
4
|
-
|
|
5
1
|
import { ChangesSectionHeader } from "@components/ChangesSectionHeader";
|
|
6
2
|
import { CustomTypeTable } from "@components/CustomTypeTable/changesPage";
|
|
7
3
|
import Grid from "@components/Grid";
|
|
8
|
-
import { ComponentUI } from "@lib/models/common/ComponentUI";
|
|
9
4
|
import ScreenshotChangesModal from "@components/ScreenshotChangesModal";
|
|
10
|
-
import {
|
|
11
|
-
import { useScreenshotChangesModal } from "@src/hooks/useScreenshotChangesModal";
|
|
12
|
-
import { ModelStatus } from "@lib/models/common/ModelStatus";
|
|
5
|
+
import { ComponentUI } from "@lib/models/common/ComponentUI";
|
|
13
6
|
import { LocalOrRemoteCustomType } from "@lib/models/common/ModelData";
|
|
7
|
+
import { ModelStatus } from "@lib/models/common/ModelStatus";
|
|
8
|
+
import { Box, Button, Text } from "@prismicio/editor-ui";
|
|
9
|
+
import { countMissingScreenshots } from "@src/domain/slice";
|
|
10
|
+
import { ErrorBoundary } from "@src/ErrorBoundary";
|
|
14
11
|
import { SharedSliceCard } from "@src/features/slices/sliceCards/SharedSliceCard";
|
|
15
|
-
import { AuthStatus } from "@src/modules/userContext/types";
|
|
16
12
|
import { ModelsStatuses } from "@src/features/sync/getUnSyncChanges";
|
|
17
|
-
import {
|
|
13
|
+
import { useScreenshotChangesModal } from "@src/hooks/useScreenshotChangesModal";
|
|
14
|
+
import { AuthStatus } from "@src/modules/userContext/types";
|
|
15
|
+
import React, { Suspense } from "react";
|
|
16
|
+
import { AiFillCamera, AiOutlineExclamationCircle } from "react-icons/ai";
|
|
18
17
|
|
|
19
18
|
import { DevCollaborationExperiment } from "./DevCollaborationExperiment";
|
|
20
19
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { useEffect, useState } from "react";
|
|
2
1
|
import {
|
|
3
2
|
Box,
|
|
4
3
|
Button,
|
|
@@ -8,9 +7,9 @@ import {
|
|
|
8
7
|
DialogHeader,
|
|
9
8
|
Text,
|
|
10
9
|
} from "@prismicio/editor-ui";
|
|
11
|
-
|
|
12
|
-
import { useExperimentVariant } from "@src/hooks/useExperimentVariant";
|
|
13
10
|
import { telemetry } from "@src/apiClient";
|
|
11
|
+
import { useExperimentVariant } from "@src/hooks/useExperimentVariant";
|
|
12
|
+
import { useEffect, useState } from "react";
|
|
14
13
|
|
|
15
14
|
type DevCollaborationExperimentPayload = {
|
|
16
15
|
cardButtonLabel: string;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { type ThemeUIStyleObject, Flex, useThemeUI } from "theme-ui";
|
|
3
|
-
import hljs from "highlight.js";
|
|
4
|
-
|
|
5
1
|
import { svelte } from "@lib/hljs/svelte";
|
|
2
|
+
import hljs from "highlight.js";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { Flex, type ThemeUIStyleObject, useThemeUI } from "theme-ui";
|
|
6
5
|
|
|
7
6
|
hljs.registerLanguage("svelte", svelte);
|
|
8
7
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import Link from "next/link";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { Box, Text } from "theme-ui";
|
|
4
1
|
import { CustomTypeSM } from "@lib/models/common/CustomType";
|
|
5
|
-
import { ModelStatus } from "@lib/models/common/ModelStatus";
|
|
6
2
|
import {
|
|
7
|
-
LocalOrRemoteCustomType,
|
|
8
3
|
hasLocal,
|
|
4
|
+
LocalOrRemoteCustomType,
|
|
9
5
|
} from "@lib/models/common/ModelData";
|
|
6
|
+
import { ModelStatus } from "@lib/models/common/ModelStatus";
|
|
10
7
|
import { StatusBadge } from "@src/features/changes/StatusBadge";
|
|
11
8
|
import { CUSTOM_TYPES_CONFIG } from "@src/features/customTypes/customTypesConfig";
|
|
12
|
-
import { AuthStatus } from "@src/modules/userContext/types";
|
|
13
9
|
import { ModelsStatuses } from "@src/features/sync/getUnSyncChanges";
|
|
10
|
+
import { AuthStatus } from "@src/modules/userContext/types";
|
|
11
|
+
import Link from "next/link";
|
|
12
|
+
import React from "react";
|
|
13
|
+
import { Box, Text } from "theme-ui";
|
|
14
14
|
|
|
15
15
|
interface CustomTypeTableProps {
|
|
16
16
|
customTypes: LocalOrRemoteCustomType[];
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import SliceMachineModal from "@components/SliceMachineModal";
|
|
2
|
-
import useSliceMachineActions from "@src/modules/useSliceMachineActions";
|
|
3
|
-
import { Close, Flex, Heading, Text, useThemeUI } from "theme-ui";
|
|
4
|
-
import Card from "@components/Card";
|
|
5
|
-
import { MdOutlineDelete } from "react-icons/md";
|
|
6
1
|
import { Button } from "@components/Button";
|
|
2
|
+
import Card from "@components/Card";
|
|
3
|
+
import SliceMachineModal from "@components/SliceMachineModal";
|
|
7
4
|
import { CustomType } from "@prismicio/types-internal/lib/customtypes";
|
|
8
5
|
import { CustomTypeFormat } from "@slicemachine/manager";
|
|
9
|
-
import { CUSTOM_TYPES_MESSAGES } from "@src/features/customTypes/customTypesMessages";
|
|
10
|
-
|
|
11
6
|
import { deleteCustomType } from "@src/features/customTypes/actions/deleteCustomType";
|
|
7
|
+
import { CUSTOM_TYPES_MESSAGES } from "@src/features/customTypes/customTypesMessages";
|
|
8
|
+
import useSliceMachineActions from "@src/modules/useSliceMachineActions";
|
|
12
9
|
import { useState } from "react";
|
|
10
|
+
import { MdOutlineDelete } from "react-icons/md";
|
|
11
|
+
import { Close, Flex, Heading, Text, useThemeUI } from "theme-ui";
|
|
13
12
|
|
|
14
13
|
type DeleteCTModalProps = {
|
|
15
14
|
customType: CustomType;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Flex, Text, Card, Link } from "theme-ui";
|
|
3
|
-
|
|
4
1
|
import { CustomTypeFormat } from "@slicemachine/manager";
|
|
5
2
|
import { CUSTOM_TYPES_CONFIG } from "@src/features/customTypes/customTypesConfig";
|
|
6
3
|
import { CUSTOM_TYPES_MESSAGES } from "@src/features/customTypes/customTypesMessages";
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { Card, Flex, Link, Text } from "theme-ui";
|
|
7
6
|
|
|
8
7
|
type AssociatedDocumentsCardProps = {
|
|
9
8
|
ctName: string;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
import { Text } from "theme-ui";
|
|
4
1
|
import { Button } from "@components/Button";
|
|
5
|
-
import { useSelector } from "react-redux";
|
|
6
|
-
import { SliceMachineStoreType } from "@src/redux/type";
|
|
7
|
-
import { selectAllCustomTypes } from "@src/modules/availableCustomTypes";
|
|
8
|
-
import { isRemoteOnly } from "@lib/models/common/ModelData";
|
|
9
|
-
import { getModelId } from "@lib/models/common/ModelData";
|
|
10
|
-
import { AssociatedDocumentsCard } from "./AssociatedDocumentsCard";
|
|
11
2
|
import { SliceMachineDrawerUI } from "@components/SliceMachineDrawer";
|
|
3
|
+
import { getModelId, isRemoteOnly } from "@lib/models/common/ModelData";
|
|
12
4
|
import { PushChangesLimit } from "@slicemachine/manager";
|
|
5
|
+
import { selectAllCustomTypes } from "@src/modules/availableCustomTypes";
|
|
6
|
+
import { SliceMachineStoreType } from "@src/redux/type";
|
|
7
|
+
import React from "react";
|
|
8
|
+
import { useSelector } from "react-redux";
|
|
9
|
+
import { Text } from "theme-ui";
|
|
10
|
+
|
|
11
|
+
import { AssociatedDocumentsCard } from "./AssociatedDocumentsCard";
|
|
13
12
|
|
|
14
13
|
export const HardDeleteDocumentsDrawer: React.FunctionComponent<{
|
|
15
14
|
pushChanges: (confirmDeleteDocuments: boolean) => void;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import React, { useState } from "react";
|
|
2
|
-
import { Flex, Text, Checkbox, ThemeUIStyleObject, Label } from "theme-ui";
|
|
3
1
|
import { Button } from "@components/Button";
|
|
4
|
-
import { useSelector } from "react-redux";
|
|
5
|
-
import { SliceMachineStoreType } from "@src/redux/type";
|
|
6
|
-
import { isRemoteOnly } from "@lib/models/common/ModelData";
|
|
7
|
-
import { selectAllCustomTypes } from "@src/modules/availableCustomTypes";
|
|
8
|
-
import { getModelId } from "@lib/models/common/ModelData";
|
|
9
|
-
import { AssociatedDocumentsCard } from "./AssociatedDocumentsCard";
|
|
10
2
|
import { SliceMachineDrawerUI } from "@components/SliceMachineDrawer";
|
|
3
|
+
import { getModelId, isRemoteOnly } from "@lib/models/common/ModelData";
|
|
11
4
|
import { PushChangesLimit } from "@slicemachine/manager";
|
|
5
|
+
import { selectAllCustomTypes } from "@src/modules/availableCustomTypes";
|
|
6
|
+
import { SliceMachineStoreType } from "@src/redux/type";
|
|
7
|
+
import React, { useState } from "react";
|
|
8
|
+
import { useSelector } from "react-redux";
|
|
9
|
+
import { Checkbox, Flex, Label, Text, ThemeUIStyleObject } from "theme-ui";
|
|
10
|
+
|
|
11
|
+
import { AssociatedDocumentsCard } from "./AssociatedDocumentsCard";
|
|
12
12
|
|
|
13
13
|
const ConfirmationDialogue: React.FC<{
|
|
14
14
|
isConfirmed: boolean;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { useState } from "react";
|
|
2
|
-
import { MdOutlineDelete } from "react-icons/md";
|
|
3
|
-
import { Close, Flex, Heading, Paragraph, Text, useThemeUI } from "theme-ui";
|
|
4
|
-
|
|
5
|
-
import SliceMachineModal from "@components/SliceMachineModal";
|
|
6
|
-
import useSliceMachineActions from "@src/modules/useSliceMachineActions";
|
|
7
|
-
import Card from "@components/Card";
|
|
8
1
|
import { Button } from "@components/Button";
|
|
2
|
+
import Card from "@components/Card";
|
|
3
|
+
import SliceMachineModal from "@components/SliceMachineModal";
|
|
9
4
|
import { deleteSlice } from "@src/features/slices/actions/deleteSlice";
|
|
10
5
|
import { useAutoSync } from "@src/features/sync/AutoSyncProvider";
|
|
6
|
+
import useSliceMachineActions from "@src/modules/useSliceMachineActions";
|
|
7
|
+
import { useState } from "react";
|
|
8
|
+
import { MdOutlineDelete } from "react-icons/md";
|
|
9
|
+
import { Close, Flex, Heading, Paragraph, Text, useThemeUI } from "theme-ui";
|
|
11
10
|
|
|
12
11
|
type DeleteSliceModalProps = {
|
|
13
12
|
isOpen: boolean;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { ComponentUI } from "@lib/models/common/ComponentUI";
|
|
2
|
+
import type { VariationSM } from "@lib/models/common/Slice";
|
|
1
3
|
import {
|
|
2
4
|
Box,
|
|
3
5
|
Dialog,
|
|
@@ -6,14 +8,11 @@ import {
|
|
|
6
8
|
DialogHeader,
|
|
7
9
|
Text,
|
|
8
10
|
} from "@prismicio/editor-ui";
|
|
9
|
-
import { useRouter } from "next/router";
|
|
10
|
-
import { useState, type FC, type PropsWithChildren } from "react";
|
|
11
|
-
|
|
12
|
-
import type { ComponentUI } from "@lib/models/common/ComponentUI";
|
|
13
|
-
import type { VariationSM } from "@lib/models/common/Slice";
|
|
14
11
|
import { deleteVariation } from "@src/features/slices/sliceBuilder/actions/deleteVariation";
|
|
15
|
-
import useSliceMachineActions from "@src/modules/useSliceMachineActions";
|
|
16
12
|
import { useSliceState } from "@src/features/slices/sliceBuilder/SliceBuilderProvider";
|
|
13
|
+
import useSliceMachineActions from "@src/modules/useSliceMachineActions";
|
|
14
|
+
import { useRouter } from "next/router";
|
|
15
|
+
import { type FC, type PropsWithChildren, useState } from "react";
|
|
17
16
|
|
|
18
17
|
type DeleteVariationModalProps = {
|
|
19
18
|
isOpen: boolean;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
|
+
import { RiArrowDropDownFill, RiArrowDropUpFill } from "react-icons/ri";
|
|
2
3
|
import { Popover } from "react-tiny-popover";
|
|
4
|
+
import { Box, Button, ThemeUICSSObject } from "theme-ui";
|
|
3
5
|
|
|
4
6
|
import MenuList from "./MenuList";
|
|
5
7
|
|
|
6
|
-
import { Button, Box, ThemeUICSSObject } from "theme-ui";
|
|
7
|
-
|
|
8
|
-
import { RiArrowDropDownFill, RiArrowDropUpFill } from "react-icons/ri";
|
|
9
|
-
|
|
10
8
|
type DropDownMenuProps = {
|
|
11
9
|
options: string[];
|
|
12
10
|
currentValue: string;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Button, Text, Heading, Box } from "theme-ui";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { Video } from "cloudinary-react";
|
|
4
|
-
|
|
5
1
|
import { telemetry } from "@src/apiClient";
|
|
2
|
+
import { Video } from "cloudinary-react";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { Box, Button, Heading, Text } from "theme-ui";
|
|
6
5
|
|
|
7
6
|
interface Props {
|
|
8
7
|
title: string;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { Fragment, useRef, useEffect, useState } from "react";
|
|
2
|
-
|
|
3
1
|
import { FieldArray } from "formik";
|
|
4
|
-
|
|
5
|
-
import {
|
|
2
|
+
import { Fragment, useEffect, useRef, useState } from "react";
|
|
3
|
+
import { Button, Flex, Input, Label, Text } from "theme-ui";
|
|
6
4
|
|
|
7
5
|
const FormFieldArray = ({
|
|
8
6
|
field,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InputType } from "@lib/forms/fields";
|
|
2
2
|
import { Field, FieldMetaProps } from "formik";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { Box,
|
|
4
|
+
import { Box, Input, Label, Text, ThemeUIStyleObject } from "theme-ui";
|
|
5
5
|
|
|
6
6
|
export enum InputFieldStyles {
|
|
7
7
|
ERROR,
|