@pantheon-systems/puck-css 0.8.0 → 0.9.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.
Files changed (356) hide show
  1. package/dist/agent/useAgentEdit.d.ts.map +1 -1
  2. package/dist/agent/useAgentEdit.js.map +1 -1
  3. package/dist/agent/useAgentTrigger.d.ts.map +1 -1
  4. package/dist/agent/useAgentTrigger.js.map +1 -1
  5. package/dist/auth/AuthGate.d.ts +1 -1
  6. package/dist/auth/AuthGate.d.ts.map +1 -1
  7. package/dist/collaboration/utils/avatarColor.d.ts +2 -8
  8. package/dist/collaboration/utils/avatarColor.d.ts.map +1 -1
  9. package/dist/collaboration/utils/avatarColor.js +4 -31
  10. package/dist/collaboration/utils/avatarColor.js.map +1 -1
  11. package/dist/collaboration/utils/focusHighlightConfig.d.ts.map +1 -1
  12. package/dist/collaboration/utils/focusHighlightConfig.js.map +1 -1
  13. package/dist/collaboration/utils/initials.d.ts +2 -0
  14. package/dist/collaboration/utils/initials.d.ts.map +1 -0
  15. package/dist/collaboration/utils/initials.js +27 -0
  16. package/dist/collaboration/utils/initials.js.map +1 -0
  17. package/dist/collaboration/utils/presenceIdentity.d.ts +29 -0
  18. package/dist/collaboration/utils/presenceIdentity.d.ts.map +1 -0
  19. package/dist/collaboration/utils/presenceIdentity.js +42 -0
  20. package/dist/collaboration/utils/presenceIdentity.js.map +1 -0
  21. package/dist/core/config.d.ts +1 -1
  22. package/dist/core/config.d.ts.map +1 -1
  23. package/dist/core/config.js.map +1 -1
  24. package/dist/core/types.d.ts +10 -3
  25. package/dist/core/types.d.ts.map +1 -1
  26. package/dist/data/css-queries/css-query-registry.d.ts +11 -0
  27. package/dist/data/css-queries/css-query-registry.d.ts.map +1 -0
  28. package/dist/data/css-queries/css-query-registry.js +28 -0
  29. package/dist/data/css-queries/css-query-registry.js.map +1 -0
  30. package/dist/data/dal/index.d.ts +1 -1
  31. package/dist/data/dal/index.d.ts.map +1 -1
  32. package/dist/data/dal/init.d.ts +5 -0
  33. package/dist/data/dal/init.d.ts.map +1 -1
  34. package/dist/data/dal/init.js +31 -4
  35. package/dist/data/dal/init.js.map +1 -1
  36. package/dist/data/dal/p1-store.d.ts +21 -0
  37. package/dist/data/dal/p1-store.d.ts.map +1 -1
  38. package/dist/data/dal/p1-store.js.map +1 -1
  39. package/dist/data/page-editor-meta.d.ts.map +1 -1
  40. package/dist/data/page-editor-meta.js +0 -1
  41. package/dist/data/page-editor-meta.js.map +1 -1
  42. package/dist/data/query-provider.d.ts +1 -1
  43. package/dist/data/query-provider.d.ts.map +1 -1
  44. package/dist/data/remote-datasources/fetch-http-json.d.ts.map +1 -1
  45. package/dist/data/remote-datasources/fetch-http-json.js.map +1 -1
  46. package/dist/data/remote-datasources/loader.js +1 -1
  47. package/dist/data/remote-datasources/loader.js.map +1 -1
  48. package/dist/data/resolve-data-templates.d.ts.map +1 -1
  49. package/dist/data/resolve-data-templates.js +26 -4
  50. package/dist/data/resolve-data-templates.js.map +1 -1
  51. package/dist/editor/P1App.d.ts.map +1 -1
  52. package/dist/editor/P1App.js +1 -1
  53. package/dist/editor/P1App.js.map +1 -1
  54. package/dist/editor/P1PuckProvider.d.ts.map +1 -1
  55. package/dist/editor/P1PuckProvider.js +57 -18
  56. package/dist/editor/P1PuckProvider.js.map +1 -1
  57. package/dist/editor/aiPanelStore.d.ts +15 -0
  58. package/dist/editor/aiPanelStore.d.ts.map +1 -0
  59. package/dist/editor/aiPanelStore.js +43 -0
  60. package/dist/editor/aiPanelStore.js.map +1 -0
  61. package/dist/editor/components/CollapsibleFieldSection.d.ts +10 -0
  62. package/dist/editor/components/CollapsibleFieldSection.d.ts.map +1 -0
  63. package/dist/editor/components/CollapsibleFieldSection.js +9 -0
  64. package/dist/editor/components/CollapsibleFieldSection.js.map +1 -0
  65. package/dist/editor/components/CollapsibleSection.module.css +70 -0
  66. package/dist/editor/components/CollapsibleSectionHeader.d.ts +20 -0
  67. package/dist/editor/components/CollapsibleSectionHeader.d.ts.map +1 -0
  68. package/dist/editor/components/CollapsibleSectionHeader.js +10 -0
  69. package/dist/editor/components/CollapsibleSectionHeader.js.map +1 -0
  70. package/dist/editor/components/DraggableRow.d.ts +13 -0
  71. package/dist/editor/components/DraggableRow.d.ts.map +1 -0
  72. package/dist/editor/components/DraggableRow.js +20 -0
  73. package/dist/editor/components/DraggableRow.js.map +1 -0
  74. package/dist/editor/components/FieldHelpText.d.ts +6 -0
  75. package/dist/editor/components/FieldHelpText.d.ts.map +1 -0
  76. package/dist/editor/components/FieldHelpText.js +6 -0
  77. package/dist/editor/components/FieldHelpText.js.map +1 -0
  78. package/dist/editor/components/FieldHelpText.module.css +13 -0
  79. package/dist/editor/components/InspectorTabHeader.js +1 -1
  80. package/dist/editor/components/InspectorTabHeader.js.map +1 -1
  81. package/dist/editor/components/OutlinePanel.d.ts +10 -0
  82. package/dist/editor/components/OutlinePanel.d.ts.map +1 -0
  83. package/dist/editor/components/OutlinePanel.js +64 -0
  84. package/dist/editor/components/OutlinePanel.js.map +1 -0
  85. package/dist/editor/components/OutlinePanel.module.css +111 -0
  86. package/dist/editor/components/P1InspectorFields.d.ts.map +1 -1
  87. package/dist/editor/components/P1InspectorFields.js +12 -5
  88. package/dist/editor/components/P1InspectorFields.js.map +1 -1
  89. package/dist/editor/components/PanelHeader.d.ts +25 -0
  90. package/dist/editor/components/PanelHeader.d.ts.map +1 -0
  91. package/dist/editor/components/PanelHeader.js +12 -0
  92. package/dist/editor/components/PanelHeader.js.map +1 -0
  93. package/dist/editor/components/PanelHeader.module.css +34 -0
  94. package/dist/editor/components/PanelShell.d.ts +10 -0
  95. package/dist/editor/components/PanelShell.d.ts.map +1 -0
  96. package/dist/editor/components/PanelShell.js +7 -0
  97. package/dist/editor/components/PanelShell.js.map +1 -0
  98. package/dist/editor/components/PanelShell.module.css +15 -0
  99. package/dist/editor/components/PreviewPanelOverlay.d.ts +12 -0
  100. package/dist/editor/components/PreviewPanelOverlay.d.ts.map +1 -0
  101. package/dist/editor/components/PreviewPanelOverlay.js +7 -0
  102. package/dist/editor/components/PreviewPanelOverlay.js.map +1 -0
  103. package/dist/editor/components/PublishedStatusBadge.d.ts +1 -1
  104. package/dist/editor/components/PublishedStatusBadge.d.ts.map +1 -1
  105. package/dist/editor/components/VersionBannerOverride.d.ts +5 -1
  106. package/dist/editor/components/VersionBannerOverride.d.ts.map +1 -1
  107. package/dist/editor/components/VersionBannerOverride.js +20 -5
  108. package/dist/editor/components/VersionBannerOverride.js.map +1 -1
  109. package/dist/editor/components/VersionTimeline.d.ts +20 -0
  110. package/dist/editor/components/VersionTimeline.d.ts.map +1 -0
  111. package/dist/editor/components/VersionTimeline.js +42 -0
  112. package/dist/editor/components/VersionTimeline.js.map +1 -0
  113. package/dist/editor/components/collapsibleSectionContext.d.ts +17 -0
  114. package/dist/editor/components/collapsibleSectionContext.d.ts.map +1 -0
  115. package/dist/editor/components/collapsibleSectionContext.js +13 -0
  116. package/dist/editor/components/collapsibleSectionContext.js.map +1 -0
  117. package/dist/editor/components/componentIconName.d.ts +15 -0
  118. package/dist/editor/components/componentIconName.d.ts.map +1 -0
  119. package/dist/editor/components/componentIconName.js +68 -0
  120. package/dist/editor/components/componentIconName.js.map +1 -0
  121. package/dist/editor/components/connectable.d.ts +1 -1
  122. package/dist/editor/components/connectable.d.ts.map +1 -1
  123. package/dist/editor/components/merge-preview/MergePreviewPanel.d.ts.map +1 -1
  124. package/dist/editor/components/merge-preview/MergePreviewPanel.js.map +1 -1
  125. package/dist/editor/components/merge-preview/MergePreviewRenderer.js +3 -15
  126. package/dist/editor/components/merge-preview/MergePreviewRenderer.js.map +1 -1
  127. package/dist/editor/components/outlineTree.d.ts +68 -0
  128. package/dist/editor/components/outlineTree.d.ts.map +1 -0
  129. package/dist/editor/components/outlineTree.js +72 -0
  130. package/dist/editor/components/outlineTree.js.map +1 -0
  131. package/dist/editor/components/useDragReorder.d.ts +16 -0
  132. package/dist/editor/components/useDragReorder.d.ts.map +1 -0
  133. package/dist/editor/components/useDragReorder.js +35 -0
  134. package/dist/editor/components/useDragReorder.js.map +1 -0
  135. package/dist/editor/index.d.ts +13 -0
  136. package/dist/editor/index.d.ts.map +1 -1
  137. package/dist/editor/index.js +8 -0
  138. package/dist/editor/index.js.map +1 -1
  139. package/dist/editor/plugin/P1Plugin.d.ts +19 -3
  140. package/dist/editor/plugin/P1Plugin.d.ts.map +1 -1
  141. package/dist/editor/plugin/P1Plugin.js +113 -47
  142. package/dist/editor/plugin/P1Plugin.js.map +1 -1
  143. package/dist/editor/plugin/createP1Overrides.d.ts +31 -43
  144. package/dist/editor/plugin/createP1Overrides.d.ts.map +1 -1
  145. package/dist/editor/plugin/createP1Overrides.js +47 -43
  146. package/dist/editor/plugin/createP1Overrides.js.map +1 -1
  147. package/dist/editor/plugin/fieldGuidance.d.ts +45 -0
  148. package/dist/editor/plugin/fieldGuidance.d.ts.map +1 -0
  149. package/dist/editor/plugin/fieldGuidance.js +24 -0
  150. package/dist/editor/plugin/fieldGuidance.js.map +1 -0
  151. package/dist/editor/plugin/mergePreviewPlugin.d.ts.map +1 -1
  152. package/dist/editor/plugin/mergePreviewPlugin.js.map +1 -1
  153. package/dist/editor/plugin/selectHeaderCollaborators.d.ts +12 -0
  154. package/dist/editor/plugin/selectHeaderCollaborators.d.ts.map +1 -0
  155. package/dist/editor/plugin/selectHeaderCollaborators.js +15 -0
  156. package/dist/editor/plugin/selectHeaderCollaborators.js.map +1 -0
  157. package/dist/editor/thumbnails/LiveThumbnail.d.ts +47 -0
  158. package/dist/editor/thumbnails/LiveThumbnail.d.ts.map +1 -0
  159. package/dist/editor/thumbnails/LiveThumbnail.js +120 -0
  160. package/dist/editor/thumbnails/LiveThumbnail.js.map +1 -0
  161. package/dist/editor/thumbnails/ThumbnailCard.d.ts +37 -0
  162. package/dist/editor/thumbnails/ThumbnailCard.d.ts.map +1 -0
  163. package/dist/editor/thumbnails/ThumbnailCard.js +91 -0
  164. package/dist/editor/thumbnails/ThumbnailCard.js.map +1 -0
  165. package/dist/editor/thumbnails/buildLiveThumbnailDrawer.d.ts +33 -0
  166. package/dist/editor/thumbnails/buildLiveThumbnailDrawer.d.ts.map +1 -0
  167. package/dist/editor/thumbnails/buildLiveThumbnailDrawer.js +79 -0
  168. package/dist/editor/thumbnails/buildLiveThumbnailDrawer.js.map +1 -0
  169. package/dist/editor/thumbnails/humanizeComponentName.d.ts +18 -0
  170. package/dist/editor/thumbnails/humanizeComponentName.d.ts.map +1 -0
  171. package/dist/editor/thumbnails/humanizeComponentName.js +32 -0
  172. package/dist/editor/thumbnails/humanizeComponentName.js.map +1 -0
  173. package/dist/editor/thumbnails/resolveLiveThumbnailDrawer.d.ts +15 -0
  174. package/dist/editor/thumbnails/resolveLiveThumbnailDrawer.d.ts.map +1 -0
  175. package/dist/editor/thumbnails/resolveLiveThumbnailDrawer.js +19 -0
  176. package/dist/editor/thumbnails/resolveLiveThumbnailDrawer.js.map +1 -0
  177. package/dist/editor/thumbnails/thumbnailCache.d.ts +39 -0
  178. package/dist/editor/thumbnails/thumbnailCache.d.ts.map +1 -0
  179. package/dist/editor/thumbnails/thumbnailCache.js +97 -0
  180. package/dist/editor/thumbnails/thumbnailCache.js.map +1 -0
  181. package/dist/editor/useP1Editor.d.ts +14 -4
  182. package/dist/editor/useP1Editor.d.ts.map +1 -1
  183. package/dist/editor/useP1Editor.js +34 -5
  184. package/dist/editor/useP1Editor.js.map +1 -1
  185. package/dist/editor/useP1Overrides.d.ts +1 -1
  186. package/dist/editor/useP1Overrides.d.ts.map +1 -1
  187. package/dist/editor/useP1Overrides.js.map +1 -1
  188. package/dist/editor/useP1Plugin.d.ts +15 -3
  189. package/dist/editor/useP1Plugin.d.ts.map +1 -1
  190. package/dist/editor/useP1Plugin.js +4 -0
  191. package/dist/editor/useP1Plugin.js.map +1 -1
  192. package/dist/editor/useRealtime.d.ts +2 -2
  193. package/dist/editor/useRealtime.d.ts.map +1 -1
  194. package/dist/editor/useRealtime.js.map +1 -1
  195. package/dist/editor/utils/componentRegistry.d.ts +4 -4
  196. package/dist/editor/utils/componentRegistry.d.ts.map +1 -1
  197. package/dist/editor/utils/componentRegistry.js +0 -1
  198. package/dist/editor/utils/componentRegistry.js.map +1 -1
  199. package/dist/editor/utils/restoreDocumentVersion.d.ts +18 -0
  200. package/dist/editor/utils/restoreDocumentVersion.d.ts.map +1 -0
  201. package/dist/editor/utils/restoreDocumentVersion.js +49 -0
  202. package/dist/editor/utils/restoreDocumentVersion.js.map +1 -0
  203. package/dist/editor/utils/sanitizeRichtextDefaults.d.ts +22 -0
  204. package/dist/editor/utils/sanitizeRichtextDefaults.d.ts.map +1 -0
  205. package/dist/editor/utils/sanitizeRichtextDefaults.js +98 -0
  206. package/dist/editor/utils/sanitizeRichtextDefaults.js.map +1 -0
  207. package/dist/features/content-type-templates/permissions/createPuckPermissions.d.ts +1 -3
  208. package/dist/features/content-type-templates/permissions/createPuckPermissions.d.ts.map +1 -1
  209. package/dist/features/content-type-templates/permissions/createPuckPermissions.js.map +1 -1
  210. package/dist/features/content-type-templates/stores/template-store-api.d.ts.map +1 -1
  211. package/dist/features/content-type-templates/ui/ActionBarPinButton.d.ts.map +1 -1
  212. package/dist/features/content-type-templates/ui/ActionBarPinButton.js +1 -1
  213. package/dist/features/content-type-templates/ui/ActionBarPinButton.js.map +1 -1
  214. package/dist/index.d.ts +10 -1
  215. package/dist/index.d.ts.map +1 -1
  216. package/dist/index.js +10 -1
  217. package/dist/index.js.map +1 -1
  218. package/dist/merge/components/merge-resolution/CherryPickVisualPanel.js +1 -3
  219. package/dist/merge/components/merge-resolution/CherryPickVisualPanel.js.map +1 -1
  220. package/dist/merge/components/merge-resolution/DocumentResolutionDetail.js +2 -2
  221. package/dist/merge/components/merge-resolution/DocumentResolutionDetail.js.map +1 -1
  222. package/dist/p1/editor/client.d.ts +1 -1
  223. package/dist/p1/editor/client.d.ts.map +1 -1
  224. package/dist/p1/editor/client.js +2 -2
  225. package/dist/p1/editor/client.js.map +1 -1
  226. package/dist/p1/editor/connect/connect-field-modal.d.ts +1 -1
  227. package/dist/p1/editor/connect/connect-field-modal.d.ts.map +1 -1
  228. package/dist/p1/editor/connect/connect-field-modal.js +1 -1
  229. package/dist/p1/editor/connect/connect-field-modal.js.map +1 -1
  230. package/dist/p1/editor/connect/connect-preview-config.d.ts +1 -1
  231. package/dist/p1/editor/connect/connect-preview-config.d.ts.map +1 -1
  232. package/dist/p1/editor/connect/field-connect-plugin.js +1 -1
  233. package/dist/p1/editor/connect/field-connect-plugin.js.map +1 -1
  234. package/dist/p1/editor/editor-preview-resolve.d.ts +7 -1
  235. package/dist/p1/editor/editor-preview-resolve.d.ts.map +1 -1
  236. package/dist/p1/editor/editor-preview-resolve.js +8 -1
  237. package/dist/p1/editor/editor-preview-resolve.js.map +1 -1
  238. package/dist/p1/editor/hooks/api-hooks.d.ts +4 -4
  239. package/dist/p1/editor/hooks/api-hooks.d.ts.map +1 -1
  240. package/dist/p1/editor/hooks/api-hooks.js +57 -30
  241. package/dist/p1/editor/hooks/api-hooks.js.map +1 -1
  242. package/dist/p1/editor/hooks/useEditorContext.d.ts +1 -1
  243. package/dist/p1/editor/hooks/useEditorContext.d.ts.map +1 -1
  244. package/dist/p1/editor/hooks/useEditorContext.js +12 -3
  245. package/dist/p1/editor/hooks/useEditorContext.js.map +1 -1
  246. package/dist/p1/editor/hooks/useP1Plugins.d.ts.map +1 -1
  247. package/dist/p1/editor/hooks/useP1Plugins.js +4 -2
  248. package/dist/p1/editor/hooks/useP1Plugins.js.map +1 -1
  249. package/dist/p1/editor/icons/button-block-icon.d.ts +1 -1
  250. package/dist/p1/editor/icons/button-block-icon.d.ts.map +1 -1
  251. package/dist/p1/editor/icons/default-block-icon.d.ts +1 -1
  252. package/dist/p1/editor/icons/default-block-icon.d.ts.map +1 -1
  253. package/dist/p1/editor/icons/divider-block-icon.d.ts +1 -1
  254. package/dist/p1/editor/icons/divider-block-icon.d.ts.map +1 -1
  255. package/dist/p1/editor/icons/grid-block-icon.d.ts +1 -1
  256. package/dist/p1/editor/icons/grid-block-icon.d.ts.map +1 -1
  257. package/dist/p1/editor/icons/heading-block-icon.d.ts +1 -1
  258. package/dist/p1/editor/icons/heading-block-icon.d.ts.map +1 -1
  259. package/dist/p1/editor/icons/image-block-icon.d.ts +1 -1
  260. package/dist/p1/editor/icons/image-block-icon.d.ts.map +1 -1
  261. package/dist/p1/editor/icons/list-block-icon.d.ts +1 -1
  262. package/dist/p1/editor/icons/list-block-icon.d.ts.map +1 -1
  263. package/dist/p1/editor/icons/paragraph-block-icon.d.ts +1 -1
  264. package/dist/p1/editor/icons/paragraph-block-icon.d.ts.map +1 -1
  265. package/dist/p1/editor/icons/quote-block-icon.d.ts +1 -1
  266. package/dist/p1/editor/icons/quote-block-icon.d.ts.map +1 -1
  267. package/dist/p1/editor/icons/spacer-block-icon.d.ts +1 -1
  268. package/dist/p1/editor/icons/spacer-block-icon.d.ts.map +1 -1
  269. package/dist/p1/editor/index.d.ts +1 -1
  270. package/dist/p1/editor/index.d.ts.map +1 -1
  271. package/dist/p1/editor/index.js +1 -1
  272. package/dist/p1/editor/index.js.map +1 -1
  273. package/dist/p1/editor/remote-datasources/remote-datasource-explorer-plugin.js +65 -67
  274. package/dist/p1/editor/remote-datasources/remote-datasource-explorer-plugin.js.map +1 -1
  275. package/dist/p1/editor/remote-datasources/remote-datasource-form-helpers.d.ts +4 -4
  276. package/dist/p1/editor/remote-datasources/remote-datasource-form-helpers.d.ts.map +1 -1
  277. package/dist/p1/editor/remote-datasources/remote-datasource-form-helpers.js.map +1 -1
  278. package/dist/p1/editor/remote-datasources/remote-datasource-manager.d.ts +1 -1
  279. package/dist/p1/editor/remote-datasources/remote-datasource-manager.d.ts.map +1 -1
  280. package/dist/p1/editor/remote-datasources/remote-datasource-manager.js +1 -1
  281. package/dist/p1/editor/remote-datasources/remote-datasource-manager.js.map +1 -1
  282. package/dist/p1/editor/remote-datasources/template-preview-params-toolbar.d.ts +1 -1
  283. package/dist/p1/editor/remote-datasources/template-preview-params-toolbar.d.ts.map +1 -1
  284. package/dist/p1/editor/remote-datasources/template-preview-params-toolbar.js +1 -1
  285. package/dist/p1/editor/remote-datasources/template-preview-params-toolbar.js.map +1 -1
  286. package/dist/p1/editor/template-autocomplete-layer.d.ts +2 -2
  287. package/dist/p1/editor/template-autocomplete-layer.d.ts.map +1 -1
  288. package/dist/p1/editor/template-autocomplete-layer.js +23 -3
  289. package/dist/p1/editor/template-autocomplete-layer.js.map +1 -1
  290. package/dist/p1/pages/render-client.d.ts +1 -1
  291. package/dist/p1/pages/render-client.d.ts.map +1 -1
  292. package/dist/pds/components/AgentChip.d.ts.map +1 -1
  293. package/dist/pds/components/AgentChip.js +1 -2
  294. package/dist/pds/components/AgentChip.js.map +1 -1
  295. package/dist/pds/components/CreatePageModal.d.ts +10 -1
  296. package/dist/pds/components/CreatePageModal.d.ts.map +1 -1
  297. package/dist/pds/components/CreatePageModal.js +29 -9
  298. package/dist/pds/components/CreatePageModal.js.map +1 -1
  299. package/dist/pds/components/CreatePageModal.module.css +34 -0
  300. package/dist/pds/components/DocStateBadge.d.ts +1 -1
  301. package/dist/pds/components/DocStateBadge.d.ts.map +1 -1
  302. package/dist/pds/components/DocStateBadge.js +1 -1
  303. package/dist/pds/components/DocStateBadge.js.map +1 -1
  304. package/dist/pds/components/NavIcon.js +1 -1
  305. package/dist/pds/components/NavIcon.js.map +1 -1
  306. package/dist/pds/components/P1EditorHeader.d.ts +10 -2
  307. package/dist/pds/components/P1EditorHeader.d.ts.map +1 -1
  308. package/dist/pds/components/P1EditorHeader.js +16 -7
  309. package/dist/pds/components/P1EditorHeader.js.map +1 -1
  310. package/dist/pds/components/P1EditorHeader.module.css +113 -35
  311. package/dist/pds/components/P1EditorSubheader.d.ts +1 -2
  312. package/dist/pds/components/P1EditorSubheader.d.ts.map +1 -1
  313. package/dist/pds/components/P1EditorSubheader.js +10 -21
  314. package/dist/pds/components/P1EditorSubheader.js.map +1 -1
  315. package/dist/pds/components/P1EditorSubheader.module.css +7 -1
  316. package/dist/pds/components/PageNavigator.d.ts.map +1 -1
  317. package/dist/pds/components/PageNavigator.js.map +1 -1
  318. package/dist/pds/components/PresenceStack.d.ts +6 -5
  319. package/dist/pds/components/PresenceStack.d.ts.map +1 -1
  320. package/dist/pds/components/PresenceStack.js +43 -4
  321. package/dist/pds/components/PresenceStack.js.map +1 -1
  322. package/dist/pds/components/PresenceStack.module.css +52 -7
  323. package/dist/pds/components/PublishControl.js +2 -2
  324. package/dist/pds/components/PublishControl.js.map +1 -1
  325. package/dist/pds/components/WorkstreamSwitcher.d.ts +7 -2
  326. package/dist/pds/components/WorkstreamSwitcher.d.ts.map +1 -1
  327. package/dist/pds/components/WorkstreamSwitcher.js +5 -3
  328. package/dist/pds/components/WorkstreamSwitcher.js.map +1 -1
  329. package/dist/server.d.ts +3 -1
  330. package/dist/server.d.ts.map +1 -1
  331. package/dist/server.js +4 -1
  332. package/dist/server.js.map +1 -1
  333. package/dist/versioning/components/HistoricalVersionBanner.d.ts +19 -21
  334. package/dist/versioning/components/HistoricalVersionBanner.d.ts.map +1 -1
  335. package/dist/versioning/components/HistoricalVersionBanner.js +7 -19
  336. package/dist/versioning/components/HistoricalVersionBanner.js.map +1 -1
  337. package/dist/versioning/components/VersionBannerActions.d.ts +15 -0
  338. package/dist/versioning/components/VersionBannerActions.d.ts.map +1 -0
  339. package/dist/versioning/components/VersionBannerActions.js +30 -0
  340. package/dist/versioning/components/VersionBannerActions.js.map +1 -0
  341. package/dist/versioning/components/VersionPublishedBadge.d.ts +1 -1
  342. package/dist/versioning/components/VersionPublishedBadge.d.ts.map +1 -1
  343. package/dist/versioning/components/version-compare/VisualVersionCompare.d.ts +2 -2
  344. package/dist/versioning/components/version-compare/VisualVersionCompare.d.ts.map +1 -1
  345. package/dist/versioning/utils/formatVersionDate.d.ts +15 -0
  346. package/dist/versioning/utils/formatVersionDate.d.ts.map +1 -0
  347. package/dist/versioning/utils/formatVersionDate.js +41 -0
  348. package/dist/versioning/utils/formatVersionDate.js.map +1 -0
  349. package/dist/versioning/utils/versionKind.d.ts +19 -0
  350. package/dist/versioning/utils/versionKind.d.ts.map +1 -0
  351. package/dist/versioning/utils/versionKind.js +30 -0
  352. package/dist/versioning/utils/versionKind.js.map +1 -0
  353. package/package.json +9 -6
  354. package/src/pds/theme/PuckEditorTheme.css +81 -0
  355. package/src/pds/theme/PuckEditorTheme.test.ts +50 -1
  356. package/src/styles.css +517 -32
@@ -142,6 +142,10 @@
142
142
  --puck-color-grey-04: var(--pds-color-fg-default);
143
143
  }
144
144
 
145
+ .puck-editor-theme [class*="_Sidebar"] {
146
+ scrollbar-gutter: stable;
147
+ }
148
+
145
149
  /* ── Plugin rail nav icon normalization ─────────────────────────────────── */
146
150
  /* All icons in the left nav rail must be a uniform 20×20px.
147
151
  Puck's native SVGs, PDS Icon SVGs, and our mask-image pseudo-elements
@@ -277,3 +281,80 @@
277
281
  background-color: #000000 !important;
278
282
  color: #ffffff !important;
279
283
  }
284
+
285
+ /* ── Canvas: grey gutter around a rounded page ────────────────────────────
286
+ The canvas (_PuckCanvas_) already has a grey background (grey-11), but in
287
+ full-screen mode Puck zeroes its padding so the page fills it edge-to-edge
288
+ and the grey never shows. Restoring a little padding reveals that grey as
289
+ a gutter around the page; rounding the inner _PuckCanvas-root_ gives the
290
+ floating-page look. The [class*="_PuckCanvas_"] selector matches only the
291
+ outer element (children use a hyphen after "Canvas"); higher specificity
292
+ than Puck's own ._PuckCanvas--fullScreen_ so the padding wins. */
293
+ .puck-editor-theme [class*="_PuckCanvas_"] {
294
+ padding: 8px;
295
+ }
296
+ .puck-editor-theme [class*="_PuckCanvas-root_"] {
297
+ border-radius: 8px;
298
+ overflow: hidden;
299
+ }
300
+
301
+ /* ── Editor chrome text/background reset (PCC-3456) ──────────────────────
302
+ *
303
+ * Root cause: recent design-library "dark-canon" token waves make the host
304
+ * app's own body dark (e.g. body { color: var(--color-text); background:
305
+ * var(--color-surface) }, resolving to white-on-black). Puck ships plenty of
306
+ * chrome elements — e.g. @puckeditor/core's ._DrawerItem-name_ — that declare
307
+ * no color of their own and simply inherit whatever the ambient text color
308
+ * is. Nothing between <body> and those elements (including Puck's own
309
+ * `._Puck_` root, which sets layout vars but no color) intercepts that
310
+ * inheritance, so the new dark host theme cascades straight through and
311
+ * turns chrome text white-on-light — unreadable.
312
+ *
313
+ * Fix: pin an explicit light foreground/background on `.puck-editor-theme`
314
+ * itself using the same PDS light-theme tokens already used elsewhere in
315
+ * this file (grey-11/12 above), matching the pds `data-rm-theme="light"`
316
+ * editor chrome regardless of whatever theme the host page's <body> is on.
317
+ * `color` inherits down through every chrome descendant that doesn't set
318
+ * its own, exactly reversing the leak.
319
+ *
320
+ * Scoping: this file is a real <style>/<link> stylesheet in the parent
321
+ * document (unlike pds-core.css, which is loaded via adoptedStyleSheets
322
+ * specifically to stay invisible to Puck — see P1App.tsx), so Puck's canvas
323
+ * iframe scanner (`collectStyles()`) DOES copy it into the preview iframe's
324
+ * document, same as every other rule here. Scoping to `.puck-editor-theme`
325
+ * (never a bare `body` selector) is what keeps that copy inert: the iframe
326
+ * renders the previewed page's own DOM, which has no `.puck-editor-theme`
327
+ * element in it, so the selector simply never matches there and the
328
+ * preview keeps the site's own (possibly dark) theme untouched. A bare
329
+ * `body { color: #111; background: #fff }` rule — as originally proposed —
330
+ * would instead match the iframe's own <body> directly once copied in,
331
+ * forcing every preview into a light theme regardless of the real site's
332
+ * design and reintroducing the same class of leak in the opposite
333
+ * direction.
334
+ */
335
+ .puck-editor-theme {
336
+ color: var(--pds-color-fg-default, #23232d);
337
+ background: var(--pds-color-bg-default, #fff);
338
+ }
339
+
340
+ /* ── AI chat panel: fill the inspector rail ──────────────────────────────────
341
+ * `SidebarSection-content` is a block container and Puck's fields <form> has no
342
+ * height of its own, so the panel stopped at its content height with the
343
+ * composer floating mid-rail. Flex columns carry the rail's height down to it;
344
+ * `min-height: 0` keeps the scrolling inside the transcript.
345
+ *
346
+ * Scoped to the panel's marker attribute: the ordinary field list relies on
347
+ * natural flow in the rail's scroll container, and stretching it would clip.
348
+ */
349
+ .puck-editor-theme [class*='_SidebarSection_']:has([data-p1-ai-panel]) {
350
+ height: 100%;
351
+ min-height: 0;
352
+ }
353
+
354
+ .puck-editor-theme [class*='_SidebarSection-content_']:has([data-p1-ai-panel]),
355
+ .puck-editor-theme [class*='_PuckFields_']:has([data-p1-ai-panel]) {
356
+ display: flex;
357
+ flex-direction: column;
358
+ flex: 1;
359
+ min-height: 0;
360
+ }
@@ -9,10 +9,10 @@
9
9
  * right layer of confidence here.
10
10
  */
11
11
 
12
- import { describe, it, expect } from 'vitest';
13
12
  import { readFileSync } from 'fs';
14
13
  import { dirname, join } from 'path';
15
14
  import { fileURLToPath } from 'url';
15
+ import { describe, it, expect } from 'vitest';
16
16
 
17
17
  const __dirname = dirname(fileURLToPath(import.meta.url));
18
18
  const p1Path = join(__dirname, 'PuckEditorTheme.css');
@@ -121,6 +121,21 @@ describe('PuckEditorTheme.css', () => {
121
121
  });
122
122
  });
123
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
+
124
139
  describe('typography mappings', () => {
125
140
  it('maps --puck-font-family to PDS default font family', () => {
126
141
  const css = readThemeCSS();
@@ -134,4 +149,38 @@ describe('PuckEditorTheme.css', () => {
134
149
  expect(css).toContain('var(--pds-typography-ff-code)');
135
150
  });
136
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-fg-default[^)]*\)[^}]*background:\s*var\(--pds-color-bg-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('does not use a bare body selector, which would leak into the preview iframe', () => {
175
+ const css = readThemeCSS();
176
+ // The preview iframe renders its own <body>. Because this stylesheet is a
177
+ // real <style>/<link> tag that Puck's collectStyles() copies into that
178
+ // iframe, a bare `body { ... }` rule here would match the iframe's body
179
+ // directly and force every previewed page into this light theme.
180
+ // Strip comments first — the file's explanatory comments intentionally
181
+ // quote a `body { ... }` example of what NOT to do.
182
+ const cssWithoutComments = css.replace(/\/\*[\s\S]*?\*\//g, '');
183
+ expect(cssWithoutComments).not.toMatch(/(^|\s|\})body\s*\{/);
184
+ });
185
+ });
137
186
  });