@kubex/zinc 1.1.118 → 1.1.119
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/custom-elements.json +1743 -1609
- package/dist/vscode.html-custom-data.json +138 -133
- package/dist/web-types.json +313 -303
- package/dist/zn.d.ts +54 -21
- package/dist/zn.min.js +334 -317
- package/docs/pages/components/form-group.md +2 -0
- package/package.json +1 -1
- package/src/components/form-group/form-group.component.ts +51 -86
- package/src/components/form-group/form-group.test.ts +21 -1
- package/src/components/remarkd-editor/actions.ts +2 -1
- package/src/components/remarkd-editor/remarkd-editor.component.ts +251 -9
- package/src/components/remarkd-editor/remarkd-editor.scss +49 -0
- package/src/components/remarkd-editor/remarkd-editor.test.ts +329 -5
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@kubex/zinc",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.119",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -15,6 +15,28 @@
|
|
|
15
15
|
"events": [],
|
|
16
16
|
"js": { "properties": [], "events": [] }
|
|
17
17
|
},
|
|
18
|
+
{
|
|
19
|
+
"name": "zn-action-bar",
|
|
20
|
+
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
21
|
+
"doc-url": "",
|
|
22
|
+
"attributes": [],
|
|
23
|
+
"slots": [
|
|
24
|
+
{ "name": "", "description": "The default slot." },
|
|
25
|
+
{ "name": "example", "description": "An example slot." }
|
|
26
|
+
],
|
|
27
|
+
"events": [
|
|
28
|
+
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
29
|
+
],
|
|
30
|
+
"js": {
|
|
31
|
+
"properties": [],
|
|
32
|
+
"events": [
|
|
33
|
+
{
|
|
34
|
+
"name": "zn-event-name",
|
|
35
|
+
"description": "Emitted as an example."
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
18
40
|
{
|
|
19
41
|
"name": "zn-alert",
|
|
20
42
|
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
@@ -83,28 +105,6 @@
|
|
|
83
105
|
]
|
|
84
106
|
}
|
|
85
107
|
},
|
|
86
|
-
{
|
|
87
|
-
"name": "zn-action-bar",
|
|
88
|
-
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
89
|
-
"doc-url": "",
|
|
90
|
-
"attributes": [],
|
|
91
|
-
"slots": [
|
|
92
|
-
{ "name": "", "description": "The default slot." },
|
|
93
|
-
{ "name": "example", "description": "An example slot." }
|
|
94
|
-
],
|
|
95
|
-
"events": [
|
|
96
|
-
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
97
|
-
],
|
|
98
|
-
"js": {
|
|
99
|
-
"properties": [],
|
|
100
|
-
"events": [
|
|
101
|
-
{
|
|
102
|
-
"name": "zn-event-name",
|
|
103
|
-
"description": "Emitted as an example."
|
|
104
|
-
}
|
|
105
|
-
]
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
108
|
{
|
|
109
109
|
"name": "zn-animated-button",
|
|
110
110
|
"description": "\n---\n\n\n### **Methods:**\n - **purchase(): _void_** - Programmatically trigger the purchase flow\n- **setSuccess(): _void_** - Set the button to success state manually\n- **setFailure(message): _void_** - Set the button to failure state manually with optional error message\n- **reset(): _void_** - Reset the button to idle state",
|
|
@@ -250,6 +250,44 @@
|
|
|
250
250
|
"events": []
|
|
251
251
|
}
|
|
252
252
|
},
|
|
253
|
+
{
|
|
254
|
+
"name": "zn-bulk-actions",
|
|
255
|
+
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
256
|
+
"doc-url": "",
|
|
257
|
+
"attributes": [
|
|
258
|
+
{ "name": "name", "value": { "type": "string" } },
|
|
259
|
+
{ "name": "value", "value": { "type": "PropertyKey" } },
|
|
260
|
+
{
|
|
261
|
+
"name": "actions",
|
|
262
|
+
"value": { "type": "BulkActionData", "default": "[]" }
|
|
263
|
+
}
|
|
264
|
+
],
|
|
265
|
+
"slots": [
|
|
266
|
+
{ "name": "", "description": "The default slot." },
|
|
267
|
+
{ "name": "example", "description": "An example slot." }
|
|
268
|
+
],
|
|
269
|
+
"events": [
|
|
270
|
+
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
271
|
+
],
|
|
272
|
+
"js": {
|
|
273
|
+
"properties": [
|
|
274
|
+
{ "name": "container", "type": "HTMLDivElement" },
|
|
275
|
+
{ "name": "addRule", "type": "ZnSelect" },
|
|
276
|
+
{ "name": "input", "type": "HTMLInputElement" },
|
|
277
|
+
{ "name": "name", "type": "string" },
|
|
278
|
+
{ "name": "value", "type": "PropertyKey" },
|
|
279
|
+
{ "name": "actions", "type": "BulkActionData" },
|
|
280
|
+
{ "name": "validationMessage", "type": "string" },
|
|
281
|
+
{ "name": "validity", "type": "ValidityState" }
|
|
282
|
+
],
|
|
283
|
+
"events": [
|
|
284
|
+
{
|
|
285
|
+
"name": "zn-event-name",
|
|
286
|
+
"description": "Emitted as an example."
|
|
287
|
+
}
|
|
288
|
+
]
|
|
289
|
+
}
|
|
290
|
+
},
|
|
253
291
|
{
|
|
254
292
|
"name": "zn-background",
|
|
255
293
|
"description": "Composes a colour, decorative image, image strength, optional motion and contrast overlay behind slotted content.\n---\n\n\n### **Slots:**\n - _default_ - Content displayed above the background layers.\n\n### **CSS Properties:**\n - **--zn-background-color** - Fallback colour when the `color` attribute is not set. _(default: undefined)_\n- **--zn-background-image-position** - Position of the background image. Defaults to `center`. _(default: undefined)_\n- **--zn-background-overlay-angle** - Direction of the overlay gradient. Defaults to `110deg`. _(default: undefined)_\n- **--zn-background-floating-icon-color** - Colour of the floating icons. Defaults to `currentColor`. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's full-size background canvas.\n- **image** - The decorative background image.\n- **overlay** - The contrast overlay between the image and content.\n- **floating-icons** - The non-interactive layer containing the floating icons.\n- **floating-icon** - Each floating `zn-icon`.\n- **content** - The wrapper around the default slot.",
|
|
@@ -353,34 +391,46 @@
|
|
|
353
391
|
}
|
|
354
392
|
},
|
|
355
393
|
{
|
|
356
|
-
"name": "zn-
|
|
357
|
-
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n
|
|
394
|
+
"name": "zn-button-group",
|
|
395
|
+
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n\n### **CSS Properties:**\n - **--grow** - Use flex-grow to fill available space. _(default: undefined)_\n- **--start** - Justify content at the start of the flex space. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
358
396
|
"doc-url": "",
|
|
359
397
|
"attributes": [
|
|
360
|
-
{ "name": "name", "value": { "type": "string" } },
|
|
361
|
-
{ "name": "value", "value": { "type": "PropertyKey" } },
|
|
362
398
|
{
|
|
363
|
-
"name": "
|
|
364
|
-
"value": {
|
|
399
|
+
"name": "direction",
|
|
400
|
+
"value": {
|
|
401
|
+
"type": "'horizontal' | 'vertical'",
|
|
402
|
+
"default": "'horizontal'"
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"name": "grow",
|
|
407
|
+
"value": { "type": "boolean", "default": "false" }
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"name": "wrap",
|
|
411
|
+
"value": { "type": "boolean", "default": "false" }
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"name": "start",
|
|
415
|
+
"value": { "type": "boolean", "default": "false" }
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"name": "gap",
|
|
419
|
+
"value": { "type": "boolean", "default": "false" }
|
|
365
420
|
}
|
|
366
421
|
],
|
|
367
|
-
"slots": [
|
|
368
|
-
{ "name": "", "description": "The default slot." },
|
|
369
|
-
{ "name": "example", "description": "An example slot." }
|
|
370
|
-
],
|
|
422
|
+
"slots": [{ "name": "", "description": "The default slot." }],
|
|
371
423
|
"events": [
|
|
372
424
|
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
373
425
|
],
|
|
374
426
|
"js": {
|
|
375
427
|
"properties": [
|
|
376
|
-
{ "name": "
|
|
377
|
-
{ "name": "
|
|
378
|
-
{ "name": "
|
|
379
|
-
{ "name": "
|
|
380
|
-
{ "name": "
|
|
381
|
-
{ "name": "
|
|
382
|
-
{ "name": "validationMessage", "type": "string" },
|
|
383
|
-
{ "name": "validity", "type": "ValidityState" }
|
|
428
|
+
{ "name": "direction", "type": "'horizontal' | 'vertical'" },
|
|
429
|
+
{ "name": "grow", "type": "boolean" },
|
|
430
|
+
{ "name": "wrap", "type": "boolean" },
|
|
431
|
+
{ "name": "start", "type": "boolean" },
|
|
432
|
+
{ "name": "gap", "type": "boolean" },
|
|
433
|
+
{ "name": "defaultSlot", "type": "HTMLSlotElement" }
|
|
384
434
|
],
|
|
385
435
|
"events": [
|
|
386
436
|
{
|
|
@@ -666,56 +716,6 @@
|
|
|
666
716
|
]
|
|
667
717
|
}
|
|
668
718
|
},
|
|
669
|
-
{
|
|
670
|
-
"name": "zn-button-group",
|
|
671
|
-
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n\n### **CSS Properties:**\n - **--grow** - Use flex-grow to fill available space. _(default: undefined)_\n- **--start** - Justify content at the start of the flex space. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
672
|
-
"doc-url": "",
|
|
673
|
-
"attributes": [
|
|
674
|
-
{
|
|
675
|
-
"name": "direction",
|
|
676
|
-
"value": {
|
|
677
|
-
"type": "'horizontal' | 'vertical'",
|
|
678
|
-
"default": "'horizontal'"
|
|
679
|
-
}
|
|
680
|
-
},
|
|
681
|
-
{
|
|
682
|
-
"name": "grow",
|
|
683
|
-
"value": { "type": "boolean", "default": "false" }
|
|
684
|
-
},
|
|
685
|
-
{
|
|
686
|
-
"name": "wrap",
|
|
687
|
-
"value": { "type": "boolean", "default": "false" }
|
|
688
|
-
},
|
|
689
|
-
{
|
|
690
|
-
"name": "start",
|
|
691
|
-
"value": { "type": "boolean", "default": "false" }
|
|
692
|
-
},
|
|
693
|
-
{
|
|
694
|
-
"name": "gap",
|
|
695
|
-
"value": { "type": "boolean", "default": "false" }
|
|
696
|
-
}
|
|
697
|
-
],
|
|
698
|
-
"slots": [{ "name": "", "description": "The default slot." }],
|
|
699
|
-
"events": [
|
|
700
|
-
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
701
|
-
],
|
|
702
|
-
"js": {
|
|
703
|
-
"properties": [
|
|
704
|
-
{ "name": "direction", "type": "'horizontal' | 'vertical'" },
|
|
705
|
-
{ "name": "grow", "type": "boolean" },
|
|
706
|
-
{ "name": "wrap", "type": "boolean" },
|
|
707
|
-
{ "name": "start", "type": "boolean" },
|
|
708
|
-
{ "name": "gap", "type": "boolean" },
|
|
709
|
-
{ "name": "defaultSlot", "type": "HTMLSlotElement" }
|
|
710
|
-
],
|
|
711
|
-
"events": [
|
|
712
|
-
{
|
|
713
|
-
"name": "zn-event-name",
|
|
714
|
-
"description": "Emitted as an example."
|
|
715
|
-
}
|
|
716
|
-
]
|
|
717
|
-
}
|
|
718
|
-
},
|
|
719
719
|
{
|
|
720
720
|
"name": "zn-button-menu",
|
|
721
721
|
"description": "Automatically hides buttons in a menu when the screen is too small.\n---\n\n\n### **Slots:**\n - _default_ - The default slot.",
|
|
@@ -7025,6 +7025,49 @@
|
|
|
7025
7025
|
]
|
|
7026
7026
|
}
|
|
7027
7027
|
},
|
|
7028
|
+
{
|
|
7029
|
+
"name": "zn-pagination",
|
|
7030
|
+
"description": "Pagination component for navigating through pages of content.\n---\n",
|
|
7031
|
+
"doc-url": "",
|
|
7032
|
+
"attributes": [
|
|
7033
|
+
{ "name": "limit", "value": { "type": "number", "default": "10" } },
|
|
7034
|
+
{ "name": "total", "value": { "type": "number", "default": "0" } },
|
|
7035
|
+
{ "name": "page", "value": { "type": "number", "default": "1" } },
|
|
7036
|
+
{ "name": "uri", "value": { "type": "string", "default": "\"\"" } }
|
|
7037
|
+
],
|
|
7038
|
+
"events": [],
|
|
7039
|
+
"js": {
|
|
7040
|
+
"properties": [
|
|
7041
|
+
{ "name": "limit", "type": "number" },
|
|
7042
|
+
{ "name": "total", "type": "number" },
|
|
7043
|
+
{ "name": "page", "type": "number" },
|
|
7044
|
+
{ "name": "uri", "type": "string" }
|
|
7045
|
+
],
|
|
7046
|
+
"events": []
|
|
7047
|
+
}
|
|
7048
|
+
},
|
|
7049
|
+
{
|
|
7050
|
+
"name": "zn-pane",
|
|
7051
|
+
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
7052
|
+
"doc-url": "",
|
|
7053
|
+
"attributes": [{ "name": "flush", "value": { "type": "boolean" } }],
|
|
7054
|
+
"slots": [
|
|
7055
|
+
{ "name": "", "description": "The default slot." },
|
|
7056
|
+
{ "name": "example", "description": "An example slot." }
|
|
7057
|
+
],
|
|
7058
|
+
"events": [
|
|
7059
|
+
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
7060
|
+
],
|
|
7061
|
+
"js": {
|
|
7062
|
+
"properties": [{ "name": "flush", "type": "boolean" }],
|
|
7063
|
+
"events": [
|
|
7064
|
+
{
|
|
7065
|
+
"name": "zn-event-name",
|
|
7066
|
+
"description": "Emitted as an example."
|
|
7067
|
+
}
|
|
7068
|
+
]
|
|
7069
|
+
}
|
|
7070
|
+
},
|
|
7028
7071
|
{
|
|
7029
7072
|
"name": "zn-page-nav",
|
|
7030
7073
|
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Methods:**\n \n\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
@@ -7133,76 +7176,33 @@
|
|
|
7133
7176
|
}
|
|
7134
7177
|
},
|
|
7135
7178
|
{
|
|
7136
|
-
"name": "zn-
|
|
7137
|
-
"description": "
|
|
7179
|
+
"name": "zn-panel",
|
|
7180
|
+
"description": "Panels are versatile containers that provide structure for organizing content with optional headers and footers.\n---\n\n\n### **Slots:**\n - _default_ - The panel's main content.\n- **actions** - Actions displayed in the panel header (buttons, chips, etc).\n- **footer** - Content displayed in the panel footer.\n\n### **CSS Properties:**\n - **--zn-panel-basis** - The flex-basis of the panel. Can be set using the basis-px attribute. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
7138
7181
|
"doc-url": "",
|
|
7139
7182
|
"attributes": [
|
|
7140
|
-
{ "name": "
|
|
7141
|
-
{ "name": "
|
|
7142
|
-
{ "name": "
|
|
7143
|
-
{ "name": "
|
|
7144
|
-
|
|
7145
|
-
|
|
7146
|
-
|
|
7147
|
-
"
|
|
7148
|
-
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
|
|
7152
|
-
|
|
7153
|
-
|
|
7154
|
-
|
|
7155
|
-
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
|
|
7159
|
-
|
|
7160
|
-
|
|
7161
|
-
|
|
7162
|
-
|
|
7163
|
-
{ "name": "example", "description": "An example slot." }
|
|
7164
|
-
],
|
|
7165
|
-
"events": [
|
|
7166
|
-
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
7167
|
-
],
|
|
7168
|
-
"js": {
|
|
7169
|
-
"properties": [{ "name": "flush", "type": "boolean" }],
|
|
7170
|
-
"events": [
|
|
7171
|
-
{
|
|
7172
|
-
"name": "zn-event-name",
|
|
7173
|
-
"description": "Emitted as an example."
|
|
7174
|
-
}
|
|
7175
|
-
]
|
|
7176
|
-
}
|
|
7177
|
-
},
|
|
7178
|
-
{
|
|
7179
|
-
"name": "zn-panel",
|
|
7180
|
-
"description": "Panels are versatile containers that provide structure for organizing content with optional headers and footers.\n---\n\n\n### **Slots:**\n - _default_ - The panel's main content.\n- **actions** - Actions displayed in the panel header (buttons, chips, etc).\n- **footer** - Content displayed in the panel footer.\n\n### **CSS Properties:**\n - **--zn-panel-basis** - The flex-basis of the panel. Can be set using the basis-px attribute. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
7181
|
-
"doc-url": "",
|
|
7182
|
-
"attributes": [
|
|
7183
|
-
{ "name": "basis-px", "value": { "type": "number" } },
|
|
7184
|
-
{ "name": "caption", "value": { "type": "string" } },
|
|
7185
|
-
{ "name": "icon", "value": { "type": "string" } },
|
|
7186
|
-
{ "name": "tabbed", "value": { "type": "boolean" } },
|
|
7187
|
-
{ "name": "header-borderless", "value": { "type": "boolean" } },
|
|
7188
|
-
{ "name": "cosmic", "value": { "type": "boolean" } },
|
|
7189
|
-
{ "name": "flush", "value": { "type": "boolean" } },
|
|
7190
|
-
{ "name": "flush-x", "value": { "type": "boolean" } },
|
|
7191
|
-
{ "name": "flush-y", "value": { "type": "boolean" } },
|
|
7192
|
-
{ "name": "flush-footer", "value": { "type": "boolean" } },
|
|
7193
|
-
{ "name": "transparent", "value": { "type": "boolean" } },
|
|
7194
|
-
{ "name": "shadow", "value": { "type": "boolean" } }
|
|
7195
|
-
],
|
|
7196
|
-
"slots": [
|
|
7197
|
-
{ "name": "", "description": "The panel's main content." },
|
|
7198
|
-
{
|
|
7199
|
-
"name": "actions",
|
|
7200
|
-
"description": "Actions displayed in the panel header (buttons, chips, etc)."
|
|
7201
|
-
},
|
|
7202
|
-
{
|
|
7203
|
-
"name": "footer",
|
|
7204
|
-
"description": "Content displayed in the panel footer."
|
|
7205
|
-
}
|
|
7183
|
+
{ "name": "basis-px", "value": { "type": "number" } },
|
|
7184
|
+
{ "name": "caption", "value": { "type": "string" } },
|
|
7185
|
+
{ "name": "icon", "value": { "type": "string" } },
|
|
7186
|
+
{ "name": "tabbed", "value": { "type": "boolean" } },
|
|
7187
|
+
{ "name": "header-borderless", "value": { "type": "boolean" } },
|
|
7188
|
+
{ "name": "cosmic", "value": { "type": "boolean" } },
|
|
7189
|
+
{ "name": "flush", "value": { "type": "boolean" } },
|
|
7190
|
+
{ "name": "flush-x", "value": { "type": "boolean" } },
|
|
7191
|
+
{ "name": "flush-y", "value": { "type": "boolean" } },
|
|
7192
|
+
{ "name": "flush-footer", "value": { "type": "boolean" } },
|
|
7193
|
+
{ "name": "transparent", "value": { "type": "boolean" } },
|
|
7194
|
+
{ "name": "shadow", "value": { "type": "boolean" } }
|
|
7195
|
+
],
|
|
7196
|
+
"slots": [
|
|
7197
|
+
{ "name": "", "description": "The panel's main content." },
|
|
7198
|
+
{
|
|
7199
|
+
"name": "actions",
|
|
7200
|
+
"description": "Actions displayed in the panel header (buttons, chips, etc)."
|
|
7201
|
+
},
|
|
7202
|
+
{
|
|
7203
|
+
"name": "footer",
|
|
7204
|
+
"description": "Content displayed in the panel footer."
|
|
7205
|
+
}
|
|
7206
7206
|
],
|
|
7207
7207
|
"events": [],
|
|
7208
7208
|
"js": {
|
|
@@ -7482,150 +7482,6 @@
|
|
|
7482
7482
|
]
|
|
7483
7483
|
}
|
|
7484
7484
|
},
|
|
7485
|
-
{
|
|
7486
|
-
"name": "zn-preview-frame",
|
|
7487
|
-
"description": "Embeds a live preview iframe and drives the hp-preview postMessage\nprotocol: answers the frame's ready handshake with a config payload fetched\nfrom data-uri, auto-saves watched forms on change, refreshes the preview\nafter each save (its own, or a shell-driven save of a `refresh-on` form),\naccepts a theme payload via setTheme() that is retained and replayed\nafter every ready handshake, and grows the frame to a content height the\nembed reports so the panel scrolls an overflowing page.\n---\n\n\n### **Events:**\n - **zn-error** - Emitted when the preview reports a render error or a save fails.\n\n### **Methods:**\n - **refresh()** - Re-fetches the payload and pushes a fresh config to the preview.\n- **setTheme(theme: _Record<string, unknown>_)** - Pushes a theme payload into the preview. The payload is retained and\nre-posted after every ready handshake, so a frame reload doesn't drop an\nin-progress theme.\n\n### **CSS Properties:**\n - **--zn-preview-frame-dot-spacing** - Spacing of the backdrop dot grid (`backdrop=\"dots\"`). Defaults to 20px. _(default: undefined)_\n- **--zn-preview-frame-dot-opacity** - Opacity of the backdrop dots (`backdrop=\"dots\"`). Defaults to 0.08. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **stage** - The device-width wrapper around the iframe.\n- **iframe** - The preview iframe.\n- **error** - The error overlay.",
|
|
7488
|
-
"doc-url": "",
|
|
7489
|
-
"attributes": [
|
|
7490
|
-
{
|
|
7491
|
-
"name": "src",
|
|
7492
|
-
"description": "URL of the preview shell page (tokened embed URL).",
|
|
7493
|
-
"value": { "type": "string", "default": "''" }
|
|
7494
|
-
},
|
|
7495
|
-
{
|
|
7496
|
-
"name": "frame-origin",
|
|
7497
|
-
"description": "Expected origin of the iframe; all postMessage traffic is checked against it.",
|
|
7498
|
-
"value": { "type": "string", "default": "''" }
|
|
7499
|
-
},
|
|
7500
|
-
{
|
|
7501
|
-
"name": "data-uri",
|
|
7502
|
-
"description": "Endpoint returning the hp-preview:config payload JSON. The console proxy rewrites this attribute to an app-prefixed path for proper fetch resolution.",
|
|
7503
|
-
"value": { "type": "string", "default": "''" }
|
|
7504
|
-
},
|
|
7505
|
-
{
|
|
7506
|
-
"name": "watch",
|
|
7507
|
-
"description": "Selector (resolved against the component's root node) for the forms to watch.\nDefaults to only forms explicitly opted in via a `data-auto-save` attribute —\nunmarked forms keep normal submit behavior and are never intercepted,\nauto-saved, or used to trigger a preview refresh. Override to widen the scope.",
|
|
7508
|
-
"value": { "type": "string", "default": "'form[data-auto-save]'" }
|
|
7509
|
-
},
|
|
7510
|
-
{
|
|
7511
|
-
"name": "refresh-on",
|
|
7512
|
-
"description": "Selector for forms whose saves are left to the shell but should still\nrefresh the preview. These are never intercepted: the shell submits them\n(so its own response handling — alerts, refreshes — runs as normal) and the\npreview re-fetches its config once the shell reports the save complete.\nMatched by delegation on the shell's bubbled `complete` event rather than\nby attaching to the forms themselves, so a save anywhere on the page\nrefreshes the preview — including forms in a different DOM root, e.g. a\npage-level form saved while the preview sits inside a tab panel's shadow\nroot (a page's Template select lives on one tab, its preview on another).\nSet empty to disable.",
|
|
7513
|
-
"value": { "type": "string", "default": "'form'" }
|
|
7514
|
-
},
|
|
7515
|
-
{
|
|
7516
|
-
"name": "debounce",
|
|
7517
|
-
"description": "Debounce in ms between a form change and its auto-save.",
|
|
7518
|
-
"value": { "type": "number", "default": "400" }
|
|
7519
|
-
},
|
|
7520
|
-
{
|
|
7521
|
-
"name": "zoom",
|
|
7522
|
-
"description": "Zooms the previewed page out (0–1]. The frame always fills the panel;\nzoom shrinks the content browser-style, so 0.4 shows the page at 40%\nsize with correspondingly more of it visible. 1 = natural size.\nIgnored when `fill` is set.",
|
|
7523
|
-
"value": { "type": "number", "default": "1" }
|
|
7524
|
-
},
|
|
7525
|
-
{
|
|
7526
|
-
"name": "min-height",
|
|
7527
|
-
"description": "The visible height (in CSS pixels) of the preview panel. Fixed rather\nthan measured, because a measured height would feed back into the\nscaled iframe's layout box and grow unbounded. With `fill` set, this\nbecomes a `min-height` floor instead of the height.",
|
|
7528
|
-
"value": { "type": "number", "default": "480" }
|
|
7529
|
-
},
|
|
7530
|
-
{
|
|
7531
|
-
"name": "fill",
|
|
7532
|
-
"description": "Fills the panel's own column height instead of using a fixed\n`min-height` pixel height — for hosts (like zn-theme-editor) whose\nlayout already stretches the column to match a taller sibling.\n`zoom` is ignored when set: its oversize maths depends on a known\npixel height, which `fill` deliberately doesn't have.",
|
|
7533
|
-
"value": { "type": "boolean", "default": "false" }
|
|
7534
|
-
},
|
|
7535
|
-
{
|
|
7536
|
-
"name": "device",
|
|
7537
|
-
"description": "Constrains and centres the preview to a device width: `desktop` (100%),\n`tablet` (768px) or `mobile` (390px). The iframe element itself is\nnarrowed, so the embedded page's own media queries fire.",
|
|
7538
|
-
"value": { "type": "PreviewFrameDevice", "default": "'desktop'" }
|
|
7539
|
-
},
|
|
7540
|
-
{
|
|
7541
|
-
"name": "backdrop",
|
|
7542
|
-
"description": "Backdrop behind the stage: `dots` (default) is the canvas dot grid; `panel` is a plain `rgb(var(--zn-panel))` fill.",
|
|
7543
|
-
"value": { "type": "'dots' | 'panel'", "default": "'dots'" }
|
|
7544
|
-
},
|
|
7545
|
-
{
|
|
7546
|
-
"name": "interactive",
|
|
7547
|
-
"description": "Lets pointer input through to the embedded page. The preview is inert by\ndefault: clicks never reach the frame, so the previewed page can't be\nnavigated or submitted from inside the preview. Cross-origin content can't\nbe reached from here to cancel its own handlers, so this blocks pointer\ninput entirely — hover goes with it. Scrolling doesn't: an overflowing\npage is scrolled by the panel rather than by the frame (see _contentHeight).\n\nSet, the frame becomes a real viewport instead: it stays the panel's own\nheight and the embed scrolls itself, so there is one scrollbar rather than\na panel scrolling an oversized frame, and the embed's viewport-relative\nlayout (`100vh`, `position: fixed`, sticky headers) sizes to what's on\nscreen. _contentHeight is ignored while this is set.",
|
|
7548
|
-
"value": { "type": "boolean", "default": "false" }
|
|
7549
|
-
}
|
|
7550
|
-
],
|
|
7551
|
-
"events": [
|
|
7552
|
-
{
|
|
7553
|
-
"name": "zn-error",
|
|
7554
|
-
"description": "Emitted when the preview reports a render error or a save fails."
|
|
7555
|
-
}
|
|
7556
|
-
],
|
|
7557
|
-
"js": {
|
|
7558
|
-
"properties": [
|
|
7559
|
-
{
|
|
7560
|
-
"name": "src",
|
|
7561
|
-
"description": "URL of the preview shell page (tokened embed URL).",
|
|
7562
|
-
"type": "string"
|
|
7563
|
-
},
|
|
7564
|
-
{
|
|
7565
|
-
"name": "frameOrigin",
|
|
7566
|
-
"description": "Expected origin of the iframe; all postMessage traffic is checked against it.",
|
|
7567
|
-
"type": "string"
|
|
7568
|
-
},
|
|
7569
|
-
{
|
|
7570
|
-
"name": "dataUri",
|
|
7571
|
-
"description": "Endpoint returning the hp-preview:config payload JSON. The console proxy rewrites this attribute to an app-prefixed path for proper fetch resolution.",
|
|
7572
|
-
"type": "string"
|
|
7573
|
-
},
|
|
7574
|
-
{
|
|
7575
|
-
"name": "watch",
|
|
7576
|
-
"description": "Selector (resolved against the component's root node) for the forms to watch.\nDefaults to only forms explicitly opted in via a `data-auto-save` attribute —\nunmarked forms keep normal submit behavior and are never intercepted,\nauto-saved, or used to trigger a preview refresh. Override to widen the scope.",
|
|
7577
|
-
"type": "string"
|
|
7578
|
-
},
|
|
7579
|
-
{
|
|
7580
|
-
"name": "refreshOn",
|
|
7581
|
-
"description": "Selector for forms whose saves are left to the shell but should still\nrefresh the preview. These are never intercepted: the shell submits them\n(so its own response handling — alerts, refreshes — runs as normal) and the\npreview re-fetches its config once the shell reports the save complete.\nMatched by delegation on the shell's bubbled `complete` event rather than\nby attaching to the forms themselves, so a save anywhere on the page\nrefreshes the preview — including forms in a different DOM root, e.g. a\npage-level form saved while the preview sits inside a tab panel's shadow\nroot (a page's Template select lives on one tab, its preview on another).\nSet empty to disable.",
|
|
7582
|
-
"type": "string"
|
|
7583
|
-
},
|
|
7584
|
-
{
|
|
7585
|
-
"name": "debounce",
|
|
7586
|
-
"description": "Debounce in ms between a form change and its auto-save.",
|
|
7587
|
-
"type": "number"
|
|
7588
|
-
},
|
|
7589
|
-
{
|
|
7590
|
-
"name": "zoom",
|
|
7591
|
-
"description": "Zooms the previewed page out (0–1]. The frame always fills the panel;\nzoom shrinks the content browser-style, so 0.4 shows the page at 40%\nsize with correspondingly more of it visible. 1 = natural size.\nIgnored when `fill` is set.",
|
|
7592
|
-
"type": "number"
|
|
7593
|
-
},
|
|
7594
|
-
{
|
|
7595
|
-
"name": "minHeight",
|
|
7596
|
-
"description": "The visible height (in CSS pixels) of the preview panel. Fixed rather\nthan measured, because a measured height would feed back into the\nscaled iframe's layout box and grow unbounded. With `fill` set, this\nbecomes a `min-height` floor instead of the height.",
|
|
7597
|
-
"type": "number"
|
|
7598
|
-
},
|
|
7599
|
-
{
|
|
7600
|
-
"name": "fill",
|
|
7601
|
-
"description": "Fills the panel's own column height instead of using a fixed\n`min-height` pixel height — for hosts (like zn-theme-editor) whose\nlayout already stretches the column to match a taller sibling.\n`zoom` is ignored when set: its oversize maths depends on a known\npixel height, which `fill` deliberately doesn't have.",
|
|
7602
|
-
"type": "boolean"
|
|
7603
|
-
},
|
|
7604
|
-
{
|
|
7605
|
-
"name": "device",
|
|
7606
|
-
"description": "Constrains and centres the preview to a device width: `desktop` (100%),\n`tablet` (768px) or `mobile` (390px). The iframe element itself is\nnarrowed, so the embedded page's own media queries fire.",
|
|
7607
|
-
"type": "PreviewFrameDevice"
|
|
7608
|
-
},
|
|
7609
|
-
{
|
|
7610
|
-
"name": "backdrop",
|
|
7611
|
-
"description": "Backdrop behind the stage: `dots` (default) is the canvas dot grid; `panel` is a plain `rgb(var(--zn-panel))` fill.",
|
|
7612
|
-
"type": "'dots' | 'panel'"
|
|
7613
|
-
},
|
|
7614
|
-
{
|
|
7615
|
-
"name": "interactive",
|
|
7616
|
-
"description": "Lets pointer input through to the embedded page. The preview is inert by\ndefault: clicks never reach the frame, so the previewed page can't be\nnavigated or submitted from inside the preview. Cross-origin content can't\nbe reached from here to cancel its own handlers, so this blocks pointer\ninput entirely — hover goes with it. Scrolling doesn't: an overflowing\npage is scrolled by the panel rather than by the frame (see _contentHeight).\n\nSet, the frame becomes a real viewport instead: it stays the panel's own\nheight and the embed scrolls itself, so there is one scrollbar rather than\na panel scrolling an oversized frame, and the embed's viewport-relative\nlayout (`100vh`, `position: fixed`, sticky headers) sizes to what's on\nscreen. _contentHeight is ignored while this is set.",
|
|
7617
|
-
"type": "boolean"
|
|
7618
|
-
},
|
|
7619
|
-
{ "name": "frame", "type": "HTMLIFrameElement" }
|
|
7620
|
-
],
|
|
7621
|
-
"events": [
|
|
7622
|
-
{
|
|
7623
|
-
"name": "zn-error",
|
|
7624
|
-
"description": "Emitted when the preview reports a render error or a save fails."
|
|
7625
|
-
}
|
|
7626
|
-
]
|
|
7627
|
-
}
|
|
7628
|
-
},
|
|
7629
7485
|
{
|
|
7630
7486
|
"name": "zn-priority-list",
|
|
7631
7487
|
"description": "A reorderable list where each item receives a numerical priority based on its position. Supports drag-and-drop\nand keyboard reordering. Priority values are submitted as form data via hidden inputs.\n---\n\n\n### **Events:**\n - **zn-change** - Emitted when the order of items changes.\n- **zn-reorder** - Emitted when items are reordered. Call `getPriorityMap()` on the component to get the updated `{ key: string, priority: number }[]` array.\n\n### **Methods:**\n - **getPriorityMap(): _PriorityItem[]_** - Returns the priority map: an array of { key, priority } objects.\n- **checkValidity(): _boolean_** - Checks for validity but does not show a validation message.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity(): _boolean_** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(_message)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The default slot where list items are placed. Each slotted element must have a `value` attribute that uniquely identifies the item. The component automatically assigns slot names to project each item into the correct position. The item's position in the list determines its priority (top = `priority-start`, incrementing).\n- **label** - The component's label. Required for proper accessibility. Alternatively, use the `label` attribute.\n- **label-tooltip** - Used to add text displayed in a tooltip next to the label.\n- **help-text** - Text that describes how to use the component. Alternatively, use the `help-text` attribute.\n\n### **CSS Properties:**\n - **--zn-priority-list-item-gap** - The gap between list items. Defaults to `var(--zn-spacing-2x-small)`. _(default: undefined)_\n- **--zn-priority-list-item-padding** - The padding inside each item. Defaults to `var(--zn-spacing-small) var(--zn-spacing-medium)`. _(default: undefined)_\n- **--zn-priority-list-actions-gap** - The gap between an item's slotted actions. Defaults to `var(--zn-spacing-x-small)`. _(default: undefined)_\n- **--zn-priority-list-handle-color** - The color of the drag handle. Defaults to `var(--zn-color-neutral-500)`. _(default: undefined)_\n- **--zn-priority-list-priority-color** - The color of the priority number. Defaults to `var(--zn-color-neutral-600)`. _(default: undefined)_\n\n### **CSS Parts:**\n - **form-control** - The form control wrapper.\n- **form-control-label** - The label wrapper.\n- **form-control-input** - The input area wrapper.\n- **form-control-help-text** - The help text wrapper.\n- **list** - The list container.\n- **item** - An individual list item row.\n- **drag-handle** - The drag handle icon.\n- **priority** - The priority number badge.\n- **content** - The content area of an item.",
|
|
@@ -7842,6 +7698,150 @@
|
|
|
7842
7698
|
"events": []
|
|
7843
7699
|
}
|
|
7844
7700
|
},
|
|
7701
|
+
{
|
|
7702
|
+
"name": "zn-preview-frame",
|
|
7703
|
+
"description": "Embeds a live preview iframe and drives the hp-preview postMessage\nprotocol: answers the frame's ready handshake with a config payload fetched\nfrom data-uri, auto-saves watched forms on change, refreshes the preview\nafter each save (its own, or a shell-driven save of a `refresh-on` form),\naccepts a theme payload via setTheme() that is retained and replayed\nafter every ready handshake, and grows the frame to a content height the\nembed reports so the panel scrolls an overflowing page.\n---\n\n\n### **Events:**\n - **zn-error** - Emitted when the preview reports a render error or a save fails.\n\n### **Methods:**\n - **refresh()** - Re-fetches the payload and pushes a fresh config to the preview.\n- **setTheme(theme: _Record<string, unknown>_)** - Pushes a theme payload into the preview. The payload is retained and\nre-posted after every ready handshake, so a frame reload doesn't drop an\nin-progress theme.\n\n### **CSS Properties:**\n - **--zn-preview-frame-dot-spacing** - Spacing of the backdrop dot grid (`backdrop=\"dots\"`). Defaults to 20px. _(default: undefined)_\n- **--zn-preview-frame-dot-opacity** - Opacity of the backdrop dots (`backdrop=\"dots\"`). Defaults to 0.08. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **stage** - The device-width wrapper around the iframe.\n- **iframe** - The preview iframe.\n- **error** - The error overlay.",
|
|
7704
|
+
"doc-url": "",
|
|
7705
|
+
"attributes": [
|
|
7706
|
+
{
|
|
7707
|
+
"name": "src",
|
|
7708
|
+
"description": "URL of the preview shell page (tokened embed URL).",
|
|
7709
|
+
"value": { "type": "string", "default": "''" }
|
|
7710
|
+
},
|
|
7711
|
+
{
|
|
7712
|
+
"name": "frame-origin",
|
|
7713
|
+
"description": "Expected origin of the iframe; all postMessage traffic is checked against it.",
|
|
7714
|
+
"value": { "type": "string", "default": "''" }
|
|
7715
|
+
},
|
|
7716
|
+
{
|
|
7717
|
+
"name": "data-uri",
|
|
7718
|
+
"description": "Endpoint returning the hp-preview:config payload JSON. The console proxy rewrites this attribute to an app-prefixed path for proper fetch resolution.",
|
|
7719
|
+
"value": { "type": "string", "default": "''" }
|
|
7720
|
+
},
|
|
7721
|
+
{
|
|
7722
|
+
"name": "watch",
|
|
7723
|
+
"description": "Selector (resolved against the component's root node) for the forms to watch.\nDefaults to only forms explicitly opted in via a `data-auto-save` attribute —\nunmarked forms keep normal submit behavior and are never intercepted,\nauto-saved, or used to trigger a preview refresh. Override to widen the scope.",
|
|
7724
|
+
"value": { "type": "string", "default": "'form[data-auto-save]'" }
|
|
7725
|
+
},
|
|
7726
|
+
{
|
|
7727
|
+
"name": "refresh-on",
|
|
7728
|
+
"description": "Selector for forms whose saves are left to the shell but should still\nrefresh the preview. These are never intercepted: the shell submits them\n(so its own response handling — alerts, refreshes — runs as normal) and the\npreview re-fetches its config once the shell reports the save complete.\nMatched by delegation on the shell's bubbled `complete` event rather than\nby attaching to the forms themselves, so a save anywhere on the page\nrefreshes the preview — including forms in a different DOM root, e.g. a\npage-level form saved while the preview sits inside a tab panel's shadow\nroot (a page's Template select lives on one tab, its preview on another).\nSet empty to disable.",
|
|
7729
|
+
"value": { "type": "string", "default": "'form'" }
|
|
7730
|
+
},
|
|
7731
|
+
{
|
|
7732
|
+
"name": "debounce",
|
|
7733
|
+
"description": "Debounce in ms between a form change and its auto-save.",
|
|
7734
|
+
"value": { "type": "number", "default": "400" }
|
|
7735
|
+
},
|
|
7736
|
+
{
|
|
7737
|
+
"name": "zoom",
|
|
7738
|
+
"description": "Zooms the previewed page out (0–1]. The frame always fills the panel;\nzoom shrinks the content browser-style, so 0.4 shows the page at 40%\nsize with correspondingly more of it visible. 1 = natural size.\nIgnored when `fill` is set.",
|
|
7739
|
+
"value": { "type": "number", "default": "1" }
|
|
7740
|
+
},
|
|
7741
|
+
{
|
|
7742
|
+
"name": "min-height",
|
|
7743
|
+
"description": "The visible height (in CSS pixels) of the preview panel. Fixed rather\nthan measured, because a measured height would feed back into the\nscaled iframe's layout box and grow unbounded. With `fill` set, this\nbecomes a `min-height` floor instead of the height.",
|
|
7744
|
+
"value": { "type": "number", "default": "480" }
|
|
7745
|
+
},
|
|
7746
|
+
{
|
|
7747
|
+
"name": "fill",
|
|
7748
|
+
"description": "Fills the panel's own column height instead of using a fixed\n`min-height` pixel height — for hosts (like zn-theme-editor) whose\nlayout already stretches the column to match a taller sibling.\n`zoom` is ignored when set: its oversize maths depends on a known\npixel height, which `fill` deliberately doesn't have.",
|
|
7749
|
+
"value": { "type": "boolean", "default": "false" }
|
|
7750
|
+
},
|
|
7751
|
+
{
|
|
7752
|
+
"name": "device",
|
|
7753
|
+
"description": "Constrains and centres the preview to a device width: `desktop` (100%),\n`tablet` (768px) or `mobile` (390px). The iframe element itself is\nnarrowed, so the embedded page's own media queries fire.",
|
|
7754
|
+
"value": { "type": "PreviewFrameDevice", "default": "'desktop'" }
|
|
7755
|
+
},
|
|
7756
|
+
{
|
|
7757
|
+
"name": "backdrop",
|
|
7758
|
+
"description": "Backdrop behind the stage: `dots` (default) is the canvas dot grid; `panel` is a plain `rgb(var(--zn-panel))` fill.",
|
|
7759
|
+
"value": { "type": "'dots' | 'panel'", "default": "'dots'" }
|
|
7760
|
+
},
|
|
7761
|
+
{
|
|
7762
|
+
"name": "interactive",
|
|
7763
|
+
"description": "Lets pointer input through to the embedded page. The preview is inert by\ndefault: clicks never reach the frame, so the previewed page can't be\nnavigated or submitted from inside the preview. Cross-origin content can't\nbe reached from here to cancel its own handlers, so this blocks pointer\ninput entirely — hover goes with it. Scrolling doesn't: an overflowing\npage is scrolled by the panel rather than by the frame (see _contentHeight).\n\nSet, the frame becomes a real viewport instead: it stays the panel's own\nheight and the embed scrolls itself, so there is one scrollbar rather than\na panel scrolling an oversized frame, and the embed's viewport-relative\nlayout (`100vh`, `position: fixed`, sticky headers) sizes to what's on\nscreen. _contentHeight is ignored while this is set.",
|
|
7764
|
+
"value": { "type": "boolean", "default": "false" }
|
|
7765
|
+
}
|
|
7766
|
+
],
|
|
7767
|
+
"events": [
|
|
7768
|
+
{
|
|
7769
|
+
"name": "zn-error",
|
|
7770
|
+
"description": "Emitted when the preview reports a render error or a save fails."
|
|
7771
|
+
}
|
|
7772
|
+
],
|
|
7773
|
+
"js": {
|
|
7774
|
+
"properties": [
|
|
7775
|
+
{
|
|
7776
|
+
"name": "src",
|
|
7777
|
+
"description": "URL of the preview shell page (tokened embed URL).",
|
|
7778
|
+
"type": "string"
|
|
7779
|
+
},
|
|
7780
|
+
{
|
|
7781
|
+
"name": "frameOrigin",
|
|
7782
|
+
"description": "Expected origin of the iframe; all postMessage traffic is checked against it.",
|
|
7783
|
+
"type": "string"
|
|
7784
|
+
},
|
|
7785
|
+
{
|
|
7786
|
+
"name": "dataUri",
|
|
7787
|
+
"description": "Endpoint returning the hp-preview:config payload JSON. The console proxy rewrites this attribute to an app-prefixed path for proper fetch resolution.",
|
|
7788
|
+
"type": "string"
|
|
7789
|
+
},
|
|
7790
|
+
{
|
|
7791
|
+
"name": "watch",
|
|
7792
|
+
"description": "Selector (resolved against the component's root node) for the forms to watch.\nDefaults to only forms explicitly opted in via a `data-auto-save` attribute —\nunmarked forms keep normal submit behavior and are never intercepted,\nauto-saved, or used to trigger a preview refresh. Override to widen the scope.",
|
|
7793
|
+
"type": "string"
|
|
7794
|
+
},
|
|
7795
|
+
{
|
|
7796
|
+
"name": "refreshOn",
|
|
7797
|
+
"description": "Selector for forms whose saves are left to the shell but should still\nrefresh the preview. These are never intercepted: the shell submits them\n(so its own response handling — alerts, refreshes — runs as normal) and the\npreview re-fetches its config once the shell reports the save complete.\nMatched by delegation on the shell's bubbled `complete` event rather than\nby attaching to the forms themselves, so a save anywhere on the page\nrefreshes the preview — including forms in a different DOM root, e.g. a\npage-level form saved while the preview sits inside a tab panel's shadow\nroot (a page's Template select lives on one tab, its preview on another).\nSet empty to disable.",
|
|
7798
|
+
"type": "string"
|
|
7799
|
+
},
|
|
7800
|
+
{
|
|
7801
|
+
"name": "debounce",
|
|
7802
|
+
"description": "Debounce in ms between a form change and its auto-save.",
|
|
7803
|
+
"type": "number"
|
|
7804
|
+
},
|
|
7805
|
+
{
|
|
7806
|
+
"name": "zoom",
|
|
7807
|
+
"description": "Zooms the previewed page out (0–1]. The frame always fills the panel;\nzoom shrinks the content browser-style, so 0.4 shows the page at 40%\nsize with correspondingly more of it visible. 1 = natural size.\nIgnored when `fill` is set.",
|
|
7808
|
+
"type": "number"
|
|
7809
|
+
},
|
|
7810
|
+
{
|
|
7811
|
+
"name": "minHeight",
|
|
7812
|
+
"description": "The visible height (in CSS pixels) of the preview panel. Fixed rather\nthan measured, because a measured height would feed back into the\nscaled iframe's layout box and grow unbounded. With `fill` set, this\nbecomes a `min-height` floor instead of the height.",
|
|
7813
|
+
"type": "number"
|
|
7814
|
+
},
|
|
7815
|
+
{
|
|
7816
|
+
"name": "fill",
|
|
7817
|
+
"description": "Fills the panel's own column height instead of using a fixed\n`min-height` pixel height — for hosts (like zn-theme-editor) whose\nlayout already stretches the column to match a taller sibling.\n`zoom` is ignored when set: its oversize maths depends on a known\npixel height, which `fill` deliberately doesn't have.",
|
|
7818
|
+
"type": "boolean"
|
|
7819
|
+
},
|
|
7820
|
+
{
|
|
7821
|
+
"name": "device",
|
|
7822
|
+
"description": "Constrains and centres the preview to a device width: `desktop` (100%),\n`tablet` (768px) or `mobile` (390px). The iframe element itself is\nnarrowed, so the embedded page's own media queries fire.",
|
|
7823
|
+
"type": "PreviewFrameDevice"
|
|
7824
|
+
},
|
|
7825
|
+
{
|
|
7826
|
+
"name": "backdrop",
|
|
7827
|
+
"description": "Backdrop behind the stage: `dots` (default) is the canvas dot grid; `panel` is a plain `rgb(var(--zn-panel))` fill.",
|
|
7828
|
+
"type": "'dots' | 'panel'"
|
|
7829
|
+
},
|
|
7830
|
+
{
|
|
7831
|
+
"name": "interactive",
|
|
7832
|
+
"description": "Lets pointer input through to the embedded page. The preview is inert by\ndefault: clicks never reach the frame, so the previewed page can't be\nnavigated or submitted from inside the preview. Cross-origin content can't\nbe reached from here to cancel its own handlers, so this blocks pointer\ninput entirely — hover goes with it. Scrolling doesn't: an overflowing\npage is scrolled by the panel rather than by the frame (see _contentHeight).\n\nSet, the frame becomes a real viewport instead: it stays the panel's own\nheight and the embed scrolls itself, so there is one scrollbar rather than\na panel scrolling an oversized frame, and the embed's viewport-relative\nlayout (`100vh`, `position: fixed`, sticky headers) sizes to what's on\nscreen. _contentHeight is ignored while this is set.",
|
|
7833
|
+
"type": "boolean"
|
|
7834
|
+
},
|
|
7835
|
+
{ "name": "frame", "type": "HTMLIFrameElement" }
|
|
7836
|
+
],
|
|
7837
|
+
"events": [
|
|
7838
|
+
{
|
|
7839
|
+
"name": "zn-error",
|
|
7840
|
+
"description": "Emitted when the preview reports a render error or a save fails."
|
|
7841
|
+
}
|
|
7842
|
+
]
|
|
7843
|
+
}
|
|
7844
|
+
},
|
|
7845
7845
|
{
|
|
7846
7846
|
"name": "zn-progress-tile",
|
|
7847
7847
|
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
@@ -8476,6 +8476,11 @@
|
|
|
8476
8476
|
"description": "Endpoint listing the Includes this document may embed, as\n`{\"items\":[{id,title,description,scope,keywords,languages,url}]}`. Labels the\nchips rendered for `include::` directives and feeds the include picker.",
|
|
8477
8477
|
"value": { "type": "string", "default": "''" }
|
|
8478
8478
|
},
|
|
8479
|
+
{
|
|
8480
|
+
"name": "link-url",
|
|
8481
|
+
"description": "Endpoint the article link picker searches, as\n`{\"items\":[{ref,kind,title,context,status}]}`. Queried with `?q=<term>` as\nthe author types and with `?refs=a,b` to resolve the references a body\nalready carries.",
|
|
8482
|
+
"value": { "type": "string", "default": "''" }
|
|
8483
|
+
},
|
|
8479
8484
|
{
|
|
8480
8485
|
"name": "allow-raw",
|
|
8481
8486
|
"description": "Adds a toolbar toggle that swaps the block view for the full remarkd source.",
|
|
@@ -8544,6 +8549,11 @@
|
|
|
8544
8549
|
"description": "Endpoint listing the Includes this document may embed, as\n`{\"items\":[{id,title,description,scope,keywords,languages,url}]}`. Labels the\nchips rendered for `include::` directives and feeds the include picker.",
|
|
8545
8550
|
"type": "string"
|
|
8546
8551
|
},
|
|
8552
|
+
{
|
|
8553
|
+
"name": "linkUrl",
|
|
8554
|
+
"description": "Endpoint the article link picker searches, as\n`{\"items\":[{ref,kind,title,context,status}]}`. Queried with `?q=<term>` as\nthe author types and with `?refs=a,b` to resolve the references a body\nalready carries.",
|
|
8555
|
+
"type": "string"
|
|
8556
|
+
},
|
|
8547
8557
|
{
|
|
8548
8558
|
"name": "allowRaw",
|
|
8549
8559
|
"description": "Adds a toolbar toggle that swaps the block view for the full remarkd source.",
|