@pure-ds/core 0.5.61 → 0.6.1

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 (43) hide show
  1. package/dist/types/packages/pds-configurator/src/pds-home-content.d.ts +375 -0
  2. package/dist/types/packages/pds-configurator/src/pds-home-content.d.ts.map +1 -0
  3. package/dist/types/packages/pds-configurator/src/pds-home.d.ts +2 -0
  4. package/dist/types/packages/pds-configurator/src/pds-home.d.ts.map +1 -0
  5. package/dist/types/pds.config.d.ts +2 -2
  6. package/dist/types/pds.config.d.ts.map +1 -1
  7. package/dist/types/pds.d.ts +3 -0
  8. package/dist/types/public/assets/js/pds-manager.d.ts +144 -429
  9. package/dist/types/public/assets/js/pds-manager.d.ts.map +1 -1
  10. package/dist/types/public/assets/js/pds.d.ts +3 -4
  11. package/dist/types/public/assets/js/pds.d.ts.map +1 -1
  12. package/dist/types/public/assets/pds/components/pds-live-edit.d.ts +150 -0
  13. package/dist/types/public/assets/pds/components/pds-live-edit.d.ts.map +1 -0
  14. package/dist/types/public/assets/pds/components/pds-omnibox.d.ts +2 -0
  15. package/dist/types/public/assets/pds/components/pds-omnibox.d.ts.map +1 -1
  16. package/dist/types/public/assets/pds/components/pds-richtext.d.ts.map +1 -1
  17. package/dist/types/public/assets/pds/components/pds-theme.d.ts +5 -0
  18. package/dist/types/public/assets/pds/components/pds-theme.d.ts.map +1 -1
  19. package/dist/types/src/js/pds-core/pds-config.d.ts +3 -0
  20. package/dist/types/src/js/pds-core/pds-config.d.ts.map +1 -1
  21. package/dist/types/src/js/pds-core/pds-enhancers.d.ts.map +1 -1
  22. package/dist/types/src/js/pds-core/pds-live.d.ts.map +1 -1
  23. package/dist/types/src/js/pds-core/pds-ontology.d.ts.map +1 -1
  24. package/dist/types/src/js/pds-core/pds-theme-utils.d.ts +6 -0
  25. package/dist/types/src/js/pds-core/pds-theme-utils.d.ts.map +1 -0
  26. package/dist/types/src/js/pds.d.ts.map +1 -1
  27. package/package.json +1 -4
  28. package/packages/pds-cli/bin/templates/bootstrap/pds.config.js +1 -1
  29. package/public/assets/js/app.js +106 -5636
  30. package/public/assets/js/pds-manager.js +137 -137
  31. package/public/assets/js/pds.js +7 -7
  32. package/public/assets/pds/components/pds-live-edit.js +1555 -0
  33. package/public/assets/pds/components/pds-omnibox.js +558 -369
  34. package/public/assets/pds/components/pds-richtext.js +57 -7
  35. package/public/assets/pds/components/pds-theme.js +58 -0
  36. package/readme.md +2 -2
  37. package/src/js/pds-core/pds-config.js +21 -3
  38. package/src/js/pds-core/pds-enhancers.js +61 -4
  39. package/src/js/pds-core/pds-live.js +180 -1
  40. package/src/js/pds-core/pds-ontology.js +8 -0
  41. package/src/js/pds-core/pds-theme-utils.js +33 -0
  42. package/src/js/pds.d.ts +3 -0
  43. package/src/js/pds.js +22 -0
@@ -0,0 +1,375 @@
1
+ export const HOME_CONTENT: ({
2
+ id: string;
3
+ type: string;
4
+ title: string;
5
+ lead: string;
6
+ logo: string;
7
+ blocks?: undefined;
8
+ surfaceClass?: undefined;
9
+ customKey?: undefined;
10
+ } | {
11
+ id: string;
12
+ type: string;
13
+ title: string;
14
+ lead: string;
15
+ blocks: {
16
+ type: string;
17
+ cardVariant: string;
18
+ cards: ({
19
+ title: string;
20
+ body: string;
21
+ icon: string;
22
+ extra: string;
23
+ } | {
24
+ title: string;
25
+ body: string;
26
+ icon: string;
27
+ extra?: undefined;
28
+ })[];
29
+ }[];
30
+ logo?: undefined;
31
+ surfaceClass?: undefined;
32
+ customKey?: undefined;
33
+ } | {
34
+ id: string;
35
+ type: string;
36
+ surfaceClass: string;
37
+ title: string;
38
+ lead: string;
39
+ blocks: ({
40
+ type: string;
41
+ cardLayout: string;
42
+ cardVariant: string;
43
+ cardIconSize: string;
44
+ cards: {
45
+ title: string;
46
+ body: string;
47
+ icon: string;
48
+ }[];
49
+ variant?: undefined;
50
+ icon?: undefined;
51
+ title?: undefined;
52
+ body?: undefined;
53
+ } | {
54
+ type: string;
55
+ variant: string;
56
+ icon: string;
57
+ title: string;
58
+ body: string;
59
+ cardLayout?: undefined;
60
+ cardVariant?: undefined;
61
+ cardIconSize?: undefined;
62
+ cards?: undefined;
63
+ })[];
64
+ logo?: undefined;
65
+ customKey?: undefined;
66
+ } | {
67
+ id: string;
68
+ type: string;
69
+ title: string;
70
+ lead: string;
71
+ blocks: {
72
+ type: string;
73
+ items: {
74
+ title: string;
75
+ body: string;
76
+ icon: string;
77
+ }[];
78
+ }[];
79
+ logo?: undefined;
80
+ surfaceClass?: undefined;
81
+ customKey?: undefined;
82
+ } | {
83
+ id: string;
84
+ type: string;
85
+ customKey: string;
86
+ surfaceClass: string;
87
+ title: string;
88
+ lead: string;
89
+ blocks: {
90
+ type: string;
91
+ items: {
92
+ title: string;
93
+ price: string;
94
+ description: string;
95
+ image: string;
96
+ }[];
97
+ }[];
98
+ logo?: undefined;
99
+ } | {
100
+ id: string;
101
+ type: string;
102
+ customKey: string;
103
+ title: string;
104
+ lead: string;
105
+ blocks: {
106
+ type: string;
107
+ id: string;
108
+ schema: {
109
+ type: string;
110
+ required: string[];
111
+ properties: {
112
+ identity: {
113
+ type: string;
114
+ title: string;
115
+ required: string[];
116
+ properties: {
117
+ fullName: {
118
+ type: string;
119
+ title: string;
120
+ minLength: number;
121
+ examples: string[];
122
+ };
123
+ email: {
124
+ type: string;
125
+ format: string;
126
+ title: string;
127
+ examples: string[];
128
+ };
129
+ company: {
130
+ type: string;
131
+ title: string;
132
+ examples: string[];
133
+ };
134
+ role: {
135
+ type: string;
136
+ title: string;
137
+ examples: string[];
138
+ };
139
+ };
140
+ };
141
+ project: {
142
+ type: string;
143
+ title: string;
144
+ required: string[];
145
+ properties: {
146
+ projectType: {
147
+ type: string;
148
+ title: string;
149
+ oneOf: {
150
+ const: string;
151
+ title: string;
152
+ }[];
153
+ };
154
+ otherProject: {
155
+ type: string;
156
+ maxLength: number;
157
+ title: string;
158
+ examples: string[];
159
+ };
160
+ goals: {
161
+ type: string;
162
+ maxLength: number;
163
+ examples: string[];
164
+ };
165
+ };
166
+ };
167
+ content: {
168
+ type: string;
169
+ title: string;
170
+ properties: {
171
+ notes: {
172
+ type: string;
173
+ title: string;
174
+ examples: string[];
175
+ };
176
+ assets: {
177
+ type: string;
178
+ title: string;
179
+ };
180
+ };
181
+ };
182
+ preferences: {
183
+ type: string;
184
+ title: string;
185
+ required: string[];
186
+ properties: {
187
+ updates: {
188
+ type: string;
189
+ title: string;
190
+ };
191
+ darkPreview: {
192
+ type: string;
193
+ title: string;
194
+ };
195
+ acceptTerms: {
196
+ type: string;
197
+ title: string;
198
+ };
199
+ };
200
+ };
201
+ };
202
+ };
203
+ uiSchema: {
204
+ "/identity": {
205
+ "ui:layout": string;
206
+ "ui:layoutOptions": {
207
+ columns: string;
208
+ autoSize: string;
209
+ gap: string;
210
+ };
211
+ };
212
+ "/identity/fullName": {
213
+ "ui:icon": string;
214
+ "ui:autocomplete": string;
215
+ };
216
+ "/identity/email": {
217
+ "ui:icon": string;
218
+ "ui:autocomplete": string;
219
+ };
220
+ "/identity/company": {
221
+ "ui:icon": string;
222
+ };
223
+ "/identity/role": {
224
+ "ui:widget": string;
225
+ };
226
+ "/project": {
227
+ "ui:layout": string;
228
+ "ui:layoutOptions": {
229
+ columns: string;
230
+ autoSize: string;
231
+ gap: string;
232
+ };
233
+ };
234
+ "/project/projectType": {
235
+ "ui:class": string;
236
+ };
237
+ "/project/otherProject": {
238
+ "ui:visibleWhen": {
239
+ "/project/projectType": string;
240
+ };
241
+ "ui:requiredWhen": {
242
+ "/project/projectType": string;
243
+ };
244
+ };
245
+ "/project/goals": {
246
+ "ui:widget": string;
247
+ "ui:rows": number;
248
+ };
249
+ "/content": {
250
+ "ui:layout": string;
251
+ "ui:layoutOptions": {
252
+ columns: string;
253
+ autoSize: string;
254
+ gap: string;
255
+ };
256
+ };
257
+ "/content/notes": {
258
+ "ui:widget": string;
259
+ };
260
+ "/content/assets": {
261
+ "ui:widget": string;
262
+ "ui:icon": string;
263
+ };
264
+ "/preferences": {
265
+ "ui:layout": string;
266
+ "ui:layoutOptions": {
267
+ columns: string;
268
+ autoSize: string;
269
+ gap: string;
270
+ };
271
+ };
272
+ "/preferences/updates": {};
273
+ "/preferences/darkPreview": {};
274
+ "/preferences/acceptTerms": {};
275
+ };
276
+ options: {
277
+ widgets: {
278
+ booleans: string;
279
+ };
280
+ enhancements: {
281
+ icons: boolean;
282
+ datalists: boolean;
283
+ rangeOutput: boolean;
284
+ };
285
+ };
286
+ }[];
287
+ logo?: undefined;
288
+ surfaceClass?: undefined;
289
+ } | {
290
+ id: string;
291
+ type: string;
292
+ customKey: string;
293
+ surfaceClass: string;
294
+ title: string;
295
+ lead: string;
296
+ blocks: ({
297
+ type: string;
298
+ cardVariant: string;
299
+ cardLayout: string;
300
+ cardIconSize: string;
301
+ cards: {
302
+ title: string;
303
+ body: string;
304
+ icon: string;
305
+ }[];
306
+ title?: undefined;
307
+ lead?: undefined;
308
+ items?: undefined;
309
+ variant?: undefined;
310
+ icon?: undefined;
311
+ body?: undefined;
312
+ text?: undefined;
313
+ href?: undefined;
314
+ } | {
315
+ type: string;
316
+ title: string;
317
+ lead: string;
318
+ items: {
319
+ title: string;
320
+ body: string;
321
+ icon: string;
322
+ }[];
323
+ cardVariant?: undefined;
324
+ cardLayout?: undefined;
325
+ cardIconSize?: undefined;
326
+ cards?: undefined;
327
+ variant?: undefined;
328
+ icon?: undefined;
329
+ body?: undefined;
330
+ text?: undefined;
331
+ href?: undefined;
332
+ } | {
333
+ type: string;
334
+ variant: string;
335
+ icon: string;
336
+ title: string;
337
+ body: string;
338
+ cardVariant?: undefined;
339
+ cardLayout?: undefined;
340
+ cardIconSize?: undefined;
341
+ cards?: undefined;
342
+ lead?: undefined;
343
+ items?: undefined;
344
+ text?: undefined;
345
+ href?: undefined;
346
+ } | {
347
+ type: string;
348
+ text: string;
349
+ icon: string;
350
+ href: string;
351
+ cardVariant?: undefined;
352
+ cardLayout?: undefined;
353
+ cardIconSize?: undefined;
354
+ cards?: undefined;
355
+ title?: undefined;
356
+ lead?: undefined;
357
+ items?: undefined;
358
+ variant?: undefined;
359
+ body?: undefined;
360
+ })[];
361
+ logo?: undefined;
362
+ } | {
363
+ id: string;
364
+ type: string;
365
+ customKey: string;
366
+ title: string;
367
+ lead: string;
368
+ blocks: {
369
+ type: string;
370
+ command: string;
371
+ }[];
372
+ logo?: undefined;
373
+ surfaceClass?: undefined;
374
+ })[];
375
+ //# sourceMappingURL=pds-home-content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pds-home-content.d.ts","sourceRoot":"","sources":["../../../../../packages/pds-configurator/src/pds-home-content.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA2fE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=pds-home.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pds-home.d.ts","sourceRoot":"","sources":["../../../../../packages/pds-configurator/src/pds-home.js"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
- /** @typedef {import("./src/js/pds-core/pds-config.js").PDSInitConfig} PDSInitConfig */
1
+ /** @typedef {import("./src/js/pds-core/pds-config").PDSInitConfig} PDSInitConfig */
2
2
  /** @type {PDSInitConfig} */
3
3
  export const config: PDSInitConfig;
4
- export type PDSInitConfig = import("./src/js/pds-core/pds-config.js").PDSInitConfig;
4
+ export type PDSInitConfig = import("./src/js/pds-core/pds-config").PDSInitConfig;
5
5
  //# sourceMappingURL=pds.config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pds.config.d.ts","sourceRoot":"","sources":["../../pds.config.js"],"names":[],"mappings":"AAEA,uFAAuF;AAEvF,4BAA4B;AAC5B,qBADW,aAAa,CAWtB;4BAbY,OAAO,iCAAiC,EAAE,aAAa"}
1
+ {"version":3,"file":"pds.config.d.ts","sourceRoot":"","sources":["../../pds.config.js"],"names":[],"mappings":"AAEA,oFAAoF;AAEpF,4BAA4B;AAC5B,qBADW,aAAa,CAYtB;4BAdY,OAAO,8BAA8B,EAAE,aAAa"}
@@ -104,6 +104,9 @@ export interface CompiledState {
104
104
  };
105
105
  }
106
106
 
107
+ /** Public config types for editor IntelliSense */
108
+ export type PDSInitConfig = import("./pds-core/pds-config.js").PDSInitConfig;
109
+
107
110
  /**
108
111
  * Generator - programmatic API to produce tokens, layered CSS and helper modules from a config.
109
112
  * Typical usage: