slice-machine-ui 1.26.1-beta.11 → 1.26.1-beta.12
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/{183-ebd633fed7c74545.js → 183-6ad5c4eb28d4b155.js} +1 -1
- package/out/_next/static/chunks/207-f71df53ed0b0ac4d.js +1 -0
- package/out/_next/static/chunks/453-1a14e86de385fe7c.js +1 -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-1c3665ce38e58792.js +1 -0
- package/out/_next/static/chunks/96-33e38032f1e55366.js +1 -0
- package/out/_next/static/chunks/pages/{_app-6177e3581af44083.js → _app-01bcd29a595cec3a.js} +2 -2
- 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]-8bcc4d88f470d3f7.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]-8461ab4fcfaf0755.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]-217d0b0469d4320e.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/svF8JPCb25QlsmymuzIiN/_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 +3 -3
- 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__/slice.test.ts +3 -2
- package/src/domain/slice.ts +7 -3
- 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 +25 -21
- package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/index.tsx +7 -6
- package/{lib → src/legacy/lib}/builders/SliceBuilder/FieldZones/index.tsx +17 -16
- 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 +4 -3
- package/{lib → src/legacy/lib}/builders/common/Zone/index.jsx +3 -2
- 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/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 +22 -18
- 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/{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/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/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/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 → svF8JPCb25QlsmymuzIiN}/_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/Slice.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}/models/common/widgets/sliceBuilderArray.ts +0 -0
- /package/{lib → src/legacy/lib}/models/common/widgets/withGroup.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,5 +1,4 @@
|
|
|
1
1
|
// @vitest-environment jsdom
|
|
2
|
-
import { CustomTypes } from "@lib/models/common/CustomType";
|
|
3
2
|
import { CustomType } from "@prismicio/types-internal/lib/customtypes";
|
|
4
3
|
import {
|
|
5
4
|
createSliceMachineManager,
|
|
@@ -8,11 +7,13 @@ import {
|
|
|
8
7
|
import { createSliceMachineManagerMSWHandler } from "@slicemachine/manager/test";
|
|
9
8
|
import mockRouter from "next-router-mock";
|
|
10
9
|
import { createDynamicRouteParser } from "next-router-mock/dynamic-routes";
|
|
11
|
-
import { render, screen, within } from "test/__testutils__";
|
|
12
|
-
import { createTestPlugin } from "test/__testutils__/createTestPlugin";
|
|
13
|
-
import { createTestProject } from "test/__testutils__/createTestProject";
|
|
14
10
|
import { describe, test, TestContext, vi } from "vitest";
|
|
15
11
|
|
|
12
|
+
import { render, screen, within } from "@/../test/__testutils__";
|
|
13
|
+
import { createTestPlugin } from "@/../test/__testutils__/createTestPlugin";
|
|
14
|
+
import { createTestProject } from "@/../test/__testutils__/createTestProject";
|
|
15
|
+
import { CustomTypes } from "@/legacy/lib/models/common/CustomType";
|
|
16
|
+
|
|
16
17
|
import pkg from "../../../../package.json";
|
|
17
18
|
import { CustomTypesBuilderPage } from "../customTypesBuilder/CustomTypesBuilderPage";
|
|
18
19
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// @vitest-environment jsdom
|
|
2
|
-
import { CustomTypes } from "@lib/models/common/CustomType";
|
|
3
2
|
import { CustomType } from "@prismicio/types-internal/lib/customtypes";
|
|
4
3
|
import {
|
|
5
4
|
createSliceMachineManager,
|
|
@@ -8,11 +7,13 @@ import {
|
|
|
8
7
|
import { createSliceMachineManagerMSWHandler } from "@slicemachine/manager/test";
|
|
9
8
|
import { CustomTypeReadHookData } from "@slicemachine/plugin-kit";
|
|
10
9
|
import mockRouter from "next-router-mock";
|
|
11
|
-
import { render, screen, waitFor, within } from "test/__testutils__";
|
|
12
|
-
import { createTestPlugin } from "test/__testutils__/createTestPlugin";
|
|
13
|
-
import { createTestProject } from "test/__testutils__/createTestProject";
|
|
14
10
|
import { describe, test, TestContext, vi } from "vitest";
|
|
15
11
|
|
|
12
|
+
import { render, screen, waitFor, within } from "@/../test/__testutils__";
|
|
13
|
+
import { createTestPlugin } from "@/../test/__testutils__/createTestPlugin";
|
|
14
|
+
import { createTestProject } from "@/../test/__testutils__/createTestProject";
|
|
15
|
+
import { CustomTypes } from "@/legacy/lib/models/common/CustomType";
|
|
16
|
+
|
|
16
17
|
import pkg from "../../../../package.json";
|
|
17
18
|
import { CUSTOM_TYPES_MESSAGES } from "../customTypesMessages";
|
|
18
19
|
import { CustomTypesTablePage } from "../customTypesTable/CustomTypesTablePage";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { CustomType } from "@prismicio/types-internal/lib/customtypes";
|
|
2
2
|
import { CustomTypeFormat } from "@slicemachine/manager";
|
|
3
|
-
import { updateCustomType } from "@src/apiClient";
|
|
4
|
-
import { convertToPageType } from "@src/domain/customType";
|
|
5
3
|
import { toast } from "react-toastify";
|
|
6
4
|
|
|
5
|
+
import { updateCustomType } from "@/apiClient";
|
|
6
|
+
import { convertToPageType } from "@/domain/customType";
|
|
7
|
+
|
|
7
8
|
import { CUSTOM_TYPES_MESSAGES } from "../customTypesMessages";
|
|
8
9
|
|
|
9
10
|
export async function convertCustomToPageType(
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { ToastMessageWithPath } from "@components/ToasterContainer";
|
|
2
1
|
import { CustomType } from "@prismicio/types-internal/lib/customtypes";
|
|
3
2
|
import { CustomTypeFormat } from "@slicemachine/manager";
|
|
4
|
-
import { telemetry, updateCustomType } from "@src/apiClient";
|
|
5
|
-
import { create } from "@src/domain/customType";
|
|
6
3
|
import { toast } from "react-toastify";
|
|
7
4
|
|
|
5
|
+
import { telemetry, updateCustomType } from "@/apiClient";
|
|
6
|
+
import { create } from "@/domain/customType";
|
|
7
|
+
import { ToastMessageWithPath } from "@/legacy/components/ToasterContainer";
|
|
8
|
+
|
|
8
9
|
import { CUSTOM_TYPES_MESSAGES } from "../customTypesMessages";
|
|
9
10
|
|
|
10
11
|
type DeleteCustomTypeArgs = {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { CustomType } from "@prismicio/types-internal/lib/customtypes";
|
|
2
2
|
import { CustomTypeFormat } from "@slicemachine/manager";
|
|
3
|
-
import { managerClient } from "@src/managerClient";
|
|
4
3
|
import { toast } from "react-toastify";
|
|
5
4
|
|
|
5
|
+
import { managerClient } from "@/managerClient";
|
|
6
|
+
|
|
6
7
|
import { CUSTOM_TYPES_MESSAGES } from "../customTypesMessages";
|
|
7
8
|
|
|
8
9
|
type DeleteCustomTypeArgs = {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { CustomType } from "@prismicio/types-internal/lib/customtypes";
|
|
2
2
|
import { CustomTypeFormat } from "@slicemachine/manager";
|
|
3
|
-
import { managerClient } from "@src/managerClient";
|
|
4
3
|
import { toast } from "react-toastify";
|
|
5
4
|
|
|
5
|
+
import { managerClient } from "@/managerClient";
|
|
6
|
+
|
|
6
7
|
import { CUSTOM_TYPES_MESSAGES } from "../customTypesMessages";
|
|
7
8
|
|
|
8
9
|
type RenameCustomTypeArgs = {
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { useStableCallback } from "@prismicio/editor-support/React";
|
|
2
2
|
import { CustomType } from "@prismicio/types-internal/lib/customtypes";
|
|
3
|
-
import { updateCustomType } from "@src/apiClient";
|
|
4
|
-
import { getFormat } from "@src/domain/customType";
|
|
5
|
-
import { useAutoSync } from "@src/features/sync/AutoSyncProvider";
|
|
6
|
-
import { ActionQueueStatus, useActionQueue } from "@src/hooks/useActionQueue";
|
|
7
|
-
import useSliceMachineActions from "@src/modules/useSliceMachineActions";
|
|
8
3
|
import {
|
|
9
4
|
createContext,
|
|
10
5
|
ReactNode,
|
|
@@ -14,6 +9,12 @@ import {
|
|
|
14
9
|
useState,
|
|
15
10
|
} from "react";
|
|
16
11
|
|
|
12
|
+
import { updateCustomType } from "@/apiClient";
|
|
13
|
+
import { getFormat } from "@/domain/customType";
|
|
14
|
+
import { useAutoSync } from "@/features/sync/AutoSyncProvider";
|
|
15
|
+
import { ActionQueueStatus, useActionQueue } from "@/hooks/useActionQueue";
|
|
16
|
+
import useSliceMachineActions from "@/modules/useSliceMachineActions";
|
|
17
|
+
|
|
17
18
|
import { CUSTOM_TYPES_MESSAGES } from "../customTypesMessages";
|
|
18
19
|
|
|
19
20
|
type CustomTypeContext = {
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
import { Box } from "@prismicio/editor-ui";
|
|
2
|
+
import Head from "next/head";
|
|
3
|
+
import { useRouter } from "next/router";
|
|
4
|
+
import { type FC, useEffect } from "react";
|
|
5
|
+
import { useSelector } from "react-redux";
|
|
6
|
+
|
|
7
|
+
import { BreadcrumbItem } from "@/components/Breadcrumb";
|
|
8
|
+
import { getFormat } from "@/domain/customType";
|
|
9
|
+
import { AutoSaveStatusIndicator } from "@/features/autoSave/AutoSaveStatusIndicator";
|
|
10
|
+
import {
|
|
11
|
+
CUSTOM_TYPES_CONFIG,
|
|
12
|
+
readBuilderPageDynamicSegment,
|
|
13
|
+
} from "@/features/customTypes/customTypesConfig";
|
|
1
14
|
import {
|
|
2
15
|
AppLayout,
|
|
3
16
|
AppLayoutActions,
|
|
@@ -5,24 +18,15 @@ import {
|
|
|
5
18
|
AppLayoutBreadcrumb,
|
|
6
19
|
AppLayoutContent,
|
|
7
20
|
AppLayoutHeader,
|
|
8
|
-
} from "
|
|
9
|
-
import { CustomTypeBuilder } from "
|
|
10
|
-
import { CustomTypes, CustomTypeSM } from "@lib/models/common/CustomType";
|
|
11
|
-
import { hasLocal } from "@lib/models/common/ModelData";
|
|
12
|
-
import { Box } from "@prismicio/editor-ui";
|
|
13
|
-
import { BreadcrumbItem } from "@src/components/Breadcrumb";
|
|
14
|
-
import { getFormat } from "@src/domain/customType";
|
|
15
|
-
import { AutoSaveStatusIndicator } from "@src/features/autoSave/AutoSaveStatusIndicator";
|
|
21
|
+
} from "@/legacy/components/AppLayout";
|
|
22
|
+
import { CustomTypeBuilder } from "@/legacy/lib/builders/CustomTypeBuilder";
|
|
16
23
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "
|
|
20
|
-
import {
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import { useRouter } from "next/router";
|
|
24
|
-
import { type FC, useEffect } from "react";
|
|
25
|
-
import { useSelector } from "react-redux";
|
|
24
|
+
CustomTypes,
|
|
25
|
+
CustomTypeSM,
|
|
26
|
+
} from "@/legacy/lib/models/common/CustomType";
|
|
27
|
+
import { hasLocal } from "@/legacy/lib/models/common/ModelData";
|
|
28
|
+
import { selectCustomTypeById } from "@/modules/availableCustomTypes";
|
|
29
|
+
import type { SliceMachineStoreType } from "@/redux/type";
|
|
26
30
|
|
|
27
31
|
import { CUSTOM_TYPES_MESSAGES } from "../customTypesMessages";
|
|
28
32
|
import { EditDropdown } from "../EditDropdown";
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { Button, Dialog, DialogHeader, ScrollArea } from "@prismicio/editor-ui";
|
|
2
2
|
import { CustomType } from "@prismicio/types-internal/lib/customtypes";
|
|
3
|
-
import { telemetry } from "@src/apiClient";
|
|
4
|
-
import { ContentTabs } from "@src/components/ContentTabs";
|
|
5
|
-
import { ErrorBoundary } from "@src/ErrorBoundary";
|
|
6
|
-
import { MarkdownRenderer } from "@src/features/documentation/MarkdownRenderer";
|
|
7
|
-
import { useDocumentation } from "@src/features/documentation/useDocumentation";
|
|
8
|
-
import { useAdapterName } from "@src/hooks/useAdapterName";
|
|
9
3
|
import { FC, Suspense } from "react";
|
|
10
4
|
|
|
5
|
+
import { telemetry } from "@/apiClient";
|
|
6
|
+
import { ContentTabs } from "@/components/ContentTabs";
|
|
7
|
+
import { ErrorBoundary } from "@/ErrorBoundary";
|
|
8
|
+
import { MarkdownRenderer } from "@/features/documentation/MarkdownRenderer";
|
|
9
|
+
import { useDocumentation } from "@/features/documentation/useDocumentation";
|
|
10
|
+
import { useAdapterName } from "@/hooks/useAdapterName";
|
|
11
|
+
|
|
11
12
|
import * as styles from "./PageSnippetDialog.css";
|
|
12
13
|
|
|
13
14
|
type PageSnippetContentProps = { model: CustomType };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { ActionList, ActionListItem, Badge, Box } from "@prismicio/editor-ui";
|
|
2
|
+
import { FC } from "react";
|
|
3
|
+
|
|
2
4
|
import {
|
|
3
5
|
BlankSlate,
|
|
4
6
|
BlankSlateActions,
|
|
5
7
|
BlankSlateContent,
|
|
6
8
|
BlankSlateDescription,
|
|
7
9
|
BlankSlateTitle,
|
|
8
|
-
} from "
|
|
9
|
-
import { SliceMachinePrinterIcon } from "
|
|
10
|
-
import { FC } from "react";
|
|
10
|
+
} from "@/components/BlankSlate";
|
|
11
|
+
import { SliceMachinePrinterIcon } from "@/icons/SliceMachinePrinterIcon";
|
|
11
12
|
|
|
12
13
|
export type SliceZoneBlankSlateProps = {
|
|
13
14
|
openUpdateSliceZoneModal: () => void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useRequest } from "@prismicio/editor-support/Suspense";
|
|
2
2
|
import type { CustomType } from "@prismicio/types-internal/lib/customtypes";
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
import { managerClient } from "@/managerClient";
|
|
4
5
|
|
|
5
6
|
export function useCustomType(id: string): CustomType | undefined {
|
|
6
7
|
return useRequest(readCustomType, [id]);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { DatabaseIcon } from "@src/icons/DatabaseIcon";
|
|
2
|
-
import { PageStackIcon } from "@src/icons/PageStackIcon";
|
|
3
1
|
import type { NextRouter } from "next/router";
|
|
4
2
|
|
|
3
|
+
import { DatabaseIcon } from "@/icons/DatabaseIcon";
|
|
4
|
+
import { PageStackIcon } from "@/icons/PageStackIcon";
|
|
5
|
+
|
|
5
6
|
export const CUSTOM_TYPES_CONFIG = {
|
|
6
7
|
page: {
|
|
7
8
|
blankSlateImage: "/blank-slate-page-types.png",
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { Button, Icon, Image, tokens } from "@prismicio/editor-ui";
|
|
2
2
|
import { type CustomType } from "@prismicio/types-internal/lib/customtypes";
|
|
3
3
|
import { type CustomTypeFormat } from "@slicemachine/manager";
|
|
4
|
+
import { useRouter } from "next/router";
|
|
5
|
+
import { type FC } from "react";
|
|
6
|
+
|
|
4
7
|
import {
|
|
5
8
|
BlankSlate,
|
|
6
9
|
BlankSlateActions,
|
|
@@ -8,19 +11,17 @@ import {
|
|
|
8
11
|
BlankSlateDescription,
|
|
9
12
|
BlankSlateImage,
|
|
10
13
|
BlankSlateTitle,
|
|
11
|
-
} from "
|
|
14
|
+
} from "@/components/BlankSlate";
|
|
12
15
|
import {
|
|
13
16
|
Table,
|
|
14
17
|
TableBody,
|
|
15
18
|
TableCell,
|
|
16
19
|
TableHead,
|
|
17
20
|
TableRow,
|
|
18
|
-
} from "
|
|
19
|
-
import { CUSTOM_TYPES_MESSAGES } from "
|
|
20
|
-
import { ReusableIcon } from "
|
|
21
|
-
import { UniqueIcon } from "
|
|
22
|
-
import { useRouter } from "next/router";
|
|
23
|
-
import { type FC } from "react";
|
|
21
|
+
} from "@/components/Table";
|
|
22
|
+
import { CUSTOM_TYPES_MESSAGES } from "@/features/customTypes/customTypesMessages";
|
|
23
|
+
import { ReusableIcon } from "@/icons/ReusableIcon";
|
|
24
|
+
import { UniqueIcon } from "@/icons/UniqueIcon";
|
|
24
25
|
|
|
25
26
|
import { CUSTOM_TYPES_CONFIG } from "../customTypesConfig";
|
|
26
27
|
import { EditDropdown } from "../EditDropdown";
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AppLayout,
|
|
3
|
-
AppLayoutActions,
|
|
4
|
-
AppLayoutBreadcrumb,
|
|
5
|
-
AppLayoutContent,
|
|
6
|
-
AppLayoutHeader,
|
|
7
|
-
} from "@components/AppLayout";
|
|
8
|
-
import { CreateCustomTypeModal } from "@components/Forms/CreateCustomTypeModal";
|
|
9
1
|
import {
|
|
10
2
|
Box,
|
|
11
3
|
Button,
|
|
@@ -13,12 +5,21 @@ import {
|
|
|
13
5
|
ProgressCircle,
|
|
14
6
|
} from "@prismicio/editor-ui";
|
|
15
7
|
import type { CustomTypeFormat } from "@slicemachine/manager";
|
|
16
|
-
import { BreadcrumbItem } from "@src/components/Breadcrumb";
|
|
17
|
-
import { ErrorBoundary } from "@src/ErrorBoundary";
|
|
18
|
-
import { CUSTOM_TYPES_MESSAGES } from "@src/features/customTypes/customTypesMessages";
|
|
19
8
|
import Head from "next/head";
|
|
20
9
|
import { type FC, Suspense, useState } from "react";
|
|
21
10
|
|
|
11
|
+
import { BreadcrumbItem } from "@/components/Breadcrumb";
|
|
12
|
+
import { ErrorBoundary } from "@/ErrorBoundary";
|
|
13
|
+
import { CUSTOM_TYPES_MESSAGES } from "@/features/customTypes/customTypesMessages";
|
|
14
|
+
import {
|
|
15
|
+
AppLayout,
|
|
16
|
+
AppLayoutActions,
|
|
17
|
+
AppLayoutBreadcrumb,
|
|
18
|
+
AppLayoutContent,
|
|
19
|
+
AppLayoutHeader,
|
|
20
|
+
} from "@/legacy/components/AppLayout";
|
|
21
|
+
import { CreateCustomTypeModal } from "@/legacy/components/Forms/CreateCustomTypeModal";
|
|
22
|
+
|
|
22
23
|
import { CustomTypesTable } from "./CustomTypesTable";
|
|
23
24
|
|
|
24
25
|
type CustomTypesTablePageProps = {
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { CustomTypes } from "@lib/models/common/CustomType";
|
|
2
|
-
import { hasLocal } from "@lib/models/common/ModelData";
|
|
3
1
|
import { updateData, useRequest } from "@prismicio/editor-support/Suspense";
|
|
4
2
|
import type { CustomType } from "@prismicio/types-internal/lib/customtypes";
|
|
5
3
|
import type { CustomTypeFormat } from "@slicemachine/manager";
|
|
6
|
-
import { managerClient } from "@src/managerClient";
|
|
7
|
-
import { selectAllCustomTypes } from "@src/modules/availableCustomTypes";
|
|
8
|
-
import type { SliceMachineStoreType } from "@src/redux/type";
|
|
9
4
|
import { useCallback, useEffect } from "react";
|
|
10
5
|
import { useSelector } from "react-redux";
|
|
11
6
|
|
|
7
|
+
import { CustomTypes } from "@/legacy/lib/models/common/CustomType";
|
|
8
|
+
import { hasLocal } from "@/legacy/lib/models/common/ModelData";
|
|
9
|
+
import { managerClient } from "@/managerClient";
|
|
10
|
+
import { selectAllCustomTypes } from "@/modules/availableCustomTypes";
|
|
11
|
+
import type { SliceMachineStoreType } from "@/redux/type";
|
|
12
|
+
|
|
12
13
|
type UseCustomTypesReturnType = {
|
|
13
14
|
customTypes: CustomType[];
|
|
14
15
|
updateCustomTypes: (customTypes: CustomType[]) => void;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Text } from "@prismicio/editor-ui";
|
|
2
|
-
import { telemetry } from "@src/apiClient";
|
|
3
|
-
import { CodeBlock } from "@src/components/CodeBlock";
|
|
4
|
-
import { useAdapterName } from "@src/hooks/useAdapterName";
|
|
5
2
|
import { FC } from "react";
|
|
6
3
|
import ReactMarkdown from "react-markdown";
|
|
7
4
|
import type { CodeProps } from "react-markdown/lib/ast-to-react";
|
|
8
5
|
import remarkGfm from "remark-gfm";
|
|
9
6
|
|
|
7
|
+
import { telemetry } from "@/apiClient";
|
|
8
|
+
import { CodeBlock } from "@/components/CodeBlock";
|
|
9
|
+
import { useAdapterName } from "@/hooks/useAdapterName";
|
|
10
|
+
|
|
10
11
|
import * as styles from "./MarkdownRenderer.css";
|
|
11
12
|
|
|
12
13
|
type MarkdownRenderer = FC<{
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useRequest } from "@prismicio/editor-support/Suspense";
|
|
2
2
|
import { CustomType } from "@prismicio/types-internal/lib/customtypes";
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
import { managerClient } from "@/managerClient";
|
|
4
5
|
|
|
5
6
|
type UseDocumentationArgs = {
|
|
6
7
|
kind: "PageSnippet";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { revalidateData } from "@prismicio/editor-support/Suspense";
|
|
2
2
|
import { Environment } from "@slicemachine/manager/client";
|
|
3
|
-
|
|
4
|
-
import {
|
|
3
|
+
|
|
4
|
+
import { getState } from "@/apiClient";
|
|
5
|
+
import { managerClient } from "@/managerClient";
|
|
5
6
|
|
|
6
7
|
import { getActiveEnvironment } from "./getActiveEnvironment";
|
|
7
8
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { usePersistedState } from "@src/hooks/usePersistedState";
|
|
2
1
|
import {
|
|
3
2
|
createContext,
|
|
4
3
|
Dispatch,
|
|
@@ -9,6 +8,8 @@ import {
|
|
|
9
8
|
useMemo,
|
|
10
9
|
} from "react";
|
|
11
10
|
|
|
11
|
+
import { usePersistedState } from "@/hooks/usePersistedState";
|
|
12
|
+
|
|
12
13
|
type InAppGuideContextValue = {
|
|
13
14
|
isInAppGuideOpen: boolean;
|
|
14
15
|
setIsInAppGuideOpen: Dispatch<SetStateAction<boolean>>;
|
|
@@ -9,11 +9,12 @@ import {
|
|
|
9
9
|
Text,
|
|
10
10
|
Video,
|
|
11
11
|
} from "@prismicio/editor-ui";
|
|
12
|
-
import { Count } from "@src/components/Count";
|
|
13
|
-
import { useIsEmptyProject } from "@src/hooks/useIsEmptyProject";
|
|
14
|
-
import { HelpIcon } from "@src/icons/HelpIcon";
|
|
15
12
|
import { FC } from "react";
|
|
16
13
|
|
|
14
|
+
import { Count } from "@/components/Count";
|
|
15
|
+
import { useIsEmptyProject } from "@/hooks/useIsEmptyProject";
|
|
16
|
+
import { HelpIcon } from "@/icons/HelpIcon";
|
|
17
|
+
|
|
17
18
|
import { useInAppGuideContent } from "./inAppGuideContent";
|
|
18
19
|
import { useInAppGuide } from "./InAppGuideContext";
|
|
19
20
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Text, TextLink } from "@prismicio/editor-ui";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import { useRepositoryInformation } from "@/hooks/useRepositoryInformation";
|
|
3
4
|
|
|
4
5
|
export function useInAppGuideContent() {
|
|
5
6
|
const { repositoryUrl } = useRepositoryInformation();
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
+
import { Box, DefaultErrorMessage, ProgressCircle } from "@prismicio/editor-ui";
|
|
2
|
+
import Head from "next/head";
|
|
3
|
+
import { type FC, ReactNode, Suspense } from "react";
|
|
4
|
+
|
|
5
|
+
import { BreadcrumbItem } from "@/components/Breadcrumb";
|
|
6
|
+
import { ErrorBoundary } from "@/ErrorBoundary";
|
|
1
7
|
import {
|
|
2
8
|
AppLayout,
|
|
3
9
|
AppLayoutBreadcrumb,
|
|
4
10
|
AppLayoutContent,
|
|
5
11
|
AppLayoutHeader,
|
|
6
|
-
} from "
|
|
7
|
-
import { Box, DefaultErrorMessage, ProgressCircle } from "@prismicio/editor-ui";
|
|
8
|
-
import { BreadcrumbItem } from "@src/components/Breadcrumb";
|
|
9
|
-
import { ErrorBoundary } from "@src/ErrorBoundary";
|
|
10
|
-
import Head from "next/head";
|
|
11
|
-
import { type FC, ReactNode, Suspense } from "react";
|
|
12
|
+
} from "@/legacy/components/AppLayout";
|
|
12
13
|
|
|
13
14
|
import { LabsList } from "./LabsList";
|
|
14
15
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { SliceMachineConfig } from "@slicemachine/manager";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import { useSliceMachineConfig } from "@/hooks/useSliceMachineConfig";
|
|
3
4
|
|
|
4
5
|
export type UseLabArgs = keyof Required<SliceMachineConfig>["labs"];
|
|
5
6
|
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
+
import { Box } from "@prismicio/editor-ui";
|
|
2
|
+
import Head from "next/head";
|
|
3
|
+
import { useRouter } from "next/router";
|
|
4
|
+
import { type FC, useEffect } from "react";
|
|
5
|
+
|
|
6
|
+
import { BreadcrumbItem } from "@/components/Breadcrumb";
|
|
7
|
+
import { ConnectGitRepository } from "@/features/settings/git/ConnectGitRepository";
|
|
8
|
+
import { useGitIntegrationExperiment } from "@/features/settings/git/useGitIntegrationExperiment";
|
|
1
9
|
import {
|
|
2
10
|
AppLayout,
|
|
3
11
|
AppLayoutBreadcrumb,
|
|
4
12
|
AppLayoutContent,
|
|
5
13
|
AppLayoutHeader,
|
|
6
|
-
} from "
|
|
7
|
-
import { Box } from "@prismicio/editor-ui";
|
|
8
|
-
import { BreadcrumbItem } from "@src/components/Breadcrumb";
|
|
9
|
-
import { ConnectGitRepository } from "@src/features/settings/git/ConnectGitRepository";
|
|
10
|
-
import { useGitIntegrationExperiment } from "@src/features/settings/git/useGitIntegrationExperiment";
|
|
11
|
-
import Head from "next/head";
|
|
12
|
-
import { useRouter } from "next/router";
|
|
13
|
-
import { type FC, useEffect } from "react";
|
|
14
|
+
} from "@/legacy/components/AppLayout";
|
|
14
15
|
|
|
15
16
|
export const SettingsPage: FC = () => {
|
|
16
17
|
const gitIntegrationExperiment = useGitIntegrationExperiment();
|
|
@@ -3,24 +3,25 @@ import {
|
|
|
3
3
|
isUnauthenticatedError,
|
|
4
4
|
isUnauthorizedError,
|
|
5
5
|
} from "@slicemachine/manager/client";
|
|
6
|
+
import { type FC, type ReactNode, Suspense } from "react";
|
|
7
|
+
|
|
6
8
|
import {
|
|
7
9
|
FieldSet,
|
|
8
10
|
FieldSetContent,
|
|
9
11
|
FieldSetFooter,
|
|
10
12
|
FieldSetLegend,
|
|
11
|
-
} from "
|
|
12
|
-
import { ErrorBoundary } from "
|
|
13
|
-
import { ConnectGitRepositoryBlankSlate } from "
|
|
14
|
-
import { GitProviderConnectButtons } from "
|
|
15
|
-
import { GitRepositoriesList } from "
|
|
13
|
+
} from "@/components/FieldSet";
|
|
14
|
+
import { ErrorBoundary } from "@/ErrorBoundary";
|
|
15
|
+
import { ConnectGitRepositoryBlankSlate } from "@/features/settings/git/ConnectGitRepositoryBlankSlate";
|
|
16
|
+
import { GitProviderConnectButtons } from "@/features/settings/git/GitProviderConnectButtons";
|
|
17
|
+
import { GitRepositoriesList } from "@/features/settings/git/GitRepositoriesList";
|
|
16
18
|
import {
|
|
17
19
|
GitRepositoriesSearch,
|
|
18
20
|
GitRepositoriesSearchSkeleton,
|
|
19
|
-
} from "
|
|
20
|
-
import { useGitOwners } from "
|
|
21
|
-
import { useLinkedGitRepos } from "
|
|
22
|
-
import useSliceMachineActions from "
|
|
23
|
-
import { type FC, type ReactNode, Suspense } from "react";
|
|
21
|
+
} from "@/features/settings/git/GitRepositoriesSearch";
|
|
22
|
+
import { useGitOwners } from "@/features/settings/git/useGitOwners";
|
|
23
|
+
import { useLinkedGitRepos } from "@/features/settings/git/useLinkedGitRepos";
|
|
24
|
+
import useSliceMachineActions from "@/modules/useSliceMachineActions";
|
|
24
25
|
|
|
25
26
|
export const ConnectGitRepository: FC = () => (
|
|
26
27
|
<FieldSet>
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Select, SelectItem, tokens } from "@prismicio/editor-ui";
|
|
2
2
|
import type { GitOwner } from "@slicemachine/manager";
|
|
3
|
-
import { gitProviderToConfig } from "@src/features/settings/git/GitProvider";
|
|
4
3
|
import type { ComponentPropsWithoutRef, FC } from "react";
|
|
5
4
|
|
|
5
|
+
import { gitProviderToConfig } from "@/features/settings/git/GitProvider";
|
|
6
|
+
|
|
6
7
|
type GitOwnerSelectProps = {
|
|
7
8
|
disabled?: boolean;
|
|
8
9
|
owners?: GitOwner[];
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { GIT_PROVIDER, GitProvider } from "@slicemachine/manager/client";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
|
|
3
|
+
import { BitbucketIcon } from "@/icons/BitbucketIcon";
|
|
4
|
+
import { GitHubIcon } from "@/icons/GitHubIcon";
|
|
5
|
+
import { GitLabIcon } from "@/icons/GitLabIcon";
|
|
6
|
+
import { managerClient } from "@/managerClient";
|
|
6
7
|
|
|
7
8
|
export const gitProviderToConfig = {
|
|
8
9
|
gitHub: {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { keys } from "@prismicio/editor-support/Object";
|
|
2
2
|
import { Button, ButtonGroup, Text, tokens } from "@prismicio/editor-ui";
|
|
3
|
-
import { gitProviderToConfig } from "@src/features/settings/git/GitProvider";
|
|
4
3
|
import { type ComponentPropsWithoutRef, type FC, useState } from "react";
|
|
5
4
|
import { toast } from "react-toastify";
|
|
6
5
|
|
|
6
|
+
import { gitProviderToConfig } from "@/features/settings/git/GitProvider";
|
|
7
|
+
|
|
7
8
|
export const GitProviderConnectButtons: FC = () => (
|
|
8
9
|
<ButtonGroup>
|
|
9
10
|
{keys(gitProviderToConfig).map((provider) => (
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Button, Skeleton, Text } from "@prismicio/editor-ui";
|
|
2
2
|
import type { GitRepo, GitRepoSpecifier } from "@slicemachine/manager";
|
|
3
|
-
import { FieldSetList, FieldSetListItem } from "@src/components/FieldSet";
|
|
4
|
-
import { RelativeTime } from "@src/components/RelativeTime";
|
|
5
|
-
import { GitRepositoryConnectDialog } from "@src/features/settings/git/GitRepositoryConnectDialog";
|
|
6
|
-
import { GitRepositoryDisconnectDialog } from "@src/features/settings/git/GitRepositoryDisconnectDialog";
|
|
7
|
-
import { useLinkedGitRepos } from "@src/features/settings/git/useLinkedGitRepos";
|
|
8
3
|
import type { FC } from "react";
|
|
9
4
|
|
|
5
|
+
import { FieldSetList, FieldSetListItem } from "@/components/FieldSet";
|
|
6
|
+
import { RelativeTime } from "@/components/RelativeTime";
|
|
7
|
+
import { GitRepositoryConnectDialog } from "@/features/settings/git/GitRepositoryConnectDialog";
|
|
8
|
+
import { GitRepositoryDisconnectDialog } from "@/features/settings/git/GitRepositoryDisconnectDialog";
|
|
9
|
+
import { useLinkedGitRepos } from "@/features/settings/git/useLinkedGitRepos";
|
|
10
|
+
|
|
10
11
|
type GitRepositoriesListProps =
|
|
11
12
|
| { mode: "link"; repos: GitRepo[] }
|
|
12
13
|
| { mode: "unlink"; repos: GitRepoSpecifier[] };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import type { GitOwner } from "@slicemachine/manager";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import {
|
|
2
|
+
import { type FC, Suspense, useState } from "react";
|
|
3
|
+
|
|
4
|
+
import { FieldSetContent, FieldSetHeader } from "@/components/FieldSet";
|
|
5
|
+
import { ConnectGitRepositoryBlankSlate } from "@/features/settings/git/ConnectGitRepositoryBlankSlate";
|
|
6
|
+
import { GitOwnerSelect } from "@/features/settings/git/GitOwnerSelect";
|
|
5
7
|
import {
|
|
6
8
|
GitRepositoriesList,
|
|
7
9
|
GitRepositoriesListSkeleton,
|
|
8
|
-
} from "
|
|
9
|
-
import { useGitRepos } from "
|
|
10
|
-
import { type FC, Suspense, useState } from "react";
|
|
10
|
+
} from "@/features/settings/git/GitRepositoriesList";
|
|
11
|
+
import { useGitRepos } from "@/features/settings/git/useGitRepos";
|
|
11
12
|
|
|
12
13
|
type GitRepositoriesSearchProps = { owners: GitOwner[] };
|
|
13
14
|
|
|
@@ -9,13 +9,14 @@ import {
|
|
|
9
9
|
TextLink,
|
|
10
10
|
} from "@prismicio/editor-ui";
|
|
11
11
|
import type { GitRepo, GitRepoSpecifier } from "@slicemachine/manager";
|
|
12
|
-
import { gitProviderToConfig } from "@src/features/settings/git/GitProvider";
|
|
13
|
-
import { useWriteAPIToken } from "@src/features/settings/git/useWriteAPIToken";
|
|
14
|
-
import { useRepositoryInformation } from "@src/hooks/useRepositoryInformation";
|
|
15
12
|
import { Formik } from "formik";
|
|
16
13
|
import type { FC, ReactNode } from "react";
|
|
17
14
|
import { toast } from "react-toastify";
|
|
18
15
|
|
|
16
|
+
import { gitProviderToConfig } from "@/features/settings/git/GitProvider";
|
|
17
|
+
import { useWriteAPIToken } from "@/features/settings/git/useWriteAPIToken";
|
|
18
|
+
import { useRepositoryInformation } from "@/hooks/useRepositoryInformation";
|
|
19
|
+
|
|
19
20
|
type GitRepositoryConnectDialogProps = {
|
|
20
21
|
linkRepo: (repo: GitRepoSpecifier) => Promise<void>;
|
|
21
22
|
repo: GitRepo;
|