@kubex/zinc 1.1.107 → 1.1.108
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 +1641 -1641
- package/dist/vscode.html-custom-data.json +52 -52
- package/dist/web-types.json +122 -122
- package/dist/zn.d.ts +7 -0
- package/dist/zn.min.js +192 -192
- package/package.json +1 -1
- package/src/components/dialog/dialog.scss +11 -2
- package/src/components/page/page.test.ts +27 -0
- package/src/components/priority-list/priority-list.component.ts +17 -12
- package/src/components/priority-list/priority-list.test.ts +43 -0
- package/src/components/tabs/tabs.component.ts +5 -0
- package/src/components/tabs/tabs.test.ts +64 -0
- package/src/internal/scroll.ts +25 -0
|
@@ -56,79 +56,6 @@
|
|
|
56
56
|
}
|
|
57
57
|
]
|
|
58
58
|
},
|
|
59
|
-
{
|
|
60
|
-
"kind": "javascript-module",
|
|
61
|
-
"path": "components/action-bar/action-bar.js",
|
|
62
|
-
"declarations": [
|
|
63
|
-
{
|
|
64
|
-
"kind": "class",
|
|
65
|
-
"description": "",
|
|
66
|
-
"name": "ZnActionBar",
|
|
67
|
-
"cssProperties": [
|
|
68
|
-
{
|
|
69
|
-
"description": "An example CSS custom property.",
|
|
70
|
-
"name": "--example"
|
|
71
|
-
}
|
|
72
|
-
],
|
|
73
|
-
"cssParts": [
|
|
74
|
-
{
|
|
75
|
-
"description": "The component's base wrapper.",
|
|
76
|
-
"name": "base"
|
|
77
|
-
}
|
|
78
|
-
],
|
|
79
|
-
"slots": [
|
|
80
|
-
{
|
|
81
|
-
"description": "The default slot.",
|
|
82
|
-
"name": ""
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"description": "An example slot.",
|
|
86
|
-
"name": "example"
|
|
87
|
-
}
|
|
88
|
-
],
|
|
89
|
-
"members": [
|
|
90
|
-
{
|
|
91
|
-
"kind": "field",
|
|
92
|
-
"name": "localize",
|
|
93
|
-
"privacy": "private",
|
|
94
|
-
"readonly": true,
|
|
95
|
-
"default": "new LocalizeController(this)"
|
|
96
|
-
}
|
|
97
|
-
],
|
|
98
|
-
"events": [
|
|
99
|
-
{
|
|
100
|
-
"description": "Emitted as an example.",
|
|
101
|
-
"name": "zn-event-name"
|
|
102
|
-
}
|
|
103
|
-
],
|
|
104
|
-
"superclass": {
|
|
105
|
-
"name": "ZincElement",
|
|
106
|
-
"module": "/src/internal/zinc-element"
|
|
107
|
-
},
|
|
108
|
-
"summary": "Short summary of the component's intended use.",
|
|
109
|
-
"tagNameWithoutPrefix": "action-bar",
|
|
110
|
-
"tagName": "zn-action-bar",
|
|
111
|
-
"customElement": true,
|
|
112
|
-
"jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/action-bar\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-example\n *\n * @event zn-event-name - Emitted as an example.\n *\n * @slot - The default slot.\n * @slot example - An example slot.\n *\n * @csspart base - The component's base wrapper.\n *\n * @cssproperty --example - An example CSS custom property.\n */",
|
|
113
|
-
"documentation": "https://zinc.style/components/action-bar",
|
|
114
|
-
"status": "experimental",
|
|
115
|
-
"since": "1.0",
|
|
116
|
-
"dependencies": [
|
|
117
|
-
"zn-example"
|
|
118
|
-
]
|
|
119
|
-
}
|
|
120
|
-
],
|
|
121
|
-
"exports": [
|
|
122
|
-
{
|
|
123
|
-
"kind": "js",
|
|
124
|
-
"name": "default",
|
|
125
|
-
"declaration": {
|
|
126
|
-
"name": "ZnActionBar",
|
|
127
|
-
"module": "components/action-bar/action-bar.js"
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
]
|
|
131
|
-
},
|
|
132
59
|
{
|
|
133
60
|
"kind": "javascript-module",
|
|
134
61
|
"path": "components/alert/alert.js",
|
|
@@ -323,6 +250,79 @@
|
|
|
323
250
|
}
|
|
324
251
|
]
|
|
325
252
|
},
|
|
253
|
+
{
|
|
254
|
+
"kind": "javascript-module",
|
|
255
|
+
"path": "components/action-bar/action-bar.js",
|
|
256
|
+
"declarations": [
|
|
257
|
+
{
|
|
258
|
+
"kind": "class",
|
|
259
|
+
"description": "",
|
|
260
|
+
"name": "ZnActionBar",
|
|
261
|
+
"cssProperties": [
|
|
262
|
+
{
|
|
263
|
+
"description": "An example CSS custom property.",
|
|
264
|
+
"name": "--example"
|
|
265
|
+
}
|
|
266
|
+
],
|
|
267
|
+
"cssParts": [
|
|
268
|
+
{
|
|
269
|
+
"description": "The component's base wrapper.",
|
|
270
|
+
"name": "base"
|
|
271
|
+
}
|
|
272
|
+
],
|
|
273
|
+
"slots": [
|
|
274
|
+
{
|
|
275
|
+
"description": "The default slot.",
|
|
276
|
+
"name": ""
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"description": "An example slot.",
|
|
280
|
+
"name": "example"
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
"members": [
|
|
284
|
+
{
|
|
285
|
+
"kind": "field",
|
|
286
|
+
"name": "localize",
|
|
287
|
+
"privacy": "private",
|
|
288
|
+
"readonly": true,
|
|
289
|
+
"default": "new LocalizeController(this)"
|
|
290
|
+
}
|
|
291
|
+
],
|
|
292
|
+
"events": [
|
|
293
|
+
{
|
|
294
|
+
"description": "Emitted as an example.",
|
|
295
|
+
"name": "zn-event-name"
|
|
296
|
+
}
|
|
297
|
+
],
|
|
298
|
+
"superclass": {
|
|
299
|
+
"name": "ZincElement",
|
|
300
|
+
"module": "/src/internal/zinc-element"
|
|
301
|
+
},
|
|
302
|
+
"summary": "Short summary of the component's intended use.",
|
|
303
|
+
"tagNameWithoutPrefix": "action-bar",
|
|
304
|
+
"tagName": "zn-action-bar",
|
|
305
|
+
"customElement": true,
|
|
306
|
+
"jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/action-bar\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-example\n *\n * @event zn-event-name - Emitted as an example.\n *\n * @slot - The default slot.\n * @slot example - An example slot.\n *\n * @csspart base - The component's base wrapper.\n *\n * @cssproperty --example - An example CSS custom property.\n */",
|
|
307
|
+
"documentation": "https://zinc.style/components/action-bar",
|
|
308
|
+
"status": "experimental",
|
|
309
|
+
"since": "1.0",
|
|
310
|
+
"dependencies": [
|
|
311
|
+
"zn-example"
|
|
312
|
+
]
|
|
313
|
+
}
|
|
314
|
+
],
|
|
315
|
+
"exports": [
|
|
316
|
+
{
|
|
317
|
+
"kind": "js",
|
|
318
|
+
"name": "default",
|
|
319
|
+
"declaration": {
|
|
320
|
+
"name": "ZnActionBar",
|
|
321
|
+
"module": "components/action-bar/action-bar.js"
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
]
|
|
325
|
+
},
|
|
326
326
|
{
|
|
327
327
|
"kind": "javascript-module",
|
|
328
328
|
"path": "components/animated-button/animated-button.js",
|
|
@@ -31022,7 +31022,7 @@
|
|
|
31022
31022
|
"name": "formControlController",
|
|
31023
31023
|
"privacy": "protected",
|
|
31024
31024
|
"readonly": true,
|
|
31025
|
-
"default": "new FormControlController(this, { value: (control: ZnPriorityList) => { return JSON.stringify(control.getPriorityMap()); }, defaultValue: (control: ZnPriorityList) => control.defaultValue, setValue: (control: ZnPriorityList, value: string) => { if (value)
|
|
31025
|
+
"default": "new FormControlController(this, { value: (control: ZnPriorityList) => { return JSON.stringify(control.getPriorityMap()); }, defaultValue: (control: ZnPriorityList) => control.defaultValue, // A form reset passes defaultValue straight back in, so this has to accept the // key array as well as the serialised value other callers set. setValue: (control: ZnPriorityList, value: string | string[]) => { if (!value || (Array.isArray(value) && value.length === 0)) return; const keys: unknown = Array.isArray(value) ? value : safeParse(value); if (Array.isArray(keys) && keys.every((item: unknown): item is string => typeof item === 'string')) { control.value = keys as string[]; } }, })"
|
|
31026
31026
|
},
|
|
31027
31027
|
{
|
|
31028
31028
|
"kind": "field",
|
|
@@ -33784,133 +33784,99 @@
|
|
|
33784
33784
|
},
|
|
33785
33785
|
{
|
|
33786
33786
|
"kind": "javascript-module",
|
|
33787
|
-
"path": "components/
|
|
33787
|
+
"path": "components/rating/rating.js",
|
|
33788
33788
|
"declarations": [
|
|
33789
33789
|
{
|
|
33790
33790
|
"kind": "class",
|
|
33791
33791
|
"description": "",
|
|
33792
|
-
"name": "
|
|
33792
|
+
"name": "ZnRating",
|
|
33793
33793
|
"cssProperties": [
|
|
33794
33794
|
{
|
|
33795
|
-
"description": "
|
|
33796
|
-
"name": "--
|
|
33797
|
-
}
|
|
33798
|
-
],
|
|
33799
|
-
"cssParts": [
|
|
33800
|
-
{
|
|
33801
|
-
"description": "The component's base wrapper.",
|
|
33802
|
-
"name": "base"
|
|
33803
|
-
},
|
|
33804
|
-
{
|
|
33805
|
-
"description": "The always-visible block-insert and inline-formatting toolbar.",
|
|
33806
|
-
"name": "toolbar"
|
|
33807
|
-
},
|
|
33808
|
-
{
|
|
33809
|
-
"description": "The button that switches between the block view and the raw source view.",
|
|
33810
|
-
"name": "raw-toggle"
|
|
33811
|
-
},
|
|
33812
|
-
{
|
|
33813
|
-
"description": "A rendered block wrapper.",
|
|
33814
|
-
"name": "block"
|
|
33795
|
+
"description": "An example CSS custom property.",
|
|
33796
|
+
"name": "--example"
|
|
33815
33797
|
},
|
|
33816
33798
|
{
|
|
33817
|
-
"description": "The
|
|
33818
|
-
"name": "
|
|
33799
|
+
"description": "The color of the preview value.",
|
|
33800
|
+
"name": "--preview-color"
|
|
33819
33801
|
},
|
|
33820
33802
|
{
|
|
33821
|
-
"description": "
|
|
33822
|
-
"name": "
|
|
33823
|
-
}
|
|
33803
|
+
"description": "The font size of the preview value.",
|
|
33804
|
+
"name": "--preview-size"
|
|
33805
|
+
}
|
|
33806
|
+
],
|
|
33807
|
+
"cssParts": [
|
|
33824
33808
|
{
|
|
33825
|
-
"description": "
|
|
33826
|
-
"name": "
|
|
33809
|
+
"description": "The form control that wraps the symbols and help text.",
|
|
33810
|
+
"name": "form-control"
|
|
33827
33811
|
},
|
|
33828
33812
|
{
|
|
33829
|
-
"description": "The
|
|
33830
|
-
"name": "
|
|
33813
|
+
"description": "The help text's wrapper.",
|
|
33814
|
+
"name": "form-control-help-text"
|
|
33831
33815
|
},
|
|
33832
33816
|
{
|
|
33833
|
-
"description": "The
|
|
33834
|
-
"name": "
|
|
33817
|
+
"description": "The component's base wrapper.",
|
|
33818
|
+
"name": "base"
|
|
33835
33819
|
},
|
|
33836
33820
|
{
|
|
33837
|
-
"description": "The
|
|
33838
|
-
"name": "
|
|
33839
|
-
}
|
|
33821
|
+
"description": "The value shown next to the symbols when `preview` is enabled.",
|
|
33822
|
+
"name": "preview"
|
|
33823
|
+
}
|
|
33824
|
+
],
|
|
33825
|
+
"slots": [
|
|
33840
33826
|
{
|
|
33841
|
-
"description": "The
|
|
33842
|
-
"name": "
|
|
33827
|
+
"description": "The default slot.",
|
|
33828
|
+
"name": ""
|
|
33843
33829
|
},
|
|
33844
33830
|
{
|
|
33845
|
-
"description": "
|
|
33846
|
-
"name": "
|
|
33831
|
+
"description": "An example slot.",
|
|
33832
|
+
"name": "example"
|
|
33847
33833
|
},
|
|
33848
33834
|
{
|
|
33849
|
-
"description": "
|
|
33850
|
-
"name": "
|
|
33835
|
+
"description": "Text that describes how to use the rating. Alternatively, you can use the `help-text` attribute.",
|
|
33836
|
+
"name": "help-text"
|
|
33851
33837
|
}
|
|
33852
33838
|
],
|
|
33853
33839
|
"members": [
|
|
33854
|
-
{
|
|
33855
|
-
"kind": "field",
|
|
33856
|
-
"name": "dependencies",
|
|
33857
|
-
"type": {
|
|
33858
|
-
"text": "object"
|
|
33859
|
-
},
|
|
33860
|
-
"static": true,
|
|
33861
|
-
"default": "{ 'zn-dropdown': ZnDropdown, 'zn-menu': ZnMenu, 'zn-menu-item': ZnMenuItem, 'zn-slash-menu': ZnSlashMenu }"
|
|
33862
|
-
},
|
|
33863
33840
|
{
|
|
33864
33841
|
"kind": "field",
|
|
33865
33842
|
"name": "formControlController",
|
|
33866
33843
|
"privacy": "private",
|
|
33867
33844
|
"readonly": true,
|
|
33868
|
-
"default": "new FormControlController(this, { assumeInteractionOn: ['zn-
|
|
33869
|
-
},
|
|
33870
|
-
{
|
|
33871
|
-
"kind": "field",
|
|
33872
|
-
"name": "slashController",
|
|
33873
|
-
"privacy": "private",
|
|
33874
|
-
"readonly": true,
|
|
33875
|
-
"default": "new SlashMenuController(this, { menu: () => this.mountSlashMenu(), // The menu only belongs in a block that is nothing but the slash command — a // block prefix like \"## \" is not valid remarkd part-way through a line. items: () => this.isSlashBlock() ? SLASH_ITEMS.filter(item => item.action !== 'include' || !!this.includeUrl) : [], onSelect: item => this.handleSlashSelect(item) })"
|
|
33845
|
+
"default": "new FormControlController(this, { assumeInteractionOn: ['zn-blur', 'zn-input'] })"
|
|
33876
33846
|
},
|
|
33877
33847
|
{
|
|
33878
33848
|
"kind": "field",
|
|
33879
|
-
"name": "
|
|
33849
|
+
"name": "hasSlotController",
|
|
33880
33850
|
"privacy": "private",
|
|
33881
33851
|
"readonly": true,
|
|
33882
|
-
"default": "new
|
|
33852
|
+
"default": "new HasSlotController(this, 'help-text')"
|
|
33883
33853
|
},
|
|
33884
33854
|
{
|
|
33885
33855
|
"kind": "field",
|
|
33886
|
-
"name": "
|
|
33856
|
+
"name": "rating",
|
|
33887
33857
|
"type": {
|
|
33888
|
-
"text": "
|
|
33889
|
-
}
|
|
33890
|
-
"privacy": "private",
|
|
33891
|
-
"default": "''"
|
|
33858
|
+
"text": "HTMLElement"
|
|
33859
|
+
}
|
|
33892
33860
|
},
|
|
33893
33861
|
{
|
|
33894
33862
|
"kind": "field",
|
|
33895
|
-
"name": "
|
|
33863
|
+
"name": "symbols",
|
|
33896
33864
|
"type": {
|
|
33897
|
-
"text": "
|
|
33898
|
-
}
|
|
33899
|
-
"privacy": "private",
|
|
33900
|
-
"default": "null"
|
|
33865
|
+
"text": "HTMLElement"
|
|
33866
|
+
}
|
|
33901
33867
|
},
|
|
33902
33868
|
{
|
|
33903
33869
|
"kind": "field",
|
|
33904
|
-
"name": "
|
|
33870
|
+
"name": "hoverValue",
|
|
33905
33871
|
"type": {
|
|
33906
|
-
"text": "
|
|
33872
|
+
"text": "number"
|
|
33907
33873
|
},
|
|
33908
33874
|
"privacy": "private",
|
|
33909
|
-
"default": "
|
|
33875
|
+
"default": "0"
|
|
33910
33876
|
},
|
|
33911
33877
|
{
|
|
33912
33878
|
"kind": "field",
|
|
33913
|
-
"name": "
|
|
33879
|
+
"name": "isHovering",
|
|
33914
33880
|
"type": {
|
|
33915
33881
|
"text": "boolean"
|
|
33916
33882
|
},
|
|
@@ -33919,2182 +33885,2030 @@
|
|
|
33919
33885
|
},
|
|
33920
33886
|
{
|
|
33921
33887
|
"kind": "field",
|
|
33922
|
-
"name": "
|
|
33888
|
+
"name": "label",
|
|
33923
33889
|
"type": {
|
|
33924
|
-
"text": "
|
|
33890
|
+
"text": "string"
|
|
33925
33891
|
},
|
|
33926
|
-
"
|
|
33927
|
-
"default": "false"
|
|
33892
|
+
"attribute": "label"
|
|
33928
33893
|
},
|
|
33929
33894
|
{
|
|
33930
33895
|
"kind": "field",
|
|
33931
|
-
"name": "
|
|
33896
|
+
"name": "helpText",
|
|
33932
33897
|
"type": {
|
|
33933
|
-
"text": "
|
|
33898
|
+
"text": "string"
|
|
33934
33899
|
},
|
|
33935
|
-
"
|
|
33900
|
+
"default": "''",
|
|
33901
|
+
"description": "The rating's help text. If you need to display HTML, use the `help-text` slot instead.",
|
|
33902
|
+
"attribute": "help-text"
|
|
33936
33903
|
},
|
|
33937
33904
|
{
|
|
33938
33905
|
"kind": "field",
|
|
33939
|
-
"name": "
|
|
33906
|
+
"name": "name",
|
|
33940
33907
|
"type": {
|
|
33941
|
-
"text": "
|
|
33908
|
+
"text": "string"
|
|
33942
33909
|
},
|
|
33943
|
-
"
|
|
33910
|
+
"attribute": "name"
|
|
33944
33911
|
},
|
|
33945
33912
|
{
|
|
33946
33913
|
"kind": "field",
|
|
33947
|
-
"name": "
|
|
33914
|
+
"name": "value",
|
|
33948
33915
|
"type": {
|
|
33949
|
-
"text": "
|
|
33916
|
+
"text": "number"
|
|
33950
33917
|
},
|
|
33951
|
-
"
|
|
33952
|
-
"
|
|
33918
|
+
"default": "0",
|
|
33919
|
+
"attribute": "value"
|
|
33953
33920
|
},
|
|
33954
33921
|
{
|
|
33955
33922
|
"kind": "field",
|
|
33956
|
-
"name": "
|
|
33923
|
+
"name": "defaultValue",
|
|
33957
33924
|
"type": {
|
|
33958
|
-
"text": "number
|
|
33925
|
+
"text": "number"
|
|
33959
33926
|
},
|
|
33960
|
-
"
|
|
33961
|
-
"
|
|
33927
|
+
"default": "0",
|
|
33928
|
+
"description": "The default value of the form control. Primarily used for resetting the form control."
|
|
33962
33929
|
},
|
|
33963
33930
|
{
|
|
33964
33931
|
"kind": "field",
|
|
33965
|
-
"name": "
|
|
33932
|
+
"name": "max",
|
|
33966
33933
|
"type": {
|
|
33967
|
-
"text": "
|
|
33934
|
+
"text": "number"
|
|
33968
33935
|
},
|
|
33969
|
-
"default": "
|
|
33970
|
-
"
|
|
33971
|
-
"attribute": "slash-recent-key"
|
|
33936
|
+
"default": "5",
|
|
33937
|
+
"attribute": "max"
|
|
33972
33938
|
},
|
|
33973
33939
|
{
|
|
33974
33940
|
"kind": "field",
|
|
33975
|
-
"name": "
|
|
33941
|
+
"name": "precision",
|
|
33976
33942
|
"type": {
|
|
33977
|
-
"text": "
|
|
33943
|
+
"text": "number"
|
|
33978
33944
|
},
|
|
33979
|
-
"
|
|
33980
|
-
"
|
|
33981
|
-
"description": "Renders the slash menu only once it has been needed."
|
|
33945
|
+
"default": "1",
|
|
33946
|
+
"attribute": "precision"
|
|
33982
33947
|
},
|
|
33983
33948
|
{
|
|
33984
33949
|
"kind": "field",
|
|
33985
|
-
"name": "
|
|
33950
|
+
"name": "readonly",
|
|
33986
33951
|
"type": {
|
|
33987
|
-
"text": "
|
|
33952
|
+
"text": "boolean"
|
|
33988
33953
|
},
|
|
33989
|
-
"
|
|
33990
|
-
"
|
|
33954
|
+
"default": "false",
|
|
33955
|
+
"attribute": "readonly"
|
|
33991
33956
|
},
|
|
33992
33957
|
{
|
|
33993
33958
|
"kind": "field",
|
|
33994
|
-
"name": "
|
|
33959
|
+
"name": "disabled",
|
|
33995
33960
|
"type": {
|
|
33996
|
-
"text": "
|
|
33961
|
+
"text": "boolean"
|
|
33997
33962
|
},
|
|
33998
|
-
"
|
|
33999
|
-
"
|
|
33963
|
+
"default": "false",
|
|
33964
|
+
"attribute": "disabled"
|
|
34000
33965
|
},
|
|
34001
33966
|
{
|
|
34002
33967
|
"kind": "field",
|
|
34003
|
-
"name": "
|
|
33968
|
+
"name": "preview",
|
|
34004
33969
|
"type": {
|
|
34005
|
-
"text": "
|
|
33970
|
+
"text": "boolean"
|
|
34006
33971
|
},
|
|
34007
|
-
"
|
|
34008
|
-
"
|
|
33972
|
+
"default": "false",
|
|
33973
|
+
"description": "Displays the value alongside the symbols, updating live as the pointer moves across them.",
|
|
33974
|
+
"attribute": "preview"
|
|
34009
33975
|
},
|
|
34010
33976
|
{
|
|
34011
33977
|
"kind": "field",
|
|
34012
|
-
"name": "
|
|
33978
|
+
"name": "size",
|
|
34013
33979
|
"type": {
|
|
34014
|
-
"text": "
|
|
33980
|
+
"text": "'small' | 'medium' | 'large'"
|
|
34015
33981
|
},
|
|
34016
|
-
"
|
|
34017
|
-
"
|
|
33982
|
+
"default": "'medium'",
|
|
33983
|
+
"attribute": "size"
|
|
34018
33984
|
},
|
|
34019
33985
|
{
|
|
34020
33986
|
"kind": "field",
|
|
34021
|
-
"name": "
|
|
33987
|
+
"name": "getSymbol",
|
|
34022
33988
|
"type": {
|
|
34023
|
-
"text": "string"
|
|
33989
|
+
"text": "(value: number) => string"
|
|
34024
33990
|
},
|
|
34025
|
-
"
|
|
34026
|
-
"default": "''"
|
|
33991
|
+
"attribute": "getSymbol"
|
|
34027
33992
|
},
|
|
34028
33993
|
{
|
|
34029
33994
|
"kind": "field",
|
|
34030
|
-
"name": "
|
|
34031
|
-
"
|
|
34032
|
-
|
|
34033
|
-
},
|
|
34034
|
-
"privacy": "private",
|
|
34035
|
-
"default": "false"
|
|
33995
|
+
"name": "validity",
|
|
33996
|
+
"description": "Gets the validity state object",
|
|
33997
|
+
"readonly": true
|
|
34036
33998
|
},
|
|
34037
33999
|
{
|
|
34038
34000
|
"kind": "field",
|
|
34039
|
-
"name": "
|
|
34040
|
-
"
|
|
34041
|
-
|
|
34042
|
-
},
|
|
34043
|
-
"privacy": "private",
|
|
34044
|
-
"default": "null"
|
|
34001
|
+
"name": "validationMessage",
|
|
34002
|
+
"description": "Gets the validation message",
|
|
34003
|
+
"readonly": true
|
|
34045
34004
|
},
|
|
34046
34005
|
{
|
|
34047
|
-
"kind": "
|
|
34048
|
-
"name": "
|
|
34049
|
-
"
|
|
34050
|
-
"
|
|
34006
|
+
"kind": "method",
|
|
34007
|
+
"name": "checkValidity",
|
|
34008
|
+
"return": {
|
|
34009
|
+
"type": {
|
|
34010
|
+
"text": "boolean"
|
|
34011
|
+
}
|
|
34051
34012
|
},
|
|
34052
|
-
"
|
|
34053
|
-
"default": "false"
|
|
34013
|
+
"description": "Checks the validity but does not show a validation message. Returns `true` when valid and `false` when invalid."
|
|
34054
34014
|
},
|
|
34055
34015
|
{
|
|
34056
|
-
"kind": "
|
|
34057
|
-
"name": "
|
|
34058
|
-
"
|
|
34059
|
-
"
|
|
34016
|
+
"kind": "method",
|
|
34017
|
+
"name": "getForm",
|
|
34018
|
+
"return": {
|
|
34019
|
+
"type": {
|
|
34020
|
+
"text": "HTMLFormElement | null"
|
|
34021
|
+
}
|
|
34060
34022
|
},
|
|
34061
|
-
"
|
|
34062
|
-
"default": "null"
|
|
34023
|
+
"description": "Gets the associated form, if one exists."
|
|
34063
34024
|
},
|
|
34064
34025
|
{
|
|
34065
|
-
"kind": "
|
|
34066
|
-
"name": "
|
|
34067
|
-
"
|
|
34068
|
-
"text": "string"
|
|
34069
|
-
},
|
|
34070
|
-
"privacy": "private",
|
|
34071
|
-
"default": "''"
|
|
34026
|
+
"kind": "method",
|
|
34027
|
+
"name": "reportValidity",
|
|
34028
|
+
"description": "Checks for validity and shows the browser's validation message if the control is invalid."
|
|
34072
34029
|
},
|
|
34073
34030
|
{
|
|
34074
|
-
"kind": "
|
|
34075
|
-
"name": "
|
|
34076
|
-
"
|
|
34077
|
-
"text": "HTMLElement | null"
|
|
34078
|
-
},
|
|
34079
|
-
"privacy": "private",
|
|
34080
|
-
"default": "null"
|
|
34031
|
+
"kind": "method",
|
|
34032
|
+
"name": "setCustomValidity",
|
|
34033
|
+
"description": "Sets a custom validation message. Pass an empty string to restore validity."
|
|
34081
34034
|
},
|
|
34082
34035
|
{
|
|
34083
|
-
"kind": "
|
|
34084
|
-
"name": "
|
|
34085
|
-
"type": {
|
|
34086
|
-
"text": "number"
|
|
34087
|
-
},
|
|
34036
|
+
"kind": "method",
|
|
34037
|
+
"name": "_roundToPrecision",
|
|
34088
34038
|
"privacy": "private",
|
|
34089
|
-
"
|
|
34090
|
-
|
|
34091
|
-
|
|
34092
|
-
|
|
34093
|
-
"name": "dragStartY",
|
|
34094
|
-
"type": {
|
|
34095
|
-
"text": "number"
|
|
34039
|
+
"return": {
|
|
34040
|
+
"type": {
|
|
34041
|
+
"text": "number"
|
|
34042
|
+
}
|
|
34096
34043
|
},
|
|
34097
|
-
"
|
|
34098
|
-
|
|
34044
|
+
"parameters": [
|
|
34045
|
+
{
|
|
34046
|
+
"name": "value",
|
|
34047
|
+
"type": {
|
|
34048
|
+
"text": "number"
|
|
34049
|
+
}
|
|
34050
|
+
},
|
|
34051
|
+
{
|
|
34052
|
+
"name": "precision",
|
|
34053
|
+
"type": {
|
|
34054
|
+
"text": "number"
|
|
34055
|
+
}
|
|
34056
|
+
}
|
|
34057
|
+
]
|
|
34099
34058
|
},
|
|
34100
34059
|
{
|
|
34101
|
-
"kind": "
|
|
34102
|
-
"name": "
|
|
34103
|
-
"type": {
|
|
34104
|
-
"text": "HTMLElement | null"
|
|
34105
|
-
},
|
|
34060
|
+
"kind": "method",
|
|
34061
|
+
"name": "_getValueFromXCoordinate",
|
|
34106
34062
|
"privacy": "private",
|
|
34107
|
-
"
|
|
34108
|
-
|
|
34109
|
-
|
|
34110
|
-
|
|
34111
|
-
"name": "dragPointerY",
|
|
34112
|
-
"type": {
|
|
34113
|
-
"text": "number"
|
|
34063
|
+
"return": {
|
|
34064
|
+
"type": {
|
|
34065
|
+
"text": "number"
|
|
34066
|
+
}
|
|
34114
34067
|
},
|
|
34115
|
-
"
|
|
34116
|
-
|
|
34068
|
+
"parameters": [
|
|
34069
|
+
{
|
|
34070
|
+
"name": "coordinate",
|
|
34071
|
+
"type": {
|
|
34072
|
+
"text": "number"
|
|
34073
|
+
}
|
|
34074
|
+
}
|
|
34075
|
+
]
|
|
34117
34076
|
},
|
|
34118
34077
|
{
|
|
34119
|
-
"kind": "
|
|
34120
|
-
"name": "
|
|
34121
|
-
"type": {
|
|
34122
|
-
"text": "number | null"
|
|
34123
|
-
},
|
|
34078
|
+
"kind": "method",
|
|
34079
|
+
"name": "_formatValue",
|
|
34124
34080
|
"privacy": "private",
|
|
34125
|
-
"
|
|
34126
|
-
|
|
34127
|
-
|
|
34128
|
-
|
|
34129
|
-
"name": "name",
|
|
34130
|
-
"type": {
|
|
34131
|
-
"text": "string"
|
|
34081
|
+
"return": {
|
|
34082
|
+
"type": {
|
|
34083
|
+
"text": "string"
|
|
34084
|
+
}
|
|
34132
34085
|
},
|
|
34133
|
-
"
|
|
34134
|
-
|
|
34135
|
-
|
|
34136
|
-
|
|
34137
|
-
|
|
34138
|
-
|
|
34139
|
-
|
|
34140
|
-
|
|
34141
|
-
"text": "string"
|
|
34142
|
-
},
|
|
34143
|
-
"default": "''",
|
|
34144
|
-
"description": "The current remarkd source.",
|
|
34145
|
-
"attribute": "value"
|
|
34146
|
-
},
|
|
34147
|
-
{
|
|
34148
|
-
"kind": "field",
|
|
34149
|
-
"name": "defaultValue",
|
|
34150
|
-
"type": {
|
|
34151
|
-
"text": "string"
|
|
34152
|
-
},
|
|
34153
|
-
"default": "''",
|
|
34154
|
-
"description": "The default value — used when resetting the form."
|
|
34155
|
-
},
|
|
34156
|
-
{
|
|
34157
|
-
"kind": "field",
|
|
34158
|
-
"name": "placeholder",
|
|
34159
|
-
"type": {
|
|
34160
|
-
"text": "string"
|
|
34161
|
-
},
|
|
34162
|
-
"default": "'Type something…'",
|
|
34163
|
-
"description": "Placeholder shown when the document is empty.",
|
|
34164
|
-
"attribute": "placeholder"
|
|
34165
|
-
},
|
|
34166
|
-
{
|
|
34167
|
-
"kind": "field",
|
|
34168
|
-
"name": "attachmentUrl",
|
|
34169
|
-
"type": {
|
|
34170
|
-
"text": "string"
|
|
34171
|
-
},
|
|
34172
|
-
"default": "''",
|
|
34173
|
-
"description": "Endpoint for image uploads — required for image support. Posting the file\nmetadata here must return `{uploadPath, uploadUrl}`; the file is then PUT\nto `uploadUrl` and the returned `uploadPath` is embedded as the image URL.",
|
|
34174
|
-
"attribute": "attachment-url"
|
|
34175
|
-
},
|
|
34176
|
-
{
|
|
34177
|
-
"kind": "field",
|
|
34178
|
-
"name": "includeUrl",
|
|
34179
|
-
"type": {
|
|
34180
|
-
"text": "string"
|
|
34181
|
-
},
|
|
34182
|
-
"default": "''",
|
|
34183
|
-
"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.",
|
|
34184
|
-
"attribute": "include-url"
|
|
34185
|
-
},
|
|
34186
|
-
{
|
|
34187
|
-
"kind": "field",
|
|
34188
|
-
"name": "allowRaw",
|
|
34189
|
-
"type": {
|
|
34190
|
-
"text": "boolean"
|
|
34191
|
-
},
|
|
34192
|
-
"default": "false",
|
|
34193
|
-
"description": "Adds a toolbar toggle that swaps the block view for the full remarkd source.",
|
|
34194
|
-
"attribute": "allow-raw",
|
|
34195
|
-
"reflects": true
|
|
34196
|
-
},
|
|
34197
|
-
{
|
|
34198
|
-
"kind": "field",
|
|
34199
|
-
"name": "required",
|
|
34200
|
-
"type": {
|
|
34201
|
-
"text": "boolean"
|
|
34202
|
-
},
|
|
34203
|
-
"default": "false",
|
|
34204
|
-
"description": "Makes the editor required for form submission.",
|
|
34205
|
-
"attribute": "required",
|
|
34206
|
-
"reflects": true
|
|
34207
|
-
},
|
|
34208
|
-
{
|
|
34209
|
-
"kind": "field",
|
|
34210
|
-
"name": "readonly",
|
|
34211
|
-
"type": {
|
|
34212
|
-
"text": "boolean"
|
|
34213
|
-
},
|
|
34214
|
-
"default": "false",
|
|
34215
|
-
"description": "Makes the editor read-only.",
|
|
34216
|
-
"attribute": "readonly",
|
|
34217
|
-
"reflects": true
|
|
34218
|
-
},
|
|
34219
|
-
{
|
|
34220
|
-
"kind": "field",
|
|
34221
|
-
"name": "disabled",
|
|
34222
|
-
"type": {
|
|
34223
|
-
"text": "boolean"
|
|
34224
|
-
},
|
|
34225
|
-
"default": "false",
|
|
34226
|
-
"description": "Disables the editor.",
|
|
34227
|
-
"attribute": "disabled",
|
|
34228
|
-
"reflects": true
|
|
34229
|
-
},
|
|
34230
|
-
{
|
|
34231
|
-
"kind": "field",
|
|
34232
|
-
"name": "validity",
|
|
34233
|
-
"type": {
|
|
34234
|
-
"text": "ValidityState"
|
|
34235
|
-
},
|
|
34236
|
-
"readonly": true
|
|
34237
|
-
},
|
|
34238
|
-
{
|
|
34239
|
-
"kind": "field",
|
|
34240
|
-
"name": "validationMessage",
|
|
34241
|
-
"type": {
|
|
34242
|
-
"text": "string"
|
|
34243
|
-
},
|
|
34244
|
-
"readonly": true
|
|
34245
|
-
},
|
|
34246
|
-
{
|
|
34247
|
-
"kind": "method",
|
|
34248
|
-
"name": "checkValidity",
|
|
34249
|
-
"return": {
|
|
34250
|
-
"type": {
|
|
34251
|
-
"text": "boolean"
|
|
34252
|
-
}
|
|
34253
|
-
}
|
|
34254
|
-
},
|
|
34255
|
-
{
|
|
34256
|
-
"kind": "method",
|
|
34257
|
-
"name": "getForm",
|
|
34258
|
-
"return": {
|
|
34259
|
-
"type": {
|
|
34260
|
-
"text": "HTMLFormElement | null"
|
|
34261
|
-
}
|
|
34262
|
-
}
|
|
34263
|
-
},
|
|
34264
|
-
{
|
|
34265
|
-
"kind": "method",
|
|
34266
|
-
"name": "reportValidity",
|
|
34267
|
-
"return": {
|
|
34268
|
-
"type": {
|
|
34269
|
-
"text": "boolean"
|
|
34270
|
-
}
|
|
34271
|
-
}
|
|
34272
|
-
},
|
|
34273
|
-
{
|
|
34274
|
-
"kind": "method",
|
|
34275
|
-
"name": "setCustomValidity",
|
|
34276
|
-
"return": {
|
|
34277
|
-
"type": {
|
|
34278
|
-
"text": "void"
|
|
34279
|
-
}
|
|
34280
|
-
},
|
|
34281
|
-
"parameters": [
|
|
34282
|
-
{
|
|
34283
|
-
"name": "message",
|
|
34284
|
-
"type": {
|
|
34285
|
-
"text": "string"
|
|
34286
|
-
}
|
|
34287
|
-
}
|
|
34288
|
-
]
|
|
34289
|
-
},
|
|
34290
|
-
{
|
|
34291
|
-
"kind": "method",
|
|
34292
|
-
"name": "focus",
|
|
34293
|
-
"description": "Starts editing the first block, or a new block if the document is empty."
|
|
34294
|
-
},
|
|
34295
|
-
{
|
|
34296
|
-
"kind": "method",
|
|
34297
|
-
"name": "blur",
|
|
34298
|
-
"description": "Commits any in-progress block or raw edit."
|
|
34299
|
-
},
|
|
34300
|
-
{
|
|
34301
|
-
"kind": "method",
|
|
34302
|
-
"name": "handleValueChange"
|
|
34303
|
-
},
|
|
34304
|
-
{
|
|
34305
|
-
"kind": "method",
|
|
34306
|
-
"name": "handleIncludeUrlChange"
|
|
34307
|
-
},
|
|
34308
|
-
{
|
|
34309
|
-
"kind": "method",
|
|
34310
|
-
"name": "splitBlocks",
|
|
34311
|
-
"privacy": "private",
|
|
34312
|
-
"return": {
|
|
34313
|
-
"type": {
|
|
34314
|
-
"text": "string[]"
|
|
34315
|
-
}
|
|
34316
|
-
},
|
|
34317
|
-
"parameters": [
|
|
34318
|
-
{
|
|
34319
|
-
"name": "source",
|
|
34320
|
-
"type": {
|
|
34321
|
-
"text": "string"
|
|
34322
|
-
}
|
|
34323
|
-
}
|
|
34324
|
-
],
|
|
34325
|
-
"description": "Splits remarkd source into blocks on blank lines, keeping fenced /\ndelimited containers (``` ==== !!!! .... ---- ____ **** ////) as single blocks."
|
|
34086
|
+
"parameters": [
|
|
34087
|
+
{
|
|
34088
|
+
"name": "value",
|
|
34089
|
+
"type": {
|
|
34090
|
+
"text": "number"
|
|
34091
|
+
}
|
|
34092
|
+
}
|
|
34093
|
+
]
|
|
34326
34094
|
},
|
|
34327
34095
|
{
|
|
34328
34096
|
"kind": "method",
|
|
34329
|
-
"name": "
|
|
34097
|
+
"name": "_getValueFromMousePosition",
|
|
34330
34098
|
"privacy": "private",
|
|
34331
34099
|
"return": {
|
|
34332
34100
|
"type": {
|
|
34333
|
-
"text": "
|
|
34101
|
+
"text": "number"
|
|
34334
34102
|
}
|
|
34335
34103
|
},
|
|
34336
34104
|
"parameters": [
|
|
34337
34105
|
{
|
|
34338
|
-
"name": "
|
|
34106
|
+
"name": "event",
|
|
34339
34107
|
"type": {
|
|
34340
|
-
"text": "
|
|
34108
|
+
"text": "MouseEvent"
|
|
34341
34109
|
}
|
|
34342
34110
|
}
|
|
34343
34111
|
]
|
|
34344
34112
|
},
|
|
34345
34113
|
{
|
|
34346
34114
|
"kind": "method",
|
|
34347
|
-
"name": "
|
|
34115
|
+
"name": "_getValueFromTouchPosition",
|
|
34348
34116
|
"privacy": "private",
|
|
34349
34117
|
"return": {
|
|
34350
34118
|
"type": {
|
|
34351
|
-
"text": "
|
|
34119
|
+
"text": "number"
|
|
34352
34120
|
}
|
|
34353
34121
|
},
|
|
34354
34122
|
"parameters": [
|
|
34355
34123
|
{
|
|
34356
|
-
"name": "
|
|
34357
|
-
"type": {
|
|
34358
|
-
"text": "string"
|
|
34359
|
-
}
|
|
34360
|
-
},
|
|
34361
|
-
{
|
|
34362
|
-
"name": "fence",
|
|
34124
|
+
"name": "event",
|
|
34363
34125
|
"type": {
|
|
34364
|
-
"text": "
|
|
34126
|
+
"text": "TouchEvent"
|
|
34365
34127
|
}
|
|
34366
34128
|
}
|
|
34367
34129
|
]
|
|
34368
34130
|
},
|
|
34369
34131
|
{
|
|
34370
34132
|
"kind": "method",
|
|
34371
|
-
"name": "
|
|
34133
|
+
"name": "_setValue",
|
|
34372
34134
|
"privacy": "private",
|
|
34373
34135
|
"parameters": [
|
|
34374
34136
|
{
|
|
34375
|
-
"name": "
|
|
34137
|
+
"name": "value",
|
|
34376
34138
|
"type": {
|
|
34377
|
-
"text": "
|
|
34139
|
+
"text": "number"
|
|
34378
34140
|
}
|
|
34379
34141
|
}
|
|
34380
34142
|
]
|
|
34381
34143
|
},
|
|
34382
34144
|
{
|
|
34383
34145
|
"kind": "method",
|
|
34384
|
-
"name": "
|
|
34146
|
+
"name": "_handleClick",
|
|
34385
34147
|
"privacy": "private",
|
|
34386
34148
|
"parameters": [
|
|
34387
34149
|
{
|
|
34388
|
-
"name": "
|
|
34150
|
+
"name": "event",
|
|
34389
34151
|
"type": {
|
|
34390
34152
|
"text": "MouseEvent"
|
|
34391
34153
|
}
|
|
34392
|
-
},
|
|
34393
|
-
{
|
|
34394
|
-
"name": "index",
|
|
34395
|
-
"type": {
|
|
34396
|
-
"text": "number"
|
|
34397
|
-
}
|
|
34398
34154
|
}
|
|
34399
34155
|
]
|
|
34400
34156
|
},
|
|
34401
34157
|
{
|
|
34402
34158
|
"kind": "method",
|
|
34403
|
-
"name": "
|
|
34159
|
+
"name": "_handleMouseEnter",
|
|
34404
34160
|
"privacy": "private",
|
|
34405
|
-
"return": {
|
|
34406
|
-
"type": {
|
|
34407
|
-
"text": "ImageBlockData | null"
|
|
34408
|
-
}
|
|
34409
|
-
},
|
|
34410
34161
|
"parameters": [
|
|
34411
34162
|
{
|
|
34412
|
-
"name": "
|
|
34163
|
+
"name": "event",
|
|
34413
34164
|
"type": {
|
|
34414
|
-
"text": "
|
|
34165
|
+
"text": "MouseEvent"
|
|
34415
34166
|
}
|
|
34416
34167
|
}
|
|
34417
|
-
]
|
|
34418
|
-
"description": "Parses a block that is purely an image (with optional caption/align lines)."
|
|
34168
|
+
]
|
|
34419
34169
|
},
|
|
34420
34170
|
{
|
|
34421
34171
|
"kind": "method",
|
|
34422
|
-
"name": "
|
|
34172
|
+
"name": "_handleMouseMove",
|
|
34423
34173
|
"privacy": "private",
|
|
34424
|
-
"return": {
|
|
34425
|
-
"type": {
|
|
34426
|
-
"text": "IncludeBlockData | null"
|
|
34427
|
-
}
|
|
34428
|
-
},
|
|
34429
34174
|
"parameters": [
|
|
34430
34175
|
{
|
|
34431
|
-
"name": "
|
|
34176
|
+
"name": "event",
|
|
34432
34177
|
"type": {
|
|
34433
|
-
"text": "
|
|
34178
|
+
"text": "MouseEvent"
|
|
34434
34179
|
}
|
|
34435
34180
|
}
|
|
34436
|
-
]
|
|
34437
|
-
"description": "Parses a block that is nothing but an include directive."
|
|
34181
|
+
]
|
|
34438
34182
|
},
|
|
34439
34183
|
{
|
|
34440
34184
|
"kind": "method",
|
|
34441
|
-
"name": "
|
|
34442
|
-
"privacy": "private"
|
|
34443
|
-
"return": {
|
|
34444
|
-
"type": {
|
|
34445
|
-
"text": "string"
|
|
34446
|
-
}
|
|
34447
|
-
},
|
|
34448
|
-
"parameters": [
|
|
34449
|
-
{
|
|
34450
|
-
"name": "data",
|
|
34451
|
-
"type": {
|
|
34452
|
-
"text": "ImageBlockData"
|
|
34453
|
-
}
|
|
34454
|
-
}
|
|
34455
|
-
]
|
|
34185
|
+
"name": "_handleMouseLeave",
|
|
34186
|
+
"privacy": "private"
|
|
34456
34187
|
},
|
|
34457
34188
|
{
|
|
34458
34189
|
"kind": "method",
|
|
34459
|
-
"name": "
|
|
34190
|
+
"name": "_handleTouchStart",
|
|
34460
34191
|
"privacy": "private",
|
|
34461
34192
|
"parameters": [
|
|
34462
34193
|
{
|
|
34463
|
-
"name": "
|
|
34464
|
-
"type": {
|
|
34465
|
-
"text": "number"
|
|
34466
|
-
}
|
|
34467
|
-
},
|
|
34468
|
-
{
|
|
34469
|
-
"name": "checkbox",
|
|
34194
|
+
"name": "event",
|
|
34470
34195
|
"type": {
|
|
34471
|
-
"text": "
|
|
34196
|
+
"text": "TouchEvent"
|
|
34472
34197
|
}
|
|
34473
34198
|
}
|
|
34474
34199
|
]
|
|
34475
34200
|
},
|
|
34476
34201
|
{
|
|
34477
34202
|
"kind": "method",
|
|
34478
|
-
"name": "
|
|
34203
|
+
"name": "_handleTouchMove",
|
|
34479
34204
|
"privacy": "private",
|
|
34480
34205
|
"parameters": [
|
|
34481
34206
|
{
|
|
34482
|
-
"name": "
|
|
34483
|
-
"type": {
|
|
34484
|
-
"text": "number"
|
|
34485
|
-
}
|
|
34486
|
-
},
|
|
34487
|
-
{
|
|
34488
|
-
"name": "draft",
|
|
34489
|
-
"optional": true,
|
|
34490
|
-
"type": {
|
|
34491
|
-
"text": "string"
|
|
34492
|
-
}
|
|
34493
|
-
},
|
|
34494
|
-
{
|
|
34495
|
-
"name": "align",
|
|
34496
|
-
"default": "'nearest'",
|
|
34497
|
-
"type": {
|
|
34498
|
-
"text": "'nearest' | 'center'"
|
|
34499
|
-
}
|
|
34500
|
-
},
|
|
34501
|
-
{
|
|
34502
|
-
"name": "caretOffset",
|
|
34503
|
-
"optional": true,
|
|
34207
|
+
"name": "event",
|
|
34504
34208
|
"type": {
|
|
34505
|
-
"text": "
|
|
34209
|
+
"text": "TouchEvent"
|
|
34506
34210
|
}
|
|
34507
34211
|
}
|
|
34508
34212
|
]
|
|
34509
34213
|
},
|
|
34510
34214
|
{
|
|
34511
34215
|
"kind": "method",
|
|
34512
|
-
"name": "
|
|
34216
|
+
"name": "_handleTouchEnd",
|
|
34513
34217
|
"privacy": "private",
|
|
34514
34218
|
"parameters": [
|
|
34515
34219
|
{
|
|
34516
|
-
"name": "
|
|
34220
|
+
"name": "event",
|
|
34517
34221
|
"type": {
|
|
34518
|
-
"text": "
|
|
34222
|
+
"text": "TouchEvent"
|
|
34519
34223
|
}
|
|
34520
34224
|
}
|
|
34521
34225
|
]
|
|
34522
|
-
}
|
|
34226
|
+
}
|
|
34227
|
+
],
|
|
34228
|
+
"events": [
|
|
34523
34229
|
{
|
|
34524
|
-
"
|
|
34525
|
-
"name": "
|
|
34526
|
-
|
|
34527
|
-
|
|
34230
|
+
"description": "Emitted as an example.",
|
|
34231
|
+
"name": "zn-event-name"
|
|
34232
|
+
}
|
|
34233
|
+
],
|
|
34234
|
+
"attributes": [
|
|
34528
34235
|
{
|
|
34529
|
-
"
|
|
34530
|
-
"
|
|
34531
|
-
|
|
34236
|
+
"name": "label",
|
|
34237
|
+
"type": {
|
|
34238
|
+
"text": "string"
|
|
34239
|
+
},
|
|
34240
|
+
"fieldName": "label"
|
|
34532
34241
|
},
|
|
34533
34242
|
{
|
|
34534
|
-
"
|
|
34535
|
-
"
|
|
34536
|
-
|
|
34243
|
+
"name": "help-text",
|
|
34244
|
+
"type": {
|
|
34245
|
+
"text": "string"
|
|
34246
|
+
},
|
|
34247
|
+
"default": "''",
|
|
34248
|
+
"description": "The rating's help text. If you need to display HTML, use the `help-text` slot instead.",
|
|
34249
|
+
"fieldName": "helpText"
|
|
34537
34250
|
},
|
|
34538
34251
|
{
|
|
34539
|
-
"
|
|
34540
|
-
"
|
|
34541
|
-
|
|
34252
|
+
"name": "name",
|
|
34253
|
+
"type": {
|
|
34254
|
+
"text": "string"
|
|
34255
|
+
},
|
|
34256
|
+
"fieldName": "name"
|
|
34542
34257
|
},
|
|
34543
34258
|
{
|
|
34544
|
-
"
|
|
34545
|
-
"
|
|
34546
|
-
|
|
34259
|
+
"name": "value",
|
|
34260
|
+
"type": {
|
|
34261
|
+
"text": "number"
|
|
34262
|
+
},
|
|
34263
|
+
"default": "0",
|
|
34264
|
+
"fieldName": "value"
|
|
34547
34265
|
},
|
|
34548
34266
|
{
|
|
34549
|
-
"
|
|
34550
|
-
"
|
|
34551
|
-
|
|
34552
|
-
"return": {
|
|
34553
|
-
"type": {
|
|
34554
|
-
"text": "string"
|
|
34555
|
-
}
|
|
34267
|
+
"name": "max",
|
|
34268
|
+
"type": {
|
|
34269
|
+
"text": "number"
|
|
34556
34270
|
},
|
|
34557
|
-
"
|
|
34558
|
-
|
|
34559
|
-
"name": "draft",
|
|
34560
|
-
"type": {
|
|
34561
|
-
"text": "string"
|
|
34562
|
-
}
|
|
34563
|
-
}
|
|
34564
|
-
],
|
|
34565
|
-
"description": "The remarkd chrome the editing block should keep, derived from its first\nline — so a NOTE still looks like a note while its source is edited."
|
|
34271
|
+
"default": "5",
|
|
34272
|
+
"fieldName": "max"
|
|
34566
34273
|
},
|
|
34567
34274
|
{
|
|
34568
|
-
"
|
|
34569
|
-
"
|
|
34570
|
-
|
|
34571
|
-
|
|
34572
|
-
|
|
34573
|
-
|
|
34574
|
-
"default": "'nearest'",
|
|
34575
|
-
"type": {
|
|
34576
|
-
"text": "'nearest' | 'center'"
|
|
34577
|
-
}
|
|
34578
|
-
},
|
|
34579
|
-
{
|
|
34580
|
-
"name": "caretOffset",
|
|
34581
|
-
"optional": true,
|
|
34582
|
-
"type": {
|
|
34583
|
-
"text": "number"
|
|
34584
|
-
}
|
|
34585
|
-
}
|
|
34586
|
-
]
|
|
34275
|
+
"name": "precision",
|
|
34276
|
+
"type": {
|
|
34277
|
+
"text": "number"
|
|
34278
|
+
},
|
|
34279
|
+
"default": "1",
|
|
34280
|
+
"fieldName": "precision"
|
|
34587
34281
|
},
|
|
34588
34282
|
{
|
|
34589
|
-
"
|
|
34590
|
-
"
|
|
34591
|
-
|
|
34592
|
-
|
|
34593
|
-
|
|
34594
|
-
|
|
34595
|
-
"type": {
|
|
34596
|
-
"text": "Element | null | undefined"
|
|
34597
|
-
}
|
|
34598
|
-
},
|
|
34599
|
-
{
|
|
34600
|
-
"name": "align",
|
|
34601
|
-
"default": "'nearest'",
|
|
34602
|
-
"type": {
|
|
34603
|
-
"text": "'nearest' | 'center'"
|
|
34604
|
-
}
|
|
34605
|
-
}
|
|
34606
|
-
],
|
|
34607
|
-
"description": "Scrolls the editor's own body to bring `el` into view. Never `scrollIntoView()` and\nnever `focus()` without preventScroll: both walk every scrollable ancestor, and an\n`overflow: hidden`/`auto` panel around the editor is scrollable too — that shifts a\ncontainer the user never asked to move."
|
|
34283
|
+
"name": "readonly",
|
|
34284
|
+
"type": {
|
|
34285
|
+
"text": "boolean"
|
|
34286
|
+
},
|
|
34287
|
+
"default": "false",
|
|
34288
|
+
"fieldName": "readonly"
|
|
34608
34289
|
},
|
|
34609
34290
|
{
|
|
34610
|
-
"
|
|
34611
|
-
"
|
|
34612
|
-
|
|
34613
|
-
|
|
34614
|
-
|
|
34615
|
-
|
|
34616
|
-
"type": {
|
|
34617
|
-
"text": "string"
|
|
34618
|
-
}
|
|
34619
|
-
},
|
|
34620
|
-
{
|
|
34621
|
-
"name": "align",
|
|
34622
|
-
"default": "'nearest'",
|
|
34623
|
-
"type": {
|
|
34624
|
-
"text": "'nearest' | 'center'"
|
|
34625
|
-
}
|
|
34626
|
-
}
|
|
34627
|
-
]
|
|
34291
|
+
"name": "disabled",
|
|
34292
|
+
"type": {
|
|
34293
|
+
"text": "boolean"
|
|
34294
|
+
},
|
|
34295
|
+
"default": "false",
|
|
34296
|
+
"fieldName": "disabled"
|
|
34628
34297
|
},
|
|
34629
34298
|
{
|
|
34630
|
-
"
|
|
34631
|
-
"
|
|
34632
|
-
|
|
34633
|
-
|
|
34634
|
-
|
|
34635
|
-
|
|
34636
|
-
|
|
34637
|
-
"text": "number"
|
|
34638
|
-
}
|
|
34639
|
-
}
|
|
34640
|
-
],
|
|
34641
|
-
"description": "Centres a block added without opening an editor. An image has no height until it\nloads, so the first pass scrolls against a layout that is still short — the second\npass corrects it once the real dimensions are in."
|
|
34299
|
+
"name": "preview",
|
|
34300
|
+
"type": {
|
|
34301
|
+
"text": "boolean"
|
|
34302
|
+
},
|
|
34303
|
+
"default": "false",
|
|
34304
|
+
"description": "Displays the value alongside the symbols, updating live as the pointer moves across them.",
|
|
34305
|
+
"fieldName": "preview"
|
|
34642
34306
|
},
|
|
34643
34307
|
{
|
|
34644
|
-
"
|
|
34645
|
-
"
|
|
34646
|
-
|
|
34647
|
-
|
|
34648
|
-
|
|
34649
|
-
|
|
34650
|
-
"type": {
|
|
34651
|
-
"text": "number"
|
|
34652
|
-
}
|
|
34653
|
-
},
|
|
34654
|
-
{
|
|
34655
|
-
"name": "content",
|
|
34656
|
-
"type": {
|
|
34657
|
-
"text": "string"
|
|
34658
|
-
}
|
|
34659
|
-
}
|
|
34660
|
-
]
|
|
34308
|
+
"name": "size",
|
|
34309
|
+
"type": {
|
|
34310
|
+
"text": "'small' | 'medium' | 'large'"
|
|
34311
|
+
},
|
|
34312
|
+
"default": "'medium'",
|
|
34313
|
+
"fieldName": "size"
|
|
34661
34314
|
},
|
|
34662
34315
|
{
|
|
34663
|
-
"
|
|
34664
|
-
"
|
|
34665
|
-
|
|
34666
|
-
|
|
34667
|
-
|
|
34668
|
-
|
|
34669
|
-
|
|
34670
|
-
|
|
34671
|
-
|
|
34672
|
-
|
|
34673
|
-
|
|
34674
|
-
|
|
34316
|
+
"name": "getSymbol",
|
|
34317
|
+
"type": {
|
|
34318
|
+
"text": "(value: number) => string"
|
|
34319
|
+
},
|
|
34320
|
+
"fieldName": "getSymbol"
|
|
34321
|
+
}
|
|
34322
|
+
],
|
|
34323
|
+
"superclass": {
|
|
34324
|
+
"name": "ZincElement",
|
|
34325
|
+
"module": "/src/internal/zinc-element"
|
|
34326
|
+
},
|
|
34327
|
+
"summary": "Short summary of the component's intended use.",
|
|
34328
|
+
"tagNameWithoutPrefix": "rating",
|
|
34329
|
+
"tagName": "zn-rating",
|
|
34330
|
+
"customElement": true,
|
|
34331
|
+
"jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/rating\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-example\n *\n * @event zn-event-name - Emitted as an example.\n *\n * @slot - The default slot.\n * @slot example - An example slot.\n * @slot help-text - Text that describes how to use the rating. Alternatively, you can use the `help-text` attribute.\n *\n * @csspart form-control - The form control that wraps the symbols and help text.\n * @csspart form-control-help-text - The help text's wrapper.\n * @csspart base - The component's base wrapper.\n * @csspart preview - The value shown next to the symbols when `preview` is enabled.\n *\n * @cssproperty --example - An example CSS custom property.\n * @cssproperty --preview-color - The color of the preview value.\n * @cssproperty --preview-size - The font size of the preview value.\n */",
|
|
34332
|
+
"documentation": "https://zinc.style/components/rating",
|
|
34333
|
+
"status": "experimental",
|
|
34334
|
+
"since": "1.0",
|
|
34335
|
+
"dependencies": [
|
|
34336
|
+
"zn-example"
|
|
34337
|
+
]
|
|
34338
|
+
}
|
|
34339
|
+
],
|
|
34340
|
+
"exports": [
|
|
34341
|
+
{
|
|
34342
|
+
"kind": "js",
|
|
34343
|
+
"name": "default",
|
|
34344
|
+
"declaration": {
|
|
34345
|
+
"name": "ZnRating",
|
|
34346
|
+
"module": "components/rating/rating.js"
|
|
34347
|
+
}
|
|
34348
|
+
}
|
|
34349
|
+
]
|
|
34350
|
+
},
|
|
34351
|
+
{
|
|
34352
|
+
"kind": "javascript-module",
|
|
34353
|
+
"path": "components/remarkd-editor/remarkd-editor.js",
|
|
34354
|
+
"declarations": [
|
|
34355
|
+
{
|
|
34356
|
+
"kind": "class",
|
|
34357
|
+
"description": "",
|
|
34358
|
+
"name": "ZnRemarkdEditor",
|
|
34359
|
+
"cssProperties": [
|
|
34675
34360
|
{
|
|
34676
|
-
"
|
|
34677
|
-
"name": "
|
|
34678
|
-
|
|
34679
|
-
|
|
34680
|
-
|
|
34681
|
-
"name": "index",
|
|
34682
|
-
"type": {
|
|
34683
|
-
"text": "number"
|
|
34684
|
-
}
|
|
34685
|
-
},
|
|
34686
|
-
{
|
|
34687
|
-
"name": "prefill",
|
|
34688
|
-
"default": "''"
|
|
34689
|
-
},
|
|
34690
|
-
{
|
|
34691
|
-
"name": "caretOffset",
|
|
34692
|
-
"optional": true,
|
|
34693
|
-
"type": {
|
|
34694
|
-
"text": "number"
|
|
34695
|
-
}
|
|
34696
|
-
}
|
|
34697
|
-
],
|
|
34698
|
-
"description": "Inserts a draft block — committed (or dropped, if left empty) on blur."
|
|
34699
|
-
},
|
|
34361
|
+
"description": "The tallest the editor grows before its body scrolls. Defaults to `100dvh`.",
|
|
34362
|
+
"name": "--remarkd-editor-max-height"
|
|
34363
|
+
}
|
|
34364
|
+
],
|
|
34365
|
+
"cssParts": [
|
|
34700
34366
|
{
|
|
34701
|
-
"
|
|
34702
|
-
"name": "
|
|
34703
|
-
"privacy": "private",
|
|
34704
|
-
"description": "Blur handler for the editing textarea. Re-renders that replace the\nfocused textarea (e.g. Shift+Enter committing and opening the next\nblock) fire blur mid-transition — `suppressBlurCommit` masks those."
|
|
34367
|
+
"description": "The component's base wrapper.",
|
|
34368
|
+
"name": "base"
|
|
34705
34369
|
},
|
|
34706
34370
|
{
|
|
34707
|
-
"
|
|
34708
|
-
"name": "
|
|
34709
|
-
"privacy": "private",
|
|
34710
|
-
"description": "Commits the in-progress edit; returns the index after the committed parts."
|
|
34371
|
+
"description": "The always-visible block-insert and inline-formatting toolbar.",
|
|
34372
|
+
"name": "toolbar"
|
|
34711
34373
|
},
|
|
34712
34374
|
{
|
|
34713
|
-
"
|
|
34714
|
-
"name": "
|
|
34715
|
-
"privacy": "private"
|
|
34375
|
+
"description": "The button that switches between the block view and the raw source view.",
|
|
34376
|
+
"name": "raw-toggle"
|
|
34716
34377
|
},
|
|
34717
34378
|
{
|
|
34718
|
-
"
|
|
34719
|
-
"name": "
|
|
34720
|
-
"privacy": "private"
|
|
34379
|
+
"description": "A rendered block wrapper.",
|
|
34380
|
+
"name": "block"
|
|
34721
34381
|
},
|
|
34722
34382
|
{
|
|
34723
|
-
"
|
|
34724
|
-
"name": "
|
|
34725
|
-
"privacy": "private",
|
|
34726
|
-
"return": {
|
|
34727
|
-
"type": {
|
|
34728
|
-
"text": "boolean"
|
|
34729
|
-
}
|
|
34730
|
-
},
|
|
34731
|
-
"description": "Whether the block being edited is nothing but the slash command."
|
|
34383
|
+
"description": "The rendered remarkd output of a block.",
|
|
34384
|
+
"name": "rendered"
|
|
34732
34385
|
},
|
|
34733
34386
|
{
|
|
34734
|
-
"
|
|
34735
|
-
"name": "
|
|
34736
|
-
"privacy": "private",
|
|
34737
|
-
"return": {
|
|
34738
|
-
"type": {
|
|
34739
|
-
"text": "Promise<ZnSlashMenu | null>"
|
|
34740
|
-
}
|
|
34741
|
-
}
|
|
34387
|
+
"description": "A labelled wrapper for an ifdef/ifndef/ifeval/iftrue/iffalse/ifempty/ifnempty range.",
|
|
34388
|
+
"name": "conditional"
|
|
34742
34389
|
},
|
|
34743
34390
|
{
|
|
34744
|
-
"
|
|
34745
|
-
"name": "
|
|
34746
|
-
"privacy": "private",
|
|
34747
|
-
"return": {
|
|
34748
|
-
"type": {
|
|
34749
|
-
"text": "boolean"
|
|
34750
|
-
}
|
|
34751
|
-
},
|
|
34752
|
-
"parameters": [
|
|
34753
|
-
{
|
|
34754
|
-
"name": "item",
|
|
34755
|
-
"type": {
|
|
34756
|
-
"text": "SlashMenuItem"
|
|
34757
|
-
}
|
|
34758
|
-
}
|
|
34759
|
-
],
|
|
34760
|
-
"description": "Returns false for items the controller should not insert text for."
|
|
34391
|
+
"description": "A chip rendered for a document attribute, title, or bracket line.",
|
|
34392
|
+
"name": "variable"
|
|
34761
34393
|
},
|
|
34762
34394
|
{
|
|
34763
|
-
"
|
|
34764
|
-
"name": "
|
|
34765
|
-
"privacy": "private"
|
|
34395
|
+
"description": "The textarea shown while editing a block.",
|
|
34396
|
+
"name": "input"
|
|
34766
34397
|
},
|
|
34767
34398
|
{
|
|
34768
|
-
"
|
|
34769
|
-
"name": "
|
|
34770
|
-
"privacy": "private"
|
|
34399
|
+
"description": "The full-document textarea shown in raw source mode.",
|
|
34400
|
+
"name": "raw"
|
|
34771
34401
|
},
|
|
34772
34402
|
{
|
|
34773
|
-
"
|
|
34774
|
-
"name": "
|
|
34775
|
-
"privacy": "private"
|
|
34403
|
+
"description": "The `zn-slash-menu` opened by typing \"/\" in an empty block.",
|
|
34404
|
+
"name": "slash-menu"
|
|
34776
34405
|
},
|
|
34777
34406
|
{
|
|
34778
|
-
"
|
|
34779
|
-
"name": "
|
|
34780
|
-
"privacy": "private",
|
|
34781
|
-
"return": {
|
|
34782
|
-
"type": {
|
|
34783
|
-
"text": "number"
|
|
34784
|
-
}
|
|
34785
|
-
},
|
|
34786
|
-
"parameters": [
|
|
34787
|
-
{
|
|
34788
|
-
"name": "y",
|
|
34789
|
-
"type": {
|
|
34790
|
-
"text": "number"
|
|
34791
|
-
}
|
|
34792
|
-
}
|
|
34793
|
-
],
|
|
34794
|
-
"description": "The insertion index a drop at `y` maps to, from the rendered block positions."
|
|
34407
|
+
"description": "The caption / alignment / size panel shown when an image block is clicked.",
|
|
34408
|
+
"name": "image-controls"
|
|
34795
34409
|
},
|
|
34796
34410
|
{
|
|
34797
|
-
"
|
|
34798
|
-
"name": "
|
|
34799
|
-
"privacy": "private"
|
|
34411
|
+
"description": "The chip rendered in place of an `include::` directive.",
|
|
34412
|
+
"name": "include"
|
|
34800
34413
|
},
|
|
34414
|
+
{
|
|
34415
|
+
"description": "The inline Include picker opened from the toolbar or \"/include\".",
|
|
34416
|
+
"name": "include-picker"
|
|
34417
|
+
}
|
|
34418
|
+
],
|
|
34419
|
+
"members": [
|
|
34801
34420
|
{
|
|
34802
34421
|
"kind": "field",
|
|
34803
|
-
"name": "
|
|
34804
|
-
"
|
|
34422
|
+
"name": "dependencies",
|
|
34423
|
+
"type": {
|
|
34424
|
+
"text": "object"
|
|
34425
|
+
},
|
|
34426
|
+
"static": true,
|
|
34427
|
+
"default": "{ 'zn-dropdown': ZnDropdown, 'zn-menu': ZnMenu, 'zn-menu-item': ZnMenuItem, 'zn-slash-menu': ZnSlashMenu }"
|
|
34805
34428
|
},
|
|
34806
34429
|
{
|
|
34807
34430
|
"kind": "field",
|
|
34808
|
-
"name": "
|
|
34431
|
+
"name": "formControlController",
|
|
34809
34432
|
"privacy": "private",
|
|
34810
|
-
"
|
|
34433
|
+
"readonly": true,
|
|
34434
|
+
"default": "new FormControlController(this, { assumeInteractionOn: ['zn-input', 'zn-change'], })"
|
|
34811
34435
|
},
|
|
34812
34436
|
{
|
|
34813
|
-
"kind": "
|
|
34814
|
-
"name": "
|
|
34437
|
+
"kind": "field",
|
|
34438
|
+
"name": "slashController",
|
|
34815
34439
|
"privacy": "private",
|
|
34816
|
-
"
|
|
34817
|
-
|
|
34818
|
-
"text": "boolean"
|
|
34819
|
-
}
|
|
34820
|
-
},
|
|
34821
|
-
"description": "Scrolls the editor body, falling through to the page once the body is at its limit."
|
|
34440
|
+
"readonly": true,
|
|
34441
|
+
"default": "new SlashMenuController(this, { menu: () => this.mountSlashMenu(), // The menu only belongs in a block that is nothing but the slash command — a // block prefix like \"## \" is not valid remarkd part-way through a line. items: () => this.isSlashBlock() ? SLASH_ITEMS.filter(item => item.action !== 'include' || !!this.includeUrl) : [], onSelect: item => this.handleSlashSelect(item) })"
|
|
34822
34442
|
},
|
|
34823
34443
|
{
|
|
34824
|
-
"kind": "
|
|
34825
|
-
"name": "
|
|
34444
|
+
"kind": "field",
|
|
34445
|
+
"name": "toolbarOverflow",
|
|
34826
34446
|
"privacy": "private",
|
|
34827
|
-
"
|
|
34828
|
-
|
|
34829
|
-
"text": "number"
|
|
34830
|
-
}
|
|
34831
|
-
},
|
|
34832
|
-
"parameters": [
|
|
34833
|
-
{
|
|
34834
|
-
"name": "top",
|
|
34835
|
-
"type": {
|
|
34836
|
-
"text": "number"
|
|
34837
|
-
}
|
|
34838
|
-
},
|
|
34839
|
-
{
|
|
34840
|
-
"name": "bottom",
|
|
34841
|
-
"type": {
|
|
34842
|
-
"text": "number"
|
|
34843
|
-
}
|
|
34844
|
-
}
|
|
34845
|
-
],
|
|
34846
|
-
"description": "Scroll step for this frame: nothing until the pointer is within `edge` of a boundary."
|
|
34447
|
+
"readonly": true,
|
|
34448
|
+
"default": "new ToolbarOverflowController(this, { groups: () => [...(this.shadowRoot?.querySelectorAll<HTMLElement>('.toolbar__group') ?? [])], container: () => this.shadowRoot?.querySelector<HTMLElement>('.remarkd-editor__toolbar'), })"
|
|
34847
34449
|
},
|
|
34848
34450
|
{
|
|
34849
34451
|
"kind": "field",
|
|
34850
|
-
"name": "
|
|
34851
|
-
"
|
|
34452
|
+
"name": "editingDraft",
|
|
34453
|
+
"type": {
|
|
34454
|
+
"text": "string"
|
|
34455
|
+
},
|
|
34456
|
+
"privacy": "private",
|
|
34457
|
+
"default": "''"
|
|
34852
34458
|
},
|
|
34853
34459
|
{
|
|
34854
34460
|
"kind": "field",
|
|
34855
|
-
"name": "
|
|
34856
|
-
"
|
|
34857
|
-
|
|
34858
|
-
|
|
34859
|
-
"kind": "method",
|
|
34860
|
-
"name": "createDragGhost",
|
|
34461
|
+
"name": "includeRequest",
|
|
34462
|
+
"type": {
|
|
34463
|
+
"text": "Promise<IncludeOption[]> | null"
|
|
34464
|
+
},
|
|
34861
34465
|
"privacy": "private",
|
|
34862
|
-
"
|
|
34863
|
-
{
|
|
34864
|
-
"name": "index",
|
|
34865
|
-
"type": {
|
|
34866
|
-
"text": "number"
|
|
34867
|
-
}
|
|
34868
|
-
}
|
|
34869
|
-
]
|
|
34466
|
+
"default": "null"
|
|
34870
34467
|
},
|
|
34871
34468
|
{
|
|
34872
|
-
"kind": "
|
|
34873
|
-
"name": "
|
|
34469
|
+
"kind": "field",
|
|
34470
|
+
"name": "rawEntryValue",
|
|
34471
|
+
"type": {
|
|
34472
|
+
"text": "string"
|
|
34473
|
+
},
|
|
34874
34474
|
"privacy": "private",
|
|
34875
|
-
"
|
|
34876
|
-
{
|
|
34877
|
-
"name": "x",
|
|
34878
|
-
"type": {
|
|
34879
|
-
"text": "number"
|
|
34880
|
-
}
|
|
34881
|
-
},
|
|
34882
|
-
{
|
|
34883
|
-
"name": "y",
|
|
34884
|
-
"type": {
|
|
34885
|
-
"text": "number"
|
|
34886
|
-
}
|
|
34887
|
-
}
|
|
34888
|
-
]
|
|
34475
|
+
"default": "''"
|
|
34889
34476
|
},
|
|
34890
34477
|
{
|
|
34891
|
-
"kind": "
|
|
34892
|
-
"name": "
|
|
34478
|
+
"kind": "field",
|
|
34479
|
+
"name": "suppressValueSync",
|
|
34480
|
+
"type": {
|
|
34481
|
+
"text": "boolean"
|
|
34482
|
+
},
|
|
34893
34483
|
"privacy": "private",
|
|
34894
|
-
"
|
|
34895
|
-
{
|
|
34896
|
-
"name": "index",
|
|
34897
|
-
"type": {
|
|
34898
|
-
"text": "number"
|
|
34899
|
-
}
|
|
34900
|
-
}
|
|
34901
|
-
]
|
|
34484
|
+
"default": "false"
|
|
34902
34485
|
},
|
|
34903
34486
|
{
|
|
34904
|
-
"kind": "
|
|
34905
|
-
"name": "
|
|
34487
|
+
"kind": "field",
|
|
34488
|
+
"name": "suppressBlurCommit",
|
|
34489
|
+
"type": {
|
|
34490
|
+
"text": "boolean"
|
|
34491
|
+
},
|
|
34906
34492
|
"privacy": "private",
|
|
34907
|
-
"
|
|
34908
|
-
{
|
|
34909
|
-
"name": "index",
|
|
34910
|
-
"type": {
|
|
34911
|
-
"text": "number"
|
|
34912
|
-
}
|
|
34913
|
-
}
|
|
34914
|
-
]
|
|
34493
|
+
"default": "false"
|
|
34915
34494
|
},
|
|
34916
34495
|
{
|
|
34917
34496
|
"kind": "field",
|
|
34918
|
-
"name": "
|
|
34497
|
+
"name": "validationInput",
|
|
34498
|
+
"type": {
|
|
34499
|
+
"text": "HTMLTextAreaElement"
|
|
34500
|
+
},
|
|
34919
34501
|
"privacy": "private"
|
|
34920
34502
|
},
|
|
34921
|
-
{
|
|
34922
|
-
"kind": "method",
|
|
34923
|
-
"name": "insertInclude",
|
|
34924
|
-
"privacy": "private",
|
|
34925
|
-
"parameters": [
|
|
34926
|
-
{
|
|
34927
|
-
"name": "item",
|
|
34928
|
-
"type": {
|
|
34929
|
-
"text": "IncludeOption"
|
|
34930
|
-
}
|
|
34931
|
-
}
|
|
34932
|
-
]
|
|
34933
|
-
},
|
|
34934
34503
|
{
|
|
34935
34504
|
"kind": "field",
|
|
34936
|
-
"name": "
|
|
34505
|
+
"name": "slashMenuElement",
|
|
34506
|
+
"type": {
|
|
34507
|
+
"text": "ZnSlashMenu | null"
|
|
34508
|
+
},
|
|
34937
34509
|
"privacy": "private"
|
|
34938
34510
|
},
|
|
34939
34511
|
{
|
|
34940
34512
|
"kind": "field",
|
|
34941
|
-
"name": "
|
|
34942
|
-
"
|
|
34513
|
+
"name": "blocks",
|
|
34514
|
+
"type": {
|
|
34515
|
+
"text": "string[]"
|
|
34516
|
+
},
|
|
34517
|
+
"privacy": "private",
|
|
34518
|
+
"default": "[]"
|
|
34943
34519
|
},
|
|
34944
34520
|
{
|
|
34945
|
-
"kind": "
|
|
34946
|
-
"name": "
|
|
34521
|
+
"kind": "field",
|
|
34522
|
+
"name": "editingIndex",
|
|
34523
|
+
"type": {
|
|
34524
|
+
"text": "number | null"
|
|
34525
|
+
},
|
|
34947
34526
|
"privacy": "private",
|
|
34948
|
-
"
|
|
34949
|
-
{
|
|
34950
|
-
"name": "file",
|
|
34951
|
-
"type": {
|
|
34952
|
-
"text": "File"
|
|
34953
|
-
}
|
|
34954
|
-
},
|
|
34955
|
-
{
|
|
34956
|
-
"name": "index",
|
|
34957
|
-
"type": {
|
|
34958
|
-
"text": "number"
|
|
34959
|
-
}
|
|
34960
|
-
}
|
|
34961
|
-
]
|
|
34527
|
+
"default": "null"
|
|
34962
34528
|
},
|
|
34963
34529
|
{
|
|
34964
|
-
"kind": "
|
|
34965
|
-
"name": "
|
|
34966
|
-
"
|
|
34967
|
-
|
|
34968
|
-
"type": {
|
|
34969
|
-
"text": "Promise<string>"
|
|
34970
|
-
}
|
|
34530
|
+
"kind": "field",
|
|
34531
|
+
"name": "slashRecentKey",
|
|
34532
|
+
"type": {
|
|
34533
|
+
"text": "string"
|
|
34971
34534
|
},
|
|
34972
|
-
"
|
|
34973
|
-
|
|
34974
|
-
|
|
34975
|
-
"type": {
|
|
34976
|
-
"text": "File"
|
|
34977
|
-
}
|
|
34978
|
-
}
|
|
34979
|
-
]
|
|
34535
|
+
"default": "''",
|
|
34536
|
+
"description": "Lists the blocks most recently inserted here above the rest of the slash menu, remembered in\n`localStorage` under this key. Leave unset to offer no recently used section.",
|
|
34537
|
+
"attribute": "slash-recent-key"
|
|
34980
34538
|
},
|
|
34981
34539
|
{
|
|
34982
|
-
"kind": "
|
|
34983
|
-
"name": "
|
|
34984
|
-
"
|
|
34985
|
-
|
|
34986
|
-
"type": {
|
|
34987
|
-
"text": "string"
|
|
34988
|
-
}
|
|
34540
|
+
"kind": "field",
|
|
34541
|
+
"name": "hasSlashMenu",
|
|
34542
|
+
"type": {
|
|
34543
|
+
"text": "boolean"
|
|
34989
34544
|
},
|
|
34990
|
-
"
|
|
34991
|
-
|
|
34992
|
-
|
|
34993
|
-
"type": {
|
|
34994
|
-
"text": "string"
|
|
34995
|
-
}
|
|
34996
|
-
}
|
|
34997
|
-
],
|
|
34998
|
-
"description": "Resolves an app-relative path the way the console's pagelet handler does:\nan app fragment's URLs sit under the app base, and the console puts the app's\n`gaid` on the host element. Links rendered here live in the shadow root,\nwhere a click retargets to the host, so that handler never sees them — the\nhref has to carry the base itself."
|
|
34545
|
+
"privacy": "private",
|
|
34546
|
+
"default": "false",
|
|
34547
|
+
"description": "Renders the slash menu only once it has been needed."
|
|
34999
34548
|
},
|
|
35000
34549
|
{
|
|
35001
|
-
"kind": "
|
|
35002
|
-
"name": "
|
|
34550
|
+
"kind": "field",
|
|
34551
|
+
"name": "imagePickerIndex",
|
|
34552
|
+
"type": {
|
|
34553
|
+
"text": "number | null"
|
|
34554
|
+
},
|
|
35003
34555
|
"privacy": "private",
|
|
35004
|
-
"
|
|
35005
|
-
"type": {
|
|
35006
|
-
"text": "boolean"
|
|
35007
|
-
}
|
|
35008
|
-
}
|
|
34556
|
+
"default": "null"
|
|
35009
34557
|
},
|
|
35010
34558
|
{
|
|
35011
|
-
"kind": "
|
|
35012
|
-
"name": "
|
|
35013
|
-
"
|
|
35014
|
-
|
|
35015
|
-
"type": {
|
|
35016
|
-
"text": "Promise<IncludeOption[]>"
|
|
35017
|
-
}
|
|
34559
|
+
"kind": "field",
|
|
34560
|
+
"name": "imageEdit",
|
|
34561
|
+
"type": {
|
|
34562
|
+
"text": "ImageBlockData | null"
|
|
35018
34563
|
},
|
|
35019
|
-
"
|
|
34564
|
+
"privacy": "private",
|
|
34565
|
+
"default": "null"
|
|
35020
34566
|
},
|
|
35021
34567
|
{
|
|
35022
|
-
"kind": "
|
|
35023
|
-
"name": "
|
|
34568
|
+
"kind": "field",
|
|
34569
|
+
"name": "dropIndicator",
|
|
34570
|
+
"type": {
|
|
34571
|
+
"text": "number | null"
|
|
34572
|
+
},
|
|
35024
34573
|
"privacy": "private",
|
|
35025
|
-
"
|
|
35026
|
-
{
|
|
35027
|
-
"name": "input",
|
|
35028
|
-
"type": {
|
|
35029
|
-
"text": "HTMLTextAreaElement"
|
|
35030
|
-
}
|
|
35031
|
-
}
|
|
35032
|
-
]
|
|
34574
|
+
"default": "null"
|
|
35033
34575
|
},
|
|
35034
34576
|
{
|
|
35035
|
-
"kind": "
|
|
35036
|
-
"name": "
|
|
34577
|
+
"kind": "field",
|
|
34578
|
+
"name": "dragIndex",
|
|
34579
|
+
"type": {
|
|
34580
|
+
"text": "number | null"
|
|
34581
|
+
},
|
|
35037
34582
|
"privacy": "private",
|
|
35038
|
-
"
|
|
35039
|
-
{
|
|
35040
|
-
"name": "mark",
|
|
35041
|
-
"type": {
|
|
35042
|
-
"text": "InlineMark"
|
|
35043
|
-
}
|
|
35044
|
-
}
|
|
35045
|
-
],
|
|
35046
|
-
"description": "Applies an inline mark to the open block's textarea: wraps the selection, toggles the\nmark off when it is already wrapped, or inserts a selected placeholder when there is\nno selection. Goes through `editingDraft` so `zn-input` still fires."
|
|
34583
|
+
"default": "null"
|
|
35047
34584
|
},
|
|
35048
34585
|
{
|
|
35049
34586
|
"kind": "field",
|
|
35050
|
-
"name": "
|
|
35051
|
-
"
|
|
34587
|
+
"name": "editShell",
|
|
34588
|
+
"type": {
|
|
34589
|
+
"text": "string"
|
|
34590
|
+
},
|
|
34591
|
+
"privacy": "private",
|
|
34592
|
+
"default": "''"
|
|
35052
34593
|
},
|
|
35053
34594
|
{
|
|
35054
|
-
"kind": "
|
|
35055
|
-
"name": "
|
|
35056
|
-
"
|
|
34595
|
+
"kind": "field",
|
|
34596
|
+
"name": "rawMode",
|
|
34597
|
+
"type": {
|
|
34598
|
+
"text": "boolean"
|
|
34599
|
+
},
|
|
34600
|
+
"privacy": "private",
|
|
34601
|
+
"default": "false"
|
|
35057
34602
|
},
|
|
35058
34603
|
{
|
|
35059
34604
|
"kind": "field",
|
|
35060
|
-
"name": "
|
|
34605
|
+
"name": "includeOptions",
|
|
34606
|
+
"type": {
|
|
34607
|
+
"text": "IncludeOption[] | null"
|
|
34608
|
+
},
|
|
35061
34609
|
"privacy": "private",
|
|
35062
|
-
"
|
|
34610
|
+
"default": "null"
|
|
35063
34611
|
},
|
|
35064
34612
|
{
|
|
35065
34613
|
"kind": "field",
|
|
35066
|
-
"name": "
|
|
34614
|
+
"name": "includeLoadFailed",
|
|
34615
|
+
"type": {
|
|
34616
|
+
"text": "boolean"
|
|
34617
|
+
},
|
|
35067
34618
|
"privacy": "private",
|
|
35068
|
-
"
|
|
34619
|
+
"default": "false"
|
|
35069
34620
|
},
|
|
35070
34621
|
{
|
|
35071
|
-
"kind": "
|
|
35072
|
-
"name": "
|
|
34622
|
+
"kind": "field",
|
|
34623
|
+
"name": "includePickerIndex",
|
|
34624
|
+
"type": {
|
|
34625
|
+
"text": "number | null"
|
|
34626
|
+
},
|
|
35073
34627
|
"privacy": "private",
|
|
35074
|
-
"
|
|
35075
|
-
{
|
|
35076
|
-
"name": "action",
|
|
35077
|
-
"type": {
|
|
35078
|
-
"text": "EditorAction"
|
|
35079
|
-
}
|
|
35080
|
-
}
|
|
35081
|
-
]
|
|
35082
|
-
},
|
|
35083
|
-
{
|
|
35084
|
-
"kind": "method",
|
|
35085
|
-
"name": "renderImageControls",
|
|
35086
|
-
"privacy": "private"
|
|
35087
|
-
},
|
|
35088
|
-
{
|
|
35089
|
-
"kind": "method",
|
|
35090
|
-
"name": "renderIncludeChip",
|
|
35091
|
-
"privacy": "private",
|
|
35092
|
-
"parameters": [
|
|
35093
|
-
{
|
|
35094
|
-
"name": "data",
|
|
35095
|
-
"type": {
|
|
35096
|
-
"text": "IncludeBlockData"
|
|
35097
|
-
}
|
|
35098
|
-
}
|
|
35099
|
-
]
|
|
35100
|
-
},
|
|
35101
|
-
{
|
|
35102
|
-
"kind": "method",
|
|
35103
|
-
"name": "renderMetaChips",
|
|
35104
|
-
"privacy": "private",
|
|
35105
|
-
"parameters": [
|
|
35106
|
-
{
|
|
35107
|
-
"name": "lines",
|
|
35108
|
-
"type": {
|
|
35109
|
-
"text": "MetaLine[]"
|
|
35110
|
-
}
|
|
35111
|
-
}
|
|
35112
|
-
],
|
|
35113
|
-
"description": "A metadata-only block parses to nothing, so show each of its lines as a chip instead."
|
|
34628
|
+
"default": "null"
|
|
35114
34629
|
},
|
|
35115
34630
|
{
|
|
35116
|
-
"kind": "
|
|
35117
|
-
"name": "
|
|
34631
|
+
"kind": "field",
|
|
34632
|
+
"name": "includeQuery",
|
|
34633
|
+
"type": {
|
|
34634
|
+
"text": "string"
|
|
34635
|
+
},
|
|
35118
34636
|
"privacy": "private",
|
|
35119
|
-
"
|
|
35120
|
-
{
|
|
35121
|
-
"name": "line",
|
|
35122
|
-
"type": {
|
|
35123
|
-
"text": "MetaLine"
|
|
35124
|
-
}
|
|
35125
|
-
}
|
|
35126
|
-
],
|
|
35127
|
-
"description": "One shared chip treatment for every metadata line kind — each kind just supplies an\nicon, a name, and an optional value/state, display-only in all three cases."
|
|
34637
|
+
"default": "''"
|
|
35128
34638
|
},
|
|
35129
34639
|
{
|
|
35130
|
-
"kind": "
|
|
35131
|
-
"name": "
|
|
34640
|
+
"kind": "field",
|
|
34641
|
+
"name": "pendingDragHandle",
|
|
34642
|
+
"type": {
|
|
34643
|
+
"text": "HTMLElement | null"
|
|
34644
|
+
},
|
|
35132
34645
|
"privacy": "private",
|
|
35133
|
-
"
|
|
35134
|
-
{
|
|
35135
|
-
"name": "root",
|
|
35136
|
-
"type": {
|
|
35137
|
-
"text": "Element"
|
|
35138
|
-
}
|
|
35139
|
-
}
|
|
35140
|
-
],
|
|
35141
|
-
"description": "Wraps `{name}` references so they read as variables rather than literal text. Walks text\nnodes and skips code, so a brace in a sample stays a brace, and no regex touches markup."
|
|
34646
|
+
"default": "null"
|
|
35142
34647
|
},
|
|
35143
34648
|
{
|
|
35144
|
-
"kind": "
|
|
35145
|
-
"name": "
|
|
35146
|
-
"
|
|
35147
|
-
|
|
35148
|
-
"type": {
|
|
35149
|
-
"text": "TemplateResult | null"
|
|
35150
|
-
}
|
|
34649
|
+
"kind": "field",
|
|
34650
|
+
"name": "dragStartX",
|
|
34651
|
+
"type": {
|
|
34652
|
+
"text": "number"
|
|
35151
34653
|
},
|
|
35152
|
-
"parameters": [
|
|
35153
|
-
{
|
|
35154
|
-
"name": "block",
|
|
35155
|
-
"type": {
|
|
35156
|
-
"text": "string"
|
|
35157
|
-
}
|
|
35158
|
-
}
|
|
35159
|
-
],
|
|
35160
|
-
"description": "A conditional range as a labelled wrapper. The inner content is parsed without the\ndirective lines: evaluating instead would blank the block whenever the flag is not\ndefined in this same block, hiding the author's content while they edit it. It also\nkeeps both halves of an if/else idiom visible — with evaluation you could never see\nthe `ifndef` branch while the `ifdef` condition held. Nesting is handled by\n`splitConditionalParts`/`renderConditionalWrapper` below, recursively."
|
|
35161
|
-
},
|
|
35162
|
-
{
|
|
35163
|
-
"kind": "method",
|
|
35164
|
-
"name": "renderBlock",
|
|
35165
34654
|
"privacy": "private",
|
|
35166
|
-
"
|
|
35167
|
-
{
|
|
35168
|
-
"name": "block",
|
|
35169
|
-
"type": {
|
|
35170
|
-
"text": "string"
|
|
35171
|
-
}
|
|
35172
|
-
},
|
|
35173
|
-
{
|
|
35174
|
-
"name": "index",
|
|
35175
|
-
"type": {
|
|
35176
|
-
"text": "number"
|
|
35177
|
-
}
|
|
35178
|
-
}
|
|
35179
|
-
]
|
|
34655
|
+
"default": "0"
|
|
35180
34656
|
},
|
|
35181
34657
|
{
|
|
35182
|
-
"kind": "
|
|
35183
|
-
"name": "
|
|
35184
|
-
"
|
|
35185
|
-
|
|
35186
|
-
"type": {
|
|
35187
|
-
"text": "boolean"
|
|
35188
|
-
}
|
|
34658
|
+
"kind": "field",
|
|
34659
|
+
"name": "dragStartY",
|
|
34660
|
+
"type": {
|
|
34661
|
+
"text": "number"
|
|
35189
34662
|
},
|
|
35190
|
-
"parameters": [
|
|
35191
|
-
{
|
|
35192
|
-
"name": "action",
|
|
35193
|
-
"type": {
|
|
35194
|
-
"text": "EditorAction"
|
|
35195
|
-
}
|
|
35196
|
-
}
|
|
35197
|
-
],
|
|
35198
|
-
"description": "An inline action needs an open block to apply its mark to."
|
|
35199
|
-
},
|
|
35200
|
-
{
|
|
35201
|
-
"kind": "method",
|
|
35202
|
-
"name": "activateAction",
|
|
35203
34663
|
"privacy": "private",
|
|
35204
|
-
"
|
|
35205
|
-
{
|
|
35206
|
-
"name": "action",
|
|
35207
|
-
"type": {
|
|
35208
|
-
"text": "EditorAction"
|
|
35209
|
-
}
|
|
35210
|
-
}
|
|
35211
|
-
],
|
|
35212
|
-
"description": "Routes a toolbar/menu action to the inline or block insert path — the one place both\n`renderAction` and `renderMenuAction` call, so the bar and the overflow menu cannot\ndrift out of sync on what a given action actually does."
|
|
34664
|
+
"default": "0"
|
|
35213
34665
|
},
|
|
35214
34666
|
{
|
|
35215
|
-
"kind": "
|
|
35216
|
-
"name": "
|
|
34667
|
+
"kind": "field",
|
|
34668
|
+
"name": "dragGhost",
|
|
34669
|
+
"type": {
|
|
34670
|
+
"text": "HTMLElement | null"
|
|
34671
|
+
},
|
|
35217
34672
|
"privacy": "private",
|
|
35218
|
-
"
|
|
35219
|
-
{
|
|
35220
|
-
"name": "action",
|
|
35221
|
-
"type": {
|
|
35222
|
-
"text": "EditorAction"
|
|
35223
|
-
}
|
|
35224
|
-
}
|
|
35225
|
-
],
|
|
35226
|
-
"description": "A single toolbar action button, shared by the toolbar bar and the overflow menu."
|
|
34673
|
+
"default": "null"
|
|
35227
34674
|
},
|
|
35228
34675
|
{
|
|
35229
|
-
"kind": "
|
|
35230
|
-
"name": "
|
|
34676
|
+
"kind": "field",
|
|
34677
|
+
"name": "dragPointerY",
|
|
34678
|
+
"type": {
|
|
34679
|
+
"text": "number"
|
|
34680
|
+
},
|
|
35231
34681
|
"privacy": "private",
|
|
35232
|
-
"
|
|
35233
|
-
{
|
|
35234
|
-
"name": "action",
|
|
35235
|
-
"type": {
|
|
35236
|
-
"text": "EditorAction"
|
|
35237
|
-
}
|
|
35238
|
-
}
|
|
35239
|
-
],
|
|
35240
|
-
"description": "The same action, rendered as a menu item for the overflow menu."
|
|
35241
|
-
},
|
|
35242
|
-
{
|
|
35243
|
-
"kind": "method",
|
|
35244
|
-
"name": "renderRaw",
|
|
35245
|
-
"privacy": "private"
|
|
34682
|
+
"default": "0"
|
|
35246
34683
|
},
|
|
35247
34684
|
{
|
|
35248
|
-
"kind": "
|
|
35249
|
-
"name": "
|
|
34685
|
+
"kind": "field",
|
|
34686
|
+
"name": "autoScrollFrame",
|
|
34687
|
+
"type": {
|
|
34688
|
+
"text": "number | null"
|
|
34689
|
+
},
|
|
35250
34690
|
"privacy": "private",
|
|
35251
|
-
"
|
|
35252
|
-
},
|
|
35253
|
-
{
|
|
35254
|
-
"kind": "method",
|
|
35255
|
-
"name": "renderIncludePicker",
|
|
35256
|
-
"privacy": "private"
|
|
35257
|
-
},
|
|
35258
|
-
{
|
|
35259
|
-
"kind": "method",
|
|
35260
|
-
"name": "renderImagePicker",
|
|
35261
|
-
"privacy": "private"
|
|
35262
|
-
}
|
|
35263
|
-
],
|
|
35264
|
-
"events": [
|
|
35265
|
-
{
|
|
35266
|
-
"description": "Emitted on each keystroke while editing a block.",
|
|
35267
|
-
"name": "zn-input"
|
|
34691
|
+
"default": "null"
|
|
35268
34692
|
},
|
|
35269
34693
|
{
|
|
35270
|
-
"
|
|
35271
|
-
"name": "
|
|
35272
|
-
}
|
|
35273
|
-
],
|
|
35274
|
-
"attributes": [
|
|
35275
|
-
{
|
|
35276
|
-
"name": "slash-recent-key",
|
|
34694
|
+
"kind": "field",
|
|
34695
|
+
"name": "name",
|
|
35277
34696
|
"type": {
|
|
35278
34697
|
"text": "string"
|
|
35279
34698
|
},
|
|
35280
34699
|
"default": "''",
|
|
35281
|
-
"description": "
|
|
35282
|
-
"
|
|
34700
|
+
"description": "The name of the control, submitted as part of form data.",
|
|
34701
|
+
"attribute": "name"
|
|
35283
34702
|
},
|
|
35284
34703
|
{
|
|
35285
|
-
"
|
|
34704
|
+
"kind": "field",
|
|
34705
|
+
"name": "value",
|
|
35286
34706
|
"type": {
|
|
35287
34707
|
"text": "string"
|
|
35288
34708
|
},
|
|
35289
34709
|
"default": "''",
|
|
35290
|
-
"description": "The
|
|
35291
|
-
"
|
|
34710
|
+
"description": "The current remarkd source.",
|
|
34711
|
+
"attribute": "value"
|
|
35292
34712
|
},
|
|
35293
34713
|
{
|
|
35294
|
-
"
|
|
34714
|
+
"kind": "field",
|
|
34715
|
+
"name": "defaultValue",
|
|
35295
34716
|
"type": {
|
|
35296
34717
|
"text": "string"
|
|
35297
34718
|
},
|
|
35298
34719
|
"default": "''",
|
|
35299
|
-
"description": "The
|
|
35300
|
-
"fieldName": "value"
|
|
34720
|
+
"description": "The default value — used when resetting the form."
|
|
35301
34721
|
},
|
|
35302
34722
|
{
|
|
34723
|
+
"kind": "field",
|
|
35303
34724
|
"name": "placeholder",
|
|
35304
34725
|
"type": {
|
|
35305
34726
|
"text": "string"
|
|
35306
34727
|
},
|
|
35307
34728
|
"default": "'Type something…'",
|
|
35308
34729
|
"description": "Placeholder shown when the document is empty.",
|
|
35309
|
-
"
|
|
34730
|
+
"attribute": "placeholder"
|
|
35310
34731
|
},
|
|
35311
34732
|
{
|
|
35312
|
-
"
|
|
34733
|
+
"kind": "field",
|
|
34734
|
+
"name": "attachmentUrl",
|
|
35313
34735
|
"type": {
|
|
35314
34736
|
"text": "string"
|
|
35315
34737
|
},
|
|
35316
34738
|
"default": "''",
|
|
35317
34739
|
"description": "Endpoint for image uploads — required for image support. Posting the file\nmetadata here must return `{uploadPath, uploadUrl}`; the file is then PUT\nto `uploadUrl` and the returned `uploadPath` is embedded as the image URL.",
|
|
35318
|
-
"
|
|
34740
|
+
"attribute": "attachment-url"
|
|
35319
34741
|
},
|
|
35320
34742
|
{
|
|
35321
|
-
"
|
|
34743
|
+
"kind": "field",
|
|
34744
|
+
"name": "includeUrl",
|
|
35322
34745
|
"type": {
|
|
35323
34746
|
"text": "string"
|
|
35324
34747
|
},
|
|
35325
34748
|
"default": "''",
|
|
35326
34749
|
"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.",
|
|
35327
|
-
"
|
|
34750
|
+
"attribute": "include-url"
|
|
35328
34751
|
},
|
|
35329
34752
|
{
|
|
35330
|
-
"
|
|
34753
|
+
"kind": "field",
|
|
34754
|
+
"name": "allowRaw",
|
|
35331
34755
|
"type": {
|
|
35332
34756
|
"text": "boolean"
|
|
35333
34757
|
},
|
|
35334
34758
|
"default": "false",
|
|
35335
34759
|
"description": "Adds a toolbar toggle that swaps the block view for the full remarkd source.",
|
|
35336
|
-
"
|
|
34760
|
+
"attribute": "allow-raw",
|
|
34761
|
+
"reflects": true
|
|
35337
34762
|
},
|
|
35338
34763
|
{
|
|
34764
|
+
"kind": "field",
|
|
35339
34765
|
"name": "required",
|
|
35340
34766
|
"type": {
|
|
35341
34767
|
"text": "boolean"
|
|
35342
34768
|
},
|
|
35343
34769
|
"default": "false",
|
|
35344
34770
|
"description": "Makes the editor required for form submission.",
|
|
35345
|
-
"
|
|
34771
|
+
"attribute": "required",
|
|
34772
|
+
"reflects": true
|
|
35346
34773
|
},
|
|
35347
34774
|
{
|
|
34775
|
+
"kind": "field",
|
|
35348
34776
|
"name": "readonly",
|
|
35349
34777
|
"type": {
|
|
35350
34778
|
"text": "boolean"
|
|
35351
34779
|
},
|
|
35352
34780
|
"default": "false",
|
|
35353
34781
|
"description": "Makes the editor read-only.",
|
|
35354
|
-
"
|
|
34782
|
+
"attribute": "readonly",
|
|
34783
|
+
"reflects": true
|
|
35355
34784
|
},
|
|
35356
34785
|
{
|
|
34786
|
+
"kind": "field",
|
|
35357
34787
|
"name": "disabled",
|
|
35358
34788
|
"type": {
|
|
35359
34789
|
"text": "boolean"
|
|
35360
34790
|
},
|
|
35361
34791
|
"default": "false",
|
|
35362
34792
|
"description": "Disables the editor.",
|
|
35363
|
-
"
|
|
35364
|
-
|
|
35365
|
-
],
|
|
35366
|
-
"superclass": {
|
|
35367
|
-
"name": "ZincElement",
|
|
35368
|
-
"module": "/src/internal/zinc-element"
|
|
35369
|
-
},
|
|
35370
|
-
"summary": "A Notion-style block editor for remarkd content. Blocks render inline; click one to edit its source.",
|
|
35371
|
-
"tagNameWithoutPrefix": "remarkd-editor",
|
|
35372
|
-
"tagName": "zn-remarkd-editor",
|
|
35373
|
-
"customElement": true,
|
|
35374
|
-
"jsDoc": "/**\n * @summary A Notion-style block editor for remarkd content. Blocks render inline; click one to edit its source.\n * @documentation https://zinc.style/components/remarkd-editor\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-button\n * @dependency zn-button-group\n * @dependency zn-dropdown\n * @dependency zn-icon\n * @dependency zn-file\n * @dependency zn-menu\n * @dependency zn-menu-item\n * @dependency zn-slash-menu\n *\n * @event zn-input - Emitted on each keystroke while editing a block.\n * @event zn-change - Emitted when a block edit is committed and the value changes.\n *\n * @csspart base - The component's base wrapper.\n * @csspart toolbar - The always-visible block-insert and inline-formatting toolbar.\n * @csspart raw-toggle - The button that switches between the block view and the raw source view.\n * @csspart block - A rendered block wrapper.\n * @csspart rendered - The rendered remarkd output of a block.\n * @csspart conditional - A labelled wrapper for an ifdef/ifndef/ifeval/iftrue/iffalse/ifempty/ifnempty range.\n * @csspart variable - A chip rendered for a document attribute, title, or bracket line.\n * @csspart input - The textarea shown while editing a block.\n * @csspart raw - The full-document textarea shown in raw source mode.\n * @csspart slash-menu - The `zn-slash-menu` opened by typing \"/\" in an empty block.\n * @csspart image-controls - The caption / alignment / size panel shown when an image block is clicked.\n * @csspart include - The chip rendered in place of an `include::` directive.\n * @csspart include-picker - The inline Include picker opened from the toolbar or \"/include\".\n *\n * @cssproperty --remarkd-editor-max-height - The tallest the editor grows before its body scrolls. Defaults to `100dvh`.\n */",
|
|
35375
|
-
"documentation": "https://zinc.style/components/remarkd-editor",
|
|
35376
|
-
"status": "experimental",
|
|
35377
|
-
"since": "1.0",
|
|
35378
|
-
"dependencies": [
|
|
35379
|
-
"zn-button",
|
|
35380
|
-
"zn-button-group",
|
|
35381
|
-
"zn-dropdown",
|
|
35382
|
-
"zn-icon",
|
|
35383
|
-
"zn-file",
|
|
35384
|
-
"zn-menu",
|
|
35385
|
-
"zn-menu-item",
|
|
35386
|
-
"zn-slash-menu"
|
|
35387
|
-
]
|
|
35388
|
-
}
|
|
35389
|
-
],
|
|
35390
|
-
"exports": [
|
|
35391
|
-
{
|
|
35392
|
-
"kind": "js",
|
|
35393
|
-
"name": "default",
|
|
35394
|
-
"declaration": {
|
|
35395
|
-
"name": "ZnRemarkdEditor",
|
|
35396
|
-
"module": "components/remarkd-editor/remarkd-editor.js"
|
|
35397
|
-
}
|
|
35398
|
-
}
|
|
35399
|
-
]
|
|
35400
|
-
},
|
|
35401
|
-
{
|
|
35402
|
-
"kind": "javascript-module",
|
|
35403
|
-
"path": "components/reveal/reveal.js",
|
|
35404
|
-
"declarations": [
|
|
35405
|
-
{
|
|
35406
|
-
"kind": "class",
|
|
35407
|
-
"description": "",
|
|
35408
|
-
"name": "ZnReveal",
|
|
35409
|
-
"cssProperties": [
|
|
35410
|
-
{
|
|
35411
|
-
"description": "An example CSS custom property.",
|
|
35412
|
-
"name": "--example"
|
|
35413
|
-
}
|
|
35414
|
-
],
|
|
35415
|
-
"cssParts": [
|
|
35416
|
-
{
|
|
35417
|
-
"description": "The component's base wrapper.",
|
|
35418
|
-
"name": "base"
|
|
35419
|
-
}
|
|
35420
|
-
],
|
|
35421
|
-
"slots": [
|
|
35422
|
-
{
|
|
35423
|
-
"description": "The default slot.",
|
|
35424
|
-
"name": ""
|
|
34793
|
+
"attribute": "disabled",
|
|
34794
|
+
"reflects": true
|
|
35425
34795
|
},
|
|
35426
|
-
{
|
|
35427
|
-
"description": "An example slot.",
|
|
35428
|
-
"name": "example"
|
|
35429
|
-
}
|
|
35430
|
-
],
|
|
35431
|
-
"members": [
|
|
35432
34796
|
{
|
|
35433
34797
|
"kind": "field",
|
|
35434
|
-
"name": "
|
|
34798
|
+
"name": "validity",
|
|
35435
34799
|
"type": {
|
|
35436
|
-
"text": "
|
|
34800
|
+
"text": "ValidityState"
|
|
35437
34801
|
},
|
|
35438
|
-
"
|
|
35439
|
-
"attribute": "duration"
|
|
34802
|
+
"readonly": true
|
|
35440
34803
|
},
|
|
35441
34804
|
{
|
|
35442
34805
|
"kind": "field",
|
|
35443
|
-
"name": "
|
|
34806
|
+
"name": "validationMessage",
|
|
35444
34807
|
"type": {
|
|
35445
34808
|
"text": "string"
|
|
35446
34809
|
},
|
|
35447
|
-
"
|
|
35448
|
-
"attribute": "initial"
|
|
34810
|
+
"readonly": true
|
|
35449
34811
|
},
|
|
35450
34812
|
{
|
|
35451
|
-
"kind": "
|
|
35452
|
-
"name": "
|
|
35453
|
-
"
|
|
35454
|
-
"
|
|
35455
|
-
|
|
35456
|
-
|
|
35457
|
-
|
|
34813
|
+
"kind": "method",
|
|
34814
|
+
"name": "checkValidity",
|
|
34815
|
+
"return": {
|
|
34816
|
+
"type": {
|
|
34817
|
+
"text": "boolean"
|
|
34818
|
+
}
|
|
34819
|
+
}
|
|
35458
34820
|
},
|
|
35459
34821
|
{
|
|
35460
|
-
"kind": "
|
|
35461
|
-
"name": "
|
|
35462
|
-
"
|
|
35463
|
-
"
|
|
35464
|
-
|
|
35465
|
-
|
|
35466
|
-
|
|
34822
|
+
"kind": "method",
|
|
34823
|
+
"name": "getForm",
|
|
34824
|
+
"return": {
|
|
34825
|
+
"type": {
|
|
34826
|
+
"text": "HTMLFormElement | null"
|
|
34827
|
+
}
|
|
34828
|
+
}
|
|
35467
34829
|
},
|
|
35468
34830
|
{
|
|
35469
|
-
"kind": "
|
|
35470
|
-
"name": "
|
|
35471
|
-
"
|
|
35472
|
-
"
|
|
35473
|
-
|
|
35474
|
-
|
|
35475
|
-
|
|
35476
|
-
"attribute": "no-toggle"
|
|
34831
|
+
"kind": "method",
|
|
34832
|
+
"name": "reportValidity",
|
|
34833
|
+
"return": {
|
|
34834
|
+
"type": {
|
|
34835
|
+
"text": "boolean"
|
|
34836
|
+
}
|
|
34837
|
+
}
|
|
35477
34838
|
},
|
|
35478
34839
|
{
|
|
35479
|
-
"kind": "
|
|
35480
|
-
"name": "
|
|
35481
|
-
"
|
|
35482
|
-
"
|
|
34840
|
+
"kind": "method",
|
|
34841
|
+
"name": "setCustomValidity",
|
|
34842
|
+
"return": {
|
|
34843
|
+
"type": {
|
|
34844
|
+
"text": "void"
|
|
34845
|
+
}
|
|
35483
34846
|
},
|
|
35484
|
-
"
|
|
35485
|
-
|
|
34847
|
+
"parameters": [
|
|
34848
|
+
{
|
|
34849
|
+
"name": "message",
|
|
34850
|
+
"type": {
|
|
34851
|
+
"text": "string"
|
|
34852
|
+
}
|
|
34853
|
+
}
|
|
34854
|
+
]
|
|
35486
34855
|
},
|
|
35487
34856
|
{
|
|
35488
|
-
"kind": "
|
|
35489
|
-
"name": "
|
|
35490
|
-
"
|
|
35491
|
-
"text": "boolean"
|
|
35492
|
-
},
|
|
35493
|
-
"privacy": "private",
|
|
35494
|
-
"default": "false"
|
|
34857
|
+
"kind": "method",
|
|
34858
|
+
"name": "focus",
|
|
34859
|
+
"description": "Starts editing the first block, or a new block if the document is empty."
|
|
35495
34860
|
},
|
|
35496
34861
|
{
|
|
35497
|
-
"kind": "
|
|
35498
|
-
"name": "
|
|
35499
|
-
"
|
|
35500
|
-
"text": "ReturnType<typeof setTimeout> | undefined"
|
|
35501
|
-
},
|
|
35502
|
-
"privacy": "private"
|
|
34862
|
+
"kind": "method",
|
|
34863
|
+
"name": "blur",
|
|
34864
|
+
"description": "Commits any in-progress block or raw edit."
|
|
35503
34865
|
},
|
|
35504
34866
|
{
|
|
35505
34867
|
"kind": "method",
|
|
35506
|
-
"name": "
|
|
35507
|
-
"privacy": "private"
|
|
34868
|
+
"name": "handleValueChange"
|
|
35508
34869
|
},
|
|
35509
34870
|
{
|
|
35510
34871
|
"kind": "method",
|
|
35511
|
-
"name": "
|
|
35512
|
-
"privacy": "protected"
|
|
34872
|
+
"name": "handleIncludeUrlChange"
|
|
35513
34873
|
},
|
|
35514
34874
|
{
|
|
35515
34875
|
"kind": "method",
|
|
35516
|
-
"name": "
|
|
35517
|
-
"privacy": "
|
|
34876
|
+
"name": "splitBlocks",
|
|
34877
|
+
"privacy": "private",
|
|
34878
|
+
"return": {
|
|
34879
|
+
"type": {
|
|
34880
|
+
"text": "string[]"
|
|
34881
|
+
}
|
|
34882
|
+
},
|
|
34883
|
+
"parameters": [
|
|
34884
|
+
{
|
|
34885
|
+
"name": "source",
|
|
34886
|
+
"type": {
|
|
34887
|
+
"text": "string"
|
|
34888
|
+
}
|
|
34889
|
+
}
|
|
34890
|
+
],
|
|
34891
|
+
"description": "Splits remarkd source into blocks on blank lines, keeping fenced /\ndelimited containers (``` ==== !!!! .... ---- ____ **** ////) as single blocks."
|
|
35518
34892
|
},
|
|
35519
34893
|
{
|
|
35520
34894
|
"kind": "method",
|
|
35521
|
-
"name": "
|
|
35522
|
-
"privacy": "
|
|
35523
|
-
|
|
35524
|
-
|
|
35525
|
-
|
|
35526
|
-
|
|
35527
|
-
"description": "Emitted as an example.",
|
|
35528
|
-
"name": "zn-event-name"
|
|
35529
|
-
}
|
|
35530
|
-
],
|
|
35531
|
-
"attributes": [
|
|
35532
|
-
{
|
|
35533
|
-
"name": "duration",
|
|
35534
|
-
"type": {
|
|
35535
|
-
"text": "number"
|
|
34895
|
+
"name": "fenceMarker",
|
|
34896
|
+
"privacy": "private",
|
|
34897
|
+
"return": {
|
|
34898
|
+
"type": {
|
|
34899
|
+
"text": "string | null"
|
|
34900
|
+
}
|
|
35536
34901
|
},
|
|
35537
|
-
"
|
|
35538
|
-
|
|
34902
|
+
"parameters": [
|
|
34903
|
+
{
|
|
34904
|
+
"name": "line",
|
|
34905
|
+
"type": {
|
|
34906
|
+
"text": "string"
|
|
34907
|
+
}
|
|
34908
|
+
}
|
|
34909
|
+
]
|
|
35539
34910
|
},
|
|
35540
34911
|
{
|
|
35541
|
-
"
|
|
35542
|
-
"
|
|
35543
|
-
|
|
34912
|
+
"kind": "method",
|
|
34913
|
+
"name": "closesFence",
|
|
34914
|
+
"privacy": "private",
|
|
34915
|
+
"return": {
|
|
34916
|
+
"type": {
|
|
34917
|
+
"text": "boolean"
|
|
34918
|
+
}
|
|
35544
34919
|
},
|
|
35545
|
-
"
|
|
35546
|
-
|
|
34920
|
+
"parameters": [
|
|
34921
|
+
{
|
|
34922
|
+
"name": "line",
|
|
34923
|
+
"type": {
|
|
34924
|
+
"text": "string"
|
|
34925
|
+
}
|
|
34926
|
+
},
|
|
34927
|
+
{
|
|
34928
|
+
"name": "fence",
|
|
34929
|
+
"type": {
|
|
34930
|
+
"text": "string"
|
|
34931
|
+
}
|
|
34932
|
+
}
|
|
34933
|
+
]
|
|
35547
34934
|
},
|
|
35548
34935
|
{
|
|
35549
|
-
"
|
|
35550
|
-
"
|
|
35551
|
-
|
|
34936
|
+
"kind": "method",
|
|
34937
|
+
"name": "updateBlocks",
|
|
34938
|
+
"privacy": "private",
|
|
34939
|
+
"parameters": [
|
|
34940
|
+
{
|
|
34941
|
+
"name": "blocks",
|
|
34942
|
+
"type": {
|
|
34943
|
+
"text": "string[]"
|
|
34944
|
+
}
|
|
34945
|
+
}
|
|
34946
|
+
]
|
|
34947
|
+
},
|
|
34948
|
+
{
|
|
34949
|
+
"kind": "method",
|
|
34950
|
+
"name": "handleRenderedClick",
|
|
34951
|
+
"privacy": "private",
|
|
34952
|
+
"parameters": [
|
|
34953
|
+
{
|
|
34954
|
+
"name": "e",
|
|
34955
|
+
"type": {
|
|
34956
|
+
"text": "MouseEvent"
|
|
34957
|
+
}
|
|
34958
|
+
},
|
|
34959
|
+
{
|
|
34960
|
+
"name": "index",
|
|
34961
|
+
"type": {
|
|
34962
|
+
"text": "number"
|
|
34963
|
+
}
|
|
34964
|
+
}
|
|
34965
|
+
]
|
|
34966
|
+
},
|
|
34967
|
+
{
|
|
34968
|
+
"kind": "method",
|
|
34969
|
+
"name": "parseImageBlock",
|
|
34970
|
+
"privacy": "private",
|
|
34971
|
+
"return": {
|
|
34972
|
+
"type": {
|
|
34973
|
+
"text": "ImageBlockData | null"
|
|
34974
|
+
}
|
|
35552
34975
|
},
|
|
35553
|
-
"
|
|
35554
|
-
|
|
34976
|
+
"parameters": [
|
|
34977
|
+
{
|
|
34978
|
+
"name": "block",
|
|
34979
|
+
"type": {
|
|
34980
|
+
"text": "string"
|
|
34981
|
+
}
|
|
34982
|
+
}
|
|
34983
|
+
],
|
|
34984
|
+
"description": "Parses a block that is purely an image (with optional caption/align lines)."
|
|
35555
34985
|
},
|
|
35556
34986
|
{
|
|
35557
|
-
"
|
|
35558
|
-
"
|
|
35559
|
-
|
|
34987
|
+
"kind": "method",
|
|
34988
|
+
"name": "parseIncludeBlock",
|
|
34989
|
+
"privacy": "private",
|
|
34990
|
+
"return": {
|
|
34991
|
+
"type": {
|
|
34992
|
+
"text": "IncludeBlockData | null"
|
|
34993
|
+
}
|
|
35560
34994
|
},
|
|
35561
|
-
"
|
|
35562
|
-
|
|
34995
|
+
"parameters": [
|
|
34996
|
+
{
|
|
34997
|
+
"name": "block",
|
|
34998
|
+
"type": {
|
|
34999
|
+
"text": "string"
|
|
35000
|
+
}
|
|
35001
|
+
}
|
|
35002
|
+
],
|
|
35003
|
+
"description": "Parses a block that is nothing but an include directive."
|
|
35563
35004
|
},
|
|
35564
35005
|
{
|
|
35565
|
-
"
|
|
35566
|
-
"
|
|
35567
|
-
|
|
35006
|
+
"kind": "method",
|
|
35007
|
+
"name": "serializeImageBlock",
|
|
35008
|
+
"privacy": "private",
|
|
35009
|
+
"return": {
|
|
35010
|
+
"type": {
|
|
35011
|
+
"text": "string"
|
|
35012
|
+
}
|
|
35568
35013
|
},
|
|
35569
|
-
"
|
|
35570
|
-
|
|
35571
|
-
|
|
35572
|
-
|
|
35573
|
-
|
|
35574
|
-
|
|
35575
|
-
|
|
35576
|
-
|
|
35577
|
-
|
|
35578
|
-
"summary": "Short summary of the component's intended use.",
|
|
35579
|
-
"tagNameWithoutPrefix": "reveal",
|
|
35580
|
-
"tagName": "zn-reveal",
|
|
35581
|
-
"customElement": true,
|
|
35582
|
-
"jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/reveal\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-example\n *\n * @event zn-event-name - Emitted as an example.\n *\n * @slot - The default slot.\n * @slot example - An example slot.\n *\n * @csspart base - The component's base wrapper.\n *\n * @usage\n * ```html\n * <zn-reveal duration=\"3000\"\n * initial=\"******@hotmail.com\"\n * revealed=\"john.doe@hotmail.com\" toggle>\n * </zn-reveal>\n * ```\n *\n * @cssproperty --example - An example CSS custom property.\n */",
|
|
35583
|
-
"documentation": "https://zinc.style/components/reveal",
|
|
35584
|
-
"status": "experimental",
|
|
35585
|
-
"since": "1.0",
|
|
35586
|
-
"dependencies": [
|
|
35587
|
-
"zn-example"
|
|
35588
|
-
]
|
|
35589
|
-
}
|
|
35590
|
-
],
|
|
35591
|
-
"exports": [
|
|
35592
|
-
{
|
|
35593
|
-
"kind": "js",
|
|
35594
|
-
"name": "default",
|
|
35595
|
-
"declaration": {
|
|
35596
|
-
"name": "ZnReveal",
|
|
35597
|
-
"module": "components/reveal/reveal.js"
|
|
35598
|
-
}
|
|
35599
|
-
}
|
|
35600
|
-
]
|
|
35601
|
-
},
|
|
35602
|
-
{
|
|
35603
|
-
"kind": "javascript-module",
|
|
35604
|
-
"path": "components/rating/rating.js",
|
|
35605
|
-
"declarations": [
|
|
35606
|
-
{
|
|
35607
|
-
"kind": "class",
|
|
35608
|
-
"description": "",
|
|
35609
|
-
"name": "ZnRating",
|
|
35610
|
-
"cssProperties": [
|
|
35014
|
+
"parameters": [
|
|
35015
|
+
{
|
|
35016
|
+
"name": "data",
|
|
35017
|
+
"type": {
|
|
35018
|
+
"text": "ImageBlockData"
|
|
35019
|
+
}
|
|
35020
|
+
}
|
|
35021
|
+
]
|
|
35022
|
+
},
|
|
35611
35023
|
{
|
|
35612
|
-
"
|
|
35613
|
-
"name": "
|
|
35024
|
+
"kind": "method",
|
|
35025
|
+
"name": "toggleCheckbox",
|
|
35026
|
+
"privacy": "private",
|
|
35027
|
+
"parameters": [
|
|
35028
|
+
{
|
|
35029
|
+
"name": "index",
|
|
35030
|
+
"type": {
|
|
35031
|
+
"text": "number"
|
|
35032
|
+
}
|
|
35033
|
+
},
|
|
35034
|
+
{
|
|
35035
|
+
"name": "checkbox",
|
|
35036
|
+
"type": {
|
|
35037
|
+
"text": "HTMLInputElement"
|
|
35038
|
+
}
|
|
35039
|
+
}
|
|
35040
|
+
]
|
|
35614
35041
|
},
|
|
35615
35042
|
{
|
|
35616
|
-
"
|
|
35617
|
-
"name": "
|
|
35043
|
+
"kind": "method",
|
|
35044
|
+
"name": "startEdit",
|
|
35045
|
+
"privacy": "private",
|
|
35046
|
+
"parameters": [
|
|
35047
|
+
{
|
|
35048
|
+
"name": "index",
|
|
35049
|
+
"type": {
|
|
35050
|
+
"text": "number"
|
|
35051
|
+
}
|
|
35052
|
+
},
|
|
35053
|
+
{
|
|
35054
|
+
"name": "draft",
|
|
35055
|
+
"optional": true,
|
|
35056
|
+
"type": {
|
|
35057
|
+
"text": "string"
|
|
35058
|
+
}
|
|
35059
|
+
},
|
|
35060
|
+
{
|
|
35061
|
+
"name": "align",
|
|
35062
|
+
"default": "'nearest'",
|
|
35063
|
+
"type": {
|
|
35064
|
+
"text": "'nearest' | 'center'"
|
|
35065
|
+
}
|
|
35066
|
+
},
|
|
35067
|
+
{
|
|
35068
|
+
"name": "caretOffset",
|
|
35069
|
+
"optional": true,
|
|
35070
|
+
"type": {
|
|
35071
|
+
"text": "number"
|
|
35072
|
+
}
|
|
35073
|
+
}
|
|
35074
|
+
]
|
|
35618
35075
|
},
|
|
35619
35076
|
{
|
|
35620
|
-
"
|
|
35621
|
-
"name": "
|
|
35622
|
-
|
|
35623
|
-
|
|
35624
|
-
|
|
35077
|
+
"kind": "method",
|
|
35078
|
+
"name": "updateImageEdit",
|
|
35079
|
+
"privacy": "private",
|
|
35080
|
+
"parameters": [
|
|
35081
|
+
{
|
|
35082
|
+
"name": "patch",
|
|
35083
|
+
"type": {
|
|
35084
|
+
"text": "Partial<ImageBlockData>"
|
|
35085
|
+
}
|
|
35086
|
+
}
|
|
35087
|
+
]
|
|
35088
|
+
},
|
|
35625
35089
|
{
|
|
35626
|
-
"
|
|
35627
|
-
"name": "
|
|
35090
|
+
"kind": "field",
|
|
35091
|
+
"name": "saveImageEdit",
|
|
35092
|
+
"privacy": "private"
|
|
35628
35093
|
},
|
|
35629
35094
|
{
|
|
35630
|
-
"
|
|
35631
|
-
"name": "
|
|
35095
|
+
"kind": "field",
|
|
35096
|
+
"name": "closeImageEdit",
|
|
35097
|
+
"privacy": "private"
|
|
35632
35098
|
},
|
|
35633
35099
|
{
|
|
35634
|
-
"
|
|
35635
|
-
"name": "
|
|
35100
|
+
"kind": "field",
|
|
35101
|
+
"name": "deleteImageBlock",
|
|
35102
|
+
"privacy": "private"
|
|
35636
35103
|
},
|
|
35637
35104
|
{
|
|
35638
|
-
"
|
|
35639
|
-
"name": "
|
|
35640
|
-
|
|
35641
|
-
|
|
35642
|
-
"slots": [
|
|
35105
|
+
"kind": "field",
|
|
35106
|
+
"name": "editImageSource",
|
|
35107
|
+
"privacy": "private"
|
|
35108
|
+
},
|
|
35643
35109
|
{
|
|
35644
|
-
"
|
|
35645
|
-
"name": ""
|
|
35110
|
+
"kind": "field",
|
|
35111
|
+
"name": "handleImageControlsKeydown",
|
|
35112
|
+
"privacy": "private"
|
|
35646
35113
|
},
|
|
35647
35114
|
{
|
|
35648
|
-
"
|
|
35649
|
-
"name": "
|
|
35115
|
+
"kind": "method",
|
|
35116
|
+
"name": "computeEditShell",
|
|
35117
|
+
"privacy": "private",
|
|
35118
|
+
"return": {
|
|
35119
|
+
"type": {
|
|
35120
|
+
"text": "string"
|
|
35121
|
+
}
|
|
35122
|
+
},
|
|
35123
|
+
"parameters": [
|
|
35124
|
+
{
|
|
35125
|
+
"name": "draft",
|
|
35126
|
+
"type": {
|
|
35127
|
+
"text": "string"
|
|
35128
|
+
}
|
|
35129
|
+
}
|
|
35130
|
+
],
|
|
35131
|
+
"description": "The remarkd chrome the editing block should keep, derived from its first\nline — so a NOTE still looks like a note while its source is edited."
|
|
35650
35132
|
},
|
|
35651
35133
|
{
|
|
35652
|
-
"
|
|
35653
|
-
"name": "
|
|
35654
|
-
|
|
35655
|
-
|
|
35656
|
-
|
|
35134
|
+
"kind": "method",
|
|
35135
|
+
"name": "focusInput",
|
|
35136
|
+
"privacy": "private",
|
|
35137
|
+
"parameters": [
|
|
35138
|
+
{
|
|
35139
|
+
"name": "align",
|
|
35140
|
+
"default": "'nearest'",
|
|
35141
|
+
"type": {
|
|
35142
|
+
"text": "'nearest' | 'center'"
|
|
35143
|
+
}
|
|
35144
|
+
},
|
|
35145
|
+
{
|
|
35146
|
+
"name": "caretOffset",
|
|
35147
|
+
"optional": true,
|
|
35148
|
+
"type": {
|
|
35149
|
+
"text": "number"
|
|
35150
|
+
}
|
|
35151
|
+
}
|
|
35152
|
+
]
|
|
35153
|
+
},
|
|
35657
35154
|
{
|
|
35658
|
-
"kind": "
|
|
35659
|
-
"name": "
|
|
35155
|
+
"kind": "method",
|
|
35156
|
+
"name": "reveal",
|
|
35660
35157
|
"privacy": "private",
|
|
35661
|
-
"
|
|
35662
|
-
|
|
35158
|
+
"parameters": [
|
|
35159
|
+
{
|
|
35160
|
+
"name": "el",
|
|
35161
|
+
"type": {
|
|
35162
|
+
"text": "Element | null | undefined"
|
|
35163
|
+
}
|
|
35164
|
+
},
|
|
35165
|
+
{
|
|
35166
|
+
"name": "align",
|
|
35167
|
+
"default": "'nearest'",
|
|
35168
|
+
"type": {
|
|
35169
|
+
"text": "'nearest' | 'center'"
|
|
35170
|
+
}
|
|
35171
|
+
}
|
|
35172
|
+
],
|
|
35173
|
+
"description": "Scrolls the editor's own body to bring `el` into view. Never `scrollIntoView()` and\nnever `focus()` without preventScroll: both walk every scrollable ancestor, and an\n`overflow: hidden`/`auto` panel around the editor is scrollable too — that shifts a\ncontainer the user never asked to move."
|
|
35663
35174
|
},
|
|
35664
35175
|
{
|
|
35665
|
-
"kind": "
|
|
35666
|
-
"name": "
|
|
35176
|
+
"kind": "method",
|
|
35177
|
+
"name": "revealAfterUpdate",
|
|
35667
35178
|
"privacy": "private",
|
|
35668
|
-
"
|
|
35669
|
-
|
|
35179
|
+
"parameters": [
|
|
35180
|
+
{
|
|
35181
|
+
"name": "selector",
|
|
35182
|
+
"type": {
|
|
35183
|
+
"text": "string"
|
|
35184
|
+
}
|
|
35185
|
+
},
|
|
35186
|
+
{
|
|
35187
|
+
"name": "align",
|
|
35188
|
+
"default": "'nearest'",
|
|
35189
|
+
"type": {
|
|
35190
|
+
"text": "'nearest' | 'center'"
|
|
35191
|
+
}
|
|
35192
|
+
}
|
|
35193
|
+
]
|
|
35670
35194
|
},
|
|
35671
35195
|
{
|
|
35672
|
-
"kind": "
|
|
35673
|
-
"name": "
|
|
35674
|
-
"
|
|
35675
|
-
|
|
35676
|
-
|
|
35196
|
+
"kind": "method",
|
|
35197
|
+
"name": "revealBlock",
|
|
35198
|
+
"privacy": "private",
|
|
35199
|
+
"parameters": [
|
|
35200
|
+
{
|
|
35201
|
+
"name": "index",
|
|
35202
|
+
"type": {
|
|
35203
|
+
"text": "number"
|
|
35204
|
+
}
|
|
35205
|
+
}
|
|
35206
|
+
],
|
|
35207
|
+
"description": "Centres a block added without opening an editor. An image has no height until it\nloads, so the first pass scrolls against a layout that is still short — the second\npass corrects it once the real dimensions are in."
|
|
35677
35208
|
},
|
|
35678
35209
|
{
|
|
35679
|
-
"kind": "
|
|
35680
|
-
"name": "
|
|
35681
|
-
"
|
|
35682
|
-
|
|
35683
|
-
|
|
35210
|
+
"kind": "method",
|
|
35211
|
+
"name": "addBlockAt",
|
|
35212
|
+
"privacy": "private",
|
|
35213
|
+
"parameters": [
|
|
35214
|
+
{
|
|
35215
|
+
"name": "index",
|
|
35216
|
+
"type": {
|
|
35217
|
+
"text": "number"
|
|
35218
|
+
}
|
|
35219
|
+
},
|
|
35220
|
+
{
|
|
35221
|
+
"name": "content",
|
|
35222
|
+
"type": {
|
|
35223
|
+
"text": "string"
|
|
35224
|
+
}
|
|
35225
|
+
}
|
|
35226
|
+
]
|
|
35227
|
+
},
|
|
35228
|
+
{
|
|
35229
|
+
"kind": "method",
|
|
35230
|
+
"name": "deleteBlock",
|
|
35231
|
+
"privacy": "private",
|
|
35232
|
+
"parameters": [
|
|
35233
|
+
{
|
|
35234
|
+
"name": "index",
|
|
35235
|
+
"type": {
|
|
35236
|
+
"text": "number"
|
|
35237
|
+
}
|
|
35238
|
+
}
|
|
35239
|
+
]
|
|
35240
|
+
},
|
|
35241
|
+
{
|
|
35242
|
+
"kind": "method",
|
|
35243
|
+
"name": "insertDraftBlock",
|
|
35244
|
+
"privacy": "private",
|
|
35245
|
+
"parameters": [
|
|
35246
|
+
{
|
|
35247
|
+
"name": "index",
|
|
35248
|
+
"type": {
|
|
35249
|
+
"text": "number"
|
|
35250
|
+
}
|
|
35251
|
+
},
|
|
35252
|
+
{
|
|
35253
|
+
"name": "prefill",
|
|
35254
|
+
"default": "''"
|
|
35255
|
+
},
|
|
35256
|
+
{
|
|
35257
|
+
"name": "caretOffset",
|
|
35258
|
+
"optional": true,
|
|
35259
|
+
"type": {
|
|
35260
|
+
"text": "number"
|
|
35261
|
+
}
|
|
35262
|
+
}
|
|
35263
|
+
],
|
|
35264
|
+
"description": "Inserts a draft block — committed (or dropped, if left empty) on blur."
|
|
35684
35265
|
},
|
|
35685
35266
|
{
|
|
35686
35267
|
"kind": "field",
|
|
35687
|
-
"name": "
|
|
35688
|
-
"type": {
|
|
35689
|
-
"text": "number"
|
|
35690
|
-
},
|
|
35268
|
+
"name": "handleEditBlur",
|
|
35691
35269
|
"privacy": "private",
|
|
35692
|
-
"
|
|
35270
|
+
"description": "Blur handler for the editing textarea. Re-renders that replace the\nfocused textarea (e.g. Shift+Enter committing and opening the next\nblock) fire blur mid-transition — `suppressBlurCommit` masks those."
|
|
35693
35271
|
},
|
|
35694
35272
|
{
|
|
35695
35273
|
"kind": "field",
|
|
35696
|
-
"name": "
|
|
35697
|
-
"type": {
|
|
35698
|
-
"text": "boolean"
|
|
35699
|
-
},
|
|
35274
|
+
"name": "commitEdit",
|
|
35700
35275
|
"privacy": "private",
|
|
35701
|
-
"
|
|
35276
|
+
"description": "Commits the in-progress edit; returns the index after the committed parts."
|
|
35702
35277
|
},
|
|
35703
35278
|
{
|
|
35704
35279
|
"kind": "field",
|
|
35705
|
-
"name": "
|
|
35706
|
-
"
|
|
35707
|
-
"text": "string"
|
|
35708
|
-
},
|
|
35709
|
-
"attribute": "label"
|
|
35280
|
+
"name": "handleDraftInput",
|
|
35281
|
+
"privacy": "private"
|
|
35710
35282
|
},
|
|
35711
35283
|
{
|
|
35712
35284
|
"kind": "field",
|
|
35713
|
-
"name": "
|
|
35714
|
-
"
|
|
35715
|
-
|
|
35285
|
+
"name": "handleEditKeydown",
|
|
35286
|
+
"privacy": "private"
|
|
35287
|
+
},
|
|
35288
|
+
{
|
|
35289
|
+
"kind": "method",
|
|
35290
|
+
"name": "isSlashBlock",
|
|
35291
|
+
"privacy": "private",
|
|
35292
|
+
"return": {
|
|
35293
|
+
"type": {
|
|
35294
|
+
"text": "boolean"
|
|
35295
|
+
}
|
|
35716
35296
|
},
|
|
35717
|
-
"
|
|
35718
|
-
"description": "The rating's help text. If you need to display HTML, use the `help-text` slot instead.",
|
|
35719
|
-
"attribute": "help-text"
|
|
35297
|
+
"description": "Whether the block being edited is nothing but the slash command."
|
|
35720
35298
|
},
|
|
35721
35299
|
{
|
|
35722
|
-
"kind": "
|
|
35723
|
-
"name": "
|
|
35724
|
-
"
|
|
35725
|
-
|
|
35300
|
+
"kind": "method",
|
|
35301
|
+
"name": "mountSlashMenu",
|
|
35302
|
+
"privacy": "private",
|
|
35303
|
+
"return": {
|
|
35304
|
+
"type": {
|
|
35305
|
+
"text": "Promise<ZnSlashMenu | null>"
|
|
35306
|
+
}
|
|
35307
|
+
}
|
|
35308
|
+
},
|
|
35309
|
+
{
|
|
35310
|
+
"kind": "method",
|
|
35311
|
+
"name": "handleSlashSelect",
|
|
35312
|
+
"privacy": "private",
|
|
35313
|
+
"return": {
|
|
35314
|
+
"type": {
|
|
35315
|
+
"text": "boolean"
|
|
35316
|
+
}
|
|
35726
35317
|
},
|
|
35727
|
-
"
|
|
35318
|
+
"parameters": [
|
|
35319
|
+
{
|
|
35320
|
+
"name": "item",
|
|
35321
|
+
"type": {
|
|
35322
|
+
"text": "SlashMenuItem"
|
|
35323
|
+
}
|
|
35324
|
+
}
|
|
35325
|
+
],
|
|
35326
|
+
"description": "Returns false for items the controller should not insert text for."
|
|
35728
35327
|
},
|
|
35729
35328
|
{
|
|
35730
35329
|
"kind": "field",
|
|
35731
|
-
"name": "
|
|
35732
|
-
"
|
|
35733
|
-
"text": "number"
|
|
35734
|
-
},
|
|
35735
|
-
"default": "0",
|
|
35736
|
-
"attribute": "value"
|
|
35330
|
+
"name": "handleEditPaste",
|
|
35331
|
+
"privacy": "private"
|
|
35737
35332
|
},
|
|
35738
35333
|
{
|
|
35739
35334
|
"kind": "field",
|
|
35740
|
-
"name": "
|
|
35741
|
-
"
|
|
35742
|
-
"text": "number"
|
|
35743
|
-
},
|
|
35744
|
-
"default": "0",
|
|
35745
|
-
"description": "The default value of the form control. Primarily used for resetting the form control."
|
|
35335
|
+
"name": "handleDragOver",
|
|
35336
|
+
"privacy": "private"
|
|
35746
35337
|
},
|
|
35747
35338
|
{
|
|
35748
35339
|
"kind": "field",
|
|
35749
|
-
"name": "
|
|
35750
|
-
"
|
|
35751
|
-
|
|
35340
|
+
"name": "handleDrop",
|
|
35341
|
+
"privacy": "private"
|
|
35342
|
+
},
|
|
35343
|
+
{
|
|
35344
|
+
"kind": "method",
|
|
35345
|
+
"name": "insertionIndexFromY",
|
|
35346
|
+
"privacy": "private",
|
|
35347
|
+
"return": {
|
|
35348
|
+
"type": {
|
|
35349
|
+
"text": "number"
|
|
35350
|
+
}
|
|
35752
35351
|
},
|
|
35753
|
-
"
|
|
35754
|
-
|
|
35352
|
+
"parameters": [
|
|
35353
|
+
{
|
|
35354
|
+
"name": "y",
|
|
35355
|
+
"type": {
|
|
35356
|
+
"text": "number"
|
|
35357
|
+
}
|
|
35358
|
+
}
|
|
35359
|
+
],
|
|
35360
|
+
"description": "The insertion index a drop at `y` maps to, from the rendered block positions."
|
|
35755
35361
|
},
|
|
35756
35362
|
{
|
|
35757
35363
|
"kind": "field",
|
|
35758
|
-
"name": "
|
|
35759
|
-
"
|
|
35760
|
-
"text": "number"
|
|
35761
|
-
},
|
|
35762
|
-
"default": "1",
|
|
35763
|
-
"attribute": "precision"
|
|
35364
|
+
"name": "handleHandlePointerDown",
|
|
35365
|
+
"privacy": "private"
|
|
35764
35366
|
},
|
|
35765
35367
|
{
|
|
35766
35368
|
"kind": "field",
|
|
35767
|
-
"name": "
|
|
35768
|
-
"
|
|
35769
|
-
"text": "boolean"
|
|
35770
|
-
},
|
|
35771
|
-
"default": "false",
|
|
35772
|
-
"attribute": "readonly"
|
|
35369
|
+
"name": "handleDragPointerMove",
|
|
35370
|
+
"privacy": "private"
|
|
35773
35371
|
},
|
|
35774
35372
|
{
|
|
35775
35373
|
"kind": "field",
|
|
35776
|
-
"name": "
|
|
35777
|
-
"
|
|
35778
|
-
|
|
35374
|
+
"name": "stepAutoScroll",
|
|
35375
|
+
"privacy": "private",
|
|
35376
|
+
"description": "Holding the pointer near a scroll edge keeps the content moving, so a block can\nbe dragged past the visible slice of a long document. Runs per frame rather than\nper pointermove — a pointer parked at the edge stops emitting moves."
|
|
35377
|
+
},
|
|
35378
|
+
{
|
|
35379
|
+
"kind": "method",
|
|
35380
|
+
"name": "autoScroll",
|
|
35381
|
+
"privacy": "private",
|
|
35382
|
+
"return": {
|
|
35383
|
+
"type": {
|
|
35384
|
+
"text": "boolean"
|
|
35385
|
+
}
|
|
35779
35386
|
},
|
|
35780
|
-
"
|
|
35781
|
-
"attribute": "disabled"
|
|
35387
|
+
"description": "Scrolls the editor body, falling through to the page once the body is at its limit."
|
|
35782
35388
|
},
|
|
35783
35389
|
{
|
|
35784
|
-
"kind": "
|
|
35785
|
-
"name": "
|
|
35786
|
-
"
|
|
35787
|
-
|
|
35390
|
+
"kind": "method",
|
|
35391
|
+
"name": "edgeScrollDelta",
|
|
35392
|
+
"privacy": "private",
|
|
35393
|
+
"return": {
|
|
35394
|
+
"type": {
|
|
35395
|
+
"text": "number"
|
|
35396
|
+
}
|
|
35788
35397
|
},
|
|
35789
|
-
"
|
|
35790
|
-
|
|
35791
|
-
|
|
35398
|
+
"parameters": [
|
|
35399
|
+
{
|
|
35400
|
+
"name": "top",
|
|
35401
|
+
"type": {
|
|
35402
|
+
"text": "number"
|
|
35403
|
+
}
|
|
35404
|
+
},
|
|
35405
|
+
{
|
|
35406
|
+
"name": "bottom",
|
|
35407
|
+
"type": {
|
|
35408
|
+
"text": "number"
|
|
35409
|
+
}
|
|
35410
|
+
}
|
|
35411
|
+
],
|
|
35412
|
+
"description": "Scroll step for this frame: nothing until the pointer is within `edge` of a boundary."
|
|
35792
35413
|
},
|
|
35793
35414
|
{
|
|
35794
35415
|
"kind": "field",
|
|
35795
|
-
"name": "
|
|
35796
|
-
"
|
|
35797
|
-
"text": "'small' | 'medium' | 'large'"
|
|
35798
|
-
},
|
|
35799
|
-
"default": "'medium'",
|
|
35800
|
-
"attribute": "size"
|
|
35416
|
+
"name": "handleDragPointerUp",
|
|
35417
|
+
"privacy": "private"
|
|
35801
35418
|
},
|
|
35802
35419
|
{
|
|
35803
35420
|
"kind": "field",
|
|
35804
|
-
"name": "
|
|
35805
|
-
"
|
|
35806
|
-
|
|
35807
|
-
|
|
35808
|
-
"
|
|
35421
|
+
"name": "cancelDrag",
|
|
35422
|
+
"privacy": "private"
|
|
35423
|
+
},
|
|
35424
|
+
{
|
|
35425
|
+
"kind": "method",
|
|
35426
|
+
"name": "createDragGhost",
|
|
35427
|
+
"privacy": "private",
|
|
35428
|
+
"parameters": [
|
|
35429
|
+
{
|
|
35430
|
+
"name": "index",
|
|
35431
|
+
"type": {
|
|
35432
|
+
"text": "number"
|
|
35433
|
+
}
|
|
35434
|
+
}
|
|
35435
|
+
]
|
|
35436
|
+
},
|
|
35437
|
+
{
|
|
35438
|
+
"kind": "method",
|
|
35439
|
+
"name": "moveDragGhost",
|
|
35440
|
+
"privacy": "private",
|
|
35441
|
+
"parameters": [
|
|
35442
|
+
{
|
|
35443
|
+
"name": "x",
|
|
35444
|
+
"type": {
|
|
35445
|
+
"text": "number"
|
|
35446
|
+
}
|
|
35447
|
+
},
|
|
35448
|
+
{
|
|
35449
|
+
"name": "y",
|
|
35450
|
+
"type": {
|
|
35451
|
+
"text": "number"
|
|
35452
|
+
}
|
|
35453
|
+
}
|
|
35454
|
+
]
|
|
35455
|
+
},
|
|
35456
|
+
{
|
|
35457
|
+
"kind": "method",
|
|
35458
|
+
"name": "pickImage",
|
|
35459
|
+
"privacy": "private",
|
|
35460
|
+
"parameters": [
|
|
35461
|
+
{
|
|
35462
|
+
"name": "index",
|
|
35463
|
+
"type": {
|
|
35464
|
+
"text": "number"
|
|
35465
|
+
}
|
|
35466
|
+
}
|
|
35467
|
+
]
|
|
35468
|
+
},
|
|
35469
|
+
{
|
|
35470
|
+
"kind": "method",
|
|
35471
|
+
"name": "pickInclude",
|
|
35472
|
+
"privacy": "private",
|
|
35473
|
+
"parameters": [
|
|
35474
|
+
{
|
|
35475
|
+
"name": "index",
|
|
35476
|
+
"type": {
|
|
35477
|
+
"text": "number"
|
|
35478
|
+
}
|
|
35479
|
+
}
|
|
35480
|
+
]
|
|
35809
35481
|
},
|
|
35810
35482
|
{
|
|
35811
35483
|
"kind": "field",
|
|
35812
|
-
"name": "
|
|
35813
|
-
"
|
|
35814
|
-
|
|
35484
|
+
"name": "closeIncludePicker",
|
|
35485
|
+
"privacy": "private"
|
|
35486
|
+
},
|
|
35487
|
+
{
|
|
35488
|
+
"kind": "method",
|
|
35489
|
+
"name": "insertInclude",
|
|
35490
|
+
"privacy": "private",
|
|
35491
|
+
"parameters": [
|
|
35492
|
+
{
|
|
35493
|
+
"name": "item",
|
|
35494
|
+
"type": {
|
|
35495
|
+
"text": "IncludeOption"
|
|
35496
|
+
}
|
|
35497
|
+
}
|
|
35498
|
+
]
|
|
35815
35499
|
},
|
|
35816
35500
|
{
|
|
35817
35501
|
"kind": "field",
|
|
35818
|
-
"name": "
|
|
35819
|
-
"
|
|
35820
|
-
|
|
35502
|
+
"name": "closeImagePicker",
|
|
35503
|
+
"privacy": "private"
|
|
35504
|
+
},
|
|
35505
|
+
{
|
|
35506
|
+
"kind": "field",
|
|
35507
|
+
"name": "handleImagePicked",
|
|
35508
|
+
"privacy": "private"
|
|
35821
35509
|
},
|
|
35822
35510
|
{
|
|
35823
35511
|
"kind": "method",
|
|
35824
|
-
"name": "
|
|
35825
|
-
"
|
|
35826
|
-
|
|
35827
|
-
|
|
35512
|
+
"name": "insertImage",
|
|
35513
|
+
"privacy": "private",
|
|
35514
|
+
"parameters": [
|
|
35515
|
+
{
|
|
35516
|
+
"name": "file",
|
|
35517
|
+
"type": {
|
|
35518
|
+
"text": "File"
|
|
35519
|
+
}
|
|
35520
|
+
},
|
|
35521
|
+
{
|
|
35522
|
+
"name": "index",
|
|
35523
|
+
"type": {
|
|
35524
|
+
"text": "number"
|
|
35525
|
+
}
|
|
35828
35526
|
}
|
|
35829
|
-
|
|
35830
|
-
"description": "Checks the validity but does not show a validation message. Returns `true` when valid and `false` when invalid."
|
|
35527
|
+
]
|
|
35831
35528
|
},
|
|
35832
35529
|
{
|
|
35833
35530
|
"kind": "method",
|
|
35834
|
-
"name": "
|
|
35531
|
+
"name": "uploadImage",
|
|
35532
|
+
"privacy": "private",
|
|
35835
35533
|
"return": {
|
|
35836
35534
|
"type": {
|
|
35837
|
-
"text": "
|
|
35535
|
+
"text": "Promise<string>"
|
|
35838
35536
|
}
|
|
35839
35537
|
},
|
|
35840
|
-
"
|
|
35538
|
+
"parameters": [
|
|
35539
|
+
{
|
|
35540
|
+
"name": "file",
|
|
35541
|
+
"type": {
|
|
35542
|
+
"text": "File"
|
|
35543
|
+
}
|
|
35544
|
+
}
|
|
35545
|
+
]
|
|
35841
35546
|
},
|
|
35842
35547
|
{
|
|
35843
35548
|
"kind": "method",
|
|
35844
|
-
"name": "
|
|
35845
|
-
"
|
|
35549
|
+
"name": "appPath",
|
|
35550
|
+
"privacy": "private",
|
|
35551
|
+
"return": {
|
|
35552
|
+
"type": {
|
|
35553
|
+
"text": "string"
|
|
35554
|
+
}
|
|
35555
|
+
},
|
|
35556
|
+
"parameters": [
|
|
35557
|
+
{
|
|
35558
|
+
"name": "path",
|
|
35559
|
+
"type": {
|
|
35560
|
+
"text": "string"
|
|
35561
|
+
}
|
|
35562
|
+
}
|
|
35563
|
+
],
|
|
35564
|
+
"description": "Resolves an app-relative path the way the console's pagelet handler does:\nan app fragment's URLs sit under the app base, and the console puts the app's\n`gaid` on the host element. Links rendered here live in the shadow root,\nwhere a click retargets to the host, so that handler never sees them — the\nhref has to carry the base itself."
|
|
35846
35565
|
},
|
|
35847
35566
|
{
|
|
35848
35567
|
"kind": "method",
|
|
35849
|
-
"name": "
|
|
35850
|
-
"
|
|
35568
|
+
"name": "hasIncludeBlock",
|
|
35569
|
+
"privacy": "private",
|
|
35570
|
+
"return": {
|
|
35571
|
+
"type": {
|
|
35572
|
+
"text": "boolean"
|
|
35573
|
+
}
|
|
35574
|
+
}
|
|
35851
35575
|
},
|
|
35852
35576
|
{
|
|
35853
35577
|
"kind": "method",
|
|
35854
|
-
"name": "
|
|
35578
|
+
"name": "loadIncludeOptions",
|
|
35855
35579
|
"privacy": "private",
|
|
35856
35580
|
"return": {
|
|
35857
35581
|
"type": {
|
|
35858
|
-
"text": "
|
|
35582
|
+
"text": "Promise<IncludeOption[]>"
|
|
35859
35583
|
}
|
|
35860
35584
|
},
|
|
35585
|
+
"description": "Fetches the include list once; every later caller shares the same promise."
|
|
35586
|
+
},
|
|
35587
|
+
{
|
|
35588
|
+
"kind": "method",
|
|
35589
|
+
"name": "autosize",
|
|
35590
|
+
"privacy": "private",
|
|
35861
35591
|
"parameters": [
|
|
35862
35592
|
{
|
|
35863
|
-
"name": "
|
|
35864
|
-
"type": {
|
|
35865
|
-
"text": "number"
|
|
35866
|
-
}
|
|
35867
|
-
},
|
|
35868
|
-
{
|
|
35869
|
-
"name": "precision",
|
|
35593
|
+
"name": "input",
|
|
35870
35594
|
"type": {
|
|
35871
|
-
"text": "
|
|
35595
|
+
"text": "HTMLTextAreaElement"
|
|
35872
35596
|
}
|
|
35873
35597
|
}
|
|
35874
35598
|
]
|
|
35875
35599
|
},
|
|
35876
35600
|
{
|
|
35877
35601
|
"kind": "method",
|
|
35878
|
-
"name": "
|
|
35602
|
+
"name": "applyInline",
|
|
35879
35603
|
"privacy": "private",
|
|
35880
|
-
"return": {
|
|
35881
|
-
"type": {
|
|
35882
|
-
"text": "number"
|
|
35883
|
-
}
|
|
35884
|
-
},
|
|
35885
35604
|
"parameters": [
|
|
35886
35605
|
{
|
|
35887
|
-
"name": "
|
|
35606
|
+
"name": "mark",
|
|
35888
35607
|
"type": {
|
|
35889
|
-
"text": "
|
|
35608
|
+
"text": "InlineMark"
|
|
35890
35609
|
}
|
|
35891
35610
|
}
|
|
35892
|
-
]
|
|
35611
|
+
],
|
|
35612
|
+
"description": "Applies an inline mark to the open block's textarea: wraps the selection, toggles the\nmark off when it is already wrapped, or inserts a selected placeholder when there is\nno selection. Goes through `editingDraft` so `zn-input` still fires."
|
|
35613
|
+
},
|
|
35614
|
+
{
|
|
35615
|
+
"kind": "field",
|
|
35616
|
+
"name": "toggleRawMode",
|
|
35617
|
+
"privacy": "private"
|
|
35893
35618
|
},
|
|
35894
35619
|
{
|
|
35895
35620
|
"kind": "method",
|
|
35896
|
-
"name": "
|
|
35621
|
+
"name": "focusRaw",
|
|
35622
|
+
"privacy": "private"
|
|
35623
|
+
},
|
|
35624
|
+
{
|
|
35625
|
+
"kind": "field",
|
|
35626
|
+
"name": "handleRawInput",
|
|
35627
|
+
"privacy": "private",
|
|
35628
|
+
"description": "Raw mode keeps the whole document in one textarea, so the textarea — not\nthe block list — is authoritative while it is open: re-splitting on every\nkeystroke would normalise blank lines out from under the cursor."
|
|
35629
|
+
},
|
|
35630
|
+
{
|
|
35631
|
+
"kind": "field",
|
|
35632
|
+
"name": "commitRaw",
|
|
35633
|
+
"privacy": "private",
|
|
35634
|
+
"description": "Re-splits the raw source into blocks. Not `updateBlocks` — that only\nreports a change when the re-join differs from the value, and raw edits\nhave already written straight to the value."
|
|
35635
|
+
},
|
|
35636
|
+
{
|
|
35637
|
+
"kind": "method",
|
|
35638
|
+
"name": "handleToolbarInsert",
|
|
35897
35639
|
"privacy": "private",
|
|
35898
|
-
"return": {
|
|
35899
|
-
"type": {
|
|
35900
|
-
"text": "string"
|
|
35901
|
-
}
|
|
35902
|
-
},
|
|
35903
35640
|
"parameters": [
|
|
35904
35641
|
{
|
|
35905
|
-
"name": "
|
|
35642
|
+
"name": "action",
|
|
35906
35643
|
"type": {
|
|
35907
|
-
"text": "
|
|
35644
|
+
"text": "EditorAction"
|
|
35908
35645
|
}
|
|
35909
35646
|
}
|
|
35910
35647
|
]
|
|
35911
35648
|
},
|
|
35912
35649
|
{
|
|
35913
35650
|
"kind": "method",
|
|
35914
|
-
"name": "
|
|
35651
|
+
"name": "renderImageControls",
|
|
35652
|
+
"privacy": "private"
|
|
35653
|
+
},
|
|
35654
|
+
{
|
|
35655
|
+
"kind": "method",
|
|
35656
|
+
"name": "renderIncludeChip",
|
|
35915
35657
|
"privacy": "private",
|
|
35916
|
-
"return": {
|
|
35917
|
-
"type": {
|
|
35918
|
-
"text": "number"
|
|
35919
|
-
}
|
|
35920
|
-
},
|
|
35921
35658
|
"parameters": [
|
|
35922
35659
|
{
|
|
35923
|
-
"name": "
|
|
35660
|
+
"name": "data",
|
|
35924
35661
|
"type": {
|
|
35925
|
-
"text": "
|
|
35662
|
+
"text": "IncludeBlockData"
|
|
35926
35663
|
}
|
|
35927
35664
|
}
|
|
35928
35665
|
]
|
|
35929
35666
|
},
|
|
35930
35667
|
{
|
|
35931
35668
|
"kind": "method",
|
|
35932
|
-
"name": "
|
|
35669
|
+
"name": "renderMetaChips",
|
|
35933
35670
|
"privacy": "private",
|
|
35934
|
-
"return": {
|
|
35935
|
-
"type": {
|
|
35936
|
-
"text": "number"
|
|
35937
|
-
}
|
|
35938
|
-
},
|
|
35939
35671
|
"parameters": [
|
|
35940
35672
|
{
|
|
35941
|
-
"name": "
|
|
35673
|
+
"name": "lines",
|
|
35942
35674
|
"type": {
|
|
35943
|
-
"text": "
|
|
35675
|
+
"text": "MetaLine[]"
|
|
35944
35676
|
}
|
|
35945
35677
|
}
|
|
35946
|
-
]
|
|
35678
|
+
],
|
|
35679
|
+
"description": "A metadata-only block parses to nothing, so show each of its lines as a chip instead."
|
|
35947
35680
|
},
|
|
35948
35681
|
{
|
|
35949
35682
|
"kind": "method",
|
|
35950
|
-
"name": "
|
|
35683
|
+
"name": "renderMetaChip",
|
|
35951
35684
|
"privacy": "private",
|
|
35952
35685
|
"parameters": [
|
|
35953
35686
|
{
|
|
35954
|
-
"name": "
|
|
35687
|
+
"name": "line",
|
|
35955
35688
|
"type": {
|
|
35956
|
-
"text": "
|
|
35689
|
+
"text": "MetaLine"
|
|
35957
35690
|
}
|
|
35958
35691
|
}
|
|
35959
|
-
]
|
|
35692
|
+
],
|
|
35693
|
+
"description": "One shared chip treatment for every metadata line kind — each kind just supplies an\nicon, a name, and an optional value/state, display-only in all three cases."
|
|
35960
35694
|
},
|
|
35961
35695
|
{
|
|
35962
35696
|
"kind": "method",
|
|
35963
|
-
"name": "
|
|
35697
|
+
"name": "markVariables",
|
|
35964
35698
|
"privacy": "private",
|
|
35965
35699
|
"parameters": [
|
|
35966
35700
|
{
|
|
35967
|
-
"name": "
|
|
35701
|
+
"name": "root",
|
|
35968
35702
|
"type": {
|
|
35969
|
-
"text": "
|
|
35703
|
+
"text": "Element"
|
|
35970
35704
|
}
|
|
35971
35705
|
}
|
|
35972
|
-
]
|
|
35706
|
+
],
|
|
35707
|
+
"description": "Wraps `{name}` references so they read as variables rather than literal text. Walks text\nnodes and skips code, so a brace in a sample stays a brace, and no regex touches markup."
|
|
35973
35708
|
},
|
|
35974
35709
|
{
|
|
35975
35710
|
"kind": "method",
|
|
35976
|
-
"name": "
|
|
35711
|
+
"name": "renderConditional",
|
|
35977
35712
|
"privacy": "private",
|
|
35713
|
+
"return": {
|
|
35714
|
+
"type": {
|
|
35715
|
+
"text": "TemplateResult | null"
|
|
35716
|
+
}
|
|
35717
|
+
},
|
|
35978
35718
|
"parameters": [
|
|
35979
35719
|
{
|
|
35980
|
-
"name": "
|
|
35720
|
+
"name": "block",
|
|
35981
35721
|
"type": {
|
|
35982
|
-
"text": "
|
|
35722
|
+
"text": "string"
|
|
35983
35723
|
}
|
|
35984
35724
|
}
|
|
35985
|
-
]
|
|
35725
|
+
],
|
|
35726
|
+
"description": "A conditional range as a labelled wrapper. The inner content is parsed without the\ndirective lines: evaluating instead would blank the block whenever the flag is not\ndefined in this same block, hiding the author's content while they edit it. It also\nkeeps both halves of an if/else idiom visible — with evaluation you could never see\nthe `ifndef` branch while the `ifdef` condition held. Nesting is handled by\n`splitConditionalParts`/`renderConditionalWrapper` below, recursively."
|
|
35986
35727
|
},
|
|
35987
35728
|
{
|
|
35988
35729
|
"kind": "method",
|
|
35989
|
-
"name": "
|
|
35730
|
+
"name": "renderBlock",
|
|
35990
35731
|
"privacy": "private",
|
|
35991
35732
|
"parameters": [
|
|
35992
35733
|
{
|
|
35993
|
-
"name": "
|
|
35734
|
+
"name": "block",
|
|
35994
35735
|
"type": {
|
|
35995
|
-
"text": "
|
|
35736
|
+
"text": "string"
|
|
35737
|
+
}
|
|
35738
|
+
},
|
|
35739
|
+
{
|
|
35740
|
+
"name": "index",
|
|
35741
|
+
"type": {
|
|
35742
|
+
"text": "number"
|
|
35996
35743
|
}
|
|
35997
35744
|
}
|
|
35998
35745
|
]
|
|
35999
35746
|
},
|
|
36000
35747
|
{
|
|
36001
35748
|
"kind": "method",
|
|
36002
|
-
"name": "
|
|
36003
|
-
"privacy": "private"
|
|
35749
|
+
"name": "isActionDisabled",
|
|
35750
|
+
"privacy": "private",
|
|
35751
|
+
"return": {
|
|
35752
|
+
"type": {
|
|
35753
|
+
"text": "boolean"
|
|
35754
|
+
}
|
|
35755
|
+
},
|
|
35756
|
+
"parameters": [
|
|
35757
|
+
{
|
|
35758
|
+
"name": "action",
|
|
35759
|
+
"type": {
|
|
35760
|
+
"text": "EditorAction"
|
|
35761
|
+
}
|
|
35762
|
+
}
|
|
35763
|
+
],
|
|
35764
|
+
"description": "An inline action needs an open block to apply its mark to."
|
|
36004
35765
|
},
|
|
36005
35766
|
{
|
|
36006
35767
|
"kind": "method",
|
|
36007
|
-
"name": "
|
|
35768
|
+
"name": "activateAction",
|
|
36008
35769
|
"privacy": "private",
|
|
36009
35770
|
"parameters": [
|
|
36010
35771
|
{
|
|
36011
|
-
"name": "
|
|
35772
|
+
"name": "action",
|
|
36012
35773
|
"type": {
|
|
36013
|
-
"text": "
|
|
35774
|
+
"text": "EditorAction"
|
|
36014
35775
|
}
|
|
36015
35776
|
}
|
|
36016
|
-
]
|
|
35777
|
+
],
|
|
35778
|
+
"description": "Routes a toolbar/menu action to the inline or block insert path — the one place both\n`renderAction` and `renderMenuAction` call, so the bar and the overflow menu cannot\ndrift out of sync on what a given action actually does."
|
|
36017
35779
|
},
|
|
36018
35780
|
{
|
|
36019
35781
|
"kind": "method",
|
|
36020
|
-
"name": "
|
|
35782
|
+
"name": "renderAction",
|
|
36021
35783
|
"privacy": "private",
|
|
36022
35784
|
"parameters": [
|
|
36023
35785
|
{
|
|
36024
|
-
"name": "
|
|
35786
|
+
"name": "action",
|
|
36025
35787
|
"type": {
|
|
36026
|
-
"text": "
|
|
35788
|
+
"text": "EditorAction"
|
|
36027
35789
|
}
|
|
36028
35790
|
}
|
|
36029
|
-
]
|
|
35791
|
+
],
|
|
35792
|
+
"description": "A single toolbar action button, shared by the toolbar bar and the overflow menu."
|
|
36030
35793
|
},
|
|
36031
35794
|
{
|
|
36032
35795
|
"kind": "method",
|
|
36033
|
-
"name": "
|
|
35796
|
+
"name": "renderMenuAction",
|
|
36034
35797
|
"privacy": "private",
|
|
36035
35798
|
"parameters": [
|
|
36036
35799
|
{
|
|
36037
|
-
"name": "
|
|
35800
|
+
"name": "action",
|
|
36038
35801
|
"type": {
|
|
36039
|
-
"text": "
|
|
35802
|
+
"text": "EditorAction"
|
|
36040
35803
|
}
|
|
36041
35804
|
}
|
|
36042
|
-
]
|
|
35805
|
+
],
|
|
35806
|
+
"description": "The same action, rendered as a menu item for the overflow menu."
|
|
35807
|
+
},
|
|
35808
|
+
{
|
|
35809
|
+
"kind": "method",
|
|
35810
|
+
"name": "renderRaw",
|
|
35811
|
+
"privacy": "private"
|
|
35812
|
+
},
|
|
35813
|
+
{
|
|
35814
|
+
"kind": "method",
|
|
35815
|
+
"name": "renderBody",
|
|
35816
|
+
"privacy": "private",
|
|
35817
|
+
"description": "The block views, with the inline image picker spliced in when active."
|
|
35818
|
+
},
|
|
35819
|
+
{
|
|
35820
|
+
"kind": "method",
|
|
35821
|
+
"name": "renderIncludePicker",
|
|
35822
|
+
"privacy": "private"
|
|
35823
|
+
},
|
|
35824
|
+
{
|
|
35825
|
+
"kind": "method",
|
|
35826
|
+
"name": "renderImagePicker",
|
|
35827
|
+
"privacy": "private"
|
|
36043
35828
|
}
|
|
36044
35829
|
],
|
|
36045
35830
|
"events": [
|
|
36046
35831
|
{
|
|
36047
|
-
"description": "Emitted
|
|
36048
|
-
"name": "zn-
|
|
35832
|
+
"description": "Emitted on each keystroke while editing a block.",
|
|
35833
|
+
"name": "zn-input"
|
|
35834
|
+
},
|
|
35835
|
+
{
|
|
35836
|
+
"description": "Emitted when a block edit is committed and the value changes.",
|
|
35837
|
+
"name": "zn-change"
|
|
36049
35838
|
}
|
|
36050
35839
|
],
|
|
36051
35840
|
"attributes": [
|
|
36052
35841
|
{
|
|
36053
|
-
"name": "
|
|
35842
|
+
"name": "slash-recent-key",
|
|
36054
35843
|
"type": {
|
|
36055
35844
|
"text": "string"
|
|
36056
35845
|
},
|
|
36057
|
-
"
|
|
35846
|
+
"default": "''",
|
|
35847
|
+
"description": "Lists the blocks most recently inserted here above the rest of the slash menu, remembered in\n`localStorage` under this key. Leave unset to offer no recently used section.",
|
|
35848
|
+
"fieldName": "slashRecentKey"
|
|
36058
35849
|
},
|
|
36059
35850
|
{
|
|
36060
|
-
"name": "
|
|
35851
|
+
"name": "name",
|
|
36061
35852
|
"type": {
|
|
36062
35853
|
"text": "string"
|
|
36063
35854
|
},
|
|
36064
35855
|
"default": "''",
|
|
36065
|
-
"description": "The
|
|
36066
|
-
"fieldName": "
|
|
35856
|
+
"description": "The name of the control, submitted as part of form data.",
|
|
35857
|
+
"fieldName": "name"
|
|
36067
35858
|
},
|
|
36068
35859
|
{
|
|
36069
|
-
"name": "
|
|
35860
|
+
"name": "value",
|
|
36070
35861
|
"type": {
|
|
36071
35862
|
"text": "string"
|
|
36072
35863
|
},
|
|
36073
|
-
"
|
|
35864
|
+
"default": "''",
|
|
35865
|
+
"description": "The current remarkd source.",
|
|
35866
|
+
"fieldName": "value"
|
|
36074
35867
|
},
|
|
36075
35868
|
{
|
|
36076
|
-
"name": "
|
|
35869
|
+
"name": "placeholder",
|
|
36077
35870
|
"type": {
|
|
36078
|
-
"text": "
|
|
35871
|
+
"text": "string"
|
|
36079
35872
|
},
|
|
36080
|
-
"default": "
|
|
36081
|
-
"
|
|
35873
|
+
"default": "'Type something…'",
|
|
35874
|
+
"description": "Placeholder shown when the document is empty.",
|
|
35875
|
+
"fieldName": "placeholder"
|
|
36082
35876
|
},
|
|
36083
35877
|
{
|
|
36084
|
-
"name": "
|
|
35878
|
+
"name": "attachment-url",
|
|
36085
35879
|
"type": {
|
|
36086
|
-
"text": "
|
|
35880
|
+
"text": "string"
|
|
36087
35881
|
},
|
|
36088
|
-
"default": "
|
|
36089
|
-
"
|
|
35882
|
+
"default": "''",
|
|
35883
|
+
"description": "Endpoint for image uploads — required for image support. Posting the file\nmetadata here must return `{uploadPath, uploadUrl}`; the file is then PUT\nto `uploadUrl` and the returned `uploadPath` is embedded as the image URL.",
|
|
35884
|
+
"fieldName": "attachmentUrl"
|
|
36090
35885
|
},
|
|
36091
35886
|
{
|
|
36092
|
-
"name": "
|
|
35887
|
+
"name": "include-url",
|
|
36093
35888
|
"type": {
|
|
36094
|
-
"text": "
|
|
35889
|
+
"text": "string"
|
|
36095
35890
|
},
|
|
36096
|
-
"default": "
|
|
36097
|
-
"
|
|
35891
|
+
"default": "''",
|
|
35892
|
+
"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.",
|
|
35893
|
+
"fieldName": "includeUrl"
|
|
35894
|
+
},
|
|
35895
|
+
{
|
|
35896
|
+
"name": "allow-raw",
|
|
35897
|
+
"type": {
|
|
35898
|
+
"text": "boolean"
|
|
35899
|
+
},
|
|
35900
|
+
"default": "false",
|
|
35901
|
+
"description": "Adds a toolbar toggle that swaps the block view for the full remarkd source.",
|
|
35902
|
+
"fieldName": "allowRaw"
|
|
35903
|
+
},
|
|
35904
|
+
{
|
|
35905
|
+
"name": "required",
|
|
35906
|
+
"type": {
|
|
35907
|
+
"text": "boolean"
|
|
35908
|
+
},
|
|
35909
|
+
"default": "false",
|
|
35910
|
+
"description": "Makes the editor required for form submission.",
|
|
35911
|
+
"fieldName": "required"
|
|
36098
35912
|
},
|
|
36099
35913
|
{
|
|
36100
35914
|
"name": "readonly",
|
|
@@ -36102,6 +35916,7 @@
|
|
|
36102
35916
|
"text": "boolean"
|
|
36103
35917
|
},
|
|
36104
35918
|
"default": "false",
|
|
35919
|
+
"description": "Makes the editor read-only.",
|
|
36105
35920
|
"fieldName": "readonly"
|
|
36106
35921
|
},
|
|
36107
35922
|
{
|
|
@@ -36110,31 +35925,216 @@
|
|
|
36110
35925
|
"text": "boolean"
|
|
36111
35926
|
},
|
|
36112
35927
|
"default": "false",
|
|
35928
|
+
"description": "Disables the editor.",
|
|
36113
35929
|
"fieldName": "disabled"
|
|
35930
|
+
}
|
|
35931
|
+
],
|
|
35932
|
+
"superclass": {
|
|
35933
|
+
"name": "ZincElement",
|
|
35934
|
+
"module": "/src/internal/zinc-element"
|
|
35935
|
+
},
|
|
35936
|
+
"summary": "A Notion-style block editor for remarkd content. Blocks render inline; click one to edit its source.",
|
|
35937
|
+
"tagNameWithoutPrefix": "remarkd-editor",
|
|
35938
|
+
"tagName": "zn-remarkd-editor",
|
|
35939
|
+
"customElement": true,
|
|
35940
|
+
"jsDoc": "/**\n * @summary A Notion-style block editor for remarkd content. Blocks render inline; click one to edit its source.\n * @documentation https://zinc.style/components/remarkd-editor\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-button\n * @dependency zn-button-group\n * @dependency zn-dropdown\n * @dependency zn-icon\n * @dependency zn-file\n * @dependency zn-menu\n * @dependency zn-menu-item\n * @dependency zn-slash-menu\n *\n * @event zn-input - Emitted on each keystroke while editing a block.\n * @event zn-change - Emitted when a block edit is committed and the value changes.\n *\n * @csspart base - The component's base wrapper.\n * @csspart toolbar - The always-visible block-insert and inline-formatting toolbar.\n * @csspart raw-toggle - The button that switches between the block view and the raw source view.\n * @csspart block - A rendered block wrapper.\n * @csspart rendered - The rendered remarkd output of a block.\n * @csspart conditional - A labelled wrapper for an ifdef/ifndef/ifeval/iftrue/iffalse/ifempty/ifnempty range.\n * @csspart variable - A chip rendered for a document attribute, title, or bracket line.\n * @csspart input - The textarea shown while editing a block.\n * @csspart raw - The full-document textarea shown in raw source mode.\n * @csspart slash-menu - The `zn-slash-menu` opened by typing \"/\" in an empty block.\n * @csspart image-controls - The caption / alignment / size panel shown when an image block is clicked.\n * @csspart include - The chip rendered in place of an `include::` directive.\n * @csspart include-picker - The inline Include picker opened from the toolbar or \"/include\".\n *\n * @cssproperty --remarkd-editor-max-height - The tallest the editor grows before its body scrolls. Defaults to `100dvh`.\n */",
|
|
35941
|
+
"documentation": "https://zinc.style/components/remarkd-editor",
|
|
35942
|
+
"status": "experimental",
|
|
35943
|
+
"since": "1.0",
|
|
35944
|
+
"dependencies": [
|
|
35945
|
+
"zn-button",
|
|
35946
|
+
"zn-button-group",
|
|
35947
|
+
"zn-dropdown",
|
|
35948
|
+
"zn-icon",
|
|
35949
|
+
"zn-file",
|
|
35950
|
+
"zn-menu",
|
|
35951
|
+
"zn-menu-item",
|
|
35952
|
+
"zn-slash-menu"
|
|
35953
|
+
]
|
|
35954
|
+
}
|
|
35955
|
+
],
|
|
35956
|
+
"exports": [
|
|
35957
|
+
{
|
|
35958
|
+
"kind": "js",
|
|
35959
|
+
"name": "default",
|
|
35960
|
+
"declaration": {
|
|
35961
|
+
"name": "ZnRemarkdEditor",
|
|
35962
|
+
"module": "components/remarkd-editor/remarkd-editor.js"
|
|
35963
|
+
}
|
|
35964
|
+
}
|
|
35965
|
+
]
|
|
35966
|
+
},
|
|
35967
|
+
{
|
|
35968
|
+
"kind": "javascript-module",
|
|
35969
|
+
"path": "components/reveal/reveal.js",
|
|
35970
|
+
"declarations": [
|
|
35971
|
+
{
|
|
35972
|
+
"kind": "class",
|
|
35973
|
+
"description": "",
|
|
35974
|
+
"name": "ZnReveal",
|
|
35975
|
+
"cssProperties": [
|
|
35976
|
+
{
|
|
35977
|
+
"description": "An example CSS custom property.",
|
|
35978
|
+
"name": "--example"
|
|
35979
|
+
}
|
|
35980
|
+
],
|
|
35981
|
+
"cssParts": [
|
|
35982
|
+
{
|
|
35983
|
+
"description": "The component's base wrapper.",
|
|
35984
|
+
"name": "base"
|
|
35985
|
+
}
|
|
35986
|
+
],
|
|
35987
|
+
"slots": [
|
|
35988
|
+
{
|
|
35989
|
+
"description": "The default slot.",
|
|
35990
|
+
"name": ""
|
|
36114
35991
|
},
|
|
36115
35992
|
{
|
|
36116
|
-
"
|
|
35993
|
+
"description": "An example slot.",
|
|
35994
|
+
"name": "example"
|
|
35995
|
+
}
|
|
35996
|
+
],
|
|
35997
|
+
"members": [
|
|
35998
|
+
{
|
|
35999
|
+
"kind": "field",
|
|
36000
|
+
"name": "duration",
|
|
36001
|
+
"type": {
|
|
36002
|
+
"text": "number"
|
|
36003
|
+
},
|
|
36004
|
+
"default": "2000",
|
|
36005
|
+
"attribute": "duration"
|
|
36006
|
+
},
|
|
36007
|
+
{
|
|
36008
|
+
"kind": "field",
|
|
36009
|
+
"name": "initial",
|
|
36010
|
+
"type": {
|
|
36011
|
+
"text": "string"
|
|
36012
|
+
},
|
|
36013
|
+
"default": "''",
|
|
36014
|
+
"attribute": "initial"
|
|
36015
|
+
},
|
|
36016
|
+
{
|
|
36017
|
+
"kind": "field",
|
|
36018
|
+
"name": "revealed",
|
|
36019
|
+
"type": {
|
|
36020
|
+
"text": "string"
|
|
36021
|
+
},
|
|
36022
|
+
"default": "''",
|
|
36023
|
+
"attribute": "revealed"
|
|
36024
|
+
},
|
|
36025
|
+
{
|
|
36026
|
+
"kind": "field",
|
|
36027
|
+
"name": "hideDelay",
|
|
36028
|
+
"type": {
|
|
36029
|
+
"text": "number"
|
|
36030
|
+
},
|
|
36031
|
+
"default": "150",
|
|
36032
|
+
"attribute": "hide-delay"
|
|
36033
|
+
},
|
|
36034
|
+
{
|
|
36035
|
+
"kind": "field",
|
|
36036
|
+
"name": "noToggle",
|
|
36117
36037
|
"type": {
|
|
36118
36038
|
"text": "boolean"
|
|
36119
36039
|
},
|
|
36120
36040
|
"default": "false",
|
|
36121
|
-
"description": "
|
|
36122
|
-
"
|
|
36041
|
+
"description": "Disables click-to-toggle so the value is only revealed on hover. Clicks still bubble to the parent.",
|
|
36042
|
+
"attribute": "no-toggle"
|
|
36123
36043
|
},
|
|
36124
36044
|
{
|
|
36125
|
-
"
|
|
36045
|
+
"kind": "field",
|
|
36046
|
+
"name": "_isRevealed",
|
|
36126
36047
|
"type": {
|
|
36127
|
-
"text": "
|
|
36048
|
+
"text": "boolean"
|
|
36128
36049
|
},
|
|
36129
|
-
"
|
|
36130
|
-
"
|
|
36050
|
+
"privacy": "private",
|
|
36051
|
+
"default": "false"
|
|
36131
36052
|
},
|
|
36132
36053
|
{
|
|
36133
|
-
"
|
|
36054
|
+
"kind": "field",
|
|
36055
|
+
"name": "_isToggled",
|
|
36134
36056
|
"type": {
|
|
36135
|
-
"text": "
|
|
36057
|
+
"text": "boolean"
|
|
36136
36058
|
},
|
|
36137
|
-
"
|
|
36059
|
+
"privacy": "private",
|
|
36060
|
+
"default": "false"
|
|
36061
|
+
},
|
|
36062
|
+
{
|
|
36063
|
+
"kind": "field",
|
|
36064
|
+
"name": "_hideTimer",
|
|
36065
|
+
"type": {
|
|
36066
|
+
"text": "ReturnType<typeof setTimeout> | undefined"
|
|
36067
|
+
},
|
|
36068
|
+
"privacy": "private"
|
|
36069
|
+
},
|
|
36070
|
+
{
|
|
36071
|
+
"kind": "method",
|
|
36072
|
+
"name": "_clearHideTimer",
|
|
36073
|
+
"privacy": "private"
|
|
36074
|
+
},
|
|
36075
|
+
{
|
|
36076
|
+
"kind": "method",
|
|
36077
|
+
"name": "handleToggleReveal",
|
|
36078
|
+
"privacy": "protected"
|
|
36079
|
+
},
|
|
36080
|
+
{
|
|
36081
|
+
"kind": "method",
|
|
36082
|
+
"name": "handleMouseEnter",
|
|
36083
|
+
"privacy": "protected"
|
|
36084
|
+
},
|
|
36085
|
+
{
|
|
36086
|
+
"kind": "method",
|
|
36087
|
+
"name": "handleMouseLeave",
|
|
36088
|
+
"privacy": "protected"
|
|
36089
|
+
}
|
|
36090
|
+
],
|
|
36091
|
+
"events": [
|
|
36092
|
+
{
|
|
36093
|
+
"description": "Emitted as an example.",
|
|
36094
|
+
"name": "zn-event-name"
|
|
36095
|
+
}
|
|
36096
|
+
],
|
|
36097
|
+
"attributes": [
|
|
36098
|
+
{
|
|
36099
|
+
"name": "duration",
|
|
36100
|
+
"type": {
|
|
36101
|
+
"text": "number"
|
|
36102
|
+
},
|
|
36103
|
+
"default": "2000",
|
|
36104
|
+
"fieldName": "duration"
|
|
36105
|
+
},
|
|
36106
|
+
{
|
|
36107
|
+
"name": "initial",
|
|
36108
|
+
"type": {
|
|
36109
|
+
"text": "string"
|
|
36110
|
+
},
|
|
36111
|
+
"default": "''",
|
|
36112
|
+
"fieldName": "initial"
|
|
36113
|
+
},
|
|
36114
|
+
{
|
|
36115
|
+
"name": "revealed",
|
|
36116
|
+
"type": {
|
|
36117
|
+
"text": "string"
|
|
36118
|
+
},
|
|
36119
|
+
"default": "''",
|
|
36120
|
+
"fieldName": "revealed"
|
|
36121
|
+
},
|
|
36122
|
+
{
|
|
36123
|
+
"name": "hide-delay",
|
|
36124
|
+
"type": {
|
|
36125
|
+
"text": "number"
|
|
36126
|
+
},
|
|
36127
|
+
"default": "150",
|
|
36128
|
+
"fieldName": "hideDelay"
|
|
36129
|
+
},
|
|
36130
|
+
{
|
|
36131
|
+
"name": "no-toggle",
|
|
36132
|
+
"type": {
|
|
36133
|
+
"text": "boolean"
|
|
36134
|
+
},
|
|
36135
|
+
"default": "false",
|
|
36136
|
+
"description": "Disables click-to-toggle so the value is only revealed on hover. Clicks still bubble to the parent.",
|
|
36137
|
+
"fieldName": "noToggle"
|
|
36138
36138
|
}
|
|
36139
36139
|
],
|
|
36140
36140
|
"superclass": {
|
|
@@ -36142,11 +36142,11 @@
|
|
|
36142
36142
|
"module": "/src/internal/zinc-element"
|
|
36143
36143
|
},
|
|
36144
36144
|
"summary": "Short summary of the component's intended use.",
|
|
36145
|
-
"tagNameWithoutPrefix": "
|
|
36146
|
-
"tagName": "zn-
|
|
36145
|
+
"tagNameWithoutPrefix": "reveal",
|
|
36146
|
+
"tagName": "zn-reveal",
|
|
36147
36147
|
"customElement": true,
|
|
36148
|
-
"jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/
|
|
36149
|
-
"documentation": "https://zinc.style/components/
|
|
36148
|
+
"jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/reveal\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-example\n *\n * @event zn-event-name - Emitted as an example.\n *\n * @slot - The default slot.\n * @slot example - An example slot.\n *\n * @csspart base - The component's base wrapper.\n *\n * @usage\n * ```html\n * <zn-reveal duration=\"3000\"\n * initial=\"******@hotmail.com\"\n * revealed=\"john.doe@hotmail.com\" toggle>\n * </zn-reveal>\n * ```\n *\n * @cssproperty --example - An example CSS custom property.\n */",
|
|
36149
|
+
"documentation": "https://zinc.style/components/reveal",
|
|
36150
36150
|
"status": "experimental",
|
|
36151
36151
|
"since": "1.0",
|
|
36152
36152
|
"dependencies": [
|
|
@@ -36159,8 +36159,8 @@
|
|
|
36159
36159
|
"kind": "js",
|
|
36160
36160
|
"name": "default",
|
|
36161
36161
|
"declaration": {
|
|
36162
|
-
"name": "
|
|
36163
|
-
"module": "components/
|
|
36162
|
+
"name": "ZnReveal",
|
|
36163
|
+
"module": "components/reveal/reveal.js"
|
|
36164
36164
|
}
|
|
36165
36165
|
}
|
|
36166
36166
|
]
|
|
@@ -50889,7 +50889,7 @@
|
|
|
50889
50889
|
"package": {
|
|
50890
50890
|
"name": "@kubex/zinc",
|
|
50891
50891
|
"description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
|
|
50892
|
-
"version": "1.1.
|
|
50892
|
+
"version": "1.1.108",
|
|
50893
50893
|
"author": "",
|
|
50894
50894
|
"license": "MIT"
|
|
50895
50895
|
}
|