@pantheon-systems/puck-css 0.5.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.
- package/dist/core/types.d.ts +6 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/data/fields.d.ts +12 -0
- package/dist/data/fields.d.ts.map +1 -0
- package/dist/data/fields.js +40 -0
- package/dist/data/fields.js.map +1 -0
- package/dist/editor/P1PuckProvider.js +66 -9
- package/dist/editor/P1PuckProvider.js.map +1 -1
- package/dist/editor/components/VersionBannerOverride.d.ts.map +1 -1
- package/dist/editor/components/VersionBannerOverride.js +7 -1
- package/dist/editor/components/VersionBannerOverride.js.map +1 -1
- package/dist/editor/plugin/P1Plugin.d.ts +2 -0
- package/dist/editor/plugin/P1Plugin.d.ts.map +1 -1
- package/dist/editor/plugin/P1Plugin.js +1 -1
- package/dist/editor/plugin/P1Plugin.js.map +1 -1
- package/dist/editor/useComponentRegistry.d.ts +2 -5
- package/dist/editor/useComponentRegistry.d.ts.map +1 -1
- package/dist/editor/useComponentRegistry.js +3 -172
- package/dist/editor/useComponentRegistry.js.map +1 -1
- package/dist/editor/useP1Editor.js +2 -2
- package/dist/editor/useP1Editor.js.map +1 -1
- package/dist/editor/useP1Plugin.d.ts +2 -0
- package/dist/editor/useP1Plugin.d.ts.map +1 -1
- package/dist/editor/useP1Plugin.js +1 -0
- package/dist/editor/useP1Plugin.js.map +1 -1
- package/dist/editor/utils/componentRegistry.d.ts +22 -2
- package/dist/editor/utils/componentRegistry.d.ts.map +1 -1
- package/dist/editor/utils/componentRegistry.js +9 -2
- package/dist/editor/utils/componentRegistry.js.map +1 -1
- package/dist/editor/utils/syncComponentRegistry.d.ts +29 -0
- package/dist/editor/utils/syncComponentRegistry.d.ts.map +1 -0
- package/dist/editor/utils/syncComponentRegistry.js +212 -0
- package/dist/editor/utils/syncComponentRegistry.js.map +1 -0
- package/dist/editor/utils/syncComponentRegistryWriteOnly.d.ts +24 -0
- package/dist/editor/utils/syncComponentRegistryWriteOnly.d.ts.map +1 -0
- package/dist/editor/utils/syncComponentRegistryWriteOnly.js +41 -0
- package/dist/editor/utils/syncComponentRegistryWriteOnly.js.map +1 -0
- package/dist/pds/components/P1EditorHeader.d.ts +6 -1
- package/dist/pds/components/P1EditorHeader.d.ts.map +1 -1
- package/dist/pds/components/P1EditorHeader.js +72 -4
- package/dist/pds/components/P1EditorHeader.js.map +1 -1
- package/dist/pds/components/P1EditorHeader.module.css +21 -3
- package/dist/pds/components/P1EditorSubheader.module.css +5 -2
- package/dist/pds/theme/pds-core-content.d.ts +1 -1
- package/dist/pds/theme/pds-core-content.d.ts.map +1 -1
- package/dist/pds/theme/pds-core-content.js +3 -2
- package/dist/pds/theme/pds-core-content.js.map +1 -1
- package/dist/registry-sync.d.ts +7 -0
- package/dist/registry-sync.d.ts.map +1 -0
- package/dist/registry-sync.js +8 -0
- package/dist/registry-sync.js.map +1 -0
- package/package.json +17 -4
- package/src/pds/theme/pds-core-content.ts +3 -2
- 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
|
|
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.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Puck editor integration with Collaborative State System",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -25,6 +25,9 @@
|
|
|
25
25
|
],
|
|
26
26
|
"pds": [
|
|
27
27
|
"./dist/pds/index.d.ts"
|
|
28
|
+
],
|
|
29
|
+
"fields": [
|
|
30
|
+
"./dist/data/fields.d.ts"
|
|
28
31
|
]
|
|
29
32
|
}
|
|
30
33
|
},
|
|
@@ -50,6 +53,11 @@
|
|
|
50
53
|
"default": "./dist/server.js",
|
|
51
54
|
"types": "./dist/server.d.ts"
|
|
52
55
|
},
|
|
56
|
+
"./registry-sync": {
|
|
57
|
+
"import": "./dist/registry-sync.js",
|
|
58
|
+
"default": "./dist/registry-sync.js",
|
|
59
|
+
"types": "./dist/registry-sync.d.ts"
|
|
60
|
+
},
|
|
53
61
|
"./auth-gate": {
|
|
54
62
|
"import": "./dist/auth/AuthGate.js",
|
|
55
63
|
"default": "./dist/auth/AuthGate.js",
|
|
@@ -65,7 +73,12 @@
|
|
|
65
73
|
"default": "./dist/pds/index.js",
|
|
66
74
|
"types": "./dist/pds/index.d.ts"
|
|
67
75
|
},
|
|
68
|
-
"./pds/styles.css": "./src/pds/theme/PuckEditorTheme.css"
|
|
76
|
+
"./pds/styles.css": "./src/pds/theme/PuckEditorTheme.css",
|
|
77
|
+
"./fields": {
|
|
78
|
+
"import": "./dist/data/fields.js",
|
|
79
|
+
"default": "./dist/data/fields.js",
|
|
80
|
+
"types": "./dist/data/fields.d.ts"
|
|
81
|
+
}
|
|
69
82
|
},
|
|
70
83
|
"files": [
|
|
71
84
|
"dist",
|
|
@@ -77,11 +90,11 @@
|
|
|
77
90
|
"jsep": "^1.4.0",
|
|
78
91
|
"lodash.isequal": "^4.5.0",
|
|
79
92
|
"yjs": "^13.6.29",
|
|
80
|
-
"@pantheon-systems/css-client": "0.
|
|
93
|
+
"@pantheon-systems/css-client": "0.7.0"
|
|
81
94
|
},
|
|
82
95
|
"devDependencies": {
|
|
83
96
|
"@floating-ui/react": "^0.27.19",
|
|
84
|
-
"@pantheon-systems/pds-toolkit-react": "2.0.0-alpha.
|
|
97
|
+
"@pantheon-systems/pds-toolkit-react": "2.0.0-alpha.44",
|
|
85
98
|
"@tanstack/react-query": "^5.99.0",
|
|
86
99
|
"@testing-library/dom": "^10.4.1",
|
|
87
100
|
"@testing-library/jest-dom": "^6.9.1",
|