@pantheon-systems/puck-css 0.6.0 → 0.7.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 (41) hide show
  1. package/dist/core/types.d.ts +6 -0
  2. package/dist/core/types.d.ts.map +1 -1
  3. package/dist/editor/P1PuckProvider.js +66 -9
  4. package/dist/editor/P1PuckProvider.js.map +1 -1
  5. package/dist/editor/components/VersionBannerOverride.d.ts.map +1 -1
  6. package/dist/editor/components/VersionBannerOverride.js +7 -1
  7. package/dist/editor/components/VersionBannerOverride.js.map +1 -1
  8. package/dist/editor/useComponentRegistry.d.ts +2 -5
  9. package/dist/editor/useComponentRegistry.d.ts.map +1 -1
  10. package/dist/editor/useComponentRegistry.js +3 -172
  11. package/dist/editor/useComponentRegistry.js.map +1 -1
  12. package/dist/editor/useP1Editor.js +2 -2
  13. package/dist/editor/useP1Editor.js.map +1 -1
  14. package/dist/editor/utils/componentRegistry.d.ts +22 -2
  15. package/dist/editor/utils/componentRegistry.d.ts.map +1 -1
  16. package/dist/editor/utils/componentRegistry.js +9 -2
  17. package/dist/editor/utils/componentRegistry.js.map +1 -1
  18. package/dist/editor/utils/syncComponentRegistry.d.ts +29 -0
  19. package/dist/editor/utils/syncComponentRegistry.d.ts.map +1 -0
  20. package/dist/editor/utils/syncComponentRegistry.js +212 -0
  21. package/dist/editor/utils/syncComponentRegistry.js.map +1 -0
  22. package/dist/editor/utils/syncComponentRegistryWriteOnly.d.ts +24 -0
  23. package/dist/editor/utils/syncComponentRegistryWriteOnly.d.ts.map +1 -0
  24. package/dist/editor/utils/syncComponentRegistryWriteOnly.js +41 -0
  25. package/dist/editor/utils/syncComponentRegistryWriteOnly.js.map +1 -0
  26. package/dist/pds/components/P1EditorHeader.d.ts.map +1 -1
  27. package/dist/pds/components/P1EditorHeader.js +1 -1
  28. package/dist/pds/components/P1EditorHeader.js.map +1 -1
  29. package/dist/pds/components/P1EditorHeader.module.css +2 -4
  30. package/dist/pds/components/P1EditorSubheader.module.css +5 -2
  31. package/dist/pds/theme/pds-core-content.d.ts +1 -1
  32. package/dist/pds/theme/pds-core-content.d.ts.map +1 -1
  33. package/dist/pds/theme/pds-core-content.js +3 -2
  34. package/dist/pds/theme/pds-core-content.js.map +1 -1
  35. package/dist/registry-sync.d.ts +7 -0
  36. package/dist/registry-sync.d.ts.map +1 -0
  37. package/dist/registry-sync.js +8 -0
  38. package/dist/registry-sync.js.map +1 -0
  39. package/package.json +8 -3
  40. package/src/pds/theme/pds-core-content.ts +3 -2
  41. package/src/pds/theme/pds-core.css +3 -2
@@ -1 +1 @@
1
- {"version":3,"file":"pds-core-content.js","sourceRoot":"","sources":["../../../src/pds/theme/pds-core-content.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,2EAA2E;AAC3E,8EAA8E;AAC9E,yCAAyC;AACzC,uEAAuE;AACvE,MAAM,CAAC,MAAM,UAAU,GAAG;iixIACugxI,CAAC"}
1
+ {"version":3,"file":"pds-core-content.js","sourceRoot":"","sources":["../../../src/pds/theme/pds-core-content.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,2EAA2E;AAC3E,8EAA8E;AAC9E,yCAAyC;AACzC,uEAAuE;AACvE,MAAM,CAAC,MAAM,UAAU,GAAG;;4pzMAEkozM,CAAC"}
@@ -0,0 +1,7 @@
1
+ export { extractDescriptors, buildRegistryIndex } from "./editor/utils/componentRegistry.js";
2
+ export type { ComponentDescriptor, ComponentProvenance, SerializedField, FieldAiMeta, RegistryIndex, } from "./editor/utils/componentRegistry.js";
3
+ export { syncComponentRegistry } from "./editor/utils/syncComponentRegistry.js";
4
+ export type { RegistrationResult } from "./editor/utils/syncComponentRegistry.js";
5
+ export { syncComponentRegistryWriteOnly } from "./editor/utils/syncComponentRegistryWriteOnly.js";
6
+ export type { WriteOnlyRegistrationResult } from "./editor/utils/syncComponentRegistryWriteOnly.js";
7
+ //# sourceMappingURL=registry-sync.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry-sync.d.ts","sourceRoot":"","sources":["../src/registry-sync.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC7F,YAAY,EACV,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,EACf,WAAW,EACX,aAAa,GACd,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,YAAY,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAClF,OAAO,EAAE,8BAA8B,EAAE,MAAM,kDAAkD,CAAC;AAClG,YAAY,EAAE,2BAA2B,EAAE,MAAM,kDAAkD,CAAC"}
@@ -0,0 +1,8 @@
1
+ // Registry sync — pure functions for extracting Puck component descriptors
2
+ // and syncing them to CSS registry documents, with no React dependency.
3
+ // Used by the browser useComponentRegistry hook and by headless CI callers
4
+ // (e.g. a customer's sync-puck-registry script) alike.
5
+ export { extractDescriptors, buildRegistryIndex } from "./editor/utils/componentRegistry.js";
6
+ export { syncComponentRegistry } from "./editor/utils/syncComponentRegistry.js";
7
+ export { syncComponentRegistryWriteOnly } from "./editor/utils/syncComponentRegistryWriteOnly.js";
8
+ //# sourceMappingURL=registry-sync.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry-sync.js","sourceRoot":"","sources":["../src/registry-sync.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,wEAAwE;AACxE,2EAA2E;AAC3E,uDAAuD;AAEvD,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAQ7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAEhF,OAAO,EAAE,8BAA8B,EAAE,MAAM,kDAAkD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pantheon-systems/puck-css",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Puck editor integration with Collaborative State System",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -53,6 +53,11 @@
53
53
  "default": "./dist/server.js",
54
54
  "types": "./dist/server.d.ts"
55
55
  },
56
+ "./registry-sync": {
57
+ "import": "./dist/registry-sync.js",
58
+ "default": "./dist/registry-sync.js",
59
+ "types": "./dist/registry-sync.d.ts"
60
+ },
56
61
  "./auth-gate": {
57
62
  "import": "./dist/auth/AuthGate.js",
58
63
  "default": "./dist/auth/AuthGate.js",
@@ -85,11 +90,11 @@
85
90
  "jsep": "^1.4.0",
86
91
  "lodash.isequal": "^4.5.0",
87
92
  "yjs": "^13.6.29",
88
- "@pantheon-systems/css-client": "0.6.0"
93
+ "@pantheon-systems/css-client": "0.7.0"
89
94
  },
90
95
  "devDependencies": {
91
96
  "@floating-ui/react": "^0.27.19",
92
- "@pantheon-systems/pds-toolkit-react": "2.0.0-alpha.12",
97
+ "@pantheon-systems/pds-toolkit-react": "2.0.0-alpha.44",
93
98
  "@tanstack/react-query": "^5.99.0",
94
99
  "@testing-library/dom": "^10.4.1",
95
100
  "@testing-library/jest-dom": "^6.9.1",