@plitzi/sdk-elements 0.38.23 → 0.39.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 (230) hide show
  1. package/CHANGELOG.md +180 -1
  2. package/dist/Element/RootElement.d.ts +1 -1
  3. package/dist/Element/RootElement.mjs +62 -61
  4. package/dist/Element/RowAnchor.d.ts +15 -0
  5. package/dist/Element/RowAnchor.mjs +8 -0
  6. package/dist/Element/helpers/elementConstants.mjs +12 -0
  7. package/dist/Element/hocs/withElement.d.ts +1 -1
  8. package/dist/Element/hocs/withElement.mjs +96 -88
  9. package/dist/Element/hooks/useEditableContent.d.ts +11 -0
  10. package/dist/Element/hooks/useEditableContent.mjs +11 -10
  11. package/dist/Element/hooks/useElement.mjs +1 -1
  12. package/dist/Element/hooks/useElementDataSource.mjs +11 -10
  13. package/dist/Element/hooks/useFocusInteractions.d.ts +12 -0
  14. package/dist/Element/hooks/useFocusInteractions.mjs +9 -0
  15. package/dist/Element/hooks/useInternalClassName.mjs +22 -21
  16. package/dist/Element/hooks/useRootElementInteractions.mjs +48 -42
  17. package/dist/Element/hooks/useScrollInteractions.d.ts +1 -1
  18. package/dist/Element/hooks/useScrollInteractions.mjs +61 -30
  19. package/dist/dataSource/PluginSource.d.ts +22 -0
  20. package/dist/dataSource/PluginSource.mjs +27 -0
  21. package/dist/dataSource/index.d.ts +2 -0
  22. package/dist/dataSource/index.mjs +5 -4
  23. package/dist/elements/advanced/BlockHtml/BlockHtml.d.ts +1 -1
  24. package/dist/elements/advanced/BlockHtml/index.d.ts +1 -1
  25. package/dist/elements/advanced/BlockJsx/BlockJsx.d.ts +1 -1
  26. package/dist/elements/advanced/BlockJsx/index.d.ts +1 -1
  27. package/dist/elements/advanced/Custom/Custom.d.ts +1 -1
  28. package/dist/elements/advanced/Custom/index.d.ts +1 -1
  29. package/dist/elements/advanced/NodeHtml/NodeHtml.d.ts +1 -1
  30. package/dist/elements/advanced/NodeHtml/declaration.d.ts +3 -3
  31. package/dist/elements/advanced/NodeHtml/index.d.ts +4 -4
  32. package/dist/elements/advanced/Reference/Reference.d.ts +2 -2
  33. package/dist/elements/advanced/Reference/Reference.mjs +1 -1
  34. package/dist/elements/advanced/Reference/index.d.ts +1 -1
  35. package/dist/elements/basic/Button/Button.d.ts +7 -2
  36. package/dist/elements/basic/Button/Button.mjs +27 -25
  37. package/dist/elements/basic/Button/Settings.mjs +1 -1
  38. package/dist/elements/basic/Button/declaration.d.ts +8 -1
  39. package/dist/elements/basic/Button/declaration.mjs +3 -0
  40. package/dist/elements/basic/Button/index.d.ts +9 -2
  41. package/dist/elements/basic/Dropdown/Dropdown.d.ts +9 -2
  42. package/dist/elements/basic/Dropdown/Dropdown.mjs +93 -74
  43. package/dist/elements/basic/Dropdown/DropdownPopup/DropdownPopup.d.ts +1 -1
  44. package/dist/elements/basic/Dropdown/DropdownPopup/index.d.ts +1 -1
  45. package/dist/elements/basic/Dropdown/declaration.d.ts +31 -0
  46. package/dist/elements/basic/Dropdown/declaration.mjs +38 -6
  47. package/dist/elements/basic/Dropdown/index.d.ts +33 -2
  48. package/dist/elements/basic/Dropdown/useDropdown.d.ts +2 -0
  49. package/dist/elements/basic/Heading/Heading.d.ts +1 -1
  50. package/dist/elements/basic/Heading/Heading.mjs +3 -2
  51. package/dist/elements/basic/Heading/declaration.d.ts +2 -0
  52. package/dist/elements/basic/Heading/declaration.mjs +2 -0
  53. package/dist/elements/basic/Heading/index.d.ts +3 -1
  54. package/dist/elements/basic/Link/Link.d.ts +1 -1
  55. package/dist/elements/basic/Link/Link.mjs +46 -45
  56. package/dist/elements/basic/Link/declaration.d.ts +1 -0
  57. package/dist/elements/basic/Link/declaration.mjs +5 -0
  58. package/dist/elements/basic/Link/index.d.ts +2 -1
  59. package/dist/elements/basic/Markdown/Markdown.d.ts +1 -1
  60. package/dist/elements/basic/Markdown/declaration.d.ts +2 -0
  61. package/dist/elements/basic/Markdown/declaration.mjs +2 -0
  62. package/dist/elements/basic/Markdown/index.d.ts +3 -1
  63. package/dist/elements/basic/Paragraph/Paragraph.d.ts +1 -1
  64. package/dist/elements/basic/Paragraph/Paragraph.mjs +3 -2
  65. package/dist/elements/basic/Paragraph/Settings.mjs +1 -1
  66. package/dist/elements/basic/Paragraph/declaration.d.ts +2 -0
  67. package/dist/elements/basic/Paragraph/declaration.mjs +2 -0
  68. package/dist/elements/basic/Paragraph/index.d.ts +3 -1
  69. package/dist/elements/basic/RichText/RichText.d.ts +1 -1
  70. package/dist/elements/basic/RichText/declaration.d.ts +1 -0
  71. package/dist/elements/basic/RichText/declaration.mjs +1 -0
  72. package/dist/elements/basic/RichText/index.d.ts +2 -1
  73. package/dist/elements/basic/Text/Settings.mjs +1 -1
  74. package/dist/elements/basic/Text/Text.d.ts +1 -1
  75. package/dist/elements/basic/Text/Text.mjs +3 -2
  76. package/dist/elements/basic/Text/declaration.d.ts +2 -0
  77. package/dist/elements/basic/Text/declaration.mjs +2 -0
  78. package/dist/elements/basic/Text/index.d.ts +3 -1
  79. package/dist/elements/basic/ThemeToggle/ThemeToggle.d.ts +2 -2
  80. package/dist/elements/basic/ThemeToggle/declaration.d.ts +1 -0
  81. package/dist/elements/basic/ThemeToggle/declaration.mjs +5 -0
  82. package/dist/elements/basic/ThemeToggle/index.d.ts +2 -1
  83. package/dist/elements/declarations/index.d.ts +322 -12
  84. package/dist/elements/declarations/index.mjs +46 -44
  85. package/dist/elements/form/Form/Form.d.ts +8 -2
  86. package/dist/elements/form/Form/Form.mjs +102 -79
  87. package/dist/elements/form/Form/declaration.d.ts +21 -3
  88. package/dist/elements/form/Form/declaration.mjs +28 -11
  89. package/dist/elements/form/Form/index.d.ts +17 -2
  90. package/dist/elements/form/FormControl/FormControl.d.ts +8 -2
  91. package/dist/elements/form/FormControl/FormControl.mjs +71 -66
  92. package/dist/elements/form/FormControl/Settings.d.ts +6 -1
  93. package/dist/elements/form/FormControl/Settings.mjs +130 -98
  94. package/dist/elements/form/FormControl/declaration.d.ts +7 -0
  95. package/dist/elements/form/FormControl/declaration.mjs +21 -1
  96. package/dist/elements/form/FormControl/helpers/useBlurValidation.d.ts +12 -0
  97. package/dist/elements/form/FormControl/helpers/useBlurValidation.mjs +20 -0
  98. package/dist/elements/form/FormControl/helpers/validateField.d.ts +8 -0
  99. package/dist/elements/form/FormControl/helpers/validateField.mjs +8 -2
  100. package/dist/elements/form/FormControl/hocs/withFieldValue.d.ts +4 -0
  101. package/dist/elements/form/FormControl/hocs/withFieldValue.mjs +49 -41
  102. package/dist/elements/form/FormControl/index.d.ts +8 -1
  103. package/dist/elements/form/FormControl/inputs/Checkbox.mjs +2 -2
  104. package/dist/elements/form/FormControl/inputs/Input.d.ts +5 -1
  105. package/dist/elements/form/FormControl/inputs/Input.mjs +42 -38
  106. package/dist/elements/form/FormControl/inputs/Select.d.ts +5 -1
  107. package/dist/elements/form/FormControl/inputs/Select.mjs +33 -28
  108. package/dist/elements/form/FormControl/inputs/Textarea.mjs +27 -26
  109. package/dist/elements/form/FormControl/inputs/useFocusWhenShown.d.ts +1 -1
  110. package/dist/elements/index.d.ts +3 -1
  111. package/dist/elements/index.mjs +32 -30
  112. package/dist/elements/internal/LayoutContainer/LayoutContainer.d.ts +1 -1
  113. package/dist/elements/internal/LayoutContainer/LayoutContainer.mjs +30 -30
  114. package/dist/elements/internal/LayoutContainer/index.d.ts +1 -1
  115. package/dist/elements/internal/LayoutContainer/mask.d.ts +13 -0
  116. package/dist/elements/internal/LayoutContainer/mask.mjs +16 -1
  117. package/dist/elements/internal/Loading/Loading.d.ts +1 -1
  118. package/dist/elements/internal/Loading/index.d.ts +1 -1
  119. package/dist/elements/internal/NotFound/NotFound.d.ts +1 -1
  120. package/dist/elements/internal/NotFound/index.d.ts +1 -1
  121. package/dist/elements/internal/Page/Page.d.ts +17 -3
  122. package/dist/elements/internal/Page/Page.mjs +32 -25
  123. package/dist/elements/internal/Page/PageHead.d.ts +11 -4
  124. package/dist/elements/internal/Page/PageHead.mjs +41 -19
  125. package/dist/elements/internal/Page/PageWithheld.d.ts +3 -2
  126. package/dist/elements/internal/Page/PageWithheld.mjs +41 -18
  127. package/dist/elements/internal/Page/Settings.d.ts +5 -1
  128. package/dist/elements/internal/Page/Settings.mjs +160 -121
  129. package/dist/elements/internal/Page/SharePreview.d.ts +13 -0
  130. package/dist/elements/internal/Page/SharePreview.mjs +53 -0
  131. package/dist/elements/internal/Page/declaration.d.ts +9 -1
  132. package/dist/elements/internal/Page/declaration.mjs +11 -4
  133. package/dist/elements/internal/Page/index.d.ts +9 -2
  134. package/dist/elements/media/Chart/Chart.d.ts +33 -0
  135. package/dist/elements/media/Chart/Chart.mjs +195 -0
  136. package/dist/elements/media/Chart/Settings.d.ts +6 -0
  137. package/dist/elements/media/Chart/Settings.mjs +92 -0
  138. package/dist/elements/media/Chart/chartGeometry.d.ts +37 -0
  139. package/dist/elements/media/Chart/chartGeometry.mjs +47 -0
  140. package/dist/elements/media/Chart/declaration.d.ts +144 -0
  141. package/dist/elements/media/Chart/declaration.mjs +107 -0
  142. package/dist/elements/media/Chart/index.d.ts +145 -0
  143. package/dist/elements/media/Chart/index.mjs +6 -0
  144. package/dist/elements/media/Embed/Embed.d.ts +1 -1
  145. package/dist/elements/media/Embed/Embed.mjs +25 -21
  146. package/dist/elements/media/Embed/declaration.d.ts +1 -0
  147. package/dist/elements/media/Embed/declaration.mjs +1 -0
  148. package/dist/elements/media/Embed/index.d.ts +2 -1
  149. package/dist/elements/media/FontAwesome/FontAwesome.d.ts +1 -1
  150. package/dist/elements/media/FontAwesome/index.d.ts +1 -1
  151. package/dist/elements/media/Image/Image.d.ts +1 -1
  152. package/dist/elements/media/Image/Image.mjs +35 -34
  153. package/dist/elements/media/Image/declaration.d.ts +2 -1
  154. package/dist/elements/media/Image/declaration.mjs +1 -0
  155. package/dist/elements/media/Image/index.d.ts +3 -2
  156. package/dist/elements/media/Svg/Svg.d.ts +1 -1
  157. package/dist/elements/media/Svg/declaration.d.ts +1 -0
  158. package/dist/elements/media/Svg/declaration.mjs +1 -0
  159. package/dist/elements/media/Svg/index.d.ts +2 -1
  160. package/dist/elements/media/Video/Video.d.ts +1 -1
  161. package/dist/elements/media/Video/declaration.d.ts +1 -0
  162. package/dist/elements/media/Video/declaration.mjs +1 -0
  163. package/dist/elements/media/Video/index.d.ts +2 -1
  164. package/dist/elements/provider/ApiContainer/ApiContainer.d.ts +1 -1
  165. package/dist/elements/provider/ApiContainer/ApiContainer.mjs +215 -185
  166. package/dist/elements/provider/ApiContainer/declaration.d.ts +9 -0
  167. package/dist/elements/provider/ApiContainer/declaration.mjs +10 -1
  168. package/dist/elements/provider/ApiContainer/hooks/useInputRefresh.d.ts +4 -4
  169. package/dist/elements/provider/ApiContainer/hooks/useProviderPagination.d.ts +2 -1
  170. package/dist/elements/provider/ApiContainer/index.d.ts +10 -1
  171. package/dist/elements/provider/Channel/Channel.d.ts +1 -1
  172. package/dist/elements/provider/Channel/declaration.d.ts +9 -0
  173. package/dist/elements/provider/Channel/declaration.mjs +11 -2
  174. package/dist/elements/provider/Channel/index.d.ts +10 -1
  175. package/dist/elements/settings.mjs +42 -40
  176. package/dist/elements/structure/Carousel/Carousel.d.ts +1 -1
  177. package/dist/elements/structure/Carousel/Carousel.mjs +147 -130
  178. package/dist/elements/structure/Carousel/CarouselContext.d.ts +3 -3
  179. package/dist/elements/structure/Carousel/CarouselTrack/CarouselTrack.d.ts +1 -1
  180. package/dist/elements/structure/Carousel/CarouselTrack/components/ScrollTrack/ScrollTrack.d.ts +6 -2
  181. package/dist/elements/structure/Carousel/CarouselTrack/components/ScrollTrack/ScrollTrack.mjs +32 -20
  182. package/dist/elements/structure/Carousel/CarouselTrack/index.d.ts +1 -1
  183. package/dist/elements/structure/Carousel/carouselIndex.d.ts +17 -0
  184. package/dist/elements/structure/Carousel/carouselIndex.mjs +17 -5
  185. package/dist/elements/structure/Carousel/declaration.d.ts +49 -2
  186. package/dist/elements/structure/Carousel/declaration.mjs +26 -4
  187. package/dist/elements/structure/Carousel/index.d.ts +51 -4
  188. package/dist/elements/structure/Container/Container.d.ts +5 -3
  189. package/dist/elements/structure/Container/Container.mjs +6 -5
  190. package/dist/elements/structure/Container/Settings.d.ts +4 -2
  191. package/dist/elements/structure/Container/Settings.mjs +19 -5
  192. package/dist/elements/structure/Container/declaration.d.ts +3 -2
  193. package/dist/elements/structure/Container/declaration.mjs +3 -1
  194. package/dist/elements/structure/Container/index.d.ts +4 -3
  195. package/dist/elements/structure/DialogContainer/DialogContainer.d.ts +1 -1
  196. package/dist/elements/structure/DialogContainer/declaration.d.ts +1 -0
  197. package/dist/elements/structure/DialogContainer/declaration.mjs +5 -0
  198. package/dist/elements/structure/DialogContainer/index.d.ts +2 -1
  199. package/dist/elements/structure/List/List.d.ts +1 -1
  200. package/dist/elements/structure/List/ListItem/ListItem.d.ts +1 -1
  201. package/dist/elements/structure/List/ListItem/index.d.ts +1 -1
  202. package/dist/elements/structure/List/declaration.d.ts +5 -0
  203. package/dist/elements/structure/List/declaration.mjs +5 -0
  204. package/dist/elements/structure/List/index.d.ts +7 -2
  205. package/dist/elements/structure/List/modes/ListControlled/ListControlled.mjs +1 -0
  206. package/dist/elements/structure/List/modes/ListControlled/ListControlledItem.d.ts +3 -1
  207. package/dist/elements/structure/List/modes/ListControlled/ListControlledItem.mjs +33 -25
  208. package/dist/elements/structure/ModalContainer/ModalContainer.d.ts +1 -1
  209. package/dist/elements/structure/ModalContainer/declaration.d.ts +2 -0
  210. package/dist/elements/structure/ModalContainer/declaration.mjs +2 -0
  211. package/dist/elements/structure/ModalContainer/index.d.ts +3 -1
  212. package/dist/elements/structure/Pagination/Pagination.d.ts +1 -1
  213. package/dist/elements/structure/Pagination/declaration.d.ts +1 -0
  214. package/dist/elements/structure/Pagination/declaration.mjs +5 -0
  215. package/dist/elements/structure/Pagination/index.d.ts +2 -1
  216. package/dist/elements/structure/TabContainer/TabContainer.d.ts +1 -1
  217. package/dist/elements/structure/TabContainer/TabContainerBody/TabContainerBody.d.ts +1 -1
  218. package/dist/elements/structure/TabContainer/TabContainerBody/index.d.ts +1 -1
  219. package/dist/elements/structure/TabContainer/TabContainerHeader/TabContainerHeader.d.ts +1 -1
  220. package/dist/elements/structure/TabContainer/TabContainerHeader/index.d.ts +1 -1
  221. package/dist/elements/structure/TabContainer/TabContainerItem/TabContainerItem.d.ts +1 -1
  222. package/dist/elements/structure/TabContainer/TabContainerItem/declaration.d.ts +6 -0
  223. package/dist/elements/structure/TabContainer/TabContainerItem/declaration.mjs +6 -0
  224. package/dist/elements/structure/TabContainer/TabContainerItem/index.d.ts +7 -1
  225. package/dist/elements/structure/TabContainer/index.d.ts +10 -4
  226. package/dist/index.d.ts +216 -51
  227. package/dist/index.mjs +39 -37
  228. package/package.json +8 -8
  229. package/dist/elements/provider/ApiContainer/helpers/isEmptyAnswer.d.ts +0 -16
  230. package/dist/elements/provider/ApiContainer/helpers/isEmptyAnswer.mjs +0 -4
@@ -20,6 +20,7 @@ import { default as LayoutContainerDeclaration } from '../internal/LayoutContain
20
20
  import { default as LoadingDeclaration } from '../internal/Loading/declaration';
21
21
  import { default as NotFoundDeclaration } from '../internal/NotFound/declaration';
22
22
  import { default as PageDeclaration } from '../internal/Page/declaration';
23
+ import { default as ChartDeclaration } from '../media/Chart/declaration';
23
24
  import { default as EmbedDeclaration } from '../media/Embed/declaration';
24
25
  import { default as FontAwesomeDeclaration } from '../media/FontAwesome/declaration';
25
26
  import { default as ImageDeclaration } from '../media/Image/declaration';
@@ -49,6 +50,15 @@ export declare const elementDeclarations: {
49
50
  readonly pagination: readonly string[];
50
51
  };
51
52
  readonly sourceType: "apiContainer";
53
+ readonly publishes: {
54
+ readonly '\u2026': "The answer's own fields, as the service sends them";
55
+ readonly records: "The rows of a paged answer, every page loaded so far";
56
+ readonly isLoading: "Whether an answer (or a next page) is on its way";
57
+ readonly isEmpty: "Whether the answer holds nothing";
58
+ readonly hasError: "Whether the service could not be reached";
59
+ readonly errorMessage: "What to tell the visitor when it could not";
60
+ readonly isStale: "A refresh from the server failed: what shows is from before";
61
+ };
52
62
  readonly serverTemplates: readonly ["notFound"];
53
63
  readonly triggers: {
54
64
  readonly onApiError: {
@@ -261,12 +271,14 @@ export declare const elementDeclarations: {
261
271
  }, import('.').BlockJsxAttributes>;
262
272
  readonly Button: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
263
273
  readonly type: "button";
274
+ readonly contentAttributes: readonly ["content"];
264
275
  readonly attributeValues: {
265
276
  readonly subType: readonly string[];
266
277
  readonly contentPlacement: readonly string[];
267
278
  readonly iconPlacement: readonly string[];
268
279
  };
269
280
  readonly content: {
281
+ readonly placeholders: readonly ["content"];
270
282
  readonly attributes: {
271
283
  readonly contentPlacement: "after";
272
284
  readonly content: "Button";
@@ -296,6 +308,7 @@ export declare const elementDeclarations: {
296
308
  'padding-right': string;
297
309
  'padding-bottom': string;
298
310
  cursor: string;
311
+ 'font-family': string;
299
312
  'font-size': string;
300
313
  'line-height': string;
301
314
  'border-top-left-radius': string;
@@ -317,6 +330,7 @@ export declare const elementDeclarations: {
317
330
  'padding-right': string;
318
331
  'padding-bottom': string;
319
332
  cursor: string;
333
+ 'font-family': string;
320
334
  'font-size': string;
321
335
  'line-height': string;
322
336
  'border-top-left-radius': string;
@@ -338,6 +352,7 @@ export declare const elementDeclarations: {
338
352
  'padding-right': string;
339
353
  'padding-bottom': string;
340
354
  cursor: string;
355
+ 'font-family': string;
341
356
  'font-size': string;
342
357
  'line-height': string;
343
358
  'border-top-left-radius': string;
@@ -359,6 +374,7 @@ export declare const elementDeclarations: {
359
374
  'padding-right': string;
360
375
  'padding-bottom': string;
361
376
  cursor: string;
377
+ 'font-family': string;
362
378
  'font-size': string;
363
379
  'line-height': string;
364
380
  'border-top-left-radius': string;
@@ -374,8 +390,8 @@ export declare const elementDeclarations: {
374
390
  };
375
391
  }, Partial<{
376
392
  content?: string | undefined;
377
- label?: string | undefined;
378
393
  title?: string | undefined;
394
+ label?: string | undefined;
379
395
  disabled?: boolean | undefined;
380
396
  controls?: string | undefined;
381
397
  icon?: string | undefined;
@@ -384,10 +400,22 @@ export declare const elementDeclarations: {
384
400
  contentPlacement?: "before" | "after" | undefined;
385
401
  ariaExpanded?: boolean | undefined;
386
402
  ariaPressed?: boolean | undefined;
403
+ controlsInRow?: boolean | undefined;
387
404
  }>>;
388
405
  readonly Carousel: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
389
406
  readonly type: "carousel";
407
+ readonly contentAttributes: readonly ["label"];
390
408
  readonly sourceType: "carousel";
409
+ readonly publishes: {
410
+ readonly items: "Every item it shows, one slide each";
411
+ readonly count: "How many items it has";
412
+ readonly index: "The slide it stands at, from 0 (a `scroll` row: the first in view)";
413
+ readonly item: "The item of that slide";
414
+ readonly playing: "Whether it moves on by itself now (autoplay, not paused)";
415
+ readonly atStart: "At its first slide — a `scroll` row at the start of its box; one that loops never is";
416
+ readonly atEnd: "At its last — a `scroll` row at the end of its box, however many it shows; one that loops never is";
417
+ readonly shown: "How many slides it shows whole (1 but for a `scroll` row)";
418
+ };
391
419
  readonly triggers: {
392
420
  readonly onChange: {
393
421
  readonly action: "onChange";
@@ -405,14 +433,50 @@ export declare const elementDeclarations: {
405
433
  readonly action: "next";
406
434
  readonly title: "Next Slide";
407
435
  readonly type: "callback";
408
- readonly params: {};
436
+ readonly params: {
437
+ readonly by: {
438
+ canBind?: boolean;
439
+ label?: string;
440
+ when?: boolean | ((params: Record<string, unknown>) => boolean) | undefined;
441
+ credentialProvider?: import('@plitzi/sdk-shared').SpaceCredentialProvider;
442
+ required?: boolean;
443
+ } & {
444
+ type: "select";
445
+ defaultValue?: string;
446
+ options: {
447
+ label: string;
448
+ value: string;
449
+ }[] | ((params: Record<string, unknown>) => {
450
+ label: string;
451
+ value: string;
452
+ }[]);
453
+ };
454
+ };
409
455
  readonly preview: {};
410
456
  };
411
457
  readonly previous: {
412
458
  readonly action: "previous";
413
459
  readonly title: "Previous Slide";
414
460
  readonly type: "callback";
415
- readonly params: {};
461
+ readonly params: {
462
+ readonly by: {
463
+ canBind?: boolean;
464
+ label?: string;
465
+ when?: boolean | ((params: Record<string, unknown>) => boolean) | undefined;
466
+ credentialProvider?: import('@plitzi/sdk-shared').SpaceCredentialProvider;
467
+ required?: boolean;
468
+ } & {
469
+ type: "select";
470
+ defaultValue?: string;
471
+ options: {
472
+ label: string;
473
+ value: string;
474
+ }[] | ((params: Record<string, unknown>) => {
475
+ label: string;
476
+ value: string;
477
+ }[]);
478
+ };
479
+ };
416
480
  readonly preview: {};
417
481
  };
418
482
  readonly goTo: {
@@ -521,6 +585,14 @@ export declare const elementDeclarations: {
521
585
  readonly subType: readonly string[];
522
586
  };
523
587
  readonly sourceType: "channel";
588
+ readonly publishes: {
589
+ readonly connected: "Whether the channel is connected now";
590
+ readonly me: "This visitor's own member id";
591
+ readonly members: "Who is on the channel now";
592
+ readonly messages: "What was said on it since the page opened";
593
+ readonly last: "The last of them, or null";
594
+ readonly retained: "What the channel keeps for whoever joins";
595
+ };
524
596
  readonly triggers: {
525
597
  readonly onMessage: {
526
598
  readonly action: "onMessage";
@@ -534,6 +606,7 @@ export declare const elementDeclarations: {
534
606
  readonly user: "";
535
607
  readonly at: "";
536
608
  readonly echo: false;
609
+ readonly replayed: false;
537
610
  };
538
611
  };
539
612
  readonly onJoin: {
@@ -658,9 +731,10 @@ export declare const elementDeclarations: {
658
731
  };
659
732
  };
660
733
  }, Partial<{
661
- label?: string | undefined;
662
734
  title?: string | undefined;
663
- subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "dl" | "dt" | "dd" | "li" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | undefined;
735
+ label?: string | undefined;
736
+ open?: boolean | undefined;
737
+ subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "dl" | "dt" | "dd" | "li" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | "details" | "summary" | undefined;
664
738
  live?: "polite" | "assertive" | "" | undefined;
665
739
  decorative?: boolean | undefined;
666
740
  }>>;
@@ -698,6 +772,7 @@ export declare const elementDeclarations: {
698
772
  }, import('.').CustomAttributes>;
699
773
  readonly DialogContainer: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
700
774
  readonly type: "dialogContainer";
775
+ readonly contentAttributes: readonly ["headerLabel", "acceptButtonLabel", "rejectButtonLabel"];
701
776
  readonly sourceType: "dialogContainer";
702
777
  readonly triggers: {
703
778
  readonly onDialogAccept: {
@@ -967,6 +1042,35 @@ export declare const elementDeclarations: {
967
1042
  readonly type: "dropdown";
968
1043
  readonly attributeValues: {
969
1044
  readonly popupPlacement: readonly string[];
1045
+ readonly popupWidth: readonly string[];
1046
+ };
1047
+ readonly callbacks: {
1048
+ readonly openDropdown: {
1049
+ readonly action: "openDropdown";
1050
+ readonly title: "Open Dropdown";
1051
+ readonly type: "callback";
1052
+ readonly params: {};
1053
+ readonly preview: {};
1054
+ };
1055
+ readonly closeDropdown: {
1056
+ readonly action: "closeDropdown";
1057
+ readonly title: "Close Dropdown";
1058
+ readonly type: "callback";
1059
+ readonly params: {};
1060
+ readonly preview: {};
1061
+ };
1062
+ readonly toggleDropdown: {
1063
+ readonly action: "toggleDropdown";
1064
+ readonly title: "Toggle Dropdown";
1065
+ readonly type: "callback";
1066
+ readonly params: {};
1067
+ readonly preview: {};
1068
+ };
1069
+ };
1070
+ readonly marks: {
1071
+ readonly 'aria-expanded': "on its trigger while the popup is open — what a class’s `expanded` state lights";
1072
+ readonly '.popup-container--no-visible': "on its dropdownPopup while closed";
1073
+ readonly 'the popup': "drawn at the space’s root, `position: fixed` where the dropdown places it — a class on the popup sets its look, never its position (top, left, position, inset, transform); `popupWidth: \"trigger\"` makes it as wide as the trigger";
970
1074
  };
971
1075
  readonly content: {
972
1076
  readonly attributes: {
@@ -977,6 +1081,7 @@ export declare const elementDeclarations: {
977
1081
  readonly closeOnClickPopup: true;
978
1082
  readonly containerTopOffset: 5;
979
1083
  readonly containerLeftOffset: 5;
1084
+ readonly popupWidth: "content";
980
1085
  readonly disabled: false;
981
1086
  };
982
1087
  readonly definition: {
@@ -1023,6 +1128,7 @@ export declare const elementDeclarations: {
1023
1128
  closeOnClickBackground?: boolean | undefined;
1024
1129
  containerTopOffset?: number | undefined;
1025
1130
  containerLeftOffset?: number | undefined;
1131
+ popupWidth?: "content" | "trigger" | undefined;
1026
1132
  }>>;
1027
1133
  readonly DropdownPopup: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
1028
1134
  readonly type: "dropdownPopup";
@@ -1075,6 +1181,7 @@ export declare const elementDeclarations: {
1075
1181
  }, unknown>;
1076
1182
  readonly Embed: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
1077
1183
  readonly type: "embed";
1184
+ readonly contentAttributes: readonly ["src", "title"];
1078
1185
  readonly content: {
1079
1186
  readonly attributes: {
1080
1187
  readonly src: "";
@@ -1152,6 +1259,11 @@ export declare const elementDeclarations: {
1152
1259
  readonly method: readonly string[];
1153
1260
  };
1154
1261
  readonly sourceType: "apiContainer";
1262
+ readonly publishes: {
1263
+ readonly values: "Each field's value, by its name";
1264
+ readonly errors: "Each field's error, by its name — none while it is valid";
1265
+ readonly submitted: "Whether a submit was tried — valid or not — since the form was shown or reset: what shows an error only after a submit, or hides a field's hint once one was tried (no `touched`: a field's own error shows once the field is left)";
1266
+ };
1155
1267
  readonly triggers: {
1156
1268
  readonly onSubmit: {
1157
1269
  readonly action: "onSubmit";
@@ -1164,6 +1276,16 @@ export declare const elementDeclarations: {
1164
1276
  readonly method: "";
1165
1277
  };
1166
1278
  };
1279
+ readonly onInvalid: {
1280
+ readonly action: "onInvalid";
1281
+ readonly title: "On Form Refused";
1282
+ readonly type: "trigger";
1283
+ readonly params: {};
1284
+ readonly preview: {
1285
+ readonly errors: {};
1286
+ readonly values: {};
1287
+ };
1288
+ };
1167
1289
  };
1168
1290
  readonly callbacks: {
1169
1291
  readonly performReset: {
@@ -1220,7 +1342,7 @@ export declare const elementDeclarations: {
1220
1342
  };
1221
1343
  readonly definition: {
1222
1344
  readonly label: "Form";
1223
- readonly description: "A <form> that groups form controls and handles submission; wire its submit through an interaction flow.";
1345
+ readonly description: "A <form> that groups form controls and handles submission; wire its submit through an interaction flow. Left as it is, the browser answers first for a blank required field and a malformed address, in a bubble no style reaches and in the browser's language; `noValidate: true` turns its checks off, and every rule answers under its control in the words of its `…Message` (`requiredMessage`).";
1224
1346
  readonly items: [];
1225
1347
  };
1226
1348
  readonly market: {
@@ -1245,6 +1367,7 @@ export declare const elementDeclarations: {
1245
1367
  }>>;
1246
1368
  readonly FormControl: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
1247
1369
  readonly type: "formControl";
1370
+ readonly contentAttributes: readonly ["label", "placeholder", "options", "requiredMessage", "minLengthMessage", "maxLengthMessage", "minMessage", "maxMessage", "formatMessage", "patternMessage", "matchesMessage"];
1248
1371
  readonly attributeValues: {
1249
1372
  readonly subType: readonly string[];
1250
1373
  };
@@ -1261,6 +1384,7 @@ export declare const elementDeclarations: {
1261
1384
  };
1262
1385
  };
1263
1386
  readonly content: {
1387
+ readonly placeholders: readonly ["label"];
1264
1388
  readonly attributes: {
1265
1389
  readonly subType: "text";
1266
1390
  readonly name: "";
@@ -1278,6 +1402,11 @@ export declare const elementDeclarations: {
1278
1402
  readonly minLengthMessage: "";
1279
1403
  readonly maxLength: 0;
1280
1404
  readonly maxLengthMessage: "";
1405
+ readonly min: "";
1406
+ readonly minMessage: "";
1407
+ readonly max: "";
1408
+ readonly maxMessage: "";
1409
+ readonly step: "";
1281
1410
  readonly formatMessage: "";
1282
1411
  readonly pattern: "";
1283
1412
  readonly patternMessage: "";
@@ -1983,10 +2112,12 @@ export declare const elementDeclarations: {
1983
2112
  }, import('.').FormControlAttributes>;
1984
2113
  readonly Heading: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
1985
2114
  readonly type: "heading";
2115
+ readonly contentAttributes: readonly ["content"];
1986
2116
  readonly attributeValues: {
1987
2117
  readonly subType: readonly string[];
1988
2118
  };
1989
2119
  readonly content: {
2120
+ readonly placeholders: readonly ["content"];
1990
2121
  readonly attributes: {
1991
2122
  readonly content: "Heading";
1992
2123
  readonly subType: "h1";
@@ -2109,6 +2240,7 @@ export declare const elementDeclarations: {
2109
2240
  }>>;
2110
2241
  readonly Image: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
2111
2242
  readonly type: "image";
2243
+ readonly contentAttributes: readonly ["src", "alt"];
2112
2244
  readonly attributeValues: {
2113
2245
  readonly fetchPriority: readonly string[];
2114
2246
  readonly loadMode: readonly string[];
@@ -2143,9 +2275,9 @@ export declare const elementDeclarations: {
2143
2275
  };
2144
2276
  };
2145
2277
  }, Partial<{
2278
+ width?: number | undefined;
2146
2279
  resize?: boolean | undefined;
2147
2280
  height?: number | undefined;
2148
- width?: number | undefined;
2149
2281
  fetchPriority?: "high" | "low" | "auto" | undefined;
2150
2282
  sizes?: string | undefined;
2151
2283
  src?: string | undefined;
@@ -2190,6 +2322,7 @@ export declare const elementDeclarations: {
2190
2322
  }>>;
2191
2323
  readonly Link: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
2192
2324
  readonly type: "link";
2325
+ readonly contentAttributes: readonly ["content", "href", "label"];
2193
2326
  readonly attributeValues: {
2194
2327
  readonly mode: readonly string[];
2195
2328
  readonly target: readonly string[];
@@ -2257,6 +2390,11 @@ export declare const elementDeclarations: {
2257
2390
  readonly source: readonly string[];
2258
2391
  };
2259
2392
  readonly sourceType: "list";
2393
+ readonly publishes: {
2394
+ readonly items: "Every row it draws, as its items give them";
2395
+ readonly item: "Inside a row: that row's item";
2396
+ readonly index: "Inside a row: its place, from 0";
2397
+ };
2260
2398
  readonly content: {
2261
2399
  readonly attributes: {
2262
2400
  readonly items: readonly [];
@@ -2371,7 +2509,9 @@ export declare const elementDeclarations: {
2371
2509
  }, unknown>;
2372
2510
  readonly Markdown: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
2373
2511
  readonly type: "markdown";
2512
+ readonly contentAttributes: readonly ["content"];
2374
2513
  readonly content: {
2514
+ readonly placeholders: readonly ["content"];
2375
2515
  readonly attributes: {
2376
2516
  readonly content: "Markdown";
2377
2517
  readonly headingLinks: true;
@@ -2428,6 +2568,7 @@ export declare const elementDeclarations: {
2428
2568
  }>>;
2429
2569
  readonly ModalContainer: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
2430
2570
  readonly type: "modalContainer";
2571
+ readonly contentAttributes: readonly ["title"];
2431
2572
  readonly sourceType: "modalContainer";
2432
2573
  readonly triggers: {
2433
2574
  readonly onModalOpen: {
@@ -2476,6 +2617,7 @@ export declare const elementDeclarations: {
2476
2617
  };
2477
2618
  };
2478
2619
  readonly content: {
2620
+ readonly placeholders: readonly ["title"];
2479
2621
  readonly attributes: {
2480
2622
  readonly title: "Modal Header";
2481
2623
  readonly autoHideAfterClick: true;
@@ -2649,9 +2791,11 @@ export declare const elementDeclarations: {
2649
2791
  content?: string | undefined | undefined;
2650
2792
  style?: import('react').CSSProperties | undefined;
2651
2793
  color?: string | undefined | undefined;
2652
- slot?: string | undefined | undefined;
2653
2794
  title?: string | undefined | undefined;
2795
+ property?: string | undefined | undefined;
2796
+ slot?: string | undefined | undefined;
2654
2797
  defaultValue?: string | number | readonly string[] | undefined;
2798
+ dir?: string | undefined | undefined;
2655
2799
  hidden?: boolean | undefined | undefined;
2656
2800
  onScroll?: import('react').UIEventHandler<"span"> | undefined;
2657
2801
  onLoad?: import('react').ReactEventHandler<"span"> | undefined;
@@ -2890,7 +3034,6 @@ export declare const elementDeclarations: {
2890
3034
  autoFocus?: boolean | undefined | undefined;
2891
3035
  contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
2892
3036
  contextMenu?: string | undefined | undefined;
2893
- dir?: string | undefined | undefined;
2894
3037
  draggable?: (boolean | "true" | "false") | undefined;
2895
3038
  enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
2896
3039
  spellCheck?: (boolean | "true" | "false") | undefined;
@@ -2900,7 +3043,6 @@ export declare const elementDeclarations: {
2900
3043
  datatype?: string | undefined | undefined;
2901
3044
  inlist?: any;
2902
3045
  prefix?: string | undefined | undefined;
2903
- property?: string | undefined | undefined;
2904
3046
  rel?: string | undefined | undefined;
2905
3047
  resource?: string | undefined | undefined;
2906
3048
  rev?: string | undefined | undefined;
@@ -2955,9 +3097,11 @@ export declare const elementDeclarations: {
2955
3097
  }, unknown>;
2956
3098
  readonly Page: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
2957
3099
  readonly type: "page";
2958
- readonly serverTemplates: readonly ["seoPageTitle", "seoPageDescription", "notFound"];
3100
+ readonly contentAttributes: readonly ["seoPageTitle", "seoPageDescription"];
3101
+ readonly serverTemplates: readonly ["seoPageTitle", "seoPageDescription", "seoImage", "seoImageAlt", "notFound"];
2959
3102
  readonly attributeValues: {
2960
3103
  readonly documentScroll: readonly ["locked", "noBounce"];
3104
+ readonly seoType: readonly ["website", "article", "profile", "book", "music.song", "music.album", "music.playlist", "music.radio_station", "video.movie", "video.episode", "video.tv_show", "video.other"];
2961
3105
  };
2962
3106
  readonly triggers: {
2963
3107
  readonly onPageLoad: {
@@ -3024,12 +3168,18 @@ export declare const elementDeclarations: {
3024
3168
  seoEnabled?: boolean | undefined;
3025
3169
  seoPageTitle?: string | undefined;
3026
3170
  seoPageDescription?: string | undefined;
3171
+ seoRobots?: string | undefined;
3172
+ seoStructuredData?: Record<string, unknown>[] | undefined;
3173
+ seoImage?: string | undefined;
3174
+ seoImageAlt?: string | undefined;
3175
+ seoType?: import('@plitzi/sdk-shared/schema').OgType | undefined;
3027
3176
  documentScroll?: (import('.').DocumentScroll | "") | undefined;
3028
3177
  withheld?: import('@plitzi/sdk-shared/schema').PageWithheld | undefined;
3029
3178
  access?: import('@plitzi/sdk-shared/schema').PageAccess | undefined;
3030
3179
  }>>;
3031
3180
  readonly Pagination: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
3032
3181
  readonly type: "pagination";
3182
+ readonly contentAttributes: readonly ["previousLabel", "nextLabel", "loadMoreLabel"];
3033
3183
  readonly attributeValues: {
3034
3184
  readonly mode: readonly string[];
3035
3185
  readonly target: readonly string[];
@@ -3098,7 +3248,9 @@ export declare const elementDeclarations: {
3098
3248
  }>>;
3099
3249
  readonly Paragraph: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
3100
3250
  readonly type: "paragraph";
3251
+ readonly contentAttributes: readonly ["content"];
3101
3252
  readonly content: {
3253
+ readonly placeholders: readonly ["content"];
3102
3254
  readonly attributes: {
3103
3255
  readonly content: "Paragraph";
3104
3256
  };
@@ -3179,6 +3331,7 @@ export declare const elementDeclarations: {
3179
3331
  }>>;
3180
3332
  readonly RichText: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
3181
3333
  readonly type: "richText";
3334
+ readonly contentAttributes: readonly ["content"];
3182
3335
  readonly attributeValues: {
3183
3336
  readonly format: readonly string[];
3184
3337
  };
@@ -3240,8 +3393,148 @@ export declare const elementDeclarations: {
3240
3393
  format?: "html" | "markdown" | "text" | undefined;
3241
3394
  mediaBaseUrl?: string | undefined;
3242
3395
  }>>;
3396
+ readonly Chart: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
3397
+ readonly type: "chart";
3398
+ readonly contentAttributes: readonly ["label", "emptyText"];
3399
+ readonly attributeValues: {
3400
+ readonly kind: readonly string[];
3401
+ readonly format: readonly string[];
3402
+ };
3403
+ readonly content: {
3404
+ readonly attributes: {
3405
+ readonly kind: "bar";
3406
+ readonly labelField: "label";
3407
+ readonly valueField: "value";
3408
+ readonly label: "";
3409
+ readonly format: "number";
3410
+ readonly showValues: false;
3411
+ readonly height: 240;
3412
+ readonly emptyText: "No data yet";
3413
+ };
3414
+ readonly definition: {
3415
+ readonly label: "Chart";
3416
+ readonly description: string;
3417
+ readonly items: [];
3418
+ readonly styleSelectors: {
3419
+ readonly bar: "";
3420
+ readonly line: "";
3421
+ readonly area: "";
3422
+ readonly point: "";
3423
+ readonly slice: "";
3424
+ readonly hole: "";
3425
+ readonly grid: "";
3426
+ readonly axisLabel: "";
3427
+ readonly valueLabel: "";
3428
+ readonly legend: "";
3429
+ readonly empty: "";
3430
+ };
3431
+ };
3432
+ readonly market: {
3433
+ readonly category: "media";
3434
+ readonly icon: "fa-solid fa-chart-column";
3435
+ };
3436
+ readonly defaultStyle: {
3437
+ readonly name: "Chart";
3438
+ readonly style: {
3439
+ readonly base: {
3440
+ readonly default: {
3441
+ readonly display: "block";
3442
+ readonly position: "relative";
3443
+ readonly width: "100%";
3444
+ readonly margin: "0px";
3445
+ };
3446
+ };
3447
+ readonly bar: {
3448
+ readonly default: {
3449
+ readonly fill: "currentColor";
3450
+ };
3451
+ };
3452
+ readonly line: {
3453
+ readonly default: {
3454
+ readonly fill: "none";
3455
+ readonly stroke: "currentColor";
3456
+ readonly 'stroke-width': "2.5px";
3457
+ };
3458
+ };
3459
+ readonly area: {
3460
+ readonly default: {
3461
+ readonly fill: "currentColor";
3462
+ readonly 'fill-opacity': "0.15";
3463
+ };
3464
+ };
3465
+ readonly point: {
3466
+ readonly default: {
3467
+ readonly fill: "currentColor";
3468
+ };
3469
+ };
3470
+ readonly slice: {
3471
+ readonly default: {
3472
+ readonly fill: "currentColor";
3473
+ };
3474
+ };
3475
+ readonly hole: {
3476
+ readonly default: {
3477
+ readonly fill: "var(--plitzi-chart-hole, transparent)";
3478
+ };
3479
+ };
3480
+ readonly grid: {
3481
+ readonly default: {
3482
+ readonly stroke: "currentColor";
3483
+ readonly 'stroke-opacity': "0.15";
3484
+ readonly 'stroke-width': "1px";
3485
+ };
3486
+ };
3487
+ readonly axisLabel: {
3488
+ readonly default: {
3489
+ readonly 'fill-opacity': "0.7";
3490
+ readonly fill: string;
3491
+ readonly 'font-size': string;
3492
+ readonly 'font-family': string;
3493
+ };
3494
+ };
3495
+ readonly valueLabel: {
3496
+ readonly default: {
3497
+ fill: string;
3498
+ 'font-size': string;
3499
+ 'font-family': string;
3500
+ };
3501
+ };
3502
+ readonly legend: {
3503
+ readonly default: {
3504
+ readonly display: "flex";
3505
+ readonly 'flex-wrap': "wrap";
3506
+ readonly 'column-gap': "16px";
3507
+ readonly 'row-gap': "4px";
3508
+ readonly 'list-style-type': "none";
3509
+ readonly 'padding-left': "0px";
3510
+ readonly 'margin-top': "12px";
3511
+ readonly 'font-size': "14px";
3512
+ };
3513
+ };
3514
+ readonly empty: {
3515
+ readonly default: {
3516
+ readonly 'font-size': "14px";
3517
+ readonly opacity: "0.7";
3518
+ };
3519
+ };
3520
+ };
3521
+ };
3522
+ };
3523
+ }, Partial<{
3524
+ format?: "number" | "percent" | "compact" | undefined;
3525
+ kind?: "bar" | "line" | "area" | "donut" | undefined;
3526
+ label?: string | undefined;
3527
+ max?: number | undefined;
3528
+ items?: unknown;
3529
+ height?: number | undefined;
3530
+ labelField?: string | undefined;
3531
+ valueField?: string | undefined;
3532
+ showValues?: boolean | undefined;
3533
+ emptyText?: string | undefined;
3534
+ }>>;
3243
3535
  readonly Svg: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
3244
3536
  readonly type: "svg";
3537
+ readonly contentAttributes: readonly ["label"];
3245
3538
  readonly content: {
3246
3539
  readonly attributes: {
3247
3540
  readonly content: "";
@@ -3365,6 +3658,12 @@ export declare const elementDeclarations: {
3365
3658
  }, unknown>;
3366
3659
  readonly TabContainerItem: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
3367
3660
  readonly type: "tabContainerItem";
3661
+ readonly marks: {
3662
+ readonly 'role="tab"': "in the header, with `aria-controls` its panel; in the body it is `role=\"tabpanel\"`, `hidden` while not on show";
3663
+ readonly 'aria-selected': "on the open tab — what a class’s `current` state lights (`states: { current: { … } }`); `active` is the press, never the open tab";
3664
+ readonly '.active': "on the open tab too, the class the component adds";
3665
+ readonly tabindex: "roving: 0 on the open tab, -1 on the rest — the arrow keys move between them";
3666
+ };
3368
3667
  readonly content: {
3369
3668
  readonly attributes: {};
3370
3669
  readonly definition: {
@@ -3391,7 +3690,9 @@ export declare const elementDeclarations: {
3391
3690
  }, unknown>;
3392
3691
  readonly Text: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
3393
3692
  readonly type: "text";
3693
+ readonly contentAttributes: readonly ["content"];
3394
3694
  readonly content: {
3695
+ readonly placeholders: readonly ["content"];
3395
3696
  readonly attributes: {
3396
3697
  readonly content: "Text";
3397
3698
  };
@@ -3420,6 +3721,7 @@ export declare const elementDeclarations: {
3420
3721
  }>>;
3421
3722
  readonly ThemeToggle: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
3422
3723
  readonly type: "themeToggle";
3724
+ readonly contentAttributes: readonly ["lightLabel", "darkLabel", "systemLabel"];
3423
3725
  readonly attributeValues: {
3424
3726
  readonly subType: readonly string[];
3425
3727
  };
@@ -3521,6 +3823,7 @@ export declare const elementDeclarations: {
3521
3823
  }>>;
3522
3824
  readonly Video: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
3523
3825
  readonly type: "video";
3826
+ readonly contentAttributes: readonly ["src"];
3524
3827
  readonly content: {
3525
3828
  readonly attributes: {
3526
3829
  readonly src: "";
@@ -3558,12 +3861,19 @@ export declare const elementDeclarations: {
3558
3861
  }>>;
3559
3862
  };
3560
3863
  export type ElementDeclarationName = keyof typeof elementDeclarations;
3561
- export { ApiContainerDeclaration, BlockHtmlDeclaration, BlockJsxDeclaration, ButtonDeclaration, CarouselDeclaration, CarouselTrackDeclaration, ChannelDeclaration, ContainerDeclaration, CustomDeclaration, DialogContainerDeclaration, DropdownDeclaration, DropdownPopupDeclaration, EmbedDeclaration, FontAwesomeDeclaration, FormControlDeclaration, FormDeclaration, HeadingDeclaration, ImageDeclaration, LayoutContainerDeclaration, LinkDeclaration, ListDeclaration, ListItemDeclaration, LoadingDeclaration, MarkdownDeclaration, ModalContainerDeclaration, NodeHtmlDeclaration, NotFoundDeclaration, PageDeclaration, PaginationDeclaration, ParagraphDeclaration, PlitziSdkDeclaration, ReferenceDeclaration, RichTextDeclaration, SvgDeclaration, TabContainerBodyDeclaration, TabContainerDeclaration, TabContainerHeaderDeclaration, TabContainerItemDeclaration, TextDeclaration, ThemeToggleDeclaration, VideoDeclaration };
3864
+ export { ApiContainerDeclaration, BlockHtmlDeclaration, BlockJsxDeclaration, ButtonDeclaration, CarouselDeclaration, CarouselTrackDeclaration, ChannelDeclaration, ContainerDeclaration, CustomDeclaration, DialogContainerDeclaration, DropdownDeclaration, DropdownPopupDeclaration, EmbedDeclaration, FontAwesomeDeclaration, FormControlDeclaration, FormDeclaration, HeadingDeclaration, ImageDeclaration, LayoutContainerDeclaration, LinkDeclaration, ListDeclaration, ListItemDeclaration, LoadingDeclaration, MarkdownDeclaration, ModalContainerDeclaration, NodeHtmlDeclaration, NotFoundDeclaration, PageDeclaration, PaginationDeclaration, ParagraphDeclaration, PlitziSdkDeclaration, ReferenceDeclaration, RichTextDeclaration, ChartDeclaration, SvgDeclaration, TabContainerBodyDeclaration, TabContainerDeclaration, TabContainerHeaderDeclaration, TabContainerItemDeclaration, TextDeclaration, ThemeToggleDeclaration, VideoDeclaration };
3562
3865
  /**
3563
3866
  * Each type's `serverTemplates`, by the type a document names: the attributes the page server evaluates against a
3564
3867
  * context of its own, which the element runtime leaves as written and the authoring lint holds to that context.
3565
3868
  */
3566
3869
  export declare const serverTemplatesByType: Readonly<Record<string, readonly string[]>>;
3870
+ /**
3871
+ * Each type's content attributes (`contentAttributes`): what a role that edits the content and not the design
3872
+ * may change on an element of that type — the server's gate and the builder's content form read this one map.
3873
+ */
3874
+ export declare const contentAttributesByType: Readonly<Record<string, readonly string[]>>;
3875
+ /** The content attributes of `type`; none for a type no built-in element declares — it has nothing to edit there. */
3876
+ export declare const contentAttributesOf: (type: string) => readonly string[];
3567
3877
  export { interactionBasicTriggers } from '../../Element/helpers/elementConstants';
3568
3878
  export { DOCUMENT_SCROLLS, isDocumentScroll } from '../internal/Page/declaration';
3569
3879
  export type { DocumentScroll } from '../internal/Page/declaration';