@kubex/zinc 1.1.163 → 1.1.164
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 +133 -78
- package/dist/vscode.html-custom-data.json +12 -12
- package/dist/web-types.json +30 -27
- package/dist/zn.d.ts +38 -2
- package/dist/zn.min.js +266 -248
- package/package.json +1 -1
- package/src/components/menu/menu.scss +21 -3
- package/src/components/menu-item/menu-item.component.ts +1 -1
- package/src/components/menu-item/menu-item.scss +4 -3
- package/src/components/menu-item/submenu-controller.ts +20 -15
- package/src/components/popup/popup.component.ts +3 -1
- package/src/components/remarkd-editor/actions.ts +36 -9
- package/src/components/remarkd-editor/list-continuation.test.ts +67 -0
- package/src/components/remarkd-editor/list-continuation.ts +73 -0
- package/src/components/remarkd-editor/remarkd-editor.component.ts +51 -9
- package/src/components/remarkd-editor/remarkd-editor.scss +5 -0
- package/src/components/remarkd-editor/remarkd-editor.test.ts +149 -31
- package/src/events/events.ts +1 -0
- package/src/events/zn-reposition.ts +7 -0
|
@@ -56,6 +56,79 @@
|
|
|
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
|
+
},
|
|
59
132
|
{
|
|
60
133
|
"kind": "javascript-module",
|
|
61
134
|
"path": "components/alert/alert.js",
|
|
@@ -250,79 +323,6 @@
|
|
|
250
323
|
}
|
|
251
324
|
]
|
|
252
325
|
},
|
|
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",
|
|
@@ -32416,8 +32416,8 @@
|
|
|
32416
32416
|
],
|
|
32417
32417
|
"events": [
|
|
32418
32418
|
{
|
|
32419
|
-
"description": "Emitted
|
|
32420
|
-
"name": "zn-
|
|
32419
|
+
"description": "Emitted each time the popup is positioned.",
|
|
32420
|
+
"name": "zn-reposition"
|
|
32421
32421
|
}
|
|
32422
32422
|
],
|
|
32423
32423
|
"attributes": [
|
|
@@ -32622,7 +32622,7 @@
|
|
|
32622
32622
|
"tagNameWithoutPrefix": "popup",
|
|
32623
32623
|
"tagName": "zn-popup",
|
|
32624
32624
|
"customElement": true,
|
|
32625
|
-
"jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/popup\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-example\n *\n * @event zn-
|
|
32625
|
+
"jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/popup\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-example\n *\n * @event zn-reposition - Emitted each time the popup is positioned.\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 */",
|
|
32626
32626
|
"documentation": "https://zinc.style/components/popup",
|
|
32627
32627
|
"status": "experimental",
|
|
32628
32628
|
"since": "1.0",
|
|
@@ -37629,6 +37629,29 @@
|
|
|
37629
37629
|
"name": "handleEditKeydown",
|
|
37630
37630
|
"privacy": "private"
|
|
37631
37631
|
},
|
|
37632
|
+
{
|
|
37633
|
+
"kind": "method",
|
|
37634
|
+
"name": "isPlainEnter",
|
|
37635
|
+
"privacy": "private",
|
|
37636
|
+
"return": {
|
|
37637
|
+
"type": {
|
|
37638
|
+
"text": "boolean"
|
|
37639
|
+
}
|
|
37640
|
+
},
|
|
37641
|
+
"parameters": [
|
|
37642
|
+
{
|
|
37643
|
+
"name": "e",
|
|
37644
|
+
"type": {
|
|
37645
|
+
"text": "KeyboardEvent"
|
|
37646
|
+
}
|
|
37647
|
+
}
|
|
37648
|
+
]
|
|
37649
|
+
},
|
|
37650
|
+
{
|
|
37651
|
+
"kind": "field",
|
|
37652
|
+
"name": "handleRawKeydown",
|
|
37653
|
+
"privacy": "private"
|
|
37654
|
+
},
|
|
37632
37655
|
{
|
|
37633
37656
|
"kind": "method",
|
|
37634
37657
|
"name": "isSlashBlock",
|
|
@@ -37997,7 +38020,39 @@
|
|
|
37997
38020
|
}
|
|
37998
38021
|
}
|
|
37999
38022
|
],
|
|
38000
|
-
"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.
|
|
38023
|
+
"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."
|
|
38024
|
+
},
|
|
38025
|
+
{
|
|
38026
|
+
"kind": "method",
|
|
38027
|
+
"name": "applyDraftEdit",
|
|
38028
|
+
"privacy": "private",
|
|
38029
|
+
"parameters": [
|
|
38030
|
+
{
|
|
38031
|
+
"name": "input",
|
|
38032
|
+
"type": {
|
|
38033
|
+
"text": "HTMLTextAreaElement"
|
|
38034
|
+
}
|
|
38035
|
+
},
|
|
38036
|
+
{
|
|
38037
|
+
"name": "value",
|
|
38038
|
+
"type": {
|
|
38039
|
+
"text": "string"
|
|
38040
|
+
}
|
|
38041
|
+
},
|
|
38042
|
+
{
|
|
38043
|
+
"name": "selectionStart",
|
|
38044
|
+
"type": {
|
|
38045
|
+
"text": "number"
|
|
38046
|
+
}
|
|
38047
|
+
},
|
|
38048
|
+
{
|
|
38049
|
+
"name": "selectionEnd",
|
|
38050
|
+
"type": {
|
|
38051
|
+
"text": "number"
|
|
38052
|
+
}
|
|
38053
|
+
}
|
|
38054
|
+
],
|
|
38055
|
+
"description": "Writes a programmatic edit to the open block's textarea. Goes through `editingDraft` so `zn-input` still fires."
|
|
38001
38056
|
},
|
|
38002
38057
|
{
|
|
38003
38058
|
"kind": "field",
|
|
@@ -53826,7 +53881,7 @@
|
|
|
53826
53881
|
"package": {
|
|
53827
53882
|
"name": "@kubex/zinc",
|
|
53828
53883
|
"description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
|
|
53829
|
-
"version": "1.1.
|
|
53884
|
+
"version": "1.1.164",
|
|
53830
53885
|
"author": "",
|
|
53831
53886
|
"license": "MIT"
|
|
53832
53887
|
}
|
|
@@ -13,6 +13,17 @@
|
|
|
13
13
|
}
|
|
14
14
|
]
|
|
15
15
|
},
|
|
16
|
+
{
|
|
17
|
+
"name": "zn-action-bar",
|
|
18
|
+
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
19
|
+
"attributes": [],
|
|
20
|
+
"references": [
|
|
21
|
+
{
|
|
22
|
+
"name": "Documentation",
|
|
23
|
+
"url": "https://zinc.style/components/action-bar"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
},
|
|
16
27
|
{
|
|
17
28
|
"name": "zn-alert",
|
|
18
29
|
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
@@ -53,17 +64,6 @@
|
|
|
53
64
|
}
|
|
54
65
|
]
|
|
55
66
|
},
|
|
56
|
-
{
|
|
57
|
-
"name": "zn-action-bar",
|
|
58
|
-
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
59
|
-
"attributes": [],
|
|
60
|
-
"references": [
|
|
61
|
-
{
|
|
62
|
-
"name": "Documentation",
|
|
63
|
-
"url": "https://zinc.style/components/action-bar"
|
|
64
|
-
}
|
|
65
|
-
]
|
|
66
|
-
},
|
|
67
67
|
{
|
|
68
68
|
"name": "zn-animated-button",
|
|
69
69
|
"description": "\n---\n\n\n### **Methods:**\n - **purchase(): _void_** - Programmatically trigger the purchase flow\n- **setSuccess(): _void_** - Set the button to success state manually\n- **setFailure(message): _void_** - Set the button to failure state manually with optional error message\n- **reset(): _void_** - Reset the button to idle state",
|
|
@@ -3111,7 +3111,7 @@
|
|
|
3111
3111
|
},
|
|
3112
3112
|
{
|
|
3113
3113
|
"name": "zn-popup",
|
|
3114
|
-
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-
|
|
3114
|
+
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-reposition** - Emitted each time the popup is positioned.\n\n### **Methods:**\n - **reposition()** - Forces the popup to recalculate and reposition itself.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
3115
3115
|
"attributes": [
|
|
3116
3116
|
{
|
|
3117
3117
|
"name": "anchor",
|
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@kubex/zinc",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.164",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -15,6 +15,28 @@
|
|
|
15
15
|
"events": [],
|
|
16
16
|
"js": { "properties": [], "events": [] }
|
|
17
17
|
},
|
|
18
|
+
{
|
|
19
|
+
"name": "zn-action-bar",
|
|
20
|
+
"description": "Short summary of the component's intended use.\n\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
21
|
+
"doc-url": "",
|
|
22
|
+
"attributes": [],
|
|
23
|
+
"slots": [
|
|
24
|
+
{ "name": "", "description": "The default slot." },
|
|
25
|
+
{ "name": "example", "description": "An example slot." }
|
|
26
|
+
],
|
|
27
|
+
"events": [
|
|
28
|
+
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
29
|
+
],
|
|
30
|
+
"js": {
|
|
31
|
+
"properties": [],
|
|
32
|
+
"events": [
|
|
33
|
+
{
|
|
34
|
+
"name": "zn-event-name",
|
|
35
|
+
"description": "Emitted as an example."
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
18
40
|
{
|
|
19
41
|
"name": "zn-alert",
|
|
20
42
|
"description": "Short summary of the component's intended use.\n\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
@@ -83,28 +105,6 @@
|
|
|
83
105
|
]
|
|
84
106
|
}
|
|
85
107
|
},
|
|
86
|
-
{
|
|
87
|
-
"name": "zn-action-bar",
|
|
88
|
-
"description": "Short summary of the component's intended use.\n\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
89
|
-
"doc-url": "",
|
|
90
|
-
"attributes": [],
|
|
91
|
-
"slots": [
|
|
92
|
-
{ "name": "", "description": "The default slot." },
|
|
93
|
-
{ "name": "example", "description": "An example slot." }
|
|
94
|
-
],
|
|
95
|
-
"events": [
|
|
96
|
-
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
97
|
-
],
|
|
98
|
-
"js": {
|
|
99
|
-
"properties": [],
|
|
100
|
-
"events": [
|
|
101
|
-
{
|
|
102
|
-
"name": "zn-event-name",
|
|
103
|
-
"description": "Emitted as an example."
|
|
104
|
-
}
|
|
105
|
-
]
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
108
|
{
|
|
109
109
|
"name": "zn-animated-button",
|
|
110
110
|
"description": "\n\n---\n\n\n### **Methods:**\n - **purchase(): _void_** - Programmatically trigger the purchase flow\n- **setSuccess(): _void_** - Set the button to success state manually\n- **setFailure(message): _void_** - Set the button to failure state manually with optional error message\n- **reset(): _void_** - Reset the button to idle state",
|
|
@@ -7380,7 +7380,7 @@
|
|
|
7380
7380
|
},
|
|
7381
7381
|
{
|
|
7382
7382
|
"name": "zn-popup",
|
|
7383
|
-
"description": "Short summary of the component's intended use.\n\n---\n\n\n### **Events:**\n - **zn-
|
|
7383
|
+
"description": "Short summary of the component's intended use.\n\n---\n\n\n### **Events:**\n - **zn-reposition** - Emitted each time the popup is positioned.\n\n### **Methods:**\n - **reposition()** - Forces the popup to recalculate and reposition itself.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
7384
7384
|
"doc-url": "",
|
|
7385
7385
|
"attributes": [
|
|
7386
7386
|
{
|
|
@@ -7508,7 +7508,10 @@
|
|
|
7508
7508
|
{ "name": "example", "description": "An example slot." }
|
|
7509
7509
|
],
|
|
7510
7510
|
"events": [
|
|
7511
|
-
{
|
|
7511
|
+
{
|
|
7512
|
+
"name": "zn-reposition",
|
|
7513
|
+
"description": "Emitted each time the popup is positioned."
|
|
7514
|
+
}
|
|
7512
7515
|
],
|
|
7513
7516
|
"js": {
|
|
7514
7517
|
"properties": [
|
|
@@ -7631,8 +7634,8 @@
|
|
|
7631
7634
|
],
|
|
7632
7635
|
"events": [
|
|
7633
7636
|
{
|
|
7634
|
-
"name": "zn-
|
|
7635
|
-
"description": "Emitted
|
|
7637
|
+
"name": "zn-reposition",
|
|
7638
|
+
"description": "Emitted each time the popup is positioned."
|
|
7636
7639
|
}
|
|
7637
7640
|
]
|
|
7638
7641
|
}
|
package/dist/zn.d.ts
CHANGED
|
@@ -351,7 +351,7 @@ declare module "components/popup/popup.component" {
|
|
|
351
351
|
*
|
|
352
352
|
* @dependency zn-example
|
|
353
353
|
*
|
|
354
|
-
* @event zn-
|
|
354
|
+
* @event zn-reposition - Emitted each time the popup is positioned.
|
|
355
355
|
*
|
|
356
356
|
* @slot - The default slot.
|
|
357
357
|
* @slot example - An example slot.
|
|
@@ -9272,6 +9272,11 @@ declare module "components/remarkd-editor/actions" {
|
|
|
9272
9272
|
after?: string;
|
|
9273
9273
|
placeholder?: string;
|
|
9274
9274
|
}
|
|
9275
|
+
/** A shortcut on the platform modifier: Cmd on Apple devices, Ctrl elsewhere. */
|
|
9276
|
+
export interface Shortcut {
|
|
9277
|
+
key: string;
|
|
9278
|
+
shift?: boolean;
|
|
9279
|
+
}
|
|
9275
9280
|
export interface EditorAction {
|
|
9276
9281
|
/** Stable id, used for toolbar keys and tests. */
|
|
9277
9282
|
key: string;
|
|
@@ -9288,6 +9293,7 @@ declare module "components/remarkd-editor/actions" {
|
|
|
9288
9293
|
caretOffset?: number;
|
|
9289
9294
|
/** Actions that open their own picker instead of inserting text. */
|
|
9290
9295
|
opens?: 'image' | 'include' | 'link';
|
|
9296
|
+
shortcut?: Shortcut;
|
|
9291
9297
|
}
|
|
9292
9298
|
/** Toolbar order, most-used first — the last groups are the first to collapse. */
|
|
9293
9299
|
export const ACTION_GROUPS: {
|
|
@@ -9295,9 +9301,26 @@ declare module "components/remarkd-editor/actions" {
|
|
|
9295
9301
|
label: string;
|
|
9296
9302
|
}[];
|
|
9297
9303
|
export const EDITOR_ACTIONS: EditorAction[];
|
|
9304
|
+
export function isApple(): boolean;
|
|
9305
|
+
export function matchesShortcut(e: KeyboardEvent, shortcut: Shortcut): boolean;
|
|
9306
|
+
/** The shortcut as shown to people, e.g. `⌘⇧X` or `Ctrl+Shift+X`. */
|
|
9307
|
+
export function shortcutLabel(shortcut: Shortcut): string;
|
|
9298
9308
|
/** The registry as slash menu entries. Picker actions insert nothing; the menu emits their action id. */
|
|
9299
9309
|
export function slashItems(actions: EditorAction[]): SlashMenuItem[];
|
|
9300
9310
|
}
|
|
9311
|
+
declare module "components/remarkd-editor/list-continuation" {
|
|
9312
|
+
/** A textarea edit: the new value and where the caret lands in it. */
|
|
9313
|
+
export interface TextEdit {
|
|
9314
|
+
value: string;
|
|
9315
|
+
caret: number;
|
|
9316
|
+
}
|
|
9317
|
+
/**
|
|
9318
|
+
* What Enter does on a list line: continues the list with the next marker, or ends it by
|
|
9319
|
+
* clearing the marker of an item that has no text. Null when Enter should just insert a
|
|
9320
|
+
* newline — no list line, a selection, or the caret before the marker.
|
|
9321
|
+
*/
|
|
9322
|
+
export function continueList(value: string, start: number, end: number): TextEdit | null;
|
|
9323
|
+
}
|
|
9301
9324
|
declare module "internal/toolbar-overflow" {
|
|
9302
9325
|
import type { ReactiveController, ReactiveControllerHost } from 'lit';
|
|
9303
9326
|
interface ToolbarOverflowOptions {
|
|
@@ -9527,6 +9550,8 @@ declare module "components/remarkd-editor/remarkd-editor.component" {
|
|
|
9527
9550
|
private commitEdit;
|
|
9528
9551
|
private handleDraftInput;
|
|
9529
9552
|
private handleEditKeydown;
|
|
9553
|
+
private isPlainEnter;
|
|
9554
|
+
private handleRawKeydown;
|
|
9530
9555
|
/** Whether the block being edited is nothing but the slash command. */
|
|
9531
9556
|
private isSlashBlock;
|
|
9532
9557
|
private mountSlashMenu;
|
|
@@ -9592,9 +9617,11 @@ declare module "components/remarkd-editor/remarkd-editor.component" {
|
|
|
9592
9617
|
/**
|
|
9593
9618
|
* Applies an inline mark to the open block's textarea: wraps the selection, toggles the
|
|
9594
9619
|
* mark off when it is already wrapped, or inserts a selected placeholder when there is
|
|
9595
|
-
* no selection.
|
|
9620
|
+
* no selection.
|
|
9596
9621
|
*/
|
|
9597
9622
|
private applyInline;
|
|
9623
|
+
/** Writes a programmatic edit to the open block's textarea. Goes through `editingDraft` so `zn-input` still fires. */
|
|
9624
|
+
private applyDraftEdit;
|
|
9598
9625
|
private toggleRawMode;
|
|
9599
9626
|
private focusRaw;
|
|
9600
9627
|
/**
|
|
@@ -13336,6 +13363,14 @@ declare module "events/zn-slash-insert" {
|
|
|
13336
13363
|
}
|
|
13337
13364
|
}
|
|
13338
13365
|
}
|
|
13366
|
+
declare module "events/zn-reposition" {
|
|
13367
|
+
export type ZnRepositionEvent = CustomEvent<Record<PropertyKey, never>>;
|
|
13368
|
+
global {
|
|
13369
|
+
interface GlobalEventHandlersEventMap {
|
|
13370
|
+
'zn-reposition': ZnRepositionEvent;
|
|
13371
|
+
}
|
|
13372
|
+
}
|
|
13373
|
+
}
|
|
13339
13374
|
declare module "events/events" {
|
|
13340
13375
|
export type { ZnAfterHideEvent } from "events/zn-after-hide";
|
|
13341
13376
|
export type { ZnAfterShowEvent } from "events/zn-after-show";
|
|
@@ -13360,6 +13395,7 @@ declare module "events/events" {
|
|
|
13360
13395
|
export type { ZnThemeSubmitEvent } from "events/zn-theme-submit";
|
|
13361
13396
|
export type { ZnSlashSelectEvent } from "events/zn-slash-select";
|
|
13362
13397
|
export type { ZnSlashInsertEvent } from "events/zn-slash-insert";
|
|
13398
|
+
export type { ZnRepositionEvent } from "events/zn-reposition";
|
|
13363
13399
|
}
|
|
13364
13400
|
declare module "zinc" {
|
|
13365
13401
|
export { default as Button } from "components/button/index";
|