slice-machine-ui 1.26.1-beta.11 → 1.26.1-beta.13
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/out/404.html +1 -1
- package/out/_next/static/chunks/127-5f39b7de8178c2e4.js +1 -0
- package/out/_next/static/chunks/{183-ebd633fed7c74545.js → 183-6ad5c4eb28d4b155.js} +1 -1
- package/out/_next/static/chunks/453-4e2d00a3515202f4.js +1 -0
- package/out/_next/static/chunks/46-bd45510ac2a839b5.js +10 -0
- package/out/_next/static/chunks/614-af117b661cd3429a.js +1 -0
- package/out/_next/static/chunks/90-2d4bdae13d031364.js +1 -0
- package/out/_next/static/chunks/91-aa2369249805fb5a.js +1 -0
- package/out/_next/static/chunks/96-24fed6adc069e313.js +1 -0
- package/out/_next/static/chunks/pages/{_app-6177e3581af44083.js → _app-2e45ed74db68cb0a.js} +3 -3
- package/out/_next/static/chunks/pages/changelog-ac1004bdd31d17f8.js +1 -0
- package/out/_next/static/chunks/pages/changes-5c4bd80747884a8c.js +1 -0
- package/out/_next/static/chunks/pages/custom-types/[customTypeId]-5b08515fec5e6668.js +1 -0
- package/out/_next/static/chunks/pages/{custom-types-3c8e721ec6802127.js → custom-types-75e8eddec659f440.js} +1 -1
- package/out/_next/static/chunks/pages/index-16754a04037cf9c1.js +1 -0
- package/out/_next/static/chunks/pages/labs-d6f2feb6720ee64c.js +1 -0
- package/out/_next/static/chunks/pages/page-types/[pageTypeId]-41fc6d4f726fdfb9.js +1 -0
- package/out/_next/static/chunks/pages/settings-7ad1540dc0af794d.js +1 -0
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-9941e7eeb9d4d084.js +1 -0
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-8c8d4de562fca8ac.js +1 -0
- package/out/_next/static/chunks/pages/slices-801310de228fd05e.js +1 -0
- package/out/_next/static/css/17da9daaa8986410.css +1 -0
- package/out/_next/static/css/{27f2b9b9c9f65885.css → 663a1bac4ce890da.css} +1 -1
- package/out/_next/static/css/c36992b18975f9b9.css +1 -0
- package/out/_next/static/css/{243a4d347efcfd53.css → df904982b9637c1a.css} +1 -1
- package/out/_next/static/umd9mjV29cCbZplewdOPw/_buildManifest.js +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 +6 -6
- package/sentry.client.config.ts +2 -1
- package/src/ErrorBoundary.tsx +2 -1
- package/src/apiClient.ts +12 -7
- package/src/components/Card/Card.stories.tsx +4 -3
- package/src/components/CodeBlock/CodeBlock.tsx +6 -5
- package/src/components/Count/Count.tsx +2 -1
- package/src/components/HoverCard/HoverCard.tsx +3 -2
- package/src/components/SideNav/SideNav.stories.tsx +3 -2
- package/src/components/SideNav/SideNav.tsx +3 -2
- package/src/components/SideNav/SideNavEnvironmentSelector.tsx +3 -2
- package/src/components/Table/Table.test.tsx +4 -3
- package/src/domain/__tests__/customType.test.ts +0 -184
- package/src/domain/__tests__/group.test.ts +161 -0
- package/src/domain/__tests__/slice.test.ts +3 -2
- package/src/domain/customType.ts +0 -191
- package/src/domain/group.ts +89 -0
- package/src/domain/slice.ts +29 -12
- package/src/features/autoSave/AutoSaveStatusIndicator.tsx +2 -1
- package/src/features/changelog/useSliceMachineLatestNonBreakingVersion.ts +2 -1
- package/src/features/changelog/useSliceMachineReleaseNotes.ts +2 -1
- package/src/features/changelog/useSliceMachineVersions.ts +2 -1
- package/src/features/changes/BlankSlates/NoChangesBlankSlate.tsx +9 -8
- package/src/features/changes/PushChangesButton.tsx +5 -4
- package/src/features/changes/StatusBadge.tsx +3 -2
- package/src/features/customTypes/EditDropdown.tsx +4 -3
- package/src/features/customTypes/PageTypeOnboarding.tsx +4 -3
- package/src/features/customTypes/__tests__/CustomTypeBuilderPage.test.tsx +5 -4
- package/src/features/customTypes/__tests__/CustomTypesTablePage.test.tsx +5 -4
- package/src/features/customTypes/actions/convertCustomToPageType.ts +3 -2
- package/src/features/customTypes/actions/createCustomType.ts +4 -3
- package/src/features/customTypes/actions/deleteCustomType.ts +2 -1
- package/src/features/customTypes/actions/renameCustomType.ts +2 -1
- package/src/features/customTypes/customTypesBuilder/CustomTypeProvider.tsx +6 -5
- package/src/features/customTypes/customTypesBuilder/CustomTypesBuilderPage.tsx +21 -17
- package/src/features/customTypes/customTypesBuilder/PageSnippetDialog/PageSnippetDialog.tsx +7 -6
- package/src/features/customTypes/customTypesBuilder/SliceZoneBlankSlate.tsx +4 -3
- package/src/features/customTypes/customTypesBuilder/useCustomType.ts +2 -1
- package/src/features/customTypes/customTypesConfig.ts +3 -2
- package/src/features/customTypes/customTypesTable/CustomTypesTable.tsx +8 -7
- package/src/features/customTypes/customTypesTable/CustomTypesTablePage.tsx +12 -11
- package/src/features/customTypes/customTypesTable/useCustomTypes.ts +6 -5
- package/src/features/documentation/MarkdownRenderer/index.tsx +4 -3
- package/src/features/documentation/useDocumentation.ts +2 -1
- package/src/features/environments/actions/getActiveEnvironment.ts +2 -1
- package/src/features/environments/actions/getEnvironments.ts +1 -1
- package/src/features/environments/actions/setEnvironment.ts +3 -2
- package/src/features/inAppGuide/InAppGuideContext.tsx +2 -1
- package/src/features/inAppGuide/InAppGuideDialog.tsx +4 -3
- package/src/features/inAppGuide/inAppGuideContent.tsx +2 -1
- package/src/features/labs/labsList/LabsPage.tsx +7 -6
- package/src/features/labs/labsList/useLab.tsx +2 -1
- package/src/features/settings/SettingsPage.tsx +9 -8
- package/src/features/settings/git/ConnectGitRepository.tsx +11 -10
- package/src/features/settings/git/GitOwnerSelect.tsx +2 -1
- package/src/features/settings/git/GitProvider.ts +5 -4
- package/src/features/settings/git/GitProviderConnectButtons.tsx +2 -1
- package/src/features/settings/git/GitRepositoriesList.tsx +6 -5
- package/src/features/settings/git/GitRepositoriesSearch.tsx +7 -6
- package/src/features/settings/git/GitRepositoryConnectDialog.tsx +4 -3
- package/src/features/settings/git/useGitIntegrationExperiment.ts +1 -1
- package/src/features/settings/git/useGitOwners.ts +2 -1
- package/src/features/settings/git/useGitRepos.ts +2 -1
- package/src/features/settings/git/useLinkedGitRepos.ts +3 -2
- package/src/features/settings/git/useWriteAPIToken.ts +3 -2
- package/src/features/slices/actions/addSlicesToSliceZone.ts +3 -2
- package/src/features/slices/actions/createSlice.ts +5 -4
- package/src/features/slices/actions/deleteSlice.ts +2 -1
- package/src/features/slices/actions/renameSlice.ts +5 -4
- package/src/features/slices/actions/uploadSliceScreenshot.ts +3 -2
- package/src/features/slices/convertLegacySlice/ConvertLegacySliceAsNewSliceDialog.tsx +5 -4
- package/src/features/slices/convertLegacySlice/ConvertLegacySliceAsNewVariationDialog.tsx +2 -1
- package/src/features/slices/convertLegacySlice/ConvertLegacySliceButton.tsx +10 -9
- package/src/features/slices/convertLegacySlice/types.ts +2 -2
- package/src/features/slices/sliceBuilder/FloatingBackButton.tsx +9 -8
- package/src/features/slices/sliceBuilder/SliceBuilderProvider.tsx +7 -6
- package/src/features/slices/sliceBuilder/actions/deleteVariation.ts +7 -6
- package/src/features/slices/sliceBuilder/actions/renameVariation.ts +5 -4
- package/src/features/slices/sliceBuilder/useGroupsInSlicesExperiment.ts +1 -1
- package/src/features/slices/sliceCards/NonSharedSliceCard.tsx +5 -4
- package/src/features/slices/sliceCards/SharedSliceCard.tsx +9 -8
- package/src/features/slicesTemplates/actions/createSlicesTemplates.ts +3 -2
- package/src/features/slicesTemplates/useSlicesTemplates.ts +2 -1
- package/src/features/sync/AutoSyncProvider.tsx +10 -9
- package/src/features/sync/actions/pushChanges.ts +4 -3
- package/src/features/sync/actions/trackPushChangesSuccess.ts +3 -3
- package/src/features/sync/components/AutoSyncStatusIndicator.tsx +4 -3
- package/src/features/sync/fetchUnSyncChanges.ts +4 -4
- package/src/features/sync/getUnSyncChanges.ts +5 -5
- package/src/features/sync/useUnSyncChanges.ts +5 -4
- package/src/hooks/useAdapterName.ts +2 -1
- package/src/hooks/useAuthStatus.ts +3 -2
- package/src/hooks/useCurrentSlice.tsx +5 -4
- package/src/hooks/useEditorContent.ts +4 -3
- package/src/hooks/useExperimentVariant.ts +2 -1
- package/src/hooks/useIsEmptyProject.ts +2 -1
- package/src/hooks/useRepositoryInformation.ts +3 -2
- package/src/hooks/useSMTracker.ts +5 -4
- package/src/hooks/useScreenshotChangesModal.ts +4 -3
- package/src/hooks/useServerState.ts +4 -3
- package/src/hooks/useSliceMachineConfig.ts +2 -1
- package/src/hooks/useSliceMachineRunningVersion.ts +2 -1
- package/src/hooks/useUpdateAvailable.ts +2 -1
- package/{components → src/legacy/components}/App/index.tsx +9 -8
- package/{components → src/legacy/components}/AppLayout/index.tsx +8 -7
- package/{components → src/legacy/components}/Changelog/index.tsx +5 -4
- package/{components → src/legacy/components}/Changelog/navigation/index.tsx +5 -4
- package/{components → src/legacy/components}/Changelog/versionDetails/UpdateCommandBox.tsx +5 -4
- package/{components → src/legacy/components}/Changelog/versionDetails/index.tsx +2 -1
- package/{components → src/legacy/components}/ChangesEmptyState/AuthErrorPage.tsx +3 -2
- package/{components → src/legacy/components}/ChangesItems/ChangesItems.tsx +14 -13
- package/{components → src/legacy/components}/ChangesItems/DevCollaborationExperiment.tsx +3 -2
- package/{components → src/legacy/components}/CodeBlock/index.tsx +2 -1
- package/{components → src/legacy/components}/ConfigErrors/index.jsx +3 -2
- package/{components → src/legacy/components}/CustomTypeTable/changesPage.tsx +11 -10
- package/{components → src/legacy/components}/DeleteCTModal/index.tsx +7 -6
- package/{components → src/legacy/components}/DeleteDocumentsDrawer/AssociatedDocumentsCard.tsx +3 -2
- package/{components → src/legacy/components}/DeleteDocumentsDrawer/HardDeleteDocumentsDrawer.tsx +6 -5
- package/{components → src/legacy/components}/DeleteDocumentsDrawer/SoftDeleteDocumentsDrawer.tsx +6 -5
- package/{components → src/legacy/components}/DeleteSliceModal/index.tsx +7 -6
- package/{components → src/legacy/components}/DeleteVariationModal/index.tsx +6 -5
- package/{components → src/legacy/components}/EmptyState/index.tsx +2 -1
- package/{components → src/legacy/components}/FormFields/Input.tsx +2 -1
- package/{components → src/legacy/components}/Forms/CreateCustomTypeModal/CreateCustomTypeModal.tsx +17 -16
- package/{components → src/legacy/components}/Forms/CreateSliceModal/CreateSliceModal.tsx +8 -7
- package/{components → src/legacy/components}/Forms/RenameCustomTypeModal/RenameCustomTypeModal.tsx +7 -6
- package/{components → src/legacy/components}/Forms/RenameSliceModal/RenameSliceModal.tsx +7 -6
- package/src/legacy/components/Forms/RenameVariationModal/RenameVariationModal.module.css.d.ts +5 -0
- package/{components → src/legacy/components}/Forms/RenameVariationModal/RenameVariationModal.tsx +6 -5
- package/{components → src/legacy/components}/Forms/components/SelectRepeatable.tsx +2 -1
- package/{components → src/legacy/components}/Forms/formsValidator.ts +4 -3
- package/{components → src/legacy/components}/ListItem/Header.tsx +2 -1
- package/{components → src/legacy/components}/ListItem/index.tsx +3 -2
- package/{components → src/legacy/components}/LoginModal/index.tsx +20 -19
- package/{components → src/legacy/components}/ModalFormCard/index.tsx +3 -2
- package/{components → src/legacy/components}/Navigation/ChangesItem.tsx +12 -11
- package/{components → src/legacy/components}/Navigation/Environment.tsx +13 -12
- package/{components → src/legacy/components}/Navigation/RunningVersion.tsx +3 -2
- package/{components → src/legacy/components}/Navigation/UpdateBox.tsx +3 -2
- package/src/legacy/components/Navigation/VideoItem.module.css.d.ts +5 -0
- package/{components → src/legacy/components}/Navigation/VideoItem.tsx +15 -14
- package/src/legacy/components/Navigation/index.module.css.d.ts +5 -0
- package/{components → src/legacy/components}/Navigation/index.test.tsx +7 -9
- package/{components → src/legacy/components}/Navigation/index.tsx +21 -20
- package/{components → src/legacy/components}/ReviewModal/ReviewForm.tsx +10 -9
- package/{components → src/legacy/components}/ReviewModal/ReviewModal.tsx +7 -6
- package/{components → src/legacy/components}/ScreenshotChangesModal/VariationDropZone.tsx +6 -5
- package/{components → src/legacy/components}/ScreenshotChangesModal/index.tsx +11 -10
- package/{components → src/legacy/components}/ScreenshotChangesModal/useCustomScreenshot.tsx +2 -1
- package/{components → src/legacy/components}/ScreenshotPreviewModal/index.tsx +8 -7
- package/{components → src/legacy/components}/Simulator/components/FailedConnect/index.tsx +2 -1
- package/{components → src/legacy/components}/Simulator/components/Header/VariationsPopover/MenuList.tsx +2 -1
- package/{components → src/legacy/components}/Simulator/components/Header/VariationsPopover/index.tsx +2 -1
- package/{components → src/legacy/components}/Simulator/components/Header/index.tsx +7 -6
- package/{components → src/legacy/components}/Simulator/components/IframeRenderer/index.tsx +3 -2
- package/{components → src/legacy/components}/Simulator/components/Toolbar/ScreensizeInput/index.tsx +2 -1
- package/{components → src/legacy/components}/Simulator/components/Toolbar/index.tsx +3 -2
- package/{components → src/legacy/components}/Simulator/index.tsx +12 -11
- package/{components → src/legacy/components}/SliceMachineDrawer/index.tsx +2 -1
- package/{components → src/legacy/components}/Tooltip/TextWithTooltip.tsx +2 -1
- package/{components → src/legacy/components}/Tooltip/index.jsx +2 -1
- package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/DeleteSliceZoneModal.tsx +4 -3
- package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/List.tsx +11 -10
- package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/SlicesTemplatesModal.tsx +10 -9
- package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/UpdateSliceZoneModal.tsx +3 -2
- package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/UpdateSliceZoneModalList.tsx +4 -3
- package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/index.tsx +23 -19
- package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/sliceTemplatesComingSoon.ts +1 -1
- package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/TabModal/create.tsx +2 -1
- package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/TabModal/delete.tsx +1 -1
- package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/TabModal/update.tsx +2 -1
- package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/TabZone/index.tsx +29 -28
- package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/index.tsx +7 -6
- package/{lib → src/legacy/lib}/builders/SliceBuilder/FieldZones/index.tsx +42 -49
- package/{lib → src/legacy/lib}/builders/SliceBuilder/Sidebar/AddVariationModal.tsx +4 -3
- package/{lib → src/legacy/lib}/builders/SliceBuilder/Sidebar/index.tsx +13 -12
- package/{lib → src/legacy/lib}/builders/SliceBuilder/SimulatorButton/index.tsx +15 -11
- package/{lib → src/legacy/lib}/builders/SliceBuilder/index.tsx +9 -8
- package/{lib → src/legacy/lib}/builders/common/EditModal/Field.jsx +2 -1
- package/{lib → src/legacy/lib}/builders/common/EditModal/index.jsx +12 -8
- package/{lib → src/legacy/lib}/builders/common/SelectFieldTypeModal/index.jsx +4 -3
- package/{lib → src/legacy/lib}/builders/common/Zone/Card/components/ErrorTooltip.tsx +2 -1
- package/{lib → src/legacy/lib}/builders/common/Zone/Card/components/Hints/CodeBlock.tsx +2 -1
- package/{lib → src/legacy/lib}/builders/common/Zone/Card/components/Hints/index.tsx +2 -1
- package/{lib → src/legacy/lib}/builders/common/Zone/Card/components/NewField.tsx +14 -10
- package/{lib → src/legacy/lib}/builders/common/Zone/Card/index.jsx +7 -3
- package/{lib → src/legacy/lib}/builders/common/Zone/index.jsx +7 -9
- package/{lib → src/legacy/lib}/builders/utils/index.ts +1 -1
- package/{lib → src/legacy/lib}/models/common/DeprecatedMockConfigMessage.tsx +2 -1
- package/{lib → src/legacy/lib}/models/common/ModelData.ts +3 -3
- package/{lib → src/legacy/lib}/models/common/ModelStatus/index.ts +2 -2
- package/{lib → src/legacy/lib}/models/common/Slice.ts +17 -3
- package/{lib → src/legacy/lib}/models/common/normalizers/customType.ts +2 -2
- package/{lib → src/legacy/lib}/models/common/normalizers/slices.ts +2 -2
- package/{lib → src/legacy/lib}/models/common/widgets/ContentRelationship/Form.tsx +6 -5
- package/{lib → src/legacy/lib}/models/common/widgets/ContentRelationship/index.ts +3 -2
- package/{lib → src/legacy/lib}/models/common/widgets/Group/Form.jsx +6 -5
- package/{lib → src/legacy/lib}/models/common/widgets/Group/ListItem/index.jsx +62 -67
- package/{lib → src/legacy/lib}/models/common/widgets/Group/index.ts +2 -1
- package/{lib → src/legacy/lib}/models/common/widgets/Image/Form.tsx +6 -5
- package/{lib → src/legacy/lib}/models/common/widgets/Image/components.tsx +5 -4
- package/{lib → src/legacy/lib}/models/common/widgets/Link/Form.jsx +5 -5
- package/{lib → src/legacy/lib}/models/common/widgets/LinkToMedia/Form.jsx +4 -4
- package/{lib → src/legacy/lib}/models/common/widgets/LinkToMedia/index.ts +2 -1
- package/{lib → src/legacy/lib}/models/common/widgets/Select/FormFields.jsx +6 -5
- package/{lib → src/legacy/lib}/models/common/widgets/StructuredText/Form.tsx +7 -6
- package/{lib → src/legacy/lib}/models/common/widgets/Widget.ts +2 -1
- package/src/legacy/lib/models/common/widgets/groupBuilderArray.ts +18 -0
- package/src/legacy/lib/models/common/widgets/sliceBuilderArray.ts +19 -0
- package/src/legacy/lib/models/common/widgets/withGroup.ts +2 -0
- package/{lib → src/legacy/lib}/models/server/ServerState.ts +2 -2
- package/{lib → src/legacy/lib}/utils/shared/customTypes.ts +1 -1
- package/src/modules/availableCustomTypes/index.ts +10 -9
- package/src/modules/availableCustomTypes/types.ts +2 -2
- package/src/modules/environment/index.ts +7 -6
- package/src/modules/environment/types.ts +1 -1
- package/src/modules/modal/index.ts +2 -1
- package/src/modules/slices/index.ts +12 -8
- package/src/modules/slices/selector.ts +1 -1
- package/src/modules/slices/types.ts +2 -2
- package/src/modules/useSliceMachineActions.ts +10 -6
- package/src/modules/userContext/index.ts +6 -5
- package/{pages → src/pages}/_app.tsx +22 -22
- package/{pages → src/pages}/changelog.tsx +2 -1
- package/{pages → src/pages}/changes.tsx +25 -21
- package/src/pages/custom-types/[customTypeId].tsx +1 -0
- package/{pages → src/pages}/custom-types.tsx +2 -1
- package/{pages → src/pages}/index.tsx +4 -3
- package/src/pages/labs.tsx +1 -0
- package/src/pages/page-types/[pageTypeId].tsx +1 -0
- package/src/pages/settings.tsx +1 -0
- package/{pages → src/pages}/slices/[lib]/[sliceName]/[variation]/index.tsx +4 -3
- package/{pages → src/pages}/slices/[lib]/[sliceName]/[variation]/simulator.tsx +3 -2
- package/{pages → src/pages}/slices.tsx +24 -23
- package/src/redux/reducer.ts +7 -6
- package/src/redux/store.ts +2 -1
- package/src/redux/type.ts +7 -6
- package/src/utils/getContentTypeForTracking.ts +21 -0
- package/test/__setup__.ts +10 -8
- package/test/__testutils__/createTestPlugin.ts +3 -2
- package/test/__testutils__/createTestProject.ts +5 -4
- package/test/__testutils__/index.tsx +6 -5
- package/test/__testutils__/mockAWSACLAPI.ts +1 -1
- package/test/__testutils__/mockCustomTypesAPI.ts +1 -1
- package/test/__testutils__/mockPrismicAuthAPI.ts +1 -1
- package/test/__testutils__/mockPrismicUserAPI.ts +2 -3
- package/test/__testutils__/readMSWFormData.ts +1 -1
- package/test/components/IframeRenderer.test.ts +3 -2
- package/test/lib/builders/EditModal.test.tsx +5 -3
- package/test/lib/builders/buildersUtils.test.ts +3 -3
- package/test/lib/consts.test.ts +6 -2
- package/test/lib/models/common/CustomType.test.ts +6 -2
- package/test/lib/models/common/ModelStatus.test.ts +6 -4
- package/test/lib/models/common/Slice.test.ts +3 -2
- package/test/lib/models/common/widgets/index.test.ts +8 -4
- package/test/lib/utils/index.test.ts +3 -2
- package/test/lib/utils/preferWroomBase.test.ts +3 -2
- package/test/lib/utils/shared/customTypes.test.ts +2 -1
- package/test/pages/slices.test.tsx +10 -10
- package/test/src/modules/__fixtures__/serverState.ts +1 -1
- package/test/src/modules/__fixtures__/sliceUtilsFactory.ts +3 -3
- package/test/src/modules/availableCustomTypes/index.test.ts +3 -3
- package/test/src/modules/environment.test.ts +3 -5
- package/test/src/modules/loading.test.ts +3 -3
- package/test/src/modules/modal.test.ts +5 -5
- package/test/src/modules/slices.test.ts +3 -2
- package/test/src/modules/userContext.test.ts +3 -3
- package/test/src/normalizers/customType.test.ts +16 -3
- package/test/src/utils/fieldNameCreator.test.ts +1 -1
- package/tsconfig.json +1 -6
- package/vite.config.ts +1 -7
- package/lib/models/common/widgets/sliceBuilderArray.ts +0 -31
- package/lib/models/common/widgets/withGroup.ts +0 -19
- package/out/_next/static/6WrgMw0SELcypoJCYNiKd/_buildManifest.js +0 -1
- package/out/_next/static/chunks/25-607d5cfe6492f4e8.js +0 -1
- package/out/_next/static/chunks/286-6ee80333008646b9.js +0 -1
- package/out/_next/static/chunks/318-c84322cba57be932.js +0 -1
- package/out/_next/static/chunks/382-8194eab141c7ea2f.js +0 -1
- package/out/_next/static/chunks/46-d22d7a121254e31d.js +0 -8
- package/out/_next/static/chunks/727-b53258380c1a11f1.js +0 -1
- package/out/_next/static/chunks/799-68887319f3169f78.js +0 -1
- package/out/_next/static/chunks/pages/changelog-2d061c06b2b82e28.js +0 -1
- package/out/_next/static/chunks/pages/changes-cde59d56dc849106.js +0 -1
- package/out/_next/static/chunks/pages/custom-types/[customTypeId]-89ccb93ce7409ad0.js +0 -1
- package/out/_next/static/chunks/pages/index-b5817351a77c6d40.js +0 -1
- package/out/_next/static/chunks/pages/labs-0fc7d01b8c9bfc2a.js +0 -1
- package/out/_next/static/chunks/pages/page-types/[pageTypeId]-dbf86fe3a94dc892.js +0 -1
- package/out/_next/static/chunks/pages/settings-897ad13a08f73048.js +0 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-ed3157875529f0f2.js +0 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-69cf4b12bb354f9f.js +0 -1
- package/out/_next/static/chunks/pages/slices-391f6c4b30af0759.js +0 -1
- package/out/_next/static/css/0e0d6c4ec6bf7373.css +0 -1
- package/out/_next/static/css/f8eb526e10bc2441.css +0 -1
- package/pages/custom-types/[customTypeId].tsx +0 -1
- package/pages/labs.tsx +0 -1
- package/pages/page-types/[pageTypeId].tsx +0 -1
- package/pages/settings.tsx +0 -1
- /package/out/_next/static/{6WrgMw0SELcypoJCYNiKd → umd9mjV29cCbZplewdOPw}/_ssgManifest.js +0 -0
- /package/{components → src/legacy/components}/AuthInstructions/index.jsx +0 -0
- /package/{components → src/legacy/components}/Button/index.tsx +0 -0
- /package/{components → src/legacy/components}/Card/CardBox.tsx +0 -0
- /package/{components → src/legacy/components}/Card/Default.jsx +0 -0
- /package/{components → src/legacy/components}/Card/Preview.jsx +0 -0
- /package/{components → src/legacy/components}/Card/WithTabs/components.jsx +0 -0
- /package/{components → src/legacy/components}/Card/WithTabs/index.jsx +0 -0
- /package/{components → src/legacy/components}/Card/index.tsx +0 -0
- /package/{components → src/legacy/components}/Changelog/navigation/VersionBadge.tsx +0 -0
- /package/{components → src/legacy/components}/Changelog/navigation/VersionTag.tsx +0 -0
- /package/{components → src/legacy/components}/Changelog/versionDetails/ReleaseNotesDetails.tsx +0 -0
- /package/{components → src/legacy/components}/Changelog/versionDetails/VersionKindLabel.tsx +0 -0
- /package/{components → src/legacy/components}/ChangesEmptyState/OfflinePage.tsx +0 -0
- /package/{components → src/legacy/components}/ChangesEmptyState/index.ts +0 -0
- /package/{components → src/legacy/components}/ChangesItems/ErrorBanner.tsx +0 -0
- /package/{components → src/legacy/components}/ChangesItems/index.ts +0 -0
- /package/{components → src/legacy/components}/ChangesSectionHeader/ChangesSectionHeader.tsx +0 -0
- /package/{components → src/legacy/components}/ChangesSectionHeader/index.ts +0 -0
- /package/{components → src/legacy/components}/DeleteDocumentsDrawer/index.tsx +0 -0
- /package/{components → src/legacy/components}/DropDownSelector/MenuList.tsx +0 -0
- /package/{components → src/legacy/components}/DropDownSelector/index.tsx +0 -0
- /package/{components → src/legacy/components}/Flex/index.tsx +0 -0
- /package/{components → src/legacy/components}/FormFields/Array.jsx +0 -0
- /package/{components → src/legacy/components}/FormFields/Checkbox.jsx +0 -0
- /package/{components → src/legacy/components}/FormFields/CheckboxControl.jsx +0 -0
- /package/{components → src/legacy/components}/FormFields/SelectDefaultValue.jsx +0 -0
- /package/{components → src/legacy/components}/FormFields/index.ts +0 -0
- /package/{components → src/legacy/components}/Forms/CreateCustomTypeModal/index.tsx +0 -0
- /package/{components → src/legacy/components}/Forms/CreateSliceModal/index.tsx +0 -0
- /package/{components → src/legacy/components}/Forms/RenameCustomTypeModal/index.ts +0 -0
- /package/{components → src/legacy/components}/Forms/RenameSliceModal/index.ts +0 -0
- /package/{components → src/legacy/components}/Forms/RenameVariationModal/RenameVariationModal.module.css +0 -0
- /package/{components → src/legacy/components}/Forms/RenameVariationModal/index.ts +0 -0
- /package/{components → src/legacy/components}/Forms/components/FlexCard.tsx +0 -0
- /package/{components → src/legacy/components}/Forms/components/InputBox.tsx +0 -0
- /package/{components → src/legacy/components}/Forms/formsTypes.ts +0 -0
- /package/{components → src/legacy/components}/FullPage/index.tsx +0 -0
- /package/{components → src/legacy/components}/Grid/index.tsx +0 -0
- /package/{components → src/legacy/components}/InputDeleteIcon/index.jsx +0 -0
- /package/{components → src/legacy/components}/ItemHeader/index.tsx +0 -0
- /package/{components → src/legacy/components}/Li/index.tsx +0 -0
- /package/{components → src/legacy/components}/ListItem/utils.js +0 -0
- /package/{components → src/legacy/components}/LoadingPage/index.tsx +0 -0
- /package/{components → src/legacy/components}/MissingLibraries/index.tsx +0 -0
- /package/{components → src/legacy/components}/Navigation/VideoItem.module.css +0 -0
- /package/{components → src/legacy/components}/Navigation/index.module.css +0 -0
- /package/{components → src/legacy/components}/ReactTooltipPortal/index.tsx +0 -0
- /package/{components → src/legacy/components}/ReviewModal/ReviewFormSelect.tsx +0 -0
- /package/{components → src/legacy/components}/ReviewModal/index.ts +0 -0
- /package/{components → src/legacy/components}/ScreenshotPreview/index.tsx +0 -0
- /package/{components → src/legacy/components}/Simulator/components/FullPage/index.tsx +0 -0
- /package/{components → src/legacy/components}/Simulator/components/Header/links.ts +0 -0
- /package/{components → src/legacy/components}/SliceMachineIconButton/index.tsx +0 -0
- /package/{components → src/legacy/components}/SliceMachineModal/index.tsx +0 -0
- /package/{components → src/legacy/components}/ToasterContainer/index.tsx +0 -0
- /package/{components → src/legacy/components}/Warnings/index.jsx +0 -0
- /package/{components → src/legacy/components}/WindowPortal/index.js +0 -0
- /package/{components → src/legacy/components}/YoutubeEmbed/index.tsx +0 -0
- /package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/TabModal/InputBox.tsx +0 -0
- /package/{lib → src/legacy/lib}/builders/common/EditModal/Form.jsx +0 -0
- /package/{lib → src/legacy/lib}/builders/common/SelectFieldTypeModal/FieldTypeCard.jsx +0 -0
- /package/{lib → src/legacy/lib}/builders/common/Zone/Card/components/EditItem.jsx +0 -0
- /package/{lib → src/legacy/lib}/builders/common/Zone/components/EmptyState/index.tsx +0 -0
- /package/{lib → src/legacy/lib}/consts.ts +0 -0
- /package/{lib → src/legacy/lib}/env/sentry.ts +0 -0
- /package/{lib → src/legacy/lib}/forms/defaults.ts +0 -0
- /package/{lib → src/legacy/lib}/forms/fields.ts +0 -0
- /package/{lib → src/legacy/lib}/forms/index.ts +0 -0
- /package/{lib → src/legacy/lib}/forms/types.ts +0 -0
- /package/{lib → src/legacy/lib}/hljs/svelte.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/Auth.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/ComponentUI.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/CustomType/index.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/CustomType/sliceZone.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/CustomType/tab.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/Environment.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/ErrorWithStatus.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/Fields.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/Group.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/Library.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/LibraryUI.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/Manifest.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/ModelStatus/compareCustomTypeModels.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/ModelStatus/compareSliceModels.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/PrismicData.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/PrismicFile.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/Screenshots.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/Simulator.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/Slices.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/UserProfile.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/Warning.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/widgets/Boolean/index.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/widgets/Color/index.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/widgets/Date/index.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/widgets/Embed/index.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/widgets/GeoPoint/index.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/widgets/Image/index.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/widgets/Link/index.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/widgets/Number/index.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/widgets/Select/index.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/widgets/StructuredText/index.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/widgets/StructuredText/options.tsx +0 -0
- /package/{lib → src/legacy/lib}/models/common/widgets/Text/index.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/widgets/Timestamp/index.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/widgets/UID/index.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/widgets/ctBuilderArray.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/widgets/index.ts +0 -0
- /package/{lib → src/legacy/lib}/prismic/endpoints.ts +0 -0
- /package/{lib → src/legacy/lib}/utils/index.ts +0 -0
- /package/{lib → src/legacy/lib}/utils/poll.ts +0 -0
- /package/{lib → src/legacy/lib}/utils/preferWroomBase.ts +0 -0
- /package/{lib → src/legacy/lib}/utils/repo.ts +0 -0
- /package/{lib → src/legacy/lib}/utils/str.ts +0 -0
- /package/{pages → src/pages}/api/embed.js +0 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { Col, Flex as FlexGrid } from "@components/Flex";
|
|
2
|
-
import WidgetFormField from "@lib/builders/common/EditModal/Field";
|
|
3
|
-
import { createFieldNameFromKey } from "@lib/forms";
|
|
4
|
-
import { DefaultFields } from "@lib/forms/defaults";
|
|
5
|
-
import { CheckBox } from "@lib/forms/fields";
|
|
6
1
|
import { Box, Checkbox, Label } from "theme-ui";
|
|
7
2
|
|
|
3
|
+
import { Col, Flex as FlexGrid } from "@/legacy/components/Flex";
|
|
4
|
+
import WidgetFormField from "@/legacy/lib/builders/common/EditModal/Field";
|
|
5
|
+
import { createFieldNameFromKey } from "@/legacy/lib/forms";
|
|
6
|
+
import { DefaultFields } from "@/legacy/lib/forms/defaults";
|
|
7
|
+
import { CheckBox } from "@/legacy/lib/forms/fields";
|
|
8
|
+
|
|
8
9
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
9
10
|
const FormFields = {
|
|
10
11
|
...DefaultFields,
|
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import { findWidgetByConfigOrType } from "@builders/utils";
|
|
2
|
-
import ListItem from "@components/ListItem";
|
|
3
|
-
import EditModal from "@lib/builders/common/EditModal";
|
|
4
|
-
import SelectFieldTypeModal from "@lib/builders/common/SelectFieldTypeModal";
|
|
5
|
-
import Hint from "@lib/builders/common/Zone/Card/components/Hints";
|
|
6
|
-
import NewField from "@lib/builders/common/Zone/Card/components/NewField";
|
|
7
|
-
import { TabFieldsModel } from "@lib/models/common/CustomType";
|
|
8
|
-
import * as Widgets from "@lib/models/common/widgets";
|
|
9
|
-
import sliceBuilderArray from "@lib/models/common/widgets/sliceBuilderArray";
|
|
10
|
-
import { ensureDnDDestination, ensureWidgetTypeExistence } from "@lib/utils";
|
|
11
|
-
import { telemetry } from "@src/apiClient";
|
|
12
|
-
import {
|
|
13
|
-
addGroupField,
|
|
14
|
-
deleteGroupField,
|
|
15
|
-
reorderGroupField,
|
|
16
|
-
updateGroupField,
|
|
17
|
-
} from "@src/domain/customType";
|
|
18
|
-
import { useCustomTypeState } from "@src/features/customTypes/customTypesBuilder/CustomTypeProvider";
|
|
19
|
-
import { transformKeyAccessor } from "@utils/str";
|
|
20
1
|
import { Fragment, useState } from "react";
|
|
21
2
|
import { DragDropContext, Droppable } from "react-beautiful-dnd";
|
|
22
3
|
import { flushSync } from "react-dom";
|
|
23
4
|
import { Box, Button } from "theme-ui";
|
|
24
5
|
|
|
6
|
+
import { telemetry } from "@/apiClient";
|
|
7
|
+
import {
|
|
8
|
+
addFieldToGroup,
|
|
9
|
+
deleteFieldFromGroup,
|
|
10
|
+
reorderFieldInGroup,
|
|
11
|
+
updateFieldInGroup,
|
|
12
|
+
} from "@/domain/group";
|
|
13
|
+
import ListItem from "@/legacy/components/ListItem";
|
|
14
|
+
import EditModal from "@/legacy/lib/builders/common/EditModal";
|
|
15
|
+
import SelectFieldTypeModal from "@/legacy/lib/builders/common/SelectFieldTypeModal";
|
|
16
|
+
import Hint from "@/legacy/lib/builders/common/Zone/Card/components/Hints";
|
|
17
|
+
import NewField from "@/legacy/lib/builders/common/Zone/Card/components/NewField";
|
|
18
|
+
import { findWidgetByConfigOrType } from "@/legacy/lib/builders/utils";
|
|
19
|
+
import { Groups } from "@/legacy/lib/models/common/Group";
|
|
20
|
+
import * as Widgets from "@/legacy/lib/models/common/widgets";
|
|
21
|
+
import groupBuilderWidgetsArray from "@/legacy/lib/models/common/widgets/groupBuilderArray";
|
|
22
|
+
import { ensureDnDDestination } from "@/legacy/lib/utils";
|
|
23
|
+
import { transformKeyAccessor } from "@/legacy/lib/utils/str";
|
|
24
|
+
import { getContentTypeForTracking } from "@/utils/getContentTypeForTracking";
|
|
25
|
+
|
|
25
26
|
/* eslint-disable */
|
|
26
27
|
const CustomListItem = ({
|
|
27
28
|
tabId,
|
|
@@ -32,14 +33,12 @@ const CustomListItem = ({
|
|
|
32
33
|
isRepeatable,
|
|
33
34
|
item: groupItem,
|
|
34
35
|
draggableId,
|
|
35
|
-
|
|
36
|
-
renderFieldAccessor,
|
|
36
|
+
saveItem,
|
|
37
37
|
...rest
|
|
38
38
|
}) => {
|
|
39
39
|
const [selectMode, setSelectMode] = useState(false);
|
|
40
40
|
const [newFieldData, setNewFieldData] = useState(null);
|
|
41
41
|
const [editModalData, setEditModalData] = useState({ isOpen: false });
|
|
42
|
-
const { customType, setCustomType } = useCustomTypeState();
|
|
43
42
|
|
|
44
43
|
const onSelectFieldType = (widgetTypeName) => {
|
|
45
44
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
@@ -56,54 +55,47 @@ const CustomListItem = ({
|
|
|
56
55
|
};
|
|
57
56
|
|
|
58
57
|
const onSaveNewField = ({ id, label, widgetTypeName }) => {
|
|
59
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
|
|
60
58
|
const widget = Widgets[widgetTypeName];
|
|
59
|
+
const newField = widget.create(label);
|
|
61
60
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
const newCustomType = addGroupField({
|
|
67
|
-
customType,
|
|
68
|
-
sectionId: tabId,
|
|
69
|
-
groupFieldId: groupItem.key,
|
|
70
|
-
newField,
|
|
71
|
-
newFieldId: id,
|
|
61
|
+
const newGroupValue = addFieldToGroup({
|
|
62
|
+
group: Groups.fromSM(groupItem.value),
|
|
63
|
+
fieldId: id,
|
|
64
|
+
field: newField,
|
|
72
65
|
});
|
|
73
66
|
|
|
74
|
-
|
|
67
|
+
saveItem({
|
|
68
|
+
apiId: groupItem.key,
|
|
69
|
+
newKey: groupItem.key,
|
|
70
|
+
value: Groups.toSM(newGroupValue),
|
|
71
|
+
});
|
|
75
72
|
|
|
76
73
|
void telemetry.track({
|
|
77
74
|
event: "field:added",
|
|
78
75
|
id,
|
|
79
76
|
name: label,
|
|
80
|
-
type:
|
|
77
|
+
type: newField.type,
|
|
81
78
|
isInAGroup: true,
|
|
82
|
-
contentType:
|
|
79
|
+
contentType: getContentTypeForTracking(window.location.pathname),
|
|
83
80
|
});
|
|
84
81
|
};
|
|
85
82
|
|
|
86
83
|
const onSaveField = ({ apiId: previousKey, newKey, value }) => {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
const newField = TabFieldsModel.fromSM(value);
|
|
93
|
-
const newCustomType = updateGroupField({
|
|
94
|
-
customType,
|
|
95
|
-
sectionId: tabId,
|
|
96
|
-
groupFieldId: groupItem.key,
|
|
84
|
+
const newGroupValue = updateFieldInGroup({
|
|
85
|
+
group: Groups.fromSM(groupItem.value),
|
|
97
86
|
previousFieldId: previousKey,
|
|
98
87
|
newFieldId: newKey,
|
|
99
|
-
|
|
88
|
+
field: value,
|
|
100
89
|
});
|
|
101
90
|
|
|
102
|
-
|
|
91
|
+
saveItem({
|
|
92
|
+
apiId: groupItem.key,
|
|
93
|
+
newKey: groupItem.key,
|
|
94
|
+
value: Groups.toSM(newGroupValue),
|
|
95
|
+
});
|
|
103
96
|
};
|
|
104
97
|
|
|
105
98
|
const onDragEnd = (result) => {
|
|
106
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
107
99
|
if (ensureDnDDestination(result)) {
|
|
108
100
|
return;
|
|
109
101
|
}
|
|
@@ -116,10 +108,8 @@ const CustomListItem = ({
|
|
|
116
108
|
const { index: sourceIndex } = source;
|
|
117
109
|
const { index: destinationIndex } = destination;
|
|
118
110
|
|
|
119
|
-
const
|
|
120
|
-
|
|
121
|
-
sectionId: tabId,
|
|
122
|
-
groupFieldId: groupItem.key,
|
|
111
|
+
const newGroupValue = reorderFieldInGroup({
|
|
112
|
+
group: Groups.fromSM(groupItem.value),
|
|
123
113
|
sourceIndex,
|
|
124
114
|
destinationIndex,
|
|
125
115
|
});
|
|
@@ -127,18 +117,26 @@ const CustomListItem = ({
|
|
|
127
117
|
// When removing redux and replacing it by a simple useState, react-beautiful-dnd (that is deprecated library) was making the fields flickering on reorder.
|
|
128
118
|
// The problem seems to come from the react non-synchronous way to handle our state update that didn't work well with the library.
|
|
129
119
|
// It's a hack and since it's used on an old pure JavaScript code with a deprecated library it will be removed when updating the UI of the fields.
|
|
130
|
-
flushSync(() =>
|
|
120
|
+
flushSync(() => {
|
|
121
|
+
saveItem({
|
|
122
|
+
apiId: groupItem.key,
|
|
123
|
+
newKey: groupItem.key,
|
|
124
|
+
value: Groups.toSM(newGroupValue),
|
|
125
|
+
});
|
|
126
|
+
});
|
|
131
127
|
};
|
|
132
128
|
|
|
133
129
|
const onDeleteItem = (key) => {
|
|
134
|
-
const
|
|
135
|
-
|
|
136
|
-
sectionId: tabId,
|
|
137
|
-
groupFieldId: groupItem.key,
|
|
130
|
+
const newGroupValue = deleteFieldFromGroup({
|
|
131
|
+
group: Groups.fromSM(groupItem.value),
|
|
138
132
|
fieldId: key,
|
|
139
133
|
});
|
|
140
134
|
|
|
141
|
-
|
|
135
|
+
saveItem({
|
|
136
|
+
apiId: groupItem.key,
|
|
137
|
+
newKey: groupItem.key,
|
|
138
|
+
value: Groups.toSM(newGroupValue),
|
|
139
|
+
});
|
|
142
140
|
};
|
|
143
141
|
|
|
144
142
|
/** @param {[string, import("@prismicio/types-internal/lib/customtypes").NestableWidget]} field */
|
|
@@ -153,9 +151,10 @@ const CustomListItem = ({
|
|
|
153
151
|
name: model.config.label,
|
|
154
152
|
type: model.type,
|
|
155
153
|
isInAGroup: true,
|
|
156
|
-
contentType:
|
|
154
|
+
contentType: getContentTypeForTracking(window.location.pathname),
|
|
157
155
|
});
|
|
158
156
|
};
|
|
157
|
+
|
|
159
158
|
return (
|
|
160
159
|
<Fragment>
|
|
161
160
|
<ListItem
|
|
@@ -166,7 +165,6 @@ const CustomListItem = ({
|
|
|
166
165
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-assignment
|
|
167
166
|
draggableId={draggableId}
|
|
168
167
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unused-vars, @typescript-eslint/restrict-template-expressions, @typescript-eslint/no-unsafe-member-access
|
|
169
|
-
renderFieldAccessor={(key) => `data.${groupItem.key}.[...]`}
|
|
170
168
|
{...rest}
|
|
171
169
|
CustomEditElements={[
|
|
172
170
|
<Button
|
|
@@ -216,8 +214,7 @@ const CustomListItem = ({
|
|
|
216
214
|
enterEditMode,
|
|
217
215
|
deleteItem: onDeleteItem,
|
|
218
216
|
renderFieldAccessor: (key) =>
|
|
219
|
-
|
|
220
|
-
`data.${groupItem.key}.${key}`,
|
|
217
|
+
`item${transformKeyAccessor(item.key)}`,
|
|
221
218
|
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/restrict-template-expressions, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/restrict-template-expressions
|
|
222
219
|
draggableId: `group-${groupItem.key}-${item.key}-${index}`,
|
|
223
220
|
testId: `list-item-group-${groupItem.key}-${item.key}`,
|
|
@@ -233,9 +230,7 @@ const CustomListItem = ({
|
|
|
233
230
|
isRepeatable={isRepeatable}
|
|
234
231
|
renderHintBase={({ item }) =>
|
|
235
232
|
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions, @typescript-eslint/no-unsafe-member-access
|
|
236
|
-
`
|
|
237
|
-
item.key,
|
|
238
|
-
)}`
|
|
233
|
+
`item${transformKeyAccessor(item.key)}`
|
|
239
234
|
}
|
|
240
235
|
Widgets={Widgets}
|
|
241
236
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
@@ -273,7 +268,7 @@ const CustomListItem = ({
|
|
|
273
268
|
data={{ isOpen: selectMode }}
|
|
274
269
|
close={() => setSelectMode(false)}
|
|
275
270
|
onSelect={onSelectFieldType}
|
|
276
|
-
widgetsArray={
|
|
271
|
+
widgetsArray={groupBuilderWidgetsArray}
|
|
277
272
|
/>
|
|
278
273
|
<EditModal
|
|
279
274
|
data={editModalData}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { GroupSM } from "@lib/models/common/Group";
|
|
2
1
|
import { MdPlaylistAdd } from "react-icons/md";
|
|
3
2
|
import * as yup from "yup";
|
|
4
3
|
|
|
4
|
+
import { GroupSM } from "@/legacy/lib/models/common/Group";
|
|
5
|
+
|
|
5
6
|
import { Widget } from "../Widget";
|
|
6
7
|
import Form, { FormFields } from "./Form";
|
|
7
8
|
import CustomListItem from "./ListItem";
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { Col, Flex as FlexGrid } from "@components/Flex";
|
|
2
|
-
import WidgetFormField from "@lib/builders/common/EditModal/Field";
|
|
3
|
-
import { createFieldNameFromKey } from "@lib/forms";
|
|
4
|
-
import { DefaultFields } from "@lib/forms/defaults";
|
|
5
|
-
import { TabFields } from "@lib/models/common/CustomType";
|
|
6
1
|
import { FieldArray } from "formik";
|
|
7
2
|
import { Fragment, useEffect, useState } from "react";
|
|
8
3
|
import { Card, Flex, Label } from "theme-ui";
|
|
9
4
|
import * as yup from "yup";
|
|
10
5
|
|
|
6
|
+
import { Col, Flex as FlexGrid } from "@/legacy/components/Flex";
|
|
7
|
+
import WidgetFormField from "@/legacy/lib/builders/common/EditModal/Field";
|
|
8
|
+
import { createFieldNameFromKey } from "@/legacy/lib/forms";
|
|
9
|
+
import { DefaultFields } from "@/legacy/lib/forms/defaults";
|
|
10
|
+
import { TabFields } from "@/legacy/lib/models/common/CustomType";
|
|
11
|
+
|
|
11
12
|
import {
|
|
12
13
|
AddThumbnailButton,
|
|
13
14
|
ConstraintForm,
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { FormFieldInput } from "@components/FormFields";
|
|
2
|
-
import SliceMachineIconButton, {
|
|
3
|
-
SliceMachineIconButtonProps,
|
|
4
|
-
} from "@components/SliceMachineIconButton";
|
|
5
1
|
import { FieldMetaProps, useField } from "formik";
|
|
6
2
|
import React, { Fragment } from "react";
|
|
7
3
|
import { BsFillPlusSquareFill, BsImage } from "react-icons/bs";
|
|
8
4
|
import { MdCancel } from "react-icons/md";
|
|
9
5
|
import { Badge, Flex, Text, ThemeUIStyleObject } from "theme-ui";
|
|
10
6
|
|
|
7
|
+
import { FormFieldInput } from "@/legacy/components/FormFields";
|
|
8
|
+
import SliceMachineIconButton, {
|
|
9
|
+
SliceMachineIconButtonProps,
|
|
10
|
+
} from "@/legacy/components/SliceMachineIconButton";
|
|
11
|
+
|
|
11
12
|
type ThumbnailButtonProps = Pick<
|
|
12
13
|
SliceMachineIconButtonProps,
|
|
13
14
|
"onClick" | "error" | "active" | "sx"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Col, Flex as FlexGrid } from "
|
|
2
|
-
import WidgetFormField from "
|
|
3
|
-
import { createFieldNameFromKey } from "
|
|
4
|
-
import { DefaultFields } from "
|
|
5
|
-
import { CheckBox } from "
|
|
1
|
+
import { Col, Flex as FlexGrid } from "@/legacy/components/Flex";
|
|
2
|
+
import WidgetFormField from "@/legacy/lib/builders/common/EditModal/Field";
|
|
3
|
+
import { createFieldNameFromKey } from "@/legacy/lib/forms";
|
|
4
|
+
import { DefaultFields } from "@/legacy/lib/forms/defaults";
|
|
5
|
+
import { CheckBox } from "@/legacy/lib/forms/fields";
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
8
8
|
const FormFields = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Col, Flex as FlexGrid } from "
|
|
2
|
-
import WidgetFormField from "
|
|
3
|
-
import { createFieldNameFromKey } from "
|
|
4
|
-
import { DefaultFields } from "
|
|
1
|
+
import { Col, Flex as FlexGrid } from "@/legacy/components/Flex";
|
|
2
|
+
import WidgetFormField from "@/legacy/lib/builders/common/EditModal/Field";
|
|
3
|
+
import { createFieldNameFromKey } from "@/legacy/lib/forms";
|
|
4
|
+
import { DefaultFields } from "@/legacy/lib/forms/defaults";
|
|
5
5
|
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
7
7
|
const FormFields = {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { linkConfigSchema } from "@lib/models/common/widgets/Link";
|
|
2
1
|
import { Link } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
|
|
3
2
|
import { MdAttachment } from "react-icons/md";
|
|
4
3
|
import * as yup from "yup";
|
|
5
4
|
|
|
5
|
+
import { linkConfigSchema } from "@/legacy/lib/models/common/widgets/Link";
|
|
6
|
+
|
|
6
7
|
import { Widget } from "../Widget";
|
|
7
8
|
import Form, { FormFields } from "./Form";
|
|
8
9
|
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { useFormikContext } from "formik";
|
|
2
|
+
import * as yup from "yup";
|
|
3
|
+
|
|
1
4
|
import {
|
|
2
5
|
FormFieldArray,
|
|
3
6
|
FormFieldCheckboxControl,
|
|
4
|
-
} from "
|
|
5
|
-
import { DefaultFields } from "
|
|
6
|
-
import { FormTypes } from "
|
|
7
|
-
import { useFormikContext } from "formik";
|
|
8
|
-
import * as yup from "yup";
|
|
7
|
+
} from "@/legacy/components/FormFields";
|
|
8
|
+
import { DefaultFields } from "@/legacy/lib/forms/defaults";
|
|
9
|
+
import { FormTypes } from "@/legacy/lib/forms/types";
|
|
9
10
|
|
|
10
11
|
const label = (controlledValue) =>
|
|
11
12
|
`use first value as default ${
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import { Col, Flex as FlexGrid } from "@components/Flex";
|
|
2
|
-
import SliceMachineIconButton from "@components/SliceMachineIconButton";
|
|
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";
|
|
7
1
|
import { has } from "fp-ts/Record";
|
|
8
2
|
import { isObject, isString } from "lodash";
|
|
9
3
|
import { useEffect, useState } from "react";
|
|
@@ -11,6 +5,13 @@ import { Box, Button, Checkbox, Flex, Label, Text } from "theme-ui";
|
|
|
11
5
|
import * as yup from "yup";
|
|
12
6
|
import { AnyObject } from "yup/lib/types";
|
|
13
7
|
|
|
8
|
+
import { Col, Flex as FlexGrid } from "@/legacy/components/Flex";
|
|
9
|
+
import SliceMachineIconButton from "@/legacy/components/SliceMachineIconButton";
|
|
10
|
+
import WidgetFormField from "@/legacy/lib/builders/common/EditModal/Field";
|
|
11
|
+
import { createFieldNameFromKey } from "@/legacy/lib/forms";
|
|
12
|
+
import { DefaultFields } from "@/legacy/lib/forms/defaults";
|
|
13
|
+
import { CheckBox as CheckBoxConstructor } from "@/legacy/lib/forms/fields";
|
|
14
|
+
|
|
14
15
|
import options, { optionValues } from "./options";
|
|
15
16
|
|
|
16
17
|
const isAllSet = (curr: Array<string>): boolean =>
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { TabField } from "@lib/models/common/CustomType";
|
|
2
1
|
import { FieldType } from "@prismicio/types-internal/lib/customtypes";
|
|
3
2
|
import { IconType } from "react-icons";
|
|
4
3
|
import { AnyObjectSchema } from "yup";
|
|
5
4
|
|
|
5
|
+
import { TabField } from "@/legacy/lib/models/common/CustomType";
|
|
6
|
+
|
|
6
7
|
export interface Widget<F extends TabField, S extends AnyObjectSchema> {
|
|
7
8
|
TYPE_NAME: FieldType;
|
|
8
9
|
create: (label: string) => F;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as Widgets from ".";
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
Widgets.StructuredText,
|
|
5
|
+
Widgets.Image,
|
|
6
|
+
Widgets.Link,
|
|
7
|
+
Widgets.LinkToMedia,
|
|
8
|
+
Widgets.ContentRelationship,
|
|
9
|
+
Widgets.Select,
|
|
10
|
+
Widgets.Boolean,
|
|
11
|
+
Widgets.Date,
|
|
12
|
+
Widgets.Timestamp,
|
|
13
|
+
Widgets.Embed,
|
|
14
|
+
Widgets.Number,
|
|
15
|
+
Widgets.GeoPoint,
|
|
16
|
+
Widgets.Color,
|
|
17
|
+
Widgets.Text,
|
|
18
|
+
];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as Widgets from "./withGroup";
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
Widgets.Group,
|
|
5
|
+
Widgets.StructuredText,
|
|
6
|
+
Widgets.Image,
|
|
7
|
+
Widgets.Link,
|
|
8
|
+
Widgets.LinkToMedia,
|
|
9
|
+
Widgets.ContentRelationship,
|
|
10
|
+
Widgets.Select,
|
|
11
|
+
Widgets.Boolean,
|
|
12
|
+
Widgets.Date,
|
|
13
|
+
Widgets.Timestamp,
|
|
14
|
+
Widgets.Embed,
|
|
15
|
+
Widgets.Number,
|
|
16
|
+
Widgets.GeoPoint,
|
|
17
|
+
Widgets.Color,
|
|
18
|
+
Widgets.Text,
|
|
19
|
+
];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CustomTypeSM } from "
|
|
2
|
-
import { SliceSM } from "
|
|
1
|
+
import { CustomTypeSM } from "@/legacy/lib/models/common/CustomType";
|
|
2
|
+
import { SliceSM } from "@/legacy/lib/models/common/Slice";
|
|
3
3
|
|
|
4
4
|
import { FrontEndEnvironment } from "../common/Environment";
|
|
5
5
|
import ErrorWithStatus from "../common/ErrorWithStatus";
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { omit } from "lodash";
|
|
2
|
+
import { Reducer } from "redux";
|
|
3
|
+
import { ActionType, createAction, getType } from "typesafe-actions";
|
|
4
|
+
|
|
5
|
+
import { CustomTypeSM } from "@/legacy/lib/models/common/CustomType";
|
|
2
6
|
import {
|
|
3
7
|
hasLocal,
|
|
4
8
|
hasLocalAndRemote,
|
|
5
9
|
LocalOrRemoteCustomType,
|
|
6
10
|
RemoteOnlyCustomType,
|
|
7
|
-
} from "
|
|
11
|
+
} from "@/legacy/lib/models/common/ModelData";
|
|
8
12
|
import {
|
|
9
13
|
normalizeFrontendCustomType,
|
|
10
14
|
normalizeFrontendCustomTypes,
|
|
11
|
-
} from "
|
|
12
|
-
import { filterSliceFromCustomType } from "
|
|
13
|
-
import { refreshStateCreator } from "
|
|
14
|
-
import { SliceMachineStoreType } from "
|
|
15
|
-
import { omit } from "lodash";
|
|
16
|
-
import { Reducer } from "redux";
|
|
17
|
-
import { ActionType, createAction, getType } from "typesafe-actions";
|
|
15
|
+
} from "@/legacy/lib/models/common/normalizers/customType";
|
|
16
|
+
import { filterSliceFromCustomType } from "@/legacy/lib/utils/shared/customTypes";
|
|
17
|
+
import { refreshStateCreator } from "@/modules/environment";
|
|
18
|
+
import { SliceMachineStoreType } from "@/redux/type";
|
|
18
19
|
|
|
19
20
|
import { sliceDeleteSuccess } from "../slices";
|
|
20
21
|
import { AvailableCustomTypesStoreType } from "./types";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CustomTypeSM } from "
|
|
2
|
-
import { LocalOrRemoteCustomType } from "
|
|
1
|
+
import { CustomTypeSM } from "@/legacy/lib/models/common/CustomType";
|
|
2
|
+
import { LocalOrRemoteCustomType } from "@/legacy/lib/models/common/ModelData";
|
|
3
3
|
|
|
4
4
|
export type AvailableCustomTypesStoreType = Readonly<
|
|
5
5
|
Record<CustomTypeSM["id"], LocalOrRemoteCustomType>
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { CustomTypeSM } from "@lib/models/common/CustomType";
|
|
2
|
-
import ErrorWithStatus from "@lib/models/common/ErrorWithStatus";
|
|
3
|
-
import { SliceSM } from "@lib/models/common/Slice";
|
|
4
|
-
import { FrontEndEnvironment } from "@models/common/Environment";
|
|
5
|
-
import { LibraryUI } from "@models/common/LibraryUI";
|
|
6
1
|
import type { APIEndpoints, PackageManager } from "@slicemachine/manager";
|
|
7
|
-
import { SliceMachineStoreType } from "@src/redux/type";
|
|
8
2
|
import { Reducer } from "redux";
|
|
9
3
|
import { ActionType, createAction, getType } from "typesafe-actions";
|
|
10
4
|
|
|
5
|
+
import { CustomTypeSM } from "@/legacy/lib/models/common/CustomType";
|
|
6
|
+
import { FrontEndEnvironment } from "@/legacy/lib/models/common/Environment";
|
|
7
|
+
import ErrorWithStatus from "@/legacy/lib/models/common/ErrorWithStatus";
|
|
8
|
+
import { LibraryUI } from "@/legacy/lib/models/common/LibraryUI";
|
|
9
|
+
import { SliceSM } from "@/legacy/lib/models/common/Slice";
|
|
10
|
+
import { SliceMachineStoreType } from "@/redux/type";
|
|
11
|
+
|
|
11
12
|
import { AuthStatus } from "../userContext/types";
|
|
12
13
|
import { EnvironmentStoreType } from "./types";
|
|
13
14
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { SliceMachineStoreType } from "@src/redux/type";
|
|
2
1
|
import mapValues from "lodash/mapValues";
|
|
3
2
|
import { Reducer } from "redux";
|
|
4
3
|
import { ActionType, createAction, getType } from "typesafe-actions";
|
|
5
4
|
|
|
5
|
+
import { SliceMachineStoreType } from "@/redux/type";
|
|
6
|
+
|
|
6
7
|
import { ModalKeysEnum, ModalStoreType } from "./types";
|
|
7
8
|
|
|
8
9
|
export const initialState: ModalStoreType = {
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import { ComponentUI, ScreenshotUI } from "@lib/models/common/ComponentUI";
|
|
2
|
-
import { LocalOrRemoteSlice } from "@lib/models/common/ModelData";
|
|
3
|
-
import { normalizeFrontendSlices } from "@lib/models/common/normalizers/slices";
|
|
4
|
-
import { SliceSM } from "@lib/models/common/Slice";
|
|
5
|
-
import { LibraryUI } from "@models/common/LibraryUI";
|
|
6
|
-
import { SaveSliceMockRequest } from "@src/apiClient";
|
|
7
|
-
import { refreshStateCreator } from "@src/modules/environment";
|
|
8
|
-
import { SliceMachineStoreType } from "@src/redux/type";
|
|
9
1
|
import { Reducer } from "redux";
|
|
10
2
|
import { ActionType, createAction, getType } from "typesafe-actions";
|
|
11
3
|
|
|
4
|
+
import { SaveSliceMockRequest } from "@/apiClient";
|
|
5
|
+
import {
|
|
6
|
+
ComponentUI,
|
|
7
|
+
ScreenshotUI,
|
|
8
|
+
} from "@/legacy/lib/models/common/ComponentUI";
|
|
9
|
+
import { LibraryUI } from "@/legacy/lib/models/common/LibraryUI";
|
|
10
|
+
import { LocalOrRemoteSlice } from "@/legacy/lib/models/common/ModelData";
|
|
11
|
+
import { normalizeFrontendSlices } from "@/legacy/lib/models/common/normalizers/slices";
|
|
12
|
+
import { SliceSM } from "@/legacy/lib/models/common/Slice";
|
|
13
|
+
import { refreshStateCreator } from "@/modules/environment";
|
|
14
|
+
import { SliceMachineStoreType } from "@/redux/type";
|
|
15
|
+
|
|
12
16
|
import { SlicesStoreType } from "./types";
|
|
13
17
|
|
|
14
18
|
// Action Creators
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { LibraryUI } from "@/legacy/lib/models/common/LibraryUI";
|
|
2
|
+
import { SliceSM } from "@/legacy/lib/models/common/Slice";
|
|
3
3
|
|
|
4
4
|
export type SlicesStoreType = {
|
|
5
5
|
libraries: ReadonlyArray<LibraryUI>;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import { CustomTypes } from "@lib/models/common/CustomType";
|
|
2
|
-
import { LibraryUI } from "@lib/models/common/LibraryUI";
|
|
3
|
-
import { SliceSM } from "@lib/models/common/Slice";
|
|
4
|
-
import ServerState from "@models/server/ServerState";
|
|
5
1
|
import { CustomType } from "@prismicio/types-internal/lib/customtypes";
|
|
6
|
-
import { SaveSliceMockRequest } from "@src/apiClient";
|
|
7
2
|
import { useDispatch } from "react-redux";
|
|
8
3
|
|
|
9
|
-
import {
|
|
4
|
+
import { SaveSliceMockRequest } from "@/apiClient";
|
|
5
|
+
import {
|
|
6
|
+
ComponentUI,
|
|
7
|
+
ScreenshotUI,
|
|
8
|
+
} from "@/legacy/lib/models/common/ComponentUI";
|
|
9
|
+
import { CustomTypes } from "@/legacy/lib/models/common/CustomType";
|
|
10
|
+
import { LibraryUI } from "@/legacy/lib/models/common/LibraryUI";
|
|
11
|
+
import { SliceSM } from "@/legacy/lib/models/common/Slice";
|
|
12
|
+
import ServerState from "@/legacy/lib/models/server/ServerState";
|
|
13
|
+
|
|
10
14
|
import {
|
|
11
15
|
customTypeCreateSuccess,
|
|
12
16
|
customTypeDeleteSuccess,
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Reducer } from "redux";
|
|
2
|
+
import { ActionType, createAction, getType } from "typesafe-actions";
|
|
3
|
+
|
|
4
|
+
import ErrorWithStatus from "@/legacy/lib/models/common/ErrorWithStatus";
|
|
2
5
|
import {
|
|
3
6
|
AuthStatus,
|
|
4
7
|
UserContextStoreType,
|
|
5
8
|
UserReviewState,
|
|
6
9
|
UserReviewType,
|
|
7
|
-
} from "
|
|
8
|
-
import { SliceMachineStoreType } from "
|
|
9
|
-
import { Reducer } from "redux";
|
|
10
|
-
import { ActionType, createAction, getType } from "typesafe-actions";
|
|
10
|
+
} from "@/modules/userContext/types";
|
|
11
|
+
import { SliceMachineStoreType } from "@/redux/type";
|
|
11
12
|
|
|
12
13
|
import { refreshStateCreator } from "../environment";
|
|
13
14
|
|