@pantheon-systems/puck-css 0.12.0 → 0.14.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/README.md +1 -1
- package/dist/agent/components/AgentActionButton.js +0 -13
- package/dist/agent/components/AgentActionButton.js.map +1 -1
- package/dist/agent/components/AgentActionModal.js +0 -13
- package/dist/agent/components/AgentActionModal.js.map +1 -1
- package/dist/agent/components/AgentStatusPanel.js +0 -10
- package/dist/agent/components/AgentStatusPanel.js.map +1 -1
- package/dist/agent/components/index.js +0 -5
- package/dist/agent/components/index.js.map +1 -1
- package/dist/agent/useAgentEdit.js +0 -12
- package/dist/agent/useAgentEdit.js.map +1 -1
- package/dist/agent/useAgentTrigger.js +0 -29
- package/dist/agent/useAgentTrigger.js.map +1 -1
- package/dist/auth/P1AuthProvider.d.ts +9 -2
- package/dist/auth/P1AuthProvider.d.ts.map +1 -1
- package/dist/auth/P1AuthProvider.js +21 -44
- package/dist/auth/P1AuthProvider.js.map +1 -1
- package/dist/auth/P1LoginPage.js +0 -18
- package/dist/auth/P1LoginPage.js.map +1 -1
- package/dist/auth/index.d.ts +2 -0
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +1 -9
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/logout.d.ts +23 -0
- package/dist/auth/logout.d.ts.map +1 -0
- package/dist/auth/logout.js +14 -0
- package/dist/auth/logout.js.map +1 -0
- package/dist/auth/storage-keys.d.ts +5 -0
- package/dist/auth/storage-keys.d.ts.map +1 -0
- package/dist/auth/storage-keys.js +3 -0
- package/dist/auth/storage-keys.js.map +1 -0
- package/dist/collaboration/components/AgentActivityBanner.js +0 -15
- package/dist/collaboration/components/AgentActivityBanner.js.map +1 -1
- package/dist/collaboration/components/CollaboratorAvatars.js +0 -17
- package/dist/collaboration/components/CollaboratorAvatars.js.map +1 -1
- package/dist/collaboration/components/FocusRegionHighlight.js +0 -9
- package/dist/collaboration/components/FocusRegionHighlight.js.map +1 -1
- package/dist/collaboration/components/PresenceIndicator.js +0 -9
- package/dist/collaboration/components/PresenceIndicator.js.map +1 -1
- package/dist/collaboration/useBranchPresence.js +0 -36
- package/dist/collaboration/useBranchPresence.js.map +1 -1
- package/dist/collaboration/useFocusRegionReporting.js +0 -75
- package/dist/collaboration/useFocusRegionReporting.js.map +1 -1
- package/dist/collaboration/usePresence.js +0 -37
- package/dist/collaboration/usePresence.js.map +1 -1
- package/dist/collaboration/useSitePresence.js +0 -36
- package/dist/collaboration/useSitePresence.js.map +1 -1
- package/dist/collaboration/utils/avatarColor.js +0 -3
- package/dist/collaboration/utils/avatarColor.js.map +1 -1
- package/dist/collaboration/utils/focusHighlightConfig.js +0 -61
- package/dist/collaboration/utils/focusHighlightConfig.js.map +1 -1
- package/dist/collaboration/utils/focusRegionMap.js +1 -80
- package/dist/collaboration/utils/focusRegionMap.js.map +1 -1
- package/dist/collaboration/utils/initials.js +0 -14
- package/dist/collaboration/utils/initials.js.map +1 -1
- package/dist/collaboration/utils/presenceIdentity.js +0 -26
- package/dist/collaboration/utils/presenceIdentity.js.map +1 -1
- package/dist/core/FocusHighlightContext.js +0 -31
- package/dist/core/FocusHighlightContext.js.map +1 -1
- package/dist/core/NotificationContext.js +2 -67
- package/dist/core/NotificationContext.js.map +1 -1
- package/dist/core/P1PuckContext.js +0 -31
- package/dist/core/P1PuckContext.js.map +1 -1
- package/dist/core/PresenceContext.js +0 -18
- package/dist/core/PresenceContext.js.map +1 -1
- package/dist/core/config.js +0 -11
- package/dist/core/config.js.map +1 -1
- package/dist/core/featureConfig.js +0 -32
- package/dist/core/featureConfig.js.map +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/plugin-types.d.ts +9 -0
- package/dist/core/plugin-types.d.ts.map +1 -1
- package/dist/core/types.d.ts +7 -1
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js +0 -3
- package/dist/core/types.js.map +1 -1
- package/dist/core/utils/debounce.js +0 -18
- package/dist/core/utils/debounce.js.map +1 -1
- package/dist/core/utils/requestError.js +0 -5
- package/dist/core/utils/requestError.js.map +1 -1
- package/dist/core/utils/retry.js +0 -31
- package/dist/core/utils/retry.js.map +1 -1
- package/dist/core/utils/throttle.js +0 -24
- package/dist/core/utils/throttle.js.map +1 -1
- package/dist/data/cross-reference-resolve.js +0 -6
- package/dist/data/cross-reference-resolve.js.map +1 -1
- package/dist/data/cross-reference.js +0 -15
- package/dist/data/cross-reference.js.map +1 -1
- package/dist/data/css-queries/css-query-registry.d.ts +2 -2
- package/dist/data/css-queries/css-query-registry.js +1 -1
- package/dist/data/css-queries/css-query-registry.js.map +1 -1
- package/dist/data/dal/index.js +0 -21
- package/dist/data/dal/index.js.map +1 -1
- package/dist/data/dal/init.js +0 -40
- package/dist/data/dal/init.js.map +1 -1
- package/dist/data/dal/p1-store.d.ts.map +1 -1
- package/dist/data/dal/p1-store.js +11 -41
- package/dist/data/dal/p1-store.js.map +1 -1
- package/dist/data/data-list-block/builtin-components/cards.d.ts +1 -0
- package/dist/data/data-list-block/builtin-components/cards.d.ts.map +1 -1
- package/dist/data/data-list-block/builtin-components/cards.js +16 -16
- package/dist/data/data-list-block/builtin-components/cards.js.map +1 -1
- package/dist/data/data-list-block/builtin-components/listing.d.ts +1 -0
- package/dist/data/data-list-block/builtin-components/listing.d.ts.map +1 -1
- package/dist/data/data-list-block/builtin-components/listing.js +4 -3
- package/dist/data/data-list-block/builtin-components/listing.js.map +1 -1
- package/dist/data/data-list-block/builtin-components/rows.d.ts +1 -0
- package/dist/data/data-list-block/builtin-components/rows.d.ts.map +1 -1
- package/dist/data/data-list-block/builtin-components/rows.js +3 -3
- package/dist/data/data-list-block/builtin-components/rows.js.map +1 -1
- package/dist/data/data-list-block/create-data-list-block.d.ts +1 -0
- package/dist/data/data-list-block/create-data-list-block.d.ts.map +1 -1
- package/dist/data/data-list-block/create-data-list-block.js +7 -11
- package/dist/data/data-list-block/create-data-list-block.js.map +1 -1
- package/dist/data/data-list-block/data-list.css +314 -0
- package/dist/data/data-list-block/utils.js +0 -1
- package/dist/data/data-list-block/utils.js.map +1 -1
- package/dist/data/fields/pds-field-helpers.js +1 -4
- package/dist/data/fields/pds-field-helpers.js.map +1 -1
- package/dist/data/fields/visible-when.js +0 -5
- package/dist/data/fields/visible-when.js.map +1 -1
- package/dist/data/fields.d.ts.map +1 -1
- package/dist/data/fields.js +7 -14
- package/dist/data/fields.js.map +1 -1
- package/dist/data/get-page.js +0 -1
- package/dist/data/get-page.js.map +1 -1
- package/dist/data/page-editor-meta.js +0 -7
- package/dist/data/page-editor-meta.js.map +1 -1
- package/dist/data/page-store.js +0 -32
- package/dist/data/page-store.js.map +1 -1
- package/dist/data/page-structure.js +0 -3
- package/dist/data/page-structure.js.map +1 -1
- package/dist/data/paths.d.ts +6 -0
- package/dist/data/paths.d.ts.map +1 -1
- package/dist/data/paths.js +3 -16
- package/dist/data/paths.js.map +1 -1
- package/dist/data/query-provider.d.ts +14 -0
- package/dist/data/query-provider.d.ts.map +1 -1
- package/dist/data/query-provider.js +20 -9
- package/dist/data/query-provider.js.map +1 -1
- package/dist/data/remote-datasources/fetch-http-json.js +0 -5
- package/dist/data/remote-datasources/fetch-http-json.js.map +1 -1
- package/dist/data/remote-datasources/loader.js +0 -21
- package/dist/data/remote-datasources/loader.js.map +1 -1
- package/dist/data/remote-datasources/remote-datasource-registry.js +0 -4
- package/dist/data/remote-datasources/remote-datasource-registry.js.map +1 -1
- package/dist/data/resolve-data-templates.js +0 -24
- package/dist/data/resolve-data-templates.js.map +1 -1
- package/dist/data/route-templates.js +0 -29
- package/dist/data/route-templates.js.map +1 -1
- package/dist/data/semantic-ops.js +0 -11
- package/dist/data/semantic-ops.js.map +1 -1
- package/dist/data/styles.js +0 -2
- package/dist/data/styles.js.map +1 -1
- package/dist/data/template-autocomplete.js +0 -8
- package/dist/data/template-autocomplete.js.map +1 -1
- package/dist/data/utils.d.ts +16 -0
- package/dist/data/utils.d.ts.map +1 -1
- package/dist/data/utils.js +21 -1
- package/dist/data/utils.js.map +1 -1
- package/dist/editor/P1App.d.ts.map +1 -1
- package/dist/editor/P1App.js +6 -45
- package/dist/editor/P1App.js.map +1 -1
- package/dist/editor/P1PuckProvider.d.ts +1 -1
- package/dist/editor/P1PuckProvider.d.ts.map +1 -1
- package/dist/editor/P1PuckProvider.js +54 -561
- package/dist/editor/P1PuckProvider.js.map +1 -1
- package/dist/editor/aiPanelStore.js +0 -7
- package/dist/editor/aiPanelStore.js.map +1 -1
- package/dist/editor/components/BranchSelector.js +0 -21
- package/dist/editor/components/BranchSelector.js.map +1 -1
- package/dist/editor/components/CollapsibleSectionHeader.js +1 -4
- package/dist/editor/components/CollapsibleSectionHeader.js.map +1 -1
- package/dist/editor/components/DraggableRow.js +0 -1
- package/dist/editor/components/DraggableRow.js.map +1 -1
- package/dist/editor/components/EditorReloadOverlay.d.ts +16 -0
- package/dist/editor/components/EditorReloadOverlay.d.ts.map +1 -0
- package/dist/editor/components/EditorReloadOverlay.js +13 -0
- package/dist/editor/components/EditorReloadOverlay.js.map +1 -0
- package/dist/editor/components/NotificationContainer.js +0 -20
- package/dist/editor/components/NotificationContainer.js.map +1 -1
- package/dist/editor/components/OutlinePanel.js +1 -12
- package/dist/editor/components/OutlinePanel.js.map +1 -1
- package/dist/editor/components/P1InspectorFields.d.ts.map +1 -1
- package/dist/editor/components/P1InspectorFields.js +12 -14
- package/dist/editor/components/P1InspectorFields.js.map +1 -1
- package/dist/editor/components/P1TemplateFields.js +6 -12
- package/dist/editor/components/P1TemplateFields.js.map +1 -1
- package/dist/editor/components/PanelHeader.d.ts.map +1 -1
- package/dist/editor/components/PanelHeader.js +3 -2
- package/dist/editor/components/PanelHeader.js.map +1 -1
- package/dist/editor/components/PublishButton.js +0 -21
- package/dist/editor/components/PublishButton.js.map +1 -1
- package/dist/editor/components/PuckDataCapture.js +0 -14
- package/dist/editor/components/PuckDataCapture.js.map +1 -1
- package/dist/editor/components/PuckDataSynchronizer.js +0 -67
- package/dist/editor/components/PuckDataSynchronizer.js.map +1 -1
- package/dist/editor/components/PuckSelectionTracker.js +0 -62
- package/dist/editor/components/PuckSelectionTracker.js.map +1 -1
- package/dist/editor/components/SaveIndicator.js +0 -41
- package/dist/editor/components/SaveIndicator.js.map +1 -1
- package/dist/editor/components/Toast.js +1 -32
- package/dist/editor/components/Toast.js.map +1 -1
- package/dist/editor/components/VersionBannerOverride.d.ts +7 -1
- package/dist/editor/components/VersionBannerOverride.d.ts.map +1 -1
- package/dist/editor/components/VersionBannerOverride.js +17 -24
- package/dist/editor/components/VersionBannerOverride.js.map +1 -1
- package/dist/editor/components/collapsibleSectionContext.js +0 -10
- package/dist/editor/components/collapsibleSectionContext.js.map +1 -1
- package/dist/editor/components/componentIconName.js +0 -23
- package/dist/editor/components/componentIconName.js.map +1 -1
- package/dist/editor/components/connectable.js +0 -5
- package/dist/editor/components/connectable.js.map +1 -1
- package/dist/editor/components/merge-preview/MergePreviewRenderer.js +2 -74
- package/dist/editor/components/merge-preview/MergePreviewRenderer.js.map +1 -1
- package/dist/editor/components/merge-preview/ScaledContent.js +0 -6
- package/dist/editor/components/merge-preview/ScaledContent.js.map +1 -1
- package/dist/editor/components/merge-preview/index.js +0 -5
- package/dist/editor/components/merge-preview/index.js.map +1 -1
- package/dist/editor/components/outlineTree.js +0 -31
- package/dist/editor/components/outlineTree.js.map +1 -1
- package/dist/editor/components/useDragReorder.js +0 -1
- package/dist/editor/components/useDragReorder.js.map +1 -1
- package/dist/editor/composePlugins.d.ts +9 -3
- package/dist/editor/composePlugins.d.ts.map +1 -1
- package/dist/editor/composePlugins.js +3 -8
- package/dist/editor/composePlugins.js.map +1 -1
- package/dist/editor/defaultPlugins.d.ts +1 -1
- package/dist/editor/defaultPlugins.d.ts.map +1 -1
- package/dist/editor/defaultPlugins.js +3 -1
- package/dist/editor/defaultPlugins.js.map +1 -1
- package/dist/editor/freshFieldTypes.d.ts +12 -0
- package/dist/editor/freshFieldTypes.d.ts.map +1 -0
- package/dist/editor/freshFieldTypes.js +11 -0
- package/dist/editor/freshFieldTypes.js.map +1 -0
- package/dist/editor/logout-store.d.ts +13 -0
- package/dist/editor/logout-store.d.ts.map +1 -0
- package/dist/editor/logout-store.js +23 -0
- package/dist/editor/logout-store.js.map +1 -0
- package/dist/editor/plugin/P1Plugin.d.ts +16 -3
- package/dist/editor/plugin/P1Plugin.d.ts.map +1 -1
- package/dist/editor/plugin/P1Plugin.js +21 -171
- package/dist/editor/plugin/P1Plugin.js.map +1 -1
- package/dist/editor/plugin/context-sync-key.js +0 -19
- package/dist/editor/plugin/context-sync-key.js.map +1 -1
- package/dist/editor/plugin/createP1Overrides.js +1 -49
- package/dist/editor/plugin/createP1Overrides.js.map +1 -1
- package/dist/editor/plugin/document-sync-plugin.js +0 -50
- package/dist/editor/plugin/document-sync-plugin.js.map +1 -1
- package/dist/editor/plugin/fieldGuidance.js +0 -5
- package/dist/editor/plugin/fieldGuidance.js.map +1 -1
- package/dist/editor/plugin/index.js +0 -6
- package/dist/editor/plugin/index.js.map +1 -1
- package/dist/editor/plugin/selectHeaderCollaborators.js +0 -8
- package/dist/editor/plugin/selectHeaderCollaborators.js.map +1 -1
- package/dist/editor/presets.js +2 -2
- package/dist/editor/stablePluginDeps.d.ts +9 -0
- package/dist/editor/stablePluginDeps.d.ts.map +1 -0
- package/dist/editor/stablePluginDeps.js +15 -0
- package/dist/editor/stablePluginDeps.js.map +1 -0
- package/dist/editor/thumbnails/LiveThumbnail.js +1 -49
- package/dist/editor/thumbnails/LiveThumbnail.js.map +1 -1
- package/dist/editor/thumbnails/ThumbnailCard.js +0 -25
- package/dist/editor/thumbnails/ThumbnailCard.js.map +1 -1
- package/dist/editor/thumbnails/buildLiveThumbnailDrawer.js +0 -21
- package/dist/editor/thumbnails/buildLiveThumbnailDrawer.js.map +1 -1
- package/dist/editor/thumbnails/humanizeComponentName.js +0 -17
- package/dist/editor/thumbnails/humanizeComponentName.js.map +1 -1
- package/dist/editor/thumbnails/resolveLiveThumbnailDrawer.js +0 -11
- package/dist/editor/thumbnails/resolveLiveThumbnailDrawer.js.map +1 -1
- package/dist/editor/thumbnails/thumbnailCache.js +0 -38
- package/dist/editor/thumbnails/thumbnailCache.js.map +1 -1
- package/dist/editor/useAutoSave.js +0 -32
- package/dist/editor/useAutoSave.js.map +1 -1
- package/dist/editor/useBranches.js +0 -30
- package/dist/editor/useBranches.js.map +1 -1
- package/dist/editor/useComponentRegistry.d.ts +1 -1
- package/dist/editor/useComponentRegistry.js +0 -28
- package/dist/editor/useComponentRegistry.js.map +1 -1
- package/dist/editor/useDocuments.js +0 -51
- package/dist/editor/useDocuments.js.map +1 -1
- package/dist/editor/useMergePreview.js +8 -12
- package/dist/editor/useMergePreview.js.map +1 -1
- package/dist/editor/useP1Editor.d.ts +35 -7
- package/dist/editor/useP1Editor.d.ts.map +1 -1
- package/dist/editor/useP1Editor.js +146 -243
- package/dist/editor/useP1Editor.js.map +1 -1
- package/dist/editor/useP1Overrides.js +15 -50
- package/dist/editor/useP1Overrides.js.map +1 -1
- package/dist/editor/useP1Plugin.d.ts +10 -4
- package/dist/editor/useP1Plugin.d.ts.map +1 -1
- package/dist/editor/useP1Plugin.js +34 -56
- package/dist/editor/useP1Plugin.js.map +1 -1
- package/dist/editor/useRealtime.d.ts +15 -3
- package/dist/editor/useRealtime.d.ts.map +1 -1
- package/dist/editor/useRealtime.js +12 -91
- package/dist/editor/useRealtime.js.map +1 -1
- package/dist/editor/useResponsivePanels.js +2 -35
- package/dist/editor/useResponsivePanels.js.map +1 -1
- package/dist/editor/useSidebarScrollPreservation.js +0 -14
- package/dist/editor/useSidebarScrollPreservation.js.map +1 -1
- package/dist/editor/utils/buildThumbnailOverride.js +0 -9
- package/dist/editor/utils/buildThumbnailOverride.js.map +1 -1
- package/dist/editor/utils/componentRegistry.d.ts +6 -11
- package/dist/editor/utils/componentRegistry.d.ts.map +1 -1
- package/dist/editor/utils/componentRegistry.js +1 -71
- package/dist/editor/utils/componentRegistry.js.map +1 -1
- package/dist/editor/utils/createStablePluginArray.js +0 -27
- package/dist/editor/utils/createStablePluginArray.js.map +1 -1
- package/dist/editor/utils/path.js +0 -6
- package/dist/editor/utils/path.js.map +1 -1
- package/dist/editor/utils/puckYjsBinding.d.ts +1 -1
- package/dist/editor/utils/puckYjsBinding.js +0 -99
- package/dist/editor/utils/puckYjsBinding.js.map +1 -1
- package/dist/editor/utils/restoreDocumentVersion.js +0 -12
- package/dist/editor/utils/restoreDocumentVersion.js.map +1 -1
- package/dist/editor/utils/sanitizeRichtextDefaults.js +0 -26
- package/dist/editor/utils/sanitizeRichtextDefaults.js.map +1 -1
- package/dist/editor/utils/snapshotToPuckData.js +0 -8
- package/dist/editor/utils/snapshotToPuckData.js.map +1 -1
- package/dist/editor/utils/syncComponentRegistry.d.ts +2 -2
- package/dist/editor/utils/syncComponentRegistry.js +1 -76
- package/dist/editor/utils/syncComponentRegistry.js.map +1 -1
- package/dist/editor/utils/syncComponentRegistryWriteOnly.d.ts +7 -7
- package/dist/editor/utils/syncComponentRegistryWriteOnly.js +0 -22
- package/dist/editor/utils/syncComponentRegistryWriteOnly.js.map +1 -1
- package/dist/editor/utils/templatePath.js +0 -5
- package/dist/editor/utils/templatePath.js.map +1 -1
- package/dist/features/content-type-templates/editor/useTemplatePermissions.js +0 -3
- package/dist/features/content-type-templates/editor/useTemplatePermissions.js.map +1 -1
- package/dist/features/content-type-templates/hooks/useTemplateList.js +0 -30
- package/dist/features/content-type-templates/hooks/useTemplateList.js.map +1 -1
- package/dist/features/content-type-templates/index.js +0 -8
- package/dist/features/content-type-templates/index.js.map +1 -1
- package/dist/features/content-type-templates/permissions/createPuckPermissions.js +1 -43
- package/dist/features/content-type-templates/permissions/createPuckPermissions.js.map +1 -1
- package/dist/features/content-type-templates/permissions/role-permissions.d.ts +8 -0
- package/dist/features/content-type-templates/permissions/role-permissions.d.ts.map +1 -1
- package/dist/features/content-type-templates/permissions/role-permissions.js +3 -29
- package/dist/features/content-type-templates/permissions/role-permissions.js.map +1 -1
- package/dist/features/content-type-templates/permissions/useContentRole.js +0 -24
- package/dist/features/content-type-templates/permissions/useContentRole.js.map +1 -1
- package/dist/features/content-type-templates/permissions/useResolveContentRole.d.ts +5 -5
- package/dist/features/content-type-templates/permissions/useResolveContentRole.js +2 -22
- package/dist/features/content-type-templates/permissions/useResolveContentRole.js.map +1 -1
- package/dist/features/content-type-templates/stores/index.js +0 -5
- package/dist/features/content-type-templates/stores/index.js.map +1 -1
- package/dist/features/content-type-templates/stores/template-store-api.js +0 -14
- package/dist/features/content-type-templates/stores/template-store-api.js.map +1 -1
- package/dist/features/content-type-templates/stores/template-store.d.ts +1 -1
- package/dist/features/content-type-templates/stores/template-store.js +0 -12
- package/dist/features/content-type-templates/stores/template-store.js.map +1 -1
- package/dist/features/content-type-templates/types.js +0 -5
- package/dist/features/content-type-templates/types.js.map +1 -1
- package/dist/features/content-type-templates/ui/ActionBarPinButton.js +12 -21
- package/dist/features/content-type-templates/ui/ActionBarPinButton.js.map +1 -1
- package/dist/features/content-type-templates/ui/TemplateDetailsPanel.js +0 -23
- package/dist/features/content-type-templates/ui/TemplateDetailsPanel.js.map +1 -1
- package/dist/features/content-type-templates/ui/TemplateSelector.js +0 -19
- package/dist/features/content-type-templates/ui/TemplateSelector.js.map +1 -1
- package/dist/features/content-type-templates/validation/structural-validation.js +0 -40
- package/dist/features/content-type-templates/validation/structural-validation.js.map +1 -1
- package/dist/features/localization/authority.d.ts +26 -0
- package/dist/features/localization/authority.d.ts.map +1 -0
- package/dist/features/localization/authority.js +17 -0
- package/dist/features/localization/authority.js.map +1 -0
- package/dist/features/localization/index.d.ts +11 -0
- package/dist/features/localization/index.d.ts.map +1 -0
- package/dist/features/localization/index.js +7 -0
- package/dist/features/localization/index.js.map +1 -0
- package/dist/features/localization/prop-target.d.ts +26 -0
- package/dist/features/localization/prop-target.d.ts.map +1 -0
- package/dist/features/localization/prop-target.js +15 -0
- package/dist/features/localization/prop-target.js.map +1 -0
- package/dist/features/localization/puck-overrides.d.ts +12 -0
- package/dist/features/localization/puck-overrides.d.ts.map +1 -0
- package/dist/features/localization/puck-overrides.js +12 -0
- package/dist/features/localization/puck-overrides.js.map +1 -0
- package/dist/features/localization/relation.d.ts +14 -0
- package/dist/features/localization/relation.d.ts.map +1 -0
- package/dist/features/localization/relation.js +7 -0
- package/dist/features/localization/relation.js.map +1 -0
- package/dist/features/localization/translatable.d.ts +24 -0
- package/dist/features/localization/translatable.d.ts.map +1 -0
- package/dist/features/localization/translatable.js +30 -0
- package/dist/features/localization/translatable.js.map +1 -0
- package/dist/features/localization/types.d.ts +17 -0
- package/dist/features/localization/types.d.ts.map +1 -0
- package/dist/features/localization/types.js +2 -0
- package/dist/features/localization/types.js.map +1 -0
- package/dist/features/localization/ui/AuthorityFieldControl.d.ts +32 -0
- package/dist/features/localization/ui/AuthorityFieldControl.d.ts.map +1 -0
- package/dist/features/localization/ui/AuthorityFieldControl.js +36 -0
- package/dist/features/localization/ui/AuthorityFieldControl.js.map +1 -0
- package/dist/features/localization/ui/TranslatabilityToggle.d.ts +17 -0
- package/dist/features/localization/ui/TranslatabilityToggle.d.ts.map +1 -0
- package/dist/features/localization/ui/TranslatabilityToggle.js +16 -0
- package/dist/features/localization/ui/TranslatabilityToggle.js.map +1 -0
- package/dist/features/localization/useLocalizationData.d.ts +37 -0
- package/dist/features/localization/useLocalizationData.d.ts.map +1 -0
- package/dist/features/localization/useLocalizationData.js +88 -0
- package/dist/features/localization/useLocalizationData.js.map +1 -0
- package/dist/index.d.ts +6 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -43
- package/dist/index.js.map +1 -1
- package/dist/merge/components/conflict-notifications/ConflictNotificationToast.js +0 -19
- package/dist/merge/components/conflict-notifications/ConflictNotificationToast.js.map +1 -1
- package/dist/merge/components/conflict-notifications/index.js +0 -5
- package/dist/merge/components/conflict-notifications/index.js.map +1 -1
- package/dist/merge/components/conflict-notifications/useConflictNotifications.js +0 -48
- package/dist/merge/components/conflict-notifications/useConflictNotifications.js.map +1 -1
- package/dist/merge/components/conflict-resolution/ComponentConflictGroup.js +0 -36
- package/dist/merge/components/conflict-resolution/ComponentConflictGroup.js.map +1 -1
- package/dist/merge/components/conflict-resolution/PuckFieldResolutionPanel.js +0 -40
- package/dist/merge/components/conflict-resolution/PuckFieldResolutionPanel.js.map +1 -1
- package/dist/merge/components/conflict-resolution/RenderedResolutionPreview.js +0 -21
- package/dist/merge/components/conflict-resolution/RenderedResolutionPreview.js.map +1 -1
- package/dist/merge/components/conflict-resolution/index.js +0 -5
- package/dist/merge/components/conflict-resolution/index.js.map +1 -1
- package/dist/merge/components/merge-resolution/CherryPickVisualPanel.js +0 -44
- package/dist/merge/components/merge-resolution/CherryPickVisualPanel.js.map +1 -1
- package/dist/merge/components/merge-resolution/ComponentClickOverlay.js +0 -24
- package/dist/merge/components/merge-resolution/ComponentClickOverlay.js.map +1 -1
- package/dist/merge/components/merge-resolution/DocumentResolutionDetail.d.ts.map +1 -1
- package/dist/merge/components/merge-resolution/DocumentResolutionDetail.js +6 -31
- package/dist/merge/components/merge-resolution/DocumentResolutionDetail.js.map +1 -1
- package/dist/merge/components/merge-resolution/index.js +0 -3
- package/dist/merge/components/merge-resolution/index.js.map +1 -1
- package/dist/merge/useMergeResolution.d.ts +1 -1
- package/dist/merge/useMergeResolution.d.ts.map +1 -1
- package/dist/merge/useMergeResolution.js +6 -75
- package/dist/merge/useMergeResolution.js.map +1 -1
- package/dist/merge/utils/namespacePuckData.d.ts.map +1 -1
- package/dist/merge/utils/namespacePuckData.js +8 -8
- package/dist/merge/utils/namespacePuckData.js.map +1 -1
- package/dist/merge/utils/puckFieldClassifier.js +0 -183
- package/dist/merge/utils/puckFieldClassifier.js.map +1 -1
- package/dist/p1/editor/connect/connect-preview-config.js +0 -5
- package/dist/p1/editor/connect/connect-preview-config.js.map +1 -1
- package/dist/p1/editor/connect/field-connect-plugin.js +0 -6
- package/dist/p1/editor/connect/field-connect-plugin.js.map +1 -1
- package/dist/p1/editor/editor-preview-resolve.js +0 -13
- package/dist/p1/editor/editor-preview-resolve.js.map +1 -1
- package/dist/p1/editor/hooks/api-hooks.js +0 -7
- package/dist/p1/editor/hooks/api-hooks.js.map +1 -1
- package/dist/p1/editor/hooks/useLiveEditorContext.d.ts.map +1 -1
- package/dist/p1/editor/hooks/useLiveEditorContext.js +2 -13
- package/dist/p1/editor/hooks/useLiveEditorContext.js.map +1 -1
- package/dist/p1/editor/hooks/useLiveRemoteDatasources.js +0 -22
- package/dist/p1/editor/hooks/useLiveRemoteDatasources.js.map +1 -1
- package/dist/p1/editor/hooks/useP1Plugins.js +0 -5
- package/dist/p1/editor/hooks/useP1Plugins.js.map +1 -1
- package/dist/p1/editor/remote-datasources/remote-datasource-explorer-plugin.js +0 -7
- package/dist/p1/editor/remote-datasources/remote-datasource-explorer-plugin.js.map +1 -1
- package/dist/p1/editor/template-autocomplete-layer.js +0 -4
- package/dist/p1/editor/template-autocomplete-layer.js.map +1 -1
- package/dist/pds/components/AgentChip.js +0 -3
- package/dist/pds/components/AgentChip.js.map +1 -1
- package/dist/pds/components/CreatePageModal.js +1 -97
- package/dist/pds/components/CreatePageModal.js.map +1 -1
- package/dist/pds/components/LoadingMessage.d.ts.map +1 -1
- package/dist/pds/components/LoadingMessage.js +2 -1
- package/dist/pds/components/LoadingMessage.js.map +1 -1
- package/dist/pds/components/LoadingMessage.module.css +2 -21
- package/dist/pds/components/LoadingOverlay.d.ts +17 -0
- package/dist/pds/components/LoadingOverlay.d.ts.map +1 -0
- package/dist/pds/components/LoadingOverlay.js +7 -0
- package/dist/pds/components/LoadingOverlay.js.map +1 -0
- package/dist/pds/components/LoadingOverlay.module.css +28 -0
- package/dist/pds/components/P1EditorHeader.d.ts +9 -2
- package/dist/pds/components/P1EditorHeader.d.ts.map +1 -1
- package/dist/pds/components/P1EditorHeader.js +6 -26
- package/dist/pds/components/P1EditorHeader.js.map +1 -1
- package/dist/pds/components/P1EditorHeader.module.css +26 -0
- package/dist/pds/components/PageNavigator.js +0 -16
- package/dist/pds/components/PageNavigator.js.map +1 -1
- package/dist/pds/components/PageNotFound.d.ts +27 -0
- package/dist/pds/components/PageNotFound.d.ts.map +1 -0
- package/dist/pds/components/PageNotFound.js +24 -0
- package/dist/pds/components/PageNotFound.js.map +1 -0
- package/dist/pds/components/PageNotFound.module.css +51 -0
- package/dist/pds/components/PresenceStack.js +0 -9
- package/dist/pds/components/PresenceStack.js.map +1 -1
- package/dist/pds/components/PublishControl.js +0 -6
- package/dist/pds/components/PublishControl.js.map +1 -1
- package/dist/pds/components/WorkstreamSwitcher.js +1 -25
- package/dist/pds/components/WorkstreamSwitcher.js.map +1 -1
- package/dist/pds/index.d.ts +4 -0
- package/dist/pds/index.d.ts.map +1 -1
- package/dist/pds/index.js +2 -29
- package/dist/pds/index.js.map +1 -1
- package/dist/pds/theme/pds-core-content.js +0 -5
- package/dist/pds/theme/pds-core-content.js.map +1 -1
- package/dist/pds/utils/deriveDocState.js +0 -1
- package/dist/pds/utils/deriveDocState.js.map +1 -1
- package/dist/pds/utils/deriveLiveDocState.js +0 -13
- package/dist/pds/utils/deriveLiveDocState.js.map +1 -1
- package/dist/registry-sync.js +0 -4
- package/dist/registry-sync.js.map +1 -1
- package/dist/server.js +0 -7
- package/dist/server.js.map +1 -1
- package/dist/versioning/components/ReadOnlyFieldsGuard.js +0 -3
- package/dist/versioning/components/ReadOnlyFieldsGuard.js.map +1 -1
- package/dist/versioning/components/VersionBannerActions.js +0 -1
- package/dist/versioning/components/VersionBannerActions.js.map +1 -1
- package/dist/versioning/components/version-compare/BranchDiffHeader.js +0 -7
- package/dist/versioning/components/version-compare/BranchDiffHeader.js.map +1 -1
- package/dist/versioning/components/version-compare/BranchMergeCompare.js +0 -19
- package/dist/versioning/components/version-compare/BranchMergeCompare.js.map +1 -1
- package/dist/versioning/components/version-compare/ComponentNode.js +0 -8
- package/dist/versioning/components/version-compare/ComponentNode.js.map +1 -1
- package/dist/versioning/components/version-compare/ComponentTree.js +0 -10
- package/dist/versioning/components/version-compare/ComponentTree.js.map +1 -1
- package/dist/versioning/components/version-compare/DiffHeader.js +0 -3
- package/dist/versioning/components/version-compare/DiffHeader.js.map +1 -1
- package/dist/versioning/components/version-compare/DocumentDiffList.js +0 -14
- package/dist/versioning/components/version-compare/DocumentDiffList.js.map +1 -1
- package/dist/versioning/components/version-compare/PropDiffPanel.js +0 -7
- package/dist/versioning/components/version-compare/PropDiffPanel.js.map +1 -1
- package/dist/versioning/components/version-compare/PropDiffRow.js +0 -3
- package/dist/versioning/components/version-compare/PropDiffRow.js.map +1 -1
- package/dist/versioning/components/version-compare/PropValueDisplay.js +0 -22
- package/dist/versioning/components/version-compare/PropValueDisplay.js.map +1 -1
- package/dist/versioning/components/version-compare/VersionComparePage.js +0 -13
- package/dist/versioning/components/version-compare/VersionComparePage.js.map +1 -1
- package/dist/versioning/components/version-compare/VisualBranchCompare.js +0 -17
- package/dist/versioning/components/version-compare/VisualBranchCompare.js.map +1 -1
- package/dist/versioning/components/version-compare/VisualVersionCompare.js +0 -23
- package/dist/versioning/components/version-compare/VisualVersionCompare.js.map +1 -1
- package/dist/versioning/components/version-compare/index.js +0 -5
- package/dist/versioning/components/version-compare/index.js.map +1 -1
- package/dist/versioning/components/version-history/AgentCheckpointBadge.js +0 -14
- package/dist/versioning/components/version-history/AgentCheckpointBadge.js.map +1 -1
- package/dist/versioning/components/version-history/VersionItem.js +0 -7
- package/dist/versioning/components/version-history/VersionItem.js.map +1 -1
- package/dist/versioning/components/version-history/index.js +0 -5
- package/dist/versioning/components/version-history/index.js.map +1 -1
- package/dist/versioning/useCheckpoints.js +0 -28
- package/dist/versioning/useCheckpoints.js.map +1 -1
- package/dist/versioning/useVersions.js +0 -31
- package/dist/versioning/useVersions.js.map +1 -1
- package/dist/versioning/utils/branchDiff.js +0 -93
- package/dist/versioning/utils/branchDiff.js.map +1 -1
- package/dist/versioning/utils/diff.js +0 -79
- package/dist/versioning/utils/diff.js.map +1 -1
- package/dist/versioning/utils/formatVersionDate.js +0 -12
- package/dist/versioning/utils/formatVersionDate.js.map +1 -1
- package/dist/versioning/utils/highlightConfig.js +0 -42
- package/dist/versioning/utils/highlightConfig.js.map +1 -1
- package/dist/versioning/utils/versionKind.js +0 -10
- package/dist/versioning/utils/versionKind.js.map +1 -1
- package/package.json +7 -7
- package/src/data/data-list-block/data-list.css +314 -0
- package/src/pds/theme/PuckEditorTheme.css +5 -5
- package/src/styles.css +1 -1
- package/src/pds/theme/PuckEditorTheme.test.ts +0 -195
- package/src/pds/theme/pds-core-content.ts +0 -8
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DataListBlock presentation styles.
|
|
3
|
+
*
|
|
4
|
+
* Plain CSS with semantic, consumer-overridable class names — deliberately no
|
|
5
|
+
* Tailwind, so rendering never depends on a consumer's utility build scanning
|
|
6
|
+
* this package. Every colour, space, radius, and type value routes through a
|
|
7
|
+
* `--p1-datalist-*` property so a host can retheme the block without touching
|
|
8
|
+
* these rules; each one resolves to the matching PDS token, then to a literal
|
|
9
|
+
* for hosts that don't load PDS (the published page is one of those).
|
|
10
|
+
*
|
|
11
|
+
* Deliberately absent: `font-family`. These components render on the customer's
|
|
12
|
+
* own site, so type inherits from their page. Pinning it to the PDS font would
|
|
13
|
+
* also make the editor canvas — where PDS *is* loaded — disagree with the
|
|
14
|
+
* published page it is previewing.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
.p1-datalist,
|
|
18
|
+
.p1-datalist-cards,
|
|
19
|
+
.p1-datalist-listing,
|
|
20
|
+
.p1-datalist-rows {
|
|
21
|
+
/* Colour. PDS resolves foreground to two tiers, so subtitle and teaser share
|
|
22
|
+
`foreground-default-secondary`; they stay separate properties here so a host
|
|
23
|
+
that wants them distinct can say so. */
|
|
24
|
+
--p1-datalist-color-text: var(--pds-color-foreground-default, #0f172a);
|
|
25
|
+
--p1-datalist-color-text-muted: var(--pds-color-foreground-default-secondary, #64748b);
|
|
26
|
+
--p1-datalist-color-text-body: var(--pds-color-foreground-default-secondary, #475569);
|
|
27
|
+
--p1-datalist-color-border: var(--pds-color-border-default, #e2e8f0);
|
|
28
|
+
--p1-datalist-color-surface-muted: var(--pds-color-surface-default-secondary, #f1f5f9);
|
|
29
|
+
--p1-datalist-color-scrim: rgb(0 0 0 / 0.5);
|
|
30
|
+
--p1-datalist-color-backdrop-text: var(--pds-color-foreground-reverse, #ffffff);
|
|
31
|
+
|
|
32
|
+
/* Space */
|
|
33
|
+
--p1-datalist-space-item-gap: var(--pds-spacing-m, 1rem);
|
|
34
|
+
--p1-datalist-space-group-gap: var(--pds-spacing-xl, 1.5rem);
|
|
35
|
+
--p1-datalist-space-card-padding: var(--pds-spacing-s, 0.75rem);
|
|
36
|
+
--p1-datalist-space-listing-padding: var(--pds-spacing-m, 1rem);
|
|
37
|
+
--p1-datalist-space-row-padding: var(--pds-spacing-s, 0.75rem);
|
|
38
|
+
--p1-datalist-space-row-padding-compact: var(--pds-spacing-2xs, 0.5rem);
|
|
39
|
+
--p1-datalist-space-row-gap: var(--pds-spacing-s, 0.75rem);
|
|
40
|
+
--p1-datalist-space-empty-padding: var(--pds-spacing-2xl, 2rem);
|
|
41
|
+
--p1-datalist-space-text-tight: var(--pds-spacing-4xs, 0.25rem);
|
|
42
|
+
--p1-datalist-space-text-loose: var(--pds-spacing-2xs, 0.5rem);
|
|
43
|
+
|
|
44
|
+
/* Line & radius */
|
|
45
|
+
--p1-datalist-border-width: var(--pds-border-width-default, 1px);
|
|
46
|
+
--p1-datalist-border-width-placeholder: var(--pds-border-width-thicker, 2px);
|
|
47
|
+
--p1-datalist-radius: var(--pds-border-radius-card, 0.5rem);
|
|
48
|
+
--p1-datalist-radius-thumbnail: var(--pds-border-radius-default, 0.25rem);
|
|
49
|
+
|
|
50
|
+
/* Type */
|
|
51
|
+
--p1-datalist-font-size-s: var(--pds-typography-size-s, 0.875rem);
|
|
52
|
+
--p1-datalist-font-size-l: var(--pds-typography-size-l, 1.125rem);
|
|
53
|
+
--p1-datalist-font-size-xl: var(--pds-typography-size-xl, 1.25rem);
|
|
54
|
+
--p1-datalist-font-weight-bold: var(--pds-typography-fw-bold, 700);
|
|
55
|
+
--p1-datalist-font-weight-semibold: var(--pds-typography-fw-semibold, 600);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* ============================================
|
|
59
|
+
Block shell (heading, groups, empty state)
|
|
60
|
+
============================================ */
|
|
61
|
+
|
|
62
|
+
.p1-datalist__heading {
|
|
63
|
+
margin: 0 0 var(--p1-datalist-space-item-gap);
|
|
64
|
+
font-size: var(--p1-datalist-font-size-xl);
|
|
65
|
+
font-weight: var(--p1-datalist-font-weight-bold);
|
|
66
|
+
color: var(--p1-datalist-color-text);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.p1-datalist__empty {
|
|
70
|
+
padding: var(--p1-datalist-space-empty-padding);
|
|
71
|
+
border: var(--p1-datalist-border-width-placeholder) dashed
|
|
72
|
+
var(--p1-datalist-color-border);
|
|
73
|
+
border-radius: var(--p1-datalist-radius);
|
|
74
|
+
text-align: center;
|
|
75
|
+
color: var(--p1-datalist-color-text-muted);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.p1-datalist__groups {
|
|
79
|
+
display: flex;
|
|
80
|
+
flex-direction: column;
|
|
81
|
+
gap: var(--p1-datalist-space-group-gap);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.p1-datalist__group-label {
|
|
85
|
+
margin: 0 0 var(--p1-datalist-space-card-padding);
|
|
86
|
+
font-size: var(--p1-datalist-font-size-l);
|
|
87
|
+
font-weight: var(--p1-datalist-font-weight-semibold);
|
|
88
|
+
color: var(--p1-datalist-color-text-body);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.p1-datalist__more {
|
|
92
|
+
margin-top: var(--p1-datalist-space-card-padding);
|
|
93
|
+
font-size: var(--p1-datalist-font-size-s);
|
|
94
|
+
text-align: center;
|
|
95
|
+
color: var(--p1-datalist-color-text-muted);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* ============================================
|
|
99
|
+
Shared item primitives
|
|
100
|
+
============================================ */
|
|
101
|
+
|
|
102
|
+
.p1-datalist-media {
|
|
103
|
+
overflow: hidden;
|
|
104
|
+
background: var(--p1-datalist-color-surface-muted);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.p1-datalist-media__img {
|
|
108
|
+
display: block;
|
|
109
|
+
width: 100%;
|
|
110
|
+
height: 100%;
|
|
111
|
+
object-fit: cover;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.p1-datalist-item__icon {
|
|
115
|
+
display: inline-block;
|
|
116
|
+
margin-bottom: var(--p1-datalist-space-text-tight);
|
|
117
|
+
font-size: var(--p1-datalist-font-size-l);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.p1-datalist-item__title {
|
|
121
|
+
font-weight: var(--p1-datalist-font-weight-bold);
|
|
122
|
+
color: var(--p1-datalist-color-text);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.p1-datalist-item__subtitle {
|
|
126
|
+
margin-top: var(--p1-datalist-space-text-tight);
|
|
127
|
+
font-size: var(--p1-datalist-font-size-s);
|
|
128
|
+
color: var(--p1-datalist-color-text-muted);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.p1-datalist-item__teaser {
|
|
132
|
+
margin-top: var(--p1-datalist-space-text-loose);
|
|
133
|
+
font-size: var(--p1-datalist-font-size-s);
|
|
134
|
+
color: var(--p1-datalist-color-text-body);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* ============================================
|
|
138
|
+
Grid mode — Cards
|
|
139
|
+
============================================ */
|
|
140
|
+
|
|
141
|
+
.p1-datalist-cards {
|
|
142
|
+
display: grid;
|
|
143
|
+
gap: var(--p1-datalist-space-item-gap);
|
|
144
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.p1-datalist-cards[data-columns='1'] { grid-template-columns: repeat(1, minmax(0, 1fr)); }
|
|
148
|
+
.p1-datalist-cards[data-columns='2'] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
149
|
+
.p1-datalist-cards[data-columns='3'] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
150
|
+
.p1-datalist-cards[data-columns='4'] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
|
151
|
+
.p1-datalist-cards[data-columns='5'] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
|
|
152
|
+
.p1-datalist-cards[data-columns='6'] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
|
|
153
|
+
|
|
154
|
+
.p1-datalist-cards__card {
|
|
155
|
+
position: relative;
|
|
156
|
+
overflow: hidden;
|
|
157
|
+
border: var(--p1-datalist-border-width) solid var(--p1-datalist-color-border);
|
|
158
|
+
border-radius: var(--p1-datalist-radius);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.p1-datalist-cards__card--horizontal {
|
|
162
|
+
display: flex;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.p1-datalist-cards__backdrop {
|
|
166
|
+
position: absolute;
|
|
167
|
+
inset: 0;
|
|
168
|
+
background-position: center;
|
|
169
|
+
background-size: cover;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.p1-datalist-cards__scrim {
|
|
173
|
+
position: absolute;
|
|
174
|
+
inset: 0;
|
|
175
|
+
background: var(--p1-datalist-color-scrim);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.p1-datalist-cards__body {
|
|
179
|
+
position: relative;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.p1-datalist-cards__body--horizontal {
|
|
183
|
+
flex: 1;
|
|
184
|
+
min-width: 0;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.p1-datalist-cards__body--backdrop {
|
|
188
|
+
z-index: 1;
|
|
189
|
+
color: var(--p1-datalist-color-backdrop-text);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/* Backdrop cards sit on an image, so the text tokens give way to the
|
|
193
|
+
overlay colour rather than the surface palette. */
|
|
194
|
+
.p1-datalist-cards__body--backdrop .p1-datalist-item__title,
|
|
195
|
+
.p1-datalist-cards__body--backdrop .p1-datalist-item__subtitle,
|
|
196
|
+
.p1-datalist-cards__body--backdrop .p1-datalist-item__teaser {
|
|
197
|
+
color: inherit;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.p1-datalist-cards__content {
|
|
201
|
+
flex: 1;
|
|
202
|
+
padding: var(--p1-datalist-space-card-padding);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.p1-datalist-cards__media--stacked {
|
|
206
|
+
width: 100%;
|
|
207
|
+
aspect-ratio: 4 / 3;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.p1-datalist-cards__media--side {
|
|
211
|
+
width: 6rem;
|
|
212
|
+
height: auto;
|
|
213
|
+
flex-shrink: 0;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/* ============================================
|
|
217
|
+
List mode — Listing
|
|
218
|
+
============================================ */
|
|
219
|
+
|
|
220
|
+
.p1-datalist-listing {
|
|
221
|
+
display: flex;
|
|
222
|
+
flex-direction: column;
|
|
223
|
+
gap: var(--p1-datalist-space-item-gap);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.p1-datalist-listing--narrow {
|
|
227
|
+
max-width: 42rem;
|
|
228
|
+
margin-inline: auto;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.p1-datalist-listing__item {
|
|
232
|
+
display: flex;
|
|
233
|
+
overflow: hidden;
|
|
234
|
+
border: var(--p1-datalist-border-width) solid var(--p1-datalist-color-border);
|
|
235
|
+
border-radius: var(--p1-datalist-radius);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.p1-datalist-listing__item--reversed {
|
|
239
|
+
flex-direction: row-reverse;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.p1-datalist-listing__media {
|
|
243
|
+
width: 12rem;
|
|
244
|
+
height: auto;
|
|
245
|
+
flex-shrink: 0;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.p1-datalist-listing__content {
|
|
249
|
+
flex: 1;
|
|
250
|
+
padding: var(--p1-datalist-space-listing-padding);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.p1-datalist-listing__content .p1-datalist-item__title {
|
|
254
|
+
font-size: var(--p1-datalist-font-size-l);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.p1-datalist-listing__content .p1-datalist-item__teaser {
|
|
258
|
+
font-size: inherit;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/* ============================================
|
|
262
|
+
Table mode — Rows
|
|
263
|
+
============================================ */
|
|
264
|
+
|
|
265
|
+
.p1-datalist-rows {
|
|
266
|
+
border: var(--p1-datalist-border-width) solid var(--p1-datalist-color-border);
|
|
267
|
+
border-radius: var(--p1-datalist-radius);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.p1-datalist-rows__row {
|
|
271
|
+
display: flex;
|
|
272
|
+
align-items: center;
|
|
273
|
+
gap: var(--p1-datalist-space-row-gap);
|
|
274
|
+
padding: var(--p1-datalist-space-row-padding);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.p1-datalist-rows[data-density='compact'] .p1-datalist-rows__row {
|
|
278
|
+
padding: var(--p1-datalist-space-row-padding-compact);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.p1-datalist-rows[data-density='compact'] .p1-datalist-rows__content {
|
|
282
|
+
font-size: var(--p1-datalist-font-size-s);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.p1-datalist-rows__row + .p1-datalist-rows__row {
|
|
286
|
+
border-top: var(--p1-datalist-border-width) solid
|
|
287
|
+
var(--p1-datalist-color-border);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.p1-datalist-rows__media {
|
|
291
|
+
width: 46px;
|
|
292
|
+
height: 46px;
|
|
293
|
+
flex-shrink: 0;
|
|
294
|
+
border-radius: var(--p1-datalist-radius-thumbnail);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.p1-datalist-rows__content {
|
|
298
|
+
flex: 1;
|
|
299
|
+
min-width: 0;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.p1-datalist-rows__content .p1-datalist-item__icon {
|
|
303
|
+
margin-bottom: 0;
|
|
304
|
+
margin-right: var(--p1-datalist-space-text-tight);
|
|
305
|
+
font-size: var(--p1-datalist-font-size-s);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.p1-datalist-rows__content .p1-datalist-item__subtitle {
|
|
309
|
+
margin-top: 0;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.p1-datalist-rows__content .p1-datalist-item__teaser {
|
|
313
|
+
margin-top: var(--p1-datalist-space-text-tight);
|
|
314
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* PDS canvas isolation: pds-core.css is loaded via document.adoptedStyleSheets
|
|
2
|
-
in
|
|
3
|
-
See
|
|
2
|
+
in P1App.tsx so it is invisible to Puck's canvas iframe scanner.
|
|
3
|
+
See P1App.tsx for the full explanation. */
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* PDS v2 Theme for Puck Editor
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* across Puck's native chrome (drag handles, drop-zone highlights, field
|
|
15
15
|
* chrome, selection outlines).
|
|
16
16
|
*
|
|
17
|
-
* Prerequisites: PDSv2 CSS is loaded automatically by
|
|
17
|
+
* Prerequisites: PDSv2 CSS is loaded automatically by P1App.tsx via
|
|
18
18
|
* document.adoptedStyleSheets — no host-app import required.
|
|
19
19
|
*/
|
|
20
20
|
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
border-radius: var(--pds-border-radius-button, 3.5rem);
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
/* Sidebar + plugin rail backgrounds — scoped to the editor wrapper added by
|
|
121
|
+
/* Sidebar + plugin rail backgrounds — scoped to the editor wrapper added by P1App.tsx */
|
|
122
122
|
.puck-editor-theme [class*="_PuckLayout-nav_"],
|
|
123
123
|
.puck-editor-theme [class*="_Sidebar"] {
|
|
124
124
|
background: var(--pds-color-surface-default-secondary, oklch(0.9702 0 0));
|
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
overflow: hidden;
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
-
/* ── Editor chrome text/background reset
|
|
301
|
+
/* ── Editor chrome text/background reset ──────────────────────
|
|
302
302
|
*
|
|
303
303
|
* Root cause: recent design-library "dark-canon" token waves make the host
|
|
304
304
|
* app's own body dark (e.g. body { color: var(--color-text); background:
|
package/src/styles.css
CHANGED
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
/* ============================================
|
|
66
|
-
Version Preview Read-Only Inspector
|
|
66
|
+
Version Preview Read-Only Inspector
|
|
67
67
|
============================================ */
|
|
68
68
|
|
|
69
69
|
/* Fields guard: dims all fields and removes interaction (inert attr handles the rest) */
|
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tests for PuckEditorTheme.css
|
|
3
|
-
*
|
|
4
|
-
* Verifies that the CSS file contains the correct --puck-* to --pds-*
|
|
5
|
-
* variable mappings that retheme Puck's native chrome using PDSv2 tokens.
|
|
6
|
-
*
|
|
7
|
-
* Strategy: read the CSS file directly via fs — the mappings are a static
|
|
8
|
-
* authoring concern, not runtime behaviour, so content assertions are the
|
|
9
|
-
* right layer of confidence here.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
import { readFileSync } from 'fs';
|
|
13
|
-
import { dirname, join } from 'path';
|
|
14
|
-
import { fileURLToPath } from 'url';
|
|
15
|
-
import { describe, it, expect } from 'vitest';
|
|
16
|
-
|
|
17
|
-
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
18
|
-
const p1Path = join(__dirname, 'PuckEditorTheme.css');
|
|
19
|
-
|
|
20
|
-
function readThemeCSS(): string {
|
|
21
|
-
return readFileSync(p1Path, 'utf-8');
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
describe('PuckEditorTheme.css', () => {
|
|
25
|
-
it('exists and is non-empty', () => {
|
|
26
|
-
const css = readThemeCSS();
|
|
27
|
-
expect(css.length).toBeGreaterThan(0);
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
it('applies all mappings within the .puck-editor-theme scope class', () => {
|
|
31
|
-
const css = readThemeCSS();
|
|
32
|
-
expect(css).toContain('.puck-editor-theme');
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
describe('neutral color mappings', () => {
|
|
36
|
-
it('maps --puck-color-white to PDS background default', () => {
|
|
37
|
-
const css = readThemeCSS();
|
|
38
|
-
expect(css).toContain('--puck-color-white');
|
|
39
|
-
expect(css).toContain('var(--pds-color-surface-default)');
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
it('maps --puck-color-black to PDS foreground default', () => {
|
|
43
|
-
const css = readThemeCSS();
|
|
44
|
-
expect(css).toContain('--puck-color-black');
|
|
45
|
-
expect(css).toContain('var(--pds-color-foreground-default)');
|
|
46
|
-
});
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
describe('grey scale mappings', () => {
|
|
50
|
-
it('maps --puck-color-grey-01 to PDS secondary background', () => {
|
|
51
|
-
const css = readThemeCSS();
|
|
52
|
-
expect(css).toContain('--puck-color-grey-01');
|
|
53
|
-
expect(css).toContain('var(--pds-color-surface-default-secondary)');
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
it('maps --puck-color-grey-03 to PDS secondary foreground', () => {
|
|
57
|
-
const css = readThemeCSS();
|
|
58
|
-
expect(css).toMatch(
|
|
59
|
-
/--puck-color-grey-03:\s*var\(--pds-color-foreground-default-secondary\)/,
|
|
60
|
-
);
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
it('maps --puck-color-grey-05 to PDS input border', () => {
|
|
64
|
-
const css = readThemeCSS();
|
|
65
|
-
expect(css).toContain('--puck-color-grey-05');
|
|
66
|
-
expect(css).toContain('var(--pds-color-border-input)');
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
it('maps --puck-color-grey-09 to PDS secondary foreground', () => {
|
|
70
|
-
const css = readThemeCSS();
|
|
71
|
-
expect(css).toContain('--puck-color-grey-09');
|
|
72
|
-
expect(css).toContain('var(--pds-color-foreground-default-secondary)');
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
it('maps --puck-color-grey-11 to PDS foreground default', () => {
|
|
76
|
-
const css = readThemeCSS();
|
|
77
|
-
expect(css).toContain('--puck-color-grey-11');
|
|
78
|
-
expect(css).toContain('var(--pds-color-foreground-default)');
|
|
79
|
-
});
|
|
80
|
-
|
|
81
|
-
it('uses an oklch fallback for grey-02 (no direct PDS token)', () => {
|
|
82
|
-
const css = readThemeCSS();
|
|
83
|
-
expect(css).toContain('--puck-color-grey-02');
|
|
84
|
-
expect(css).toMatch(/--puck-color-grey-02:\s*oklch/);
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
it('uses an oklch fallback for grey-04 (no direct PDS token)', () => {
|
|
88
|
-
const css = readThemeCSS();
|
|
89
|
-
expect(css).toContain('--puck-color-grey-04');
|
|
90
|
-
expect(css).toMatch(/--puck-color-grey-04:\s*oklch/);
|
|
91
|
-
});
|
|
92
|
-
});
|
|
93
|
-
|
|
94
|
-
describe('interactive color mappings', () => {
|
|
95
|
-
it('maps --puck-color-azure-04 to PDS foreground default (not purple interactive-link)', () => {
|
|
96
|
-
const css = readThemeCSS();
|
|
97
|
-
expect(css).toContain('--puck-color-azure-04');
|
|
98
|
-
// PDS v2 interactive-link-default is purple — we intentionally map to
|
|
99
|
-
// fg-default (near-black) to avoid purple in the UI.
|
|
100
|
-
expect(css).toContain('--puck-color-azure-04: var(--pds-color-foreground-default)');
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
it('maps --puck-color-azure-05 to PDS foreground default (not purple interactive-link)', () => {
|
|
104
|
-
const css = readThemeCSS();
|
|
105
|
-
expect(css).toContain('--puck-color-azure-05');
|
|
106
|
-
expect(css).toContain('--puck-color-azure-05: var(--pds-color-foreground-default)');
|
|
107
|
-
});
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
describe('status color mappings', () => {
|
|
111
|
-
it('maps --puck-color-rose-04 to PDS critical foreground', () => {
|
|
112
|
-
const css = readThemeCSS();
|
|
113
|
-
expect(css).toContain('--puck-color-rose-04');
|
|
114
|
-
expect(css).toContain('var(--pds-color-status-critical-foreground)');
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
it('maps --puck-color-green-04 to PDS success foreground', () => {
|
|
118
|
-
const css = readThemeCSS();
|
|
119
|
-
expect(css).toContain('--puck-color-green-04');
|
|
120
|
-
expect(css).toContain('var(--pds-color-status-success-foreground)');
|
|
121
|
-
});
|
|
122
|
-
});
|
|
123
|
-
|
|
124
|
-
describe('canvas layout', () => {
|
|
125
|
-
it('reveals the canvas grey background as a gutter via padding', () => {
|
|
126
|
-
const css = readThemeCSS();
|
|
127
|
-
// Matches only the outer _PuckCanvas_ element (children use a hyphen).
|
|
128
|
-
expect(css).toMatch(/\[class\*="_PuckCanvas_"\]\s*\{[^}]*padding:\s*8px/);
|
|
129
|
-
});
|
|
130
|
-
|
|
131
|
-
it('rounds and clips the inner page (_PuckCanvas-root_)', () => {
|
|
132
|
-
const css = readThemeCSS();
|
|
133
|
-
expect(css).toMatch(
|
|
134
|
-
/\[class\*="_PuckCanvas-root_"\]\s*\{[^}]*border-radius:\s*8px[^}]*overflow:\s*hidden/,
|
|
135
|
-
);
|
|
136
|
-
});
|
|
137
|
-
});
|
|
138
|
-
|
|
139
|
-
describe('typography mappings', () => {
|
|
140
|
-
it('maps --puck-font-family to PDS default font family', () => {
|
|
141
|
-
const css = readThemeCSS();
|
|
142
|
-
expect(css).toContain('--puck-font-family');
|
|
143
|
-
expect(css).toContain('var(--pds-typography-ff-default)');
|
|
144
|
-
});
|
|
145
|
-
|
|
146
|
-
it('maps --puck-font-family-monospaced to PDS code font family', () => {
|
|
147
|
-
const css = readThemeCSS();
|
|
148
|
-
expect(css).toContain('--puck-font-family-monospaced');
|
|
149
|
-
expect(css).toContain('var(--pds-typography-ff-code)');
|
|
150
|
-
});
|
|
151
|
-
});
|
|
152
|
-
|
|
153
|
-
describe('editor chrome text/background reset (PCC-3456)', () => {
|
|
154
|
-
it('pins an explicit light foreground and background on .puck-editor-theme itself', () => {
|
|
155
|
-
const css = readThemeCSS();
|
|
156
|
-
// Must be the bare `.puck-editor-theme` selector (not an attribute-scoped
|
|
157
|
-
// descendant), so `color` inherits down to every chrome element that
|
|
158
|
-
// declares no color of its own (e.g. @puckeditor/core's _DrawerItem-name_).
|
|
159
|
-
expect(css).toMatch(
|
|
160
|
-
/(?<![^\s{};])\.puck-editor-theme\s*\{[^}]*color:\s*var\(--pds-color-foreground-default[^)]*\)[^}]*background:\s*var\(--pds-color-surface-default[^)]*\)[^}]*\}/,
|
|
161
|
-
);
|
|
162
|
-
});
|
|
163
|
-
|
|
164
|
-
it('reserves the sidebar scrollbar gutter so expanding a field group does not reflow', () => {
|
|
165
|
-
const css = readThemeCSS();
|
|
166
|
-
// The sidebar is the scroll container, so an arriving scrollbar reclaims
|
|
167
|
-
// its width and shifts every field. Reserving the gutter is what keeps a
|
|
168
|
-
// collapsible field group from moving the panel when it expands.
|
|
169
|
-
expect(css).toMatch(
|
|
170
|
-
/\.puck-editor-theme \[class\*="_Sidebar"\]\s*\{[^}]*scrollbar-gutter:\s*stable[^}]*\}/,
|
|
171
|
-
);
|
|
172
|
-
});
|
|
173
|
-
|
|
174
|
-
it('paints the sticky richtext toolbar so scrolled content does not show through', () => {
|
|
175
|
-
const css = readThemeCSS();
|
|
176
|
-
// The toolbar wrapper is position:sticky with no background; without an
|
|
177
|
-
// opaque fill the ProseMirror text scrolls under it and bleeds through.
|
|
178
|
-
expect(css).toMatch(
|
|
179
|
-
/\.puck-editor-theme \[class\*="_RichTextEditor-menu_"\]\s*\{[^}]*background:\s*var\(--puck-color-white\)[^}]*\}/,
|
|
180
|
-
);
|
|
181
|
-
});
|
|
182
|
-
|
|
183
|
-
it('does not use a bare body selector, which would leak into the preview iframe', () => {
|
|
184
|
-
const css = readThemeCSS();
|
|
185
|
-
// The preview iframe renders its own <body>. Because this stylesheet is a
|
|
186
|
-
// real <style>/<link> tag that Puck's collectStyles() copies into that
|
|
187
|
-
// iframe, a bare `body { ... }` rule here would match the iframe's body
|
|
188
|
-
// directly and force every previewed page into this light theme.
|
|
189
|
-
// Strip comments first — the file's explanatory comments intentionally
|
|
190
|
-
// quote a `body { ... }` example of what NOT to do.
|
|
191
|
-
const cssWithoutComments = css.replace(/\/\*[\s\S]*?\*\//g, '');
|
|
192
|
-
expect(cssWithoutComments).not.toMatch(/(^|\s|\})body\s*\{/);
|
|
193
|
-
});
|
|
194
|
-
});
|
|
195
|
-
});
|