slice-machine-ui 1.26.1-beta.8 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +6 -1
- package/.storybook/preview.tsx +2 -1
- package/out/404.html +1 -1
- package/out/_next/static/QWi-WrYk9EtyMIs1RfQ3_/_buildManifest.js +1 -0
- package/out/_next/static/chunks/{183-ebd633fed7c74545.js → 183-6ad1d7303abecd2b.js} +1 -1
- package/out/_next/static/chunks/18539003-32a73014bab3a789.js +22 -0
- package/out/_next/static/chunks/188-2e42d5ebef697946.js +1 -0
- package/out/_next/static/chunks/569-2ae3e9666f3bf991.js +1 -0
- package/out/_next/static/chunks/614-5130fbdbcfab2d35.js +1 -0
- package/out/_next/static/chunks/661-78c8c89d258133b8.js +1 -0
- package/out/_next/static/chunks/756-b11a3060cdc2f2d3.js +10 -0
- package/out/_next/static/chunks/90-2d4bdae13d031364.js +1 -0
- package/out/_next/static/chunks/91-67c244a4a034c8de.js +1 -0
- package/out/_next/static/chunks/pages/_app-0fe871bb1059a05c.js +532 -0
- package/out/_next/static/chunks/pages/changelog-3f04a3d8747ae383.js +1 -0
- package/out/_next/static/chunks/pages/changes-ec62e7eb50d6f2be.js +1 -0
- package/out/_next/static/chunks/pages/custom-types/[customTypeId]-982ecf1d799b6bcf.js +1 -0
- package/out/_next/static/chunks/pages/{custom-types-3c8e721ec6802127.js → custom-types-900b40b54b74e6d6.js} +1 -1
- package/out/_next/static/chunks/pages/{index-cf93d16e9c63b6db.js → index-ccd2975faba412f6.js} +1 -1
- package/out/_next/static/chunks/pages/labs-830dde0b85d6dd01.js +1 -0
- package/out/_next/static/chunks/pages/page-types/[pageTypeId]-886fc28240831dae.js +1 -0
- package/out/_next/static/chunks/pages/settings-f61144a9387fd6f1.js +1 -0
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-9bdb355306fca592.js +1 -0
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-ad66e6c755798ce7.js +1 -0
- package/out/_next/static/chunks/pages/slices-d65be4ca817a766d.js +1 -0
- package/out/_next/static/css/037ba37d121d4afe.css +1 -0
- package/out/_next/static/css/22f264c93bd9d85f.css +1 -0
- package/out/_next/static/css/6279e95f6aff22d5.css +1 -0
- package/out/_next/static/css/824d6e761aed01d2.css +1 -0
- package/out/_next/static/css/e3ffbc7931a47375.css +1 -0
- package/out/_next/static/css/f01f60095c76c7fb.css +1 -0
- package/out/changelog.html +1 -1
- package/out/changes.html +1 -1
- package/out/custom-types/[customTypeId].html +1 -1
- package/out/custom-types.html +1 -1
- package/out/index.html +1 -1
- package/out/labs.html +1 -1
- package/out/page-types/[pageTypeId].html +1 -1
- package/out/settings.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
- package/out/slices.html +1 -1
- package/package.json +10 -11
- package/sentry.client.config.ts +2 -1
- package/src/ErrorBoundary.tsx +1 -1
- package/src/apiClient.ts +13 -9
- package/src/components/BaseHoverCard/BaseHoverCard.module.css +18 -0
- package/src/components/BaseHoverCard/BaseHoverCard.module.css.d.ts +7 -0
- package/src/components/BaseHoverCard/BaseHoverCard.stories.tsx +1 -1
- package/src/components/BaseHoverCard/BaseHoverCard.test.tsx +1 -1
- package/src/components/BaseHoverCard/BaseHoverCard.tsx +2 -2
- package/src/components/BlankSlate/BlankSlate.module.css +74 -0
- package/src/components/BlankSlate/BlankSlate.module.css.d.ts +13 -0
- package/src/components/BlankSlate/BlankSlate.stories.tsx +1 -1
- package/src/components/BlankSlate/BlankSlate.tsx +1 -1
- package/src/components/BlankSlate/index.ts +1 -1
- package/src/components/Breadcrumb/Breadcrumb.tsx +1 -1
- package/src/components/Card/Card.module.css +202 -0
- package/src/components/Card/Card.module.css.d.ts +22 -0
- package/src/components/Card/Card.stories.tsx +3 -3
- package/src/components/Card/Card.tsx +8 -8
- package/src/components/CodeBlock/CodeBlock.module.css +46 -0
- package/src/components/CodeBlock/CodeBlock.module.css.d.ts +10 -0
- package/src/components/CodeBlock/CodeBlock.tsx +7 -7
- package/src/components/ContentTabs/ContentTabs.module.css +60 -0
- package/src/components/ContentTabs/ContentTabs.module.css.d.ts +12 -0
- package/src/components/ContentTabs/ContentTabs.tsx +2 -2
- package/src/components/Count/Count.tsx +1 -1
- package/src/components/Divider/Divider.module.css +23 -0
- package/src/components/Divider/Divider.module.css.d.ts +7 -0
- package/src/components/Divider/Divider.stories.tsx +3 -4
- package/src/components/Divider/Divider.tsx +5 -8
- package/src/components/HoverCard/HoverCard.module.css +79 -0
- package/src/components/HoverCard/HoverCard.module.css.d.ts +13 -0
- package/src/components/HoverCard/HoverCard.stories.tsx +3 -2
- package/src/components/HoverCard/HoverCard.test.tsx +2 -2
- package/src/components/HoverCard/HoverCard.tsx +3 -3
- package/src/components/HoverCard/index.ts +3 -3
- package/src/components/List/List.css.ts +4 -2
- package/src/components/PageLayout/PageLayout.module.css +1 -1
- package/src/components/SideNav/SideNav.module.css +1 -1
- package/src/components/SideNav/SideNav.stories.tsx +6 -6
- package/src/components/SideNav/SideNav.tsx +8 -8
- package/src/components/SideNav/SideNavEnvironmentSelector.tsx +10 -12
- package/src/components/Table/Table.stories.tsx +2 -2
- package/src/components/Table/Table.test.tsx +2 -2
- package/src/components/Table/Table.tsx +2 -2
- package/src/components/Table/index.ts +1 -1
- package/src/components/TextLink/TextLink.module.css +58 -0
- package/src/components/TextLink/TextLink.module.css.d.ts +11 -0
- package/src/components/TextLink/TextLink.stories.tsx +1 -1
- package/src/components/TextLink/TextLink.tsx +5 -5
- package/src/domain/__tests__/customType.test.ts +1 -186
- package/src/domain/__tests__/group.test.ts +161 -0
- package/src/domain/__tests__/slice.test.ts +3 -3
- package/src/domain/customType.ts +1 -193
- package/src/domain/group.ts +89 -0
- package/src/domain/slice.ts +28 -12
- package/src/features/autoSave/AutoSaveStatusIndicator.tsx +2 -2
- package/src/features/changelog/useSliceMachineLatestNonBreakingVersion.ts +1 -1
- package/src/features/changelog/useSliceMachineReleaseNotes.ts +1 -1
- package/src/features/changelog/useSliceMachineVersions.ts +2 -2
- package/src/features/changes/BlankSlates/NoChangesBlankSlate.tsx +11 -14
- package/src/features/changes/PushChangesButton.tsx +5 -5
- package/src/features/changes/StatusBadge.tsx +2 -2
- package/src/features/customTypes/EditDropdown.tsx +6 -9
- package/src/features/customTypes/PageTypeOnboarding.tsx +5 -5
- package/src/features/customTypes/__tests__/CustomTypeBuilderPage.test.tsx +11 -12
- package/src/features/customTypes/__tests__/CustomTypesTablePage.test.tsx +11 -10
- package/src/features/customTypes/actions/convertCustomToPageType.ts +4 -4
- package/src/features/customTypes/actions/createCustomType.ts +5 -5
- package/src/features/customTypes/actions/deleteCustomType.ts +3 -3
- package/src/features/customTypes/actions/renameCustomType.ts +3 -3
- package/src/features/customTypes/customTypesBuilder/CustomTypeProvider.tsx +8 -8
- package/src/features/customTypes/customTypesBuilder/CustomTypesBuilderPage.tsx +17 -12
- package/src/features/customTypes/customTypesBuilder/PageSnippetDialog/PageSnippetDialog.module.css +8 -0
- package/src/features/customTypes/customTypesBuilder/PageSnippetDialog/PageSnippetDialog.module.css.d.ts +5 -0
- package/src/features/customTypes/customTypesBuilder/PageSnippetDialog/PageSnippetDialog.tsx +8 -8
- package/src/features/customTypes/customTypesBuilder/SliceZoneBlankSlate.tsx +3 -3
- package/src/features/customTypes/customTypesBuilder/useCustomType.ts +1 -1
- package/src/features/customTypes/customTypesConfig.ts +2 -2
- package/src/features/customTypes/customTypesTable/CustomTypesTable.tsx +16 -16
- package/src/features/customTypes/customTypesTable/CustomTypesTablePage.tsx +9 -9
- package/src/features/customTypes/customTypesTable/useCustomTypes.ts +8 -8
- package/src/features/documentation/MarkdownRenderer/MarkdownRenderer.module.css +11 -0
- package/src/features/documentation/MarkdownRenderer/MarkdownRenderer.module.css.d.ts +6 -0
- package/src/features/documentation/MarkdownRenderer/index.tsx +6 -7
- package/src/features/documentation/useDocumentation.ts +1 -1
- package/src/features/environments/actions/getActiveEnvironment.ts +1 -1
- package/src/features/environments/actions/getEnvironments.ts +1 -1
- package/src/features/environments/actions/setEnvironment.ts +3 -3
- package/src/features/inAppGuide/InAppGuideContext.tsx +2 -2
- package/src/features/inAppGuide/InAppGuideDialog.tsx +4 -4
- package/src/features/inAppGuide/inAppGuideContent.tsx +4 -4
- package/src/features/labs/labsList/LabsList.tsx +2 -2
- package/src/features/labs/labsList/LabsListItem.tsx +1 -1
- package/src/features/labs/labsList/LabsPage.tsx +5 -5
- package/src/features/labs/labsList/useLab.tsx +1 -1
- package/src/features/settings/SettingsPage.tsx +4 -4
- package/src/features/settings/git/ConnectGitRepository.tsx +9 -9
- package/src/features/settings/git/GitOwnerSelect.tsx +1 -1
- package/src/features/settings/git/GitProvider.ts +4 -4
- package/src/features/settings/git/GitProviderConnectButtons.tsx +1 -1
- package/src/features/settings/git/GitRepositoriesList.tsx +5 -5
- package/src/features/settings/git/GitRepositoriesSearch.tsx +5 -5
- package/src/features/settings/git/GitRepositoryConnectDialog.tsx +5 -8
- package/src/features/settings/git/useGitIntegrationExperiment.ts +1 -1
- package/src/features/settings/git/useGitOwners.ts +1 -1
- package/src/features/settings/git/useGitRepos.ts +1 -1
- package/src/features/settings/git/useLinkedGitRepos.ts +2 -2
- package/src/features/settings/git/useWriteAPIToken.ts +2 -2
- package/src/features/slices/actions/addSlicesToSliceZone.ts +2 -2
- package/src/features/slices/actions/createSlice.ts +5 -5
- package/src/features/slices/actions/deleteSlice.ts +1 -1
- package/src/features/slices/actions/renameSlice.ts +4 -4
- package/src/features/slices/actions/uploadSliceScreenshot.ts +2 -2
- package/src/features/slices/convertLegacySlice/ConvertLegacySliceAsNewSliceDialog.tsx +10 -10
- package/src/features/slices/convertLegacySlice/ConvertLegacySliceAsNewVariationDialog.tsx +7 -7
- package/src/features/slices/convertLegacySlice/ConvertLegacySliceButton.module.css +14 -0
- package/src/features/slices/convertLegacySlice/ConvertLegacySliceButton.module.css.d.ts +6 -0
- package/src/features/slices/convertLegacySlice/ConvertLegacySliceButton.tsx +12 -12
- package/src/features/slices/convertLegacySlice/ConvertLegacySliceMergeWithIdenticalDialog.tsx +5 -8
- package/src/features/slices/convertLegacySlice/types.ts +2 -2
- package/src/features/slices/sliceBuilder/FloatingBackButton.tsx +6 -6
- package/src/features/slices/sliceBuilder/SliceBuilderProvider.tsx +9 -9
- package/src/features/slices/sliceBuilder/actions/deleteVariation.ts +4 -4
- package/src/features/slices/sliceBuilder/actions/renameVariation.ts +3 -3
- package/src/features/slices/sliceCards/NonSharedSliceCard.tsx +4 -4
- package/src/features/slices/sliceCards/SharedSliceCard.tsx +7 -7
- package/src/features/slicesTemplates/actions/createSlicesTemplates.ts +2 -2
- package/src/features/slicesTemplates/useSlicesTemplates.ts +2 -1
- package/src/features/sync/AutoSyncProvider.tsx +17 -17
- package/src/features/sync/actions/pushChanges.ts +4 -3
- package/src/features/sync/actions/trackPushChangesSuccess.ts +3 -3
- package/src/features/sync/components/AutoSyncStatusIndicator.module.css +1 -1
- package/src/features/sync/components/AutoSyncStatusIndicator.tsx +4 -4
- package/src/features/sync/fetchUnSyncChanges.ts +5 -5
- package/src/features/sync/getUnSyncChanges.ts +9 -9
- package/src/features/sync/useUnSyncChanges.ts +5 -5
- package/src/hooks/useActionQueue.tsx +5 -5
- package/src/hooks/useAdapterName.ts +1 -1
- package/src/hooks/useAuthStatus.ts +2 -2
- package/src/hooks/useCurrentSlice.tsx +4 -4
- package/src/hooks/useEditorContent.ts +5 -4
- package/src/hooks/useExperimentVariant.ts +2 -2
- package/src/hooks/useIsEmptyProject.ts +1 -1
- package/src/hooks/useRepositoryInformation.ts +2 -2
- package/src/hooks/useRouteChange.tsx +1 -1
- package/src/hooks/useSMTracker.ts +6 -6
- package/src/hooks/useScreenshotChangesModal.ts +5 -4
- package/src/hooks/useServerState.ts +4 -4
- package/src/hooks/useSliceMachineConfig.ts +2 -2
- package/src/hooks/useSliceMachineRunningVersion.ts +1 -1
- package/src/hooks/useThrottle.ts +1 -1
- package/src/hooks/useUpdateAvailable.ts +1 -1
- package/src/hooks/useWindowDimensions.ts +1 -1
- package/src/hooks/useWindowSize.ts +2 -1
- package/{components → src/legacy/components}/App/index.tsx +8 -8
- package/{components → src/legacy/components}/AppLayout/index.tsx +5 -6
- package/{components → src/legacy/components}/AuthInstructions/index.jsx +1 -1
- package/{components → src/legacy/components}/Button/index.tsx +1 -2
- package/{components → src/legacy/components}/Card/Default.jsx +2 -1
- package/{components → src/legacy/components}/Card/Preview.jsx +1 -1
- package/{components → src/legacy/components}/Card/WithTabs/index.jsx +4 -3
- package/{components → src/legacy/components}/Card/index.tsx +1 -0
- package/{components → src/legacy/components}/Changelog/index.tsx +8 -8
- package/{components → src/legacy/components}/Changelog/navigation/VersionBadge.tsx +2 -1
- package/{components → src/legacy/components}/Changelog/navigation/VersionTag.tsx +1 -0
- package/{components → src/legacy/components}/Changelog/navigation/index.tsx +6 -6
- package/{components → src/legacy/components}/Changelog/versionDetails/UpdateCommandBox.tsx +6 -6
- package/{components → src/legacy/components}/Changelog/versionDetails/VersionKindLabel.tsx +3 -4
- package/{components → src/legacy/components}/Changelog/versionDetails/index.tsx +5 -5
- package/{components → src/legacy/components}/ChangesEmptyState/AuthErrorPage.tsx +5 -5
- package/{components → src/legacy/components}/ChangesItems/ChangesItems.tsx +14 -14
- package/{components → src/legacy/components}/ChangesItems/DevCollaborationExperiment.tsx +3 -3
- package/{components → src/legacy/components}/CodeBlock/index.tsx +3 -3
- package/{components → src/legacy/components}/ConfigErrors/index.jsx +4 -3
- package/{components → src/legacy/components}/CustomTypeTable/changesPage.tsx +9 -8
- package/{components → src/legacy/components}/DeleteCTModal/index.tsx +9 -9
- package/{components → src/legacy/components}/DeleteDocumentsDrawer/AssociatedDocumentsCard.tsx +4 -4
- package/{components → src/legacy/components}/DeleteDocumentsDrawer/HardDeleteDocumentsDrawer.tsx +9 -9
- package/{components → src/legacy/components}/DeleteDocumentsDrawer/SoftDeleteDocumentsDrawer.tsx +9 -8
- package/{components → src/legacy/components}/DeleteSliceModal/index.tsx +6 -6
- package/{components → src/legacy/components}/DeleteVariationModal/index.tsx +6 -6
- package/{components → src/legacy/components}/DropDownSelector/index.tsx +2 -4
- package/{components → src/legacy/components}/EmptyState/index.tsx +3 -3
- package/{components → src/legacy/components}/FormFields/Array.jsx +2 -4
- package/{components → src/legacy/components}/FormFields/Checkbox.jsx +1 -1
- package/{components → src/legacy/components}/FormFields/CheckboxControl.jsx +1 -1
- package/{components → src/legacy/components}/FormFields/Input.tsx +3 -2
- package/{components → src/legacy/components}/FormFields/SelectDefaultValue.jsx +1 -1
- package/{components → src/legacy/components}/Forms/CreateCustomTypeModal/CreateCustomTypeModal.tsx +18 -18
- package/{components → src/legacy/components}/Forms/CreateSliceModal/CreateSliceModal.tsx +10 -10
- package/{components → src/legacy/components}/Forms/RenameCustomTypeModal/RenameCustomTypeModal.tsx +12 -12
- package/{components → src/legacy/components}/Forms/RenameSliceModal/RenameSliceModal.tsx +8 -8
- package/src/legacy/components/Forms/RenameVariationModal/RenameVariationModal.module.css +5 -0
- package/src/legacy/components/Forms/RenameVariationModal/RenameVariationModal.module.css.d.ts +5 -0
- package/{components → src/legacy/components}/Forms/RenameVariationModal/RenameVariationModal.tsx +7 -7
- package/{components → src/legacy/components}/Forms/components/InputBox.tsx +2 -2
- package/{components → src/legacy/components}/Forms/components/SelectRepeatable.tsx +4 -3
- package/{components → src/legacy/components}/Forms/formsValidator.ts +6 -4
- package/{components → src/legacy/components}/FullPage/index.tsx +1 -1
- package/{components → src/legacy/components}/ListItem/Header.tsx +3 -2
- package/{components → src/legacy/components}/ListItem/index.tsx +8 -10
- package/{components → src/legacy/components}/LoadingPage/index.tsx +1 -0
- package/{components → src/legacy/components}/LoginModal/index.tsx +22 -22
- package/{components → src/legacy/components}/ModalFormCard/index.tsx +7 -6
- package/{components → src/legacy/components}/Navigation/ChangesItem.tsx +18 -16
- package/{components → src/legacy/components}/Navigation/Environment.tsx +13 -13
- package/{components → src/legacy/components}/Navigation/RunningVersion.tsx +2 -2
- package/{components → src/legacy/components}/Navigation/UpdateBox.tsx +3 -3
- package/src/legacy/components/Navigation/VideoItem.module.css.d.ts +5 -0
- package/{components → src/legacy/components}/Navigation/VideoItem.tsx +14 -13
- package/src/legacy/components/Navigation/index.module.css +3 -0
- package/src/legacy/components/Navigation/index.module.css.d.ts +5 -0
- package/{components → src/legacy/components}/Navigation/index.test.tsx +12 -12
- package/{components → src/legacy/components}/Navigation/index.tsx +20 -21
- package/{components → src/legacy/components}/ReviewModal/ReviewForm.tsx +12 -12
- package/{components → src/legacy/components}/ReviewModal/ReviewModal.tsx +6 -6
- package/{components → src/legacy/components}/ScreenshotChangesModal/VariationDropZone.tsx +7 -7
- package/{components → src/legacy/components}/ScreenshotChangesModal/index.tsx +12 -15
- package/{components → src/legacy/components}/ScreenshotChangesModal/useCustomScreenshot.tsx +1 -1
- package/{components → src/legacy/components}/ScreenshotPreviewModal/index.tsx +8 -7
- package/{components → src/legacy/components}/Simulator/components/FailedConnect/index.tsx +3 -3
- package/{components → src/legacy/components}/Simulator/components/Header/VariationsPopover/MenuList.tsx +2 -1
- package/{components → src/legacy/components}/Simulator/components/Header/VariationsPopover/index.tsx +4 -5
- package/{components → src/legacy/components}/Simulator/components/Header/index.tsx +7 -7
- package/{components → src/legacy/components}/Simulator/components/IframeRenderer/index.tsx +3 -4
- package/{components → src/legacy/components}/Simulator/components/Toolbar/ScreensizeInput/index.tsx +2 -1
- package/{components → src/legacy/components}/Simulator/components/Toolbar/index.tsx +4 -5
- package/{components → src/legacy/components}/Simulator/index.tsx +25 -30
- package/{components → src/legacy/components}/SliceMachineDrawer/index.tsx +3 -2
- package/{components → src/legacy/components}/ToasterContainer/index.tsx +3 -5
- package/{components → src/legacy/components}/Tooltip/TextWithTooltip.tsx +2 -2
- package/{components → src/legacy/components}/Tooltip/index.jsx +2 -2
- package/{components → src/legacy/components}/Warnings/index.jsx +1 -1
- package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/DeleteSliceZoneModal.tsx +4 -4
- package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/List.tsx +8 -8
- package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/SlicesTemplatesModal.tsx +11 -11
- package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/UpdateSliceZoneModal.tsx +3 -3
- package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/UpdateSliceZoneModalList.tsx +4 -3
- package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/index.tsx +26 -23
- package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/sliceTemplatesComingSoon.ts +1 -1
- package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/TabModal/InputBox.tsx +1 -1
- package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/TabModal/create.tsx +2 -1
- package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/TabModal/delete.tsx +2 -2
- package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/TabModal/update.tsx +3 -2
- package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/TabZone/index.tsx +34 -32
- package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/index.tsx +5 -5
- package/{lib → src/legacy/lib}/builders/SliceBuilder/FieldZones/index.tsx +43 -52
- package/{lib → src/legacy/lib}/builders/SliceBuilder/SimulatorButton/index.tsx +12 -11
- package/{lib/builders/SliceBuilder/Sidebar → src/legacy/lib/builders/SliceBuilder/VariationsList}/AddVariationModal.tsx +7 -7
- package/src/legacy/lib/builders/SliceBuilder/VariationsList/VariationsList.module.css +10 -0
- package/src/legacy/lib/builders/SliceBuilder/VariationsList/VariationsList.module.css.d.ts +5 -0
- package/src/legacy/lib/builders/SliceBuilder/VariationsList/index.tsx +253 -0
- package/{lib → src/legacy/lib}/builders/SliceBuilder/index.tsx +18 -13
- package/{lib → src/legacy/lib}/builders/common/EditModal/Field.jsx +3 -5
- package/{lib → src/legacy/lib}/builders/common/EditModal/Form.jsx +1 -1
- package/{lib → src/legacy/lib}/builders/common/EditModal/index.jsx +14 -16
- package/{lib → src/legacy/lib}/builders/common/SelectFieldTypeModal/index.jsx +3 -4
- package/{lib → src/legacy/lib}/builders/common/Zone/Card/components/ErrorTooltip.tsx +2 -2
- package/{lib → src/legacy/lib}/builders/common/Zone/Card/components/Hints/CodeBlock.tsx +4 -5
- 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 +16 -13
- package/{lib → src/legacy/lib}/builders/common/Zone/Card/index.jsx +15 -9
- package/src/legacy/lib/builders/common/Zone/components/ZoneEmptyState/ZoneEmptyState.module.css +12 -0
- package/src/legacy/lib/builders/common/Zone/components/ZoneEmptyState/ZoneEmptyState.module.css.d.ts +5 -0
- package/src/legacy/lib/builders/common/Zone/components/ZoneEmptyState/ZoneEmptyState.tsx +39 -0
- package/src/legacy/lib/builders/common/Zone/components/ZoneEmptyState/index.tsx +1 -0
- package/{lib → src/legacy/lib}/builders/common/Zone/index.jsx +37 -19
- package/{lib → src/legacy/lib}/builders/utils/index.ts +1 -1
- package/{lib → src/legacy/lib}/forms/fields.ts +1 -2
- package/{lib → src/legacy/lib}/forms/index.ts +1 -0
- package/{lib → src/legacy/lib}/models/common/CustomType/index.ts +5 -4
- package/{lib → src/legacy/lib}/models/common/CustomType/sliceZone.ts +2 -1
- package/{lib → src/legacy/lib}/models/common/DeprecatedMockConfigMessage.tsx +3 -2
- package/{lib → src/legacy/lib}/models/common/Environment.ts +2 -2
- package/{lib → src/legacy/lib}/models/common/Group.ts +3 -2
- package/{lib → src/legacy/lib}/models/common/Library.ts +2 -1
- package/{lib → src/legacy/lib}/models/common/LibraryUI.ts +1 -1
- package/{lib → src/legacy/lib}/models/common/ModelData.ts +3 -3
- package/{lib → src/legacy/lib}/models/common/ModelStatus/compareCustomTypeModels.ts +2 -1
- package/{lib → src/legacy/lib}/models/common/ModelStatus/compareSliceModels.ts +2 -1
- package/{lib → src/legacy/lib}/models/common/ModelStatus/index.ts +10 -9
- package/{lib → src/legacy/lib}/models/common/Slice.ts +19 -5
- package/{lib → src/legacy/lib}/models/common/normalizers/customType.ts +2 -2
- package/{lib → src/legacy/lib}/models/common/normalizers/slices.ts +3 -2
- package/{lib → src/legacy/lib}/models/common/widgets/Boolean/index.ts +5 -7
- package/{lib → src/legacy/lib}/models/common/widgets/Color/index.ts +2 -3
- package/{lib → src/legacy/lib}/models/common/widgets/ContentRelationship/Form.tsx +9 -10
- package/{lib → src/legacy/lib}/models/common/widgets/ContentRelationship/index.ts +7 -7
- package/{lib → src/legacy/lib}/models/common/widgets/GeoPoint/index.ts +2 -3
- package/{lib → src/legacy/lib}/models/common/widgets/Group/Form.jsx +6 -6
- package/{lib → src/legacy/lib}/models/common/widgets/Group/ListItem/index.jsx +63 -76
- package/{lib → src/legacy/lib}/models/common/widgets/Group/index.ts +6 -4
- package/{lib → src/legacy/lib}/models/common/widgets/Image/Form.tsx +9 -11
- package/{lib → src/legacy/lib}/models/common/widgets/Image/components.tsx +6 -5
- package/{lib → src/legacy/lib}/models/common/widgets/Image/index.ts +3 -5
- package/{lib → src/legacy/lib}/models/common/widgets/Link/Form.jsx +5 -7
- package/{lib → src/legacy/lib}/models/common/widgets/LinkToMedia/Form.jsx +4 -6
- package/{lib → src/legacy/lib}/models/common/widgets/LinkToMedia/index.ts +4 -4
- package/{lib → src/legacy/lib}/models/common/widgets/Select/FormFields.jsx +7 -7
- package/{lib → src/legacy/lib}/models/common/widgets/Select/index.ts +3 -6
- package/{lib → src/legacy/lib}/models/common/widgets/StructuredText/Form.tsx +12 -11
- package/{lib → src/legacy/lib}/models/common/widgets/StructuredText/index.ts +3 -6
- package/{lib → src/legacy/lib}/models/common/widgets/StructuredText/options.tsx +2 -2
- package/{lib → src/legacy/lib}/models/common/widgets/Timestamp/index.ts +4 -5
- package/{lib → src/legacy/lib}/models/common/widgets/UID/index.ts +4 -5
- package/{lib → src/legacy/lib}/models/common/widgets/Widget.ts +3 -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 +4 -3
- package/{lib → src/legacy/lib}/utils/index.ts +4 -5
- package/{lib → src/legacy/lib}/utils/shared/customTypes.ts +1 -1
- package/src/modules/availableCustomTypes/index.ts +15 -13
- package/src/modules/availableCustomTypes/types.ts +2 -2
- package/src/modules/environment/index.ts +10 -8
- package/src/modules/environment/types.ts +1 -1
- package/src/modules/loading/index.ts +3 -2
- package/src/modules/modal/index.ts +4 -2
- package/src/modules/slices/index.ts +13 -9
- package/src/modules/slices/selector.ts +1 -1
- package/src/modules/slices/types.ts +2 -2
- package/src/modules/useSliceMachineActions.ts +25 -20
- package/src/modules/userContext/index.ts +5 -3
- package/{pages → src/pages}/_app.tsx +23 -25
- package/{pages → src/pages}/changelog.tsx +1 -1
- package/{pages → src/pages}/changes.tsx +22 -19
- package/src/pages/custom-types/[customTypeId].tsx +1 -0
- package/{pages → src/pages}/custom-types.tsx +1 -1
- package/{pages → src/pages}/index.tsx +3 -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 +3 -3
- package/{pages → src/pages}/slices/[lib]/[sliceName]/[variation]/simulator.tsx +2 -2
- package/{pages → src/pages}/slices.tsx +21 -21
- package/src/redux/reducer.ts +8 -7
- package/src/redux/store.ts +8 -6
- package/src/redux/type.ts +7 -6
- package/src/theme.ts +1 -2
- 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 +3 -3
- 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 +5 -10
- package/components/Forms/RenameVariationModal/RenameVariationModal.css.ts +0 -7
- package/components/Navigation/index.css.ts +0 -5
- package/lib/builders/SliceBuilder/Sidebar/index.tsx +0 -157
- package/lib/builders/common/Zone/components/EmptyState/index.tsx +0 -33
- package/lib/models/common/widgets/sliceBuilderArray.ts +0 -31
- package/lib/models/common/widgets/withGroup.ts +0 -20
- package/out/_next/static/DDGXqSbSEqwX8wX_VNauB/_buildManifest.js +0 -1
- package/out/_next/static/chunks/18539003-a5a5d48f20a7b261.js +0 -97
- package/out/_next/static/chunks/25-792af14760d9df34.js +0 -1
- package/out/_next/static/chunks/286-e0950c3083c672e8.js +0 -1
- package/out/_next/static/chunks/318-77a29f41c3a027e3.js +0 -1
- package/out/_next/static/chunks/46-d22d7a121254e31d.js +0 -8
- package/out/_next/static/chunks/727-7536690b0938f88f.js +0 -1
- package/out/_next/static/chunks/799-7b910b896ff60ebe.js +0 -1
- package/out/_next/static/chunks/904-cac58924044acc83.js +0 -1
- package/out/_next/static/chunks/pages/_app-07e1633e9adb1796.js +0 -436
- package/out/_next/static/chunks/pages/changelog-4cee9fbfd4fdfc70.js +0 -1
- package/out/_next/static/chunks/pages/changes-b1d7cb1c845848ee.js +0 -1
- package/out/_next/static/chunks/pages/custom-types/[customTypeId]-d1a4a07e6b600fa6.js +0 -1
- package/out/_next/static/chunks/pages/labs-566a982a3e954547.js +0 -1
- package/out/_next/static/chunks/pages/page-types/[pageTypeId]-a724ff12ef322020.js +0 -1
- package/out/_next/static/chunks/pages/settings-6c2777758905c784.js +0 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-01d67e97cb901e46.js +0 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-a32fd588b27e92d7.js +0 -1
- package/out/_next/static/chunks/pages/slices-a633527fee62b6cd.js +0 -1
- package/out/_next/static/css/72465cc1225f28a2.css +0 -1
- package/out/_next/static/css/82840c077aa9a9d5.css +0 -1
- package/out/_next/static/css/838fd8bb5a7c32b0.css +0 -1
- package/out/_next/static/css/b22c0750c14cc089.css +0 -1
- package/out/_next/static/css/be1f49e49a5aa7eb.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/src/components/BaseHoverCard/BaseHoverCard.css.ts +0 -25
- package/src/components/BlankSlate/BlankSlate.css.ts +0 -96
- package/src/components/Card/Card.css.ts +0 -188
- package/src/components/CodeBlock/CodeBlock.css.ts +0 -37
- package/src/components/ContentTabs/ContentTabs.css.ts +0 -49
- package/src/components/Divider/Divider.css.ts +0 -31
- package/src/components/HoverCard/HoverCard.css.ts +0 -105
- package/src/components/TextLink/TextLink.css.ts +0 -65
- package/src/features/customTypes/customTypesBuilder/PageSnippetDialog/PageSnippetDialog.css.ts +0 -12
- package/src/features/documentation/MarkdownRenderer/MarkdownRenderer.css.ts +0 -13
- package/src/features/slices/convertLegacySlice/ConvertLegacySliceButton.css.ts +0 -15
- package/src/features/slices/sliceBuilder/useGroupsInSlicesExperiment.ts +0 -8
- package/out/_next/static/{DDGXqSbSEqwX8wX_VNauB → QWi-WrYk9EtyMIs1RfQ3_}/_ssgManifest.js +0 -0
- package/{components → src/legacy/components}/Card/CardBox.tsx +0 -0
- package/{components → src/legacy/components}/Card/WithTabs/components.jsx +1 -1
- package/{components → src/legacy/components}/Changelog/versionDetails/ReleaseNotesDetails.tsx +1 -1
- package/{components → src/legacy/components}/ChangesEmptyState/OfflinePage.tsx +1 -1
- package/{components → src/legacy/components}/ChangesEmptyState/index.ts +1 -1
- package/{components → src/legacy/components}/ChangesItems/ErrorBanner.tsx +1 -1
- 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 +1 -1
- package/{components → src/legacy/components}/DropDownSelector/MenuList.tsx +0 -0
- package/{components → src/legacy/components}/Flex/index.tsx +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/index.ts +0 -0
- package/{components → src/legacy/components}/Forms/components/FlexCard.tsx +0 -0
- package/{components → src/legacy/components}/Forms/formsTypes.ts +0 -0
- package/{components → src/legacy/components}/Grid/index.tsx +0 -0
- package/{components → src/legacy/components}/InputDeleteIcon/index.jsx +1 -1
- package/{components → src/legacy/components}/ItemHeader/index.tsx +1 -1
- 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}/MissingLibraries/index.tsx +0 -0
- package/{components → src/legacy/components}/Navigation/VideoItem.module.css +0 -0
- package/{components → src/legacy/components}/ReactTooltipPortal/index.tsx +0 -0
- package/{components → src/legacy/components}/ReviewModal/ReviewFormSelect.tsx +1 -1
- package/{components → src/legacy/components}/ReviewModal/index.ts +0 -0
- package/{components → src/legacy/components}/ScreenshotPreview/index.tsx +1 -1
- 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 +1 -1
- package/{components → src/legacy/components}/SliceMachineModal/index.tsx +1 -1
- 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/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}/consts.ts +0 -0
- package/{lib → src/legacy/lib}/env/sentry.ts +0 -0
- package/{lib → src/legacy/lib}/forms/defaults.ts +1 -1
- 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 +1 -1
- package/{lib → src/legacy/lib}/models/common/CustomType/tab.ts +4 -4
- package/{lib → src/legacy/lib}/models/common/ErrorWithStatus.ts +0 -0
- package/{lib → src/legacy/lib}/models/common/Fields.ts +1 -1
- package/{lib → src/legacy/lib}/models/common/Manifest.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 +2 -2
- 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/Date/index.ts +2 -2
- package/{lib → src/legacy/lib}/models/common/widgets/Embed/index.ts +2 -2
- package/{lib → src/legacy/lib}/models/common/widgets/Link/index.ts +3 -3
- package/{lib → src/legacy/lib}/models/common/widgets/Number/index.ts +2 -2
- package/{lib → src/legacy/lib}/models/common/widgets/Text/index.ts +5 -5
- package/{lib → src/legacy/lib}/models/common/widgets/ctBuilderArray.ts +0 -0
- package/{lib → src/legacy/lib}/models/common/widgets/index.ts +1 -1
- /package/{lib → src/legacy/lib}/prismic/endpoints.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 +0,0 @@
|
|
|
1
|
-
.Kbd_root__nBos2{background-color:var(--grey2);border-color:var(--grey6);border-radius:3px;border-style:solid;border-width:1px;color:var(--grey11);padding-inline:4px}.kedahr2{height:240px}.kedahr3{height:320px}.kedahr6:focus-visible{box-shadow:0 0 0 4px rgba(123,101,220,.1)}.kedahr6[data-disabled]{opacity:var(--_7j49md3z)}.kedahr6:not([data-disabled]){cursor:var(--_7j49md3n)}.kedahr7{order:0}.kedahr4>.kedahr7{padding:calc(var(--_7j49md55) - var(--_7j49mdh))}.kedahr5>.kedahr7{background-color:var(--_7j49md1a);margin-inline:calc(var(--_7j49md53) - var(--_7j49mdh));margin-top:calc(var(--_7j49md53) - var(--_7j49mdh));padding:var(--_7j49md53)}.kedahr9:not([src]){visibility:hidden}.kedahra:before{content:"";background-color:var(--_7j49md1j);inset:var(--_7j49md4v);opacity:var(--_7j49md3x);position:absolute}.kedahr6:focus-visible .kedahra,.kedahr6:not([data-disabled]) .kedahr7:hover>.kedahra{visibility:visible}.kedahr6:not([data-disabled]) .kedahra:has(:focus-visible){visibility:visible}.kedahr4>.kedahrb{background-color:var(--_7j49md18)}.kedahr4>.kedahrb:not(:first-child){border-top-color:var(--_7j49md1d);border-top-style:inherit;border-top-width:inherit}.kedahrc{order:1}.kedahr4>.kedahrc{padding-left:calc(var(--_7j49md52) - var(--_7j49mdh));padding-right:calc(var(--_7j49md50) - var(--_7j49mdh))}.kedahr5>.kedahrc{padding-inline:calc(var(--_7j49md53) - var(--_7j49mdh))}.kedahrd{order:2}.kedahr4>.kedahrd{padding-inline:calc(var(--_7j49md52) - var(--_7j49mdh))}.kedahr5>.kedahrd{padding-inline:calc(var(--_7j49md53) - var(--_7j49mdh))}.kedahre{margin-bottom:calc((1.5rem - 1rem) / 2)}.kedahrf{background-color:#ebe7fe;color:#5746af}._18bjhbz0{max-width:498px;min-height:400px;background-color:var(--_7j49md18)}._18bjhbz1{background-size:cover;background-color:transparent;border-radius:var(--_7j49md3);border-style:var(--_7j49mdd);height:100%;max-width:100%}._18bjhbz1 ._18bjhbz3{padding:64px}._18bjhbz4{font-size:18px;font-weight:600;line-height:32px}._18bjhbz5{font-weight:400;line-height:24px}._18bjhbz1 ._18bjhbz5{max-width:464px;align-self:center}._18bjhbz1 ._18bjhbz6{justify-content:center}.ovkapw0:focus-visible{outline:none;text-decoration-line:underline}.ovkapw1{font-size:1.2rem;width:18px;height:18px}.ovkapw2{font-size:1rem;width:16px;height:16px}.ovkapw3{font-size:inherit;width:inherit;height:inherit}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._1k08lzu3{height:calc(var(--_7j49md4j) - var(--_7j49mdh))}._1k08lzu5{height:calc(var(--_7j49md48) - var(--_7j49md44));width:calc(var(--_7j49md48) - var(--_7j49md44))}._1k08lzu7{box-shadow:inset 0 calc(-1 * var(--_7j49mdh)) 0 0 var(--_7j49md1d);height:calc(var(--_7j49md4j) - var(--_7j49mdh));-ms-overflow-style:none;scrollbar-width:none}._1k08lzu7::-webkit-scrollbar{display:none}._1k08lzu3+._1k08lzu6>._1k08lzu7{padding-top:var(--_7j49mdh)}._1k08lzu8:last-child:before,:not(:is(:focus,:hover,[data-state=active]))+._1k08lzu8:before{content:"";background-color:var(--_7j49md1e);bottom:var(--_7j49md50);height:var(--_7j49md4f);left:calc(-1 * var(--_7j49md4w));position:absolute;width:var(--_7j49mdh)}._1k08lzu9{max-width:256px}._1k08lzu9[data-state=active]{color:var(--_7j49md1j)}._1k08lzu9:is(:focus,:hover,[data-state=active]):before{content:"";background-color:var(--_7j49md19);border-color:var(--_7j49md1d);border-top-left-radius:var(--_7j49md7);border-top-right-radius:var(--_7j49md7);border-style:var(--_7j49mdf) var(--_7j49mdf) var(--_7j49mdd);border-width:var(--_7j49mdh);box-sizing:border-box;height:calc(var(--_7j49md4p) + var(--_7j49mdh));left:calc(-1 * var(--_7j49mdh));position:absolute;top:calc(-1 * var(--_7j49mdh));width:calc(var(--_7j49md4p) + var(--_7j49mdh))}._1k08lzub{margin-right:calc(-1 * var(--_7j49md50))}:is(:focus,:hover,[data-state=active])>._1k08lzub{visibility:visible}._1k08lzub:has(>[data-state=open]){visibility:visible}._1k08lzuc{box-shadow:inset 0 calc(-1 * var(--_7j49mdh)) 0 0 var(--_7j49md1d),0 calc(-1 * var(--_7j49mdh)) 0 0 var(--_7j49md1a)}._1k08lzud[data-state=inactive]{display:none}:is(._1k08lzu2,._1k08lzud)>._2a96i71{border-radius:var(--_7j49md3);border-style:var(--_7j49mdd)}._2a96i72:last-child{border-bottom-color:var(--_7j49md3k)}._1k08lzud>._2a96i71>._2a96i73:not(:first-child){margin-top:var(--_7j49md53)}.Kbd_root__nBos2{background-color:var(--grey2);border-color:var(--grey6);border-radius:3px;border-style:solid;border-width:1px;color:var(--grey11);padding-inline:4px}.kedahr2{height:240px}.kedahr3{height:320px}.kedahr6:focus-visible{box-shadow:0 0 0 4px rgba(123,101,220,.1)}.kedahr6[data-disabled]{opacity:var(--_7j49md3z)}.kedahr6:not([data-disabled]){cursor:var(--_7j49md3n)}.kedahr7{order:0}.kedahr4>.kedahr7{padding:calc(var(--_7j49md55) - var(--_7j49mdh))}.kedahr5>.kedahr7{background-color:var(--_7j49md1a);margin-inline:calc(var(--_7j49md53) - var(--_7j49mdh));margin-top:calc(var(--_7j49md53) - var(--_7j49mdh));padding:var(--_7j49md53)}.kedahr9:not([src]){visibility:hidden}.kedahra:before{content:"";background-color:var(--_7j49md1j);inset:var(--_7j49md4v);opacity:var(--_7j49md3x);position:absolute}.kedahr6:focus-visible .kedahra,.kedahr6:not([data-disabled]) .kedahr7:hover>.kedahra{visibility:visible}.kedahr6:not([data-disabled]) .kedahra:has(:focus-visible){visibility:visible}.kedahr4>.kedahrb{background-color:var(--_7j49md18)}.kedahr4>.kedahrb:not(:first-child){border-top-color:var(--_7j49md1d);border-top-style:inherit;border-top-width:inherit}.kedahrc{order:1}.kedahr4>.kedahrc{padding-left:calc(var(--_7j49md52) - var(--_7j49mdh));padding-right:calc(var(--_7j49md50) - var(--_7j49mdh))}.kedahr5>.kedahrc{padding-inline:calc(var(--_7j49md53) - var(--_7j49mdh))}.kedahrd{order:2}.kedahr4>.kedahrd{padding-inline:calc(var(--_7j49md52) - var(--_7j49mdh))}.kedahr5>.kedahrd{padding-inline:calc(var(--_7j49md53) - var(--_7j49mdh))}.kedahre{margin-bottom:calc((1.5rem - 1rem) / 2)}.kedahrf{background-color:#ebe7fe;color:#5746af}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.gdfsm51{border-collapse:collapse;table-layout:fixed}.gdfsm55{vertical-align:middle}.gdfsm55:first-child{padding-right:var(--_7j49md4v);width:var(--_7j49md4h)}.gdfsm55:last-child{padding-left:var(--_7j49md4v);padding-right:var(--_7j49md53);width:var(--_7j49md4j)}.gdfsm52 .gdfsm55{font-size:12px;font-weight:500}.gdfsm53 .gdfsm55{border-top-style:var(--_7j49mdf);font-size:14px}.gdfsm53 .gdfsm55:nth-child(2){color:var(--_7j49md1j);font-weight:600}.gdfsm52 .gdfsm55:first-child>.gdfsm56{padding-left:var(--_7j49md4z)}:is(.gdfsm53,.gdfsm52) .gdfsm55:not(:first-child):not(:last-child)>.gdfsm56{display:revert;overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}._18bjhbz0{max-width:498px;min-height:400px;background-color:var(--_7j49md18)}._18bjhbz1{background-size:cover;background-color:transparent;border-radius:var(--_7j49md3);border-style:var(--_7j49mdd);height:100%;max-width:100%}._18bjhbz1 ._18bjhbz3{padding:64px}._18bjhbz4{font-size:18px;font-weight:600;line-height:32px}._18bjhbz5{font-weight:400;line-height:24px}._18bjhbz1 ._18bjhbz5{max-width:464px;align-self:center}._18bjhbz1 ._18bjhbz6{justify-content:center}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.Kbd_root__nBos2{background-color:var(--grey2);border-color:var(--grey6);border-radius:3px;border-style:solid;border-width:1px;color:var(--grey11);padding-inline:4px}.kedahr2{height:240px}.kedahr3{height:320px}.kedahr6:focus-visible{box-shadow:0 0 0 4px rgba(123,101,220,.1)}.kedahr6[data-disabled]{opacity:var(--_7j49md3z)}.kedahr6:not([data-disabled]){cursor:var(--_7j49md3n)}.kedahr7{order:0}.kedahr4>.kedahr7{padding:calc(var(--_7j49md55) - var(--_7j49mdh))}.kedahr5>.kedahr7{background-color:var(--_7j49md1a);margin-inline:calc(var(--_7j49md53) - var(--_7j49mdh));margin-top:calc(var(--_7j49md53) - var(--_7j49mdh));padding:var(--_7j49md53)}.kedahr9:not([src]){visibility:hidden}.kedahra:before{content:"";background-color:var(--_7j49md1j);inset:var(--_7j49md4v);opacity:var(--_7j49md3x);position:absolute}.kedahr6:focus-visible .kedahra,.kedahr6:not([data-disabled]) .kedahr7:hover>.kedahra{visibility:visible}.kedahr6:not([data-disabled]) .kedahra:has(:focus-visible){visibility:visible}.kedahr4>.kedahrb{background-color:var(--_7j49md18)}.kedahr4>.kedahrb:not(:first-child){border-top-color:var(--_7j49md1d);border-top-style:inherit;border-top-width:inherit}.kedahrc{order:1}.kedahr4>.kedahrc{padding-left:calc(var(--_7j49md52) - var(--_7j49mdh));padding-right:calc(var(--_7j49md50) - var(--_7j49mdh))}.kedahr5>.kedahrc{padding-inline:calc(var(--_7j49md53) - var(--_7j49mdh))}.kedahrd{order:2}.kedahr4>.kedahrd{padding-inline:calc(var(--_7j49md52) - var(--_7j49mdh))}.kedahr5>.kedahrd{padding-inline:calc(var(--_7j49md53) - var(--_7j49mdh))}.kedahre{margin-bottom:calc((1.5rem - 1rem) / 2)}.kedahrf{background-color:#ebe7fe;color:#5746af}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { CustomTypesBuilderPage as default } from "@src/features/customTypes/customTypesBuilder/CustomTypesBuilderPage";
|
package/pages/labs.tsx
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { LabsPage as default } from "@src/features/labs/labsList/LabsPage";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { CustomTypesBuilderPage as default } from "@src/features/customTypes/customTypesBuilder/CustomTypesBuilderPage";
|
package/pages/settings.tsx
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SettingsPage as default } from "@src/features/settings/SettingsPage";
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { colors, sprinkles } from "@prismicio/editor-ui";
|
|
2
|
-
import { style } from "@vanilla-extract/css";
|
|
3
|
-
|
|
4
|
-
const reset = sprinkles({
|
|
5
|
-
all: "unset",
|
|
6
|
-
boxSizing: "border-box",
|
|
7
|
-
display: "revert",
|
|
8
|
-
fontFamily: "body",
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
export const container = style([
|
|
12
|
-
reset,
|
|
13
|
-
sprinkles({
|
|
14
|
-
backgroundColor: colors.grey1,
|
|
15
|
-
borderRadius: 6,
|
|
16
|
-
boxShadow: 3,
|
|
17
|
-
}),
|
|
18
|
-
]);
|
|
19
|
-
|
|
20
|
-
export const arrow = style([
|
|
21
|
-
reset,
|
|
22
|
-
sprinkles({
|
|
23
|
-
fill: colors.grey1,
|
|
24
|
-
}),
|
|
25
|
-
]);
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { colors, sprinkles, vars } from "@prismicio/editor-ui";
|
|
2
|
-
import { style } from "@vanilla-extract/css";
|
|
3
|
-
|
|
4
|
-
const column = sprinkles({
|
|
5
|
-
all: "unset",
|
|
6
|
-
boxSizing: "border-box",
|
|
7
|
-
display: "flex",
|
|
8
|
-
flexDirection: "column",
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
export const root = style([
|
|
12
|
-
column,
|
|
13
|
-
sprinkles({
|
|
14
|
-
animationDuration: 300,
|
|
15
|
-
animationName: "fadeIn",
|
|
16
|
-
animationTimingFunction: "easeInOut",
|
|
17
|
-
borderColor: colors.grey6,
|
|
18
|
-
borderRadius: 6,
|
|
19
|
-
borderStyle: "solid",
|
|
20
|
-
borderWidth: 1,
|
|
21
|
-
overflow: "hidden",
|
|
22
|
-
}),
|
|
23
|
-
{ maxWidth: 498, minHeight: 400, backgroundColor: vars.color.greyLight1 },
|
|
24
|
-
]);
|
|
25
|
-
|
|
26
|
-
export const withBackground = style([
|
|
27
|
-
sprinkles({
|
|
28
|
-
textAlign: "center",
|
|
29
|
-
width: "100%",
|
|
30
|
-
}),
|
|
31
|
-
{
|
|
32
|
-
backgroundSize: "cover",
|
|
33
|
-
backgroundColor: "transparent",
|
|
34
|
-
borderRadius: vars.borderRadius[0],
|
|
35
|
-
borderStyle: vars.borderStyle.none,
|
|
36
|
-
height: "100%",
|
|
37
|
-
maxWidth: "100%",
|
|
38
|
-
},
|
|
39
|
-
]);
|
|
40
|
-
|
|
41
|
-
export const image = style([
|
|
42
|
-
column,
|
|
43
|
-
sprinkles({
|
|
44
|
-
borderBottomColor: colors.grey6,
|
|
45
|
-
borderBottomStyle: "solid",
|
|
46
|
-
borderBottomWidth: 1,
|
|
47
|
-
overflow: "hidden",
|
|
48
|
-
}),
|
|
49
|
-
]);
|
|
50
|
-
|
|
51
|
-
export const content = style([
|
|
52
|
-
column,
|
|
53
|
-
sprinkles({ padding: 32 }),
|
|
54
|
-
{
|
|
55
|
-
selectors: {
|
|
56
|
-
[`${withBackground} &`]: {
|
|
57
|
-
padding: "64px",
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
]);
|
|
62
|
-
|
|
63
|
-
export const title = style({
|
|
64
|
-
fontSize: 18,
|
|
65
|
-
fontWeight: 600,
|
|
66
|
-
lineHeight: "32px",
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
export const desc = style({
|
|
70
|
-
fontWeight: 400,
|
|
71
|
-
lineHeight: "24px",
|
|
72
|
-
selectors: {
|
|
73
|
-
[`${withBackground} &`]: {
|
|
74
|
-
maxWidth: "464px",
|
|
75
|
-
alignSelf: "center",
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
export const actions = style([
|
|
81
|
-
sprinkles({
|
|
82
|
-
all: "unset",
|
|
83
|
-
alignItems: "center",
|
|
84
|
-
boxSizing: "border-box",
|
|
85
|
-
display: "flex",
|
|
86
|
-
gap: 16,
|
|
87
|
-
marginTop: 16,
|
|
88
|
-
}),
|
|
89
|
-
{
|
|
90
|
-
selectors: {
|
|
91
|
-
[`${withBackground} &`]: {
|
|
92
|
-
justifyContent: "center",
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
]);
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import { colors, selectors, sprinkles, vars } from "@prismicio/editor-ui";
|
|
2
|
-
import { style, styleVariants } from "@vanilla-extract/css";
|
|
3
|
-
import { calc } from "@vanilla-extract/css-utils";
|
|
4
|
-
|
|
5
|
-
const flex = sprinkles({ all: "unset", display: "flex" });
|
|
6
|
-
|
|
7
|
-
const column = style([flex, sprinkles({ flexDirection: "column" })]);
|
|
8
|
-
|
|
9
|
-
export const root = style([
|
|
10
|
-
column,
|
|
11
|
-
sprinkles({
|
|
12
|
-
borderColor: colors.grey6,
|
|
13
|
-
borderRadius: 6,
|
|
14
|
-
borderStyle: "solid",
|
|
15
|
-
borderWidth: 1,
|
|
16
|
-
boxSizing: "border-box",
|
|
17
|
-
overflowX: "hidden",
|
|
18
|
-
position: "relative",
|
|
19
|
-
}),
|
|
20
|
-
]);
|
|
21
|
-
|
|
22
|
-
export const size = styleVariants({
|
|
23
|
-
small: { height: "240px" },
|
|
24
|
-
medium: { height: "320px" },
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
export const variant = styleVariants({
|
|
28
|
-
solid: [
|
|
29
|
-
sprinkles({
|
|
30
|
-
backgroundColor: colors.grey3,
|
|
31
|
-
borderColor: selectors.checked(colors.purple10),
|
|
32
|
-
}),
|
|
33
|
-
],
|
|
34
|
-
outlined: [
|
|
35
|
-
sprinkles({
|
|
36
|
-
backgroundColor: colors.grey2,
|
|
37
|
-
borderColor: selectors.checked(colors.purple8),
|
|
38
|
-
}),
|
|
39
|
-
],
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
export const interactive = style({
|
|
43
|
-
":focus-visible": { boxShadow: "0px 0px 0px 4px hsla(251, 63%, 63%, 0.1)" },
|
|
44
|
-
selectors: {
|
|
45
|
-
"&[data-disabled]": { opacity: vars.opacity["50%"] },
|
|
46
|
-
"&:not([data-disabled])": { cursor: vars.cursor.pointer },
|
|
47
|
-
},
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
export const interactiveVariant = {
|
|
51
|
-
solid: sprinkles({
|
|
52
|
-
backgroundColor: selectors.focusVisible(colors.grey5),
|
|
53
|
-
borderColor: selectors.focusVisible(colors.purple10),
|
|
54
|
-
}),
|
|
55
|
-
outlined: sprinkles({
|
|
56
|
-
backgroundColor: {
|
|
57
|
-
...selectors.active(colors.grey4),
|
|
58
|
-
...selectors.focusVisible(colors.grey1),
|
|
59
|
-
...selectors.hover(colors.grey4),
|
|
60
|
-
},
|
|
61
|
-
borderColor: {
|
|
62
|
-
...selectors.active(colors.purple9),
|
|
63
|
-
...selectors.focusVisible(colors.purple8),
|
|
64
|
-
},
|
|
65
|
-
}),
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
export const media = style([
|
|
69
|
-
column,
|
|
70
|
-
sprinkles({ flexBasis: 0, flexGrow: 1, minHeight: 0, position: "relative" }),
|
|
71
|
-
{
|
|
72
|
-
order: 0,
|
|
73
|
-
selectors: {
|
|
74
|
-
[`${variant.solid} > &`]: {
|
|
75
|
-
padding: calc.subtract(vars.space[32], vars.borderWidth[1]),
|
|
76
|
-
},
|
|
77
|
-
[`${variant.outlined} > &`]: {
|
|
78
|
-
backgroundColor: vars.color.greyLight3,
|
|
79
|
-
marginInline: calc.subtract(vars.space[16], vars.borderWidth[1]),
|
|
80
|
-
marginTop: calc.subtract(vars.space[16], vars.borderWidth[1]),
|
|
81
|
-
padding: vars.space[16],
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
]);
|
|
86
|
-
|
|
87
|
-
const grid = sprinkles({ all: "unset", display: "grid" });
|
|
88
|
-
|
|
89
|
-
export const mediaComponent = styleVariants({
|
|
90
|
-
div: [grid, sprinkles({ flexGrow: 1 })],
|
|
91
|
-
img: [
|
|
92
|
-
sprinkles({ height: "100%", objectFit: "contain" }),
|
|
93
|
-
{ selectors: { "&:not([src])": { visibility: "hidden" } } },
|
|
94
|
-
],
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
export const mediaOverlay = style([
|
|
98
|
-
grid,
|
|
99
|
-
sprinkles({ inset: 0, position: "absolute", visibility: "hidden" }),
|
|
100
|
-
{
|
|
101
|
-
"::before": {
|
|
102
|
-
backgroundColor: vars.color.greyLight12,
|
|
103
|
-
content: "",
|
|
104
|
-
inset: vars.space[0],
|
|
105
|
-
opacity: vars.opacity["10%"],
|
|
106
|
-
position: "absolute",
|
|
107
|
-
},
|
|
108
|
-
selectors: {
|
|
109
|
-
[`${interactive}:focus-visible &, ${interactive}:not([data-disabled]) ${media}:hover > &`]:
|
|
110
|
-
{ visibility: "visible" },
|
|
111
|
-
[`${interactive}:not([data-disabled]) &:has(:focus-visible)`]: {
|
|
112
|
-
visibility: "visible",
|
|
113
|
-
},
|
|
114
|
-
},
|
|
115
|
-
},
|
|
116
|
-
]);
|
|
117
|
-
|
|
118
|
-
const nonMedia = style([
|
|
119
|
-
flex,
|
|
120
|
-
sprinkles({
|
|
121
|
-
alignItems: "center",
|
|
122
|
-
boxSizing: "border-box",
|
|
123
|
-
flexDirection: "row",
|
|
124
|
-
}),
|
|
125
|
-
{
|
|
126
|
-
selectors: {
|
|
127
|
-
[`${variant.solid} > &`]: { backgroundColor: vars.color.greyLight1 },
|
|
128
|
-
[`${variant.solid} > &:not(:first-child)`]: {
|
|
129
|
-
borderTopColor: vars.color.greyLight6,
|
|
130
|
-
borderTopStyle: "inherit",
|
|
131
|
-
borderTopWidth: "inherit",
|
|
132
|
-
},
|
|
133
|
-
},
|
|
134
|
-
},
|
|
135
|
-
]);
|
|
136
|
-
|
|
137
|
-
export const actions = style([
|
|
138
|
-
nonMedia,
|
|
139
|
-
sprinkles({ height: 48, justifyContent: "space-between" }),
|
|
140
|
-
{
|
|
141
|
-
order: 1,
|
|
142
|
-
selectors: {
|
|
143
|
-
[`${variant.solid} > &`]: {
|
|
144
|
-
paddingLeft: calc.subtract(vars.space[12], vars.borderWidth[1]),
|
|
145
|
-
paddingRight: calc.subtract(vars.space[8], vars.borderWidth[1]),
|
|
146
|
-
},
|
|
147
|
-
[`${variant.outlined} > &`]: {
|
|
148
|
-
paddingInline: calc.subtract(vars.space[16], vars.borderWidth[1]),
|
|
149
|
-
},
|
|
150
|
-
},
|
|
151
|
-
},
|
|
152
|
-
]);
|
|
153
|
-
|
|
154
|
-
export const footer = style([
|
|
155
|
-
nonMedia,
|
|
156
|
-
sprinkles({ gap: 8, height: 60 }),
|
|
157
|
-
{
|
|
158
|
-
order: 2,
|
|
159
|
-
selectors: {
|
|
160
|
-
[`${variant.solid} > &`]: {
|
|
161
|
-
paddingInline: calc.subtract(vars.space[12], vars.borderWidth[1]),
|
|
162
|
-
},
|
|
163
|
-
[`${variant.outlined} > &`]: {
|
|
164
|
-
paddingInline: calc.subtract(vars.space[16], vars.borderWidth[1]),
|
|
165
|
-
},
|
|
166
|
-
},
|
|
167
|
-
},
|
|
168
|
-
]);
|
|
169
|
-
|
|
170
|
-
export const footerTexts = style([
|
|
171
|
-
column,
|
|
172
|
-
sprinkles({ flexBasis: 0, flexGrow: 1, minWidth: 0 }),
|
|
173
|
-
// Offset `title` and `subtitle` so that they are centered vertically despite
|
|
174
|
-
// having different line heights.
|
|
175
|
-
{ marginBottom: `calc((${24 / 16}rem - ${16 / 16}rem) / 2)` },
|
|
176
|
-
]);
|
|
177
|
-
|
|
178
|
-
export const status = style([
|
|
179
|
-
column,
|
|
180
|
-
sprinkles({
|
|
181
|
-
height: 24,
|
|
182
|
-
insetInline: 0,
|
|
183
|
-
justifyContent: "center",
|
|
184
|
-
paddingInline: 8,
|
|
185
|
-
position: "absolute",
|
|
186
|
-
}),
|
|
187
|
-
{ backgroundColor: "hsl(251, 91%, 95%)", color: "hsl(250, 43%, 48%)" },
|
|
188
|
-
]);
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { style } from "@vanilla-extract/css";
|
|
2
|
-
import { colors, sprinkles } from "@prismicio/editor-ui";
|
|
3
|
-
|
|
4
|
-
export const root = sprinkles({
|
|
5
|
-
all: "unset",
|
|
6
|
-
display: "revert",
|
|
7
|
-
borderWidth: 1,
|
|
8
|
-
borderRadius: 6,
|
|
9
|
-
borderStyle: "solid",
|
|
10
|
-
borderColor: colors.grey6,
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
export const header = sprinkles({
|
|
14
|
-
all: "unset",
|
|
15
|
-
display: "flex",
|
|
16
|
-
alignItems: "center",
|
|
17
|
-
justifyContent: "space-between",
|
|
18
|
-
borderTopRightRadius: 4,
|
|
19
|
-
borderTopLeftRadius: 4,
|
|
20
|
-
borderBottomStyle: "solid",
|
|
21
|
-
borderBottomWidth: 1,
|
|
22
|
-
backgroundColor: colors.grey2,
|
|
23
|
-
borderBottomColor: colors.grey6,
|
|
24
|
-
paddingBlock: 4,
|
|
25
|
-
paddingRight: 4,
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
export const fileInfo = sprinkles({
|
|
29
|
-
all: "unset",
|
|
30
|
-
display: "flex",
|
|
31
|
-
justifyContent: "space-between",
|
|
32
|
-
alignItems: "center",
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
export const fileName = style({
|
|
36
|
-
lineHeight: "32px",
|
|
37
|
-
});
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { colors, sprinkles, vars } from "@prismicio/editor-ui";
|
|
2
|
-
import { style } from "@vanilla-extract/css";
|
|
3
|
-
|
|
4
|
-
const flex = sprinkles({ all: "unset", display: "flex" });
|
|
5
|
-
|
|
6
|
-
const column = style([flex, sprinkles({ flexDirection: "column" })]);
|
|
7
|
-
|
|
8
|
-
const row = style([flex, sprinkles({ flexDirection: "row" })]);
|
|
9
|
-
|
|
10
|
-
export const root = style([
|
|
11
|
-
column,
|
|
12
|
-
sprinkles({ backgroundColor: colors.grey1, minHeight: 0 }),
|
|
13
|
-
]);
|
|
14
|
-
|
|
15
|
-
export const list = style([
|
|
16
|
-
row,
|
|
17
|
-
sprinkles({
|
|
18
|
-
borderBottomColor: colors.grey5,
|
|
19
|
-
borderBottomStyle: "solid",
|
|
20
|
-
borderBottomWidth: 1,
|
|
21
|
-
paddingInline: 16,
|
|
22
|
-
}),
|
|
23
|
-
]);
|
|
24
|
-
|
|
25
|
-
export const trigger = style([
|
|
26
|
-
column,
|
|
27
|
-
sprinkles({ color: colors.grey11, cursor: "pointer", paddingBlock: 8 }),
|
|
28
|
-
{
|
|
29
|
-
selectors: {
|
|
30
|
-
"&:not(:last-child)": { marginRight: vars.space[16] },
|
|
31
|
-
'&[data-state="active"]': {
|
|
32
|
-
boxShadow: "inset 0 -1px 0 0 currentColor, 0 1px 0 0 currentColor",
|
|
33
|
-
color: vars.color.purpleLight9,
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
]);
|
|
38
|
-
|
|
39
|
-
export const triggerText = style({
|
|
40
|
-
lineHeight: "32px",
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
export const content = style([
|
|
44
|
-
column,
|
|
45
|
-
sprinkles({ minHeight: 0, outline: "none" }),
|
|
46
|
-
{ flex: 1, selectors: { '&[data-state="inactive"]': { display: "none" } } },
|
|
47
|
-
]);
|
|
48
|
-
|
|
49
|
-
export const scrollArea = sprinkles({ padding: 16 });
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { colors, sprinkles } from "@prismicio/editor-ui";
|
|
2
|
-
import { style, styleVariants } from "@vanilla-extract/css";
|
|
3
|
-
|
|
4
|
-
const base = style([
|
|
5
|
-
sprinkles({
|
|
6
|
-
width: "100%",
|
|
7
|
-
borderStyle: "none",
|
|
8
|
-
margin: 0,
|
|
9
|
-
}),
|
|
10
|
-
]);
|
|
11
|
-
|
|
12
|
-
export const variants = styleVariants({
|
|
13
|
-
dashed: [
|
|
14
|
-
base,
|
|
15
|
-
sprinkles({
|
|
16
|
-
borderColor: colors.currentColor,
|
|
17
|
-
borderTopStyle: "dashed",
|
|
18
|
-
borderWidth: 1,
|
|
19
|
-
}),
|
|
20
|
-
],
|
|
21
|
-
edgeFaded: [
|
|
22
|
-
base,
|
|
23
|
-
sprinkles({
|
|
24
|
-
height: 1,
|
|
25
|
-
}),
|
|
26
|
-
{
|
|
27
|
-
backgroundImage:
|
|
28
|
-
"linear-gradient(to right, color-mix(in srgb, currentColor, transparent 100%), currentColor, color-mix(in srgb, currentColor, transparent 100%))",
|
|
29
|
-
},
|
|
30
|
-
],
|
|
31
|
-
});
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { colors, sprinkles, vars } from "@prismicio/editor-ui";
|
|
2
|
-
import { style } from "@vanilla-extract/css";
|
|
3
|
-
|
|
4
|
-
const block = style([
|
|
5
|
-
sprinkles({
|
|
6
|
-
all: "unset",
|
|
7
|
-
boxSizing: "border-box",
|
|
8
|
-
fontFamily: "body",
|
|
9
|
-
}),
|
|
10
|
-
]);
|
|
11
|
-
|
|
12
|
-
const blockWithDisplayRevert = style([
|
|
13
|
-
block,
|
|
14
|
-
sprinkles({
|
|
15
|
-
display: "revert",
|
|
16
|
-
}),
|
|
17
|
-
]);
|
|
18
|
-
|
|
19
|
-
export const root = style([
|
|
20
|
-
blockWithDisplayRevert,
|
|
21
|
-
{
|
|
22
|
-
width: "288px",
|
|
23
|
-
},
|
|
24
|
-
]);
|
|
25
|
-
|
|
26
|
-
export const title = style([
|
|
27
|
-
block,
|
|
28
|
-
sprinkles({
|
|
29
|
-
alignItems: "center",
|
|
30
|
-
borderBottomStyle: "solid",
|
|
31
|
-
borderColor: colors.grey6,
|
|
32
|
-
borderWidth: 1,
|
|
33
|
-
color: colors.grey12,
|
|
34
|
-
display: "flex",
|
|
35
|
-
justifyContent: "space-between",
|
|
36
|
-
marginBottom: 16,
|
|
37
|
-
paddingBottom: 4,
|
|
38
|
-
paddingLeft: 16,
|
|
39
|
-
paddingRight: 6,
|
|
40
|
-
paddingTop: 4,
|
|
41
|
-
}),
|
|
42
|
-
{
|
|
43
|
-
fontSize: "12px",
|
|
44
|
-
fontWeight: "500",
|
|
45
|
-
lineHeight: "16px",
|
|
46
|
-
},
|
|
47
|
-
]);
|
|
48
|
-
|
|
49
|
-
export const titleCloseIcon = style([
|
|
50
|
-
block,
|
|
51
|
-
sprinkles({
|
|
52
|
-
color: colors.grey11,
|
|
53
|
-
display: "flex",
|
|
54
|
-
padding: 4,
|
|
55
|
-
}),
|
|
56
|
-
{
|
|
57
|
-
":hover": { cursor: vars.cursor.pointer },
|
|
58
|
-
},
|
|
59
|
-
]);
|
|
60
|
-
|
|
61
|
-
export const mediaContainer = style([
|
|
62
|
-
block,
|
|
63
|
-
sprinkles({
|
|
64
|
-
display: "flex",
|
|
65
|
-
marginBottom: 8,
|
|
66
|
-
paddingInline: 16,
|
|
67
|
-
}),
|
|
68
|
-
]);
|
|
69
|
-
|
|
70
|
-
export const media = style([
|
|
71
|
-
blockWithDisplayRevert,
|
|
72
|
-
sprinkles({
|
|
73
|
-
borderColor: colors.grey6,
|
|
74
|
-
borderRadius: 6,
|
|
75
|
-
borderStyle: "solid",
|
|
76
|
-
borderWidth: 1,
|
|
77
|
-
overflow: "hidden",
|
|
78
|
-
width: "100%",
|
|
79
|
-
}),
|
|
80
|
-
{
|
|
81
|
-
height: "146px",
|
|
82
|
-
},
|
|
83
|
-
]);
|
|
84
|
-
|
|
85
|
-
export const description = style([
|
|
86
|
-
blockWithDisplayRevert,
|
|
87
|
-
sprinkles({
|
|
88
|
-
color: colors.grey11,
|
|
89
|
-
marginBottom: 16,
|
|
90
|
-
paddingInline: 16,
|
|
91
|
-
}),
|
|
92
|
-
{
|
|
93
|
-
fontSize: "12px",
|
|
94
|
-
fontWeight: "400",
|
|
95
|
-
lineHeight: "20px",
|
|
96
|
-
},
|
|
97
|
-
]);
|
|
98
|
-
|
|
99
|
-
export const closeButtonContainer = style([
|
|
100
|
-
blockWithDisplayRevert,
|
|
101
|
-
sprinkles({
|
|
102
|
-
paddingBottom: 16,
|
|
103
|
-
paddingInline: 16,
|
|
104
|
-
}),
|
|
105
|
-
]);
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { style, styleVariants } from "@vanilla-extract/css";
|
|
2
|
-
|
|
3
|
-
import { colors, selectors, sprinkles } from "@prismicio/editor-ui";
|
|
4
|
-
|
|
5
|
-
export const root = style([
|
|
6
|
-
sprinkles({
|
|
7
|
-
all: "unset",
|
|
8
|
-
cursor: "pointer",
|
|
9
|
-
display: "flex",
|
|
10
|
-
alignItems: "center",
|
|
11
|
-
}),
|
|
12
|
-
{
|
|
13
|
-
":focus-visible": {
|
|
14
|
-
outline: "none",
|
|
15
|
-
textDecorationLine: "underline",
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
]);
|
|
19
|
-
|
|
20
|
-
export const colorVariant = {
|
|
21
|
-
primary: sprinkles({
|
|
22
|
-
color: {
|
|
23
|
-
...colors.purple9,
|
|
24
|
-
...selectors.hover(colors.purple8),
|
|
25
|
-
...selectors.active(colors.purple9),
|
|
26
|
-
},
|
|
27
|
-
}),
|
|
28
|
-
secondary: sprinkles({
|
|
29
|
-
color: {
|
|
30
|
-
...colors.indigo11,
|
|
31
|
-
...selectors.hover(colors.indigo10),
|
|
32
|
-
...selectors.active(colors.indigo11),
|
|
33
|
-
},
|
|
34
|
-
}),
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
/* TODO move paddingLeft to iconVariant style objects */
|
|
38
|
-
export const endIcon = sprinkles({
|
|
39
|
-
paddingLeft: 4,
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
export const iconVariant = styleVariants({
|
|
43
|
-
normal: [
|
|
44
|
-
{
|
|
45
|
-
fontSize: "1.2rem",
|
|
46
|
-
width: "18px",
|
|
47
|
-
height: "18px",
|
|
48
|
-
},
|
|
49
|
-
],
|
|
50
|
-
smallBold: [
|
|
51
|
-
{
|
|
52
|
-
fontSize: "1rem",
|
|
53
|
-
width: "16px",
|
|
54
|
-
height: "16px",
|
|
55
|
-
},
|
|
56
|
-
],
|
|
57
|
-
inherit: [
|
|
58
|
-
sprinkles({ fontFamily: "inherit" }),
|
|
59
|
-
{
|
|
60
|
-
fontSize: "inherit",
|
|
61
|
-
width: "inherit",
|
|
62
|
-
height: "inherit",
|
|
63
|
-
},
|
|
64
|
-
],
|
|
65
|
-
});
|
package/src/features/customTypes/customTypesBuilder/PageSnippetDialog/PageSnippetDialog.css.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { sprinkles } from "@prismicio/editor-ui";
|
|
2
|
-
import { style } from "@vanilla-extract/css";
|
|
3
|
-
|
|
4
|
-
export const content = style([
|
|
5
|
-
sprinkles({
|
|
6
|
-
display: "flex",
|
|
7
|
-
flexDirection: "column",
|
|
8
|
-
minHeight: 0,
|
|
9
|
-
gap: 12,
|
|
10
|
-
}),
|
|
11
|
-
{ gridArea: "content", overflow: "hidden" },
|
|
12
|
-
]);
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { colors, sprinkles } from "@prismicio/editor-ui";
|
|
2
|
-
|
|
3
|
-
export const section = sprinkles({
|
|
4
|
-
paddingBottom: 16,
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
export const inlineCode = sprinkles({
|
|
8
|
-
fontFamily: "code",
|
|
9
|
-
backgroundColor: colors.grey2,
|
|
10
|
-
borderRadius: 6,
|
|
11
|
-
paddingBlock: 2,
|
|
12
|
-
paddingInline: 4,
|
|
13
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { sprinkles } from "@prismicio/editor-ui";
|
|
2
|
-
|
|
3
|
-
export const scrollArea = sprinkles({
|
|
4
|
-
height: "100%",
|
|
5
|
-
display: "flex",
|
|
6
|
-
gap: 8,
|
|
7
|
-
paddingInline: 16,
|
|
8
|
-
paddingBlock: 16,
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
export const label = sprinkles({
|
|
12
|
-
display: "inline-flex",
|
|
13
|
-
alignItems: "center",
|
|
14
|
-
gap: 4,
|
|
15
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { useExperimentVariant } from "@src/hooks/useExperimentVariant";
|
|
2
|
-
|
|
3
|
-
type UseGitIntegrationExperimentReturnType = { eligible: boolean };
|
|
4
|
-
|
|
5
|
-
export function useGroupsInSlicesExperiment(): UseGitIntegrationExperimentReturnType {
|
|
6
|
-
const variant = useExperimentVariant("slicemachine-groups-in-slices");
|
|
7
|
-
return { eligible: variant?.value === "on" };
|
|
8
|
-
}
|