@kubex/zinc 1.1.164 → 1.1.167
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 +142 -74
- package/dist/vscode.html-custom-data.json +11 -11
- package/dist/web-types.json +23 -23
- package/dist/zn.d.ts +23 -0
- package/dist/zn.min.js +273 -265
- package/docs/pages/components/remarkd-editor.md +1 -1
- package/package.json +1 -1
- package/src/components/remarkd-editor/actions.ts +2 -2
- package/src/components/remarkd-editor/list-continuation.test.ts +77 -1
- package/src/components/remarkd-editor/list-continuation.ts +127 -20
- package/src/components/remarkd-editor/remarkd-editor.component.ts +47 -5
- package/src/components/remarkd-editor/remarkd-editor.test.ts +79 -1
|
@@ -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",
|
|
@@ -37234,6 +37234,25 @@
|
|
|
37234
37234
|
],
|
|
37235
37235
|
"description": "Splits remarkd source into blocks on blank lines, keeping fenced /\ndelimited containers (``` ==== !!!! .... ---- ____ **** ////) as single blocks."
|
|
37236
37236
|
},
|
|
37237
|
+
{
|
|
37238
|
+
"kind": "method",
|
|
37239
|
+
"name": "scanBlocks",
|
|
37240
|
+
"privacy": "private",
|
|
37241
|
+
"return": {
|
|
37242
|
+
"type": {
|
|
37243
|
+
"text": "{ blocks: string[]; open: boolean }"
|
|
37244
|
+
}
|
|
37245
|
+
},
|
|
37246
|
+
"parameters": [
|
|
37247
|
+
{
|
|
37248
|
+
"name": "source",
|
|
37249
|
+
"type": {
|
|
37250
|
+
"text": "string"
|
|
37251
|
+
}
|
|
37252
|
+
}
|
|
37253
|
+
],
|
|
37254
|
+
"description": "`splitBlocks`, plus whether the source ends inside an unclosed container, where a blank line does not split."
|
|
37255
|
+
},
|
|
37237
37256
|
{
|
|
37238
37257
|
"kind": "method",
|
|
37239
37258
|
"name": "fenceMarker",
|
|
@@ -37629,6 +37648,37 @@
|
|
|
37629
37648
|
"name": "handleEditKeydown",
|
|
37630
37649
|
"privacy": "private"
|
|
37631
37650
|
},
|
|
37651
|
+
{
|
|
37652
|
+
"kind": "method",
|
|
37653
|
+
"name": "finishedDraft",
|
|
37654
|
+
"privacy": "private",
|
|
37655
|
+
"return": {
|
|
37656
|
+
"type": {
|
|
37657
|
+
"text": "string | null"
|
|
37658
|
+
}
|
|
37659
|
+
},
|
|
37660
|
+
"parameters": [
|
|
37661
|
+
{
|
|
37662
|
+
"name": "value",
|
|
37663
|
+
"type": {
|
|
37664
|
+
"text": "string"
|
|
37665
|
+
}
|
|
37666
|
+
},
|
|
37667
|
+
{
|
|
37668
|
+
"name": "start",
|
|
37669
|
+
"type": {
|
|
37670
|
+
"text": "number"
|
|
37671
|
+
}
|
|
37672
|
+
},
|
|
37673
|
+
{
|
|
37674
|
+
"name": "end",
|
|
37675
|
+
"type": {
|
|
37676
|
+
"text": "number"
|
|
37677
|
+
}
|
|
37678
|
+
}
|
|
37679
|
+
],
|
|
37680
|
+
"description": "The draft to commit when Enter should finish the block — pressed on a trailing blank line or\nempty list item, outside any container — with that line dropped. Null otherwise."
|
|
37681
|
+
},
|
|
37632
37682
|
{
|
|
37633
37683
|
"kind": "method",
|
|
37634
37684
|
"name": "isPlainEnter",
|
|
@@ -37647,6 +37697,24 @@
|
|
|
37647
37697
|
}
|
|
37648
37698
|
]
|
|
37649
37699
|
},
|
|
37700
|
+
{
|
|
37701
|
+
"kind": "method",
|
|
37702
|
+
"name": "isListTab",
|
|
37703
|
+
"privacy": "private",
|
|
37704
|
+
"return": {
|
|
37705
|
+
"type": {
|
|
37706
|
+
"text": "boolean"
|
|
37707
|
+
}
|
|
37708
|
+
},
|
|
37709
|
+
"parameters": [
|
|
37710
|
+
{
|
|
37711
|
+
"name": "e",
|
|
37712
|
+
"type": {
|
|
37713
|
+
"text": "KeyboardEvent"
|
|
37714
|
+
}
|
|
37715
|
+
}
|
|
37716
|
+
]
|
|
37717
|
+
},
|
|
37650
37718
|
{
|
|
37651
37719
|
"kind": "field",
|
|
37652
37720
|
"name": "handleRawKeydown",
|
|
@@ -53881,7 +53949,7 @@
|
|
|
53881
53949
|
"package": {
|
|
53882
53950
|
"name": "@kubex/zinc",
|
|
53883
53951
|
"description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
|
|
53884
|
-
"version": "1.1.
|
|
53952
|
+
"version": "1.1.167",
|
|
53885
53953
|
"author": "",
|
|
53886
53954
|
"license": "MIT"
|
|
53887
53955
|
}
|
|
@@ -13,17 +13,6 @@
|
|
|
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
|
-
},
|
|
27
16
|
{
|
|
28
17
|
"name": "zn-alert",
|
|
29
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.",
|
|
@@ -64,6 +53,17 @@
|
|
|
64
53
|
}
|
|
65
54
|
]
|
|
66
55
|
},
|
|
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",
|
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.167",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -15,28 +15,6 @@
|
|
|
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
|
-
},
|
|
40
18
|
{
|
|
41
19
|
"name": "zn-alert",
|
|
42
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.",
|
|
@@ -105,6 +83,28 @@
|
|
|
105
83
|
]
|
|
106
84
|
}
|
|
107
85
|
},
|
|
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",
|
package/dist/zn.d.ts
CHANGED
|
@@ -9314,12 +9314,27 @@ declare module "components/remarkd-editor/list-continuation" {
|
|
|
9314
9314
|
value: string;
|
|
9315
9315
|
caret: number;
|
|
9316
9316
|
}
|
|
9317
|
+
/** Whether `line` is a list marker with nothing after it — `- `, `2. `, `- [ ] `, or a bare `::`. */
|
|
9318
|
+
export function isEmptyListItem(line: string): boolean;
|
|
9317
9319
|
/**
|
|
9318
9320
|
* What Enter does on a list line: continues the list with the next marker, or ends it by
|
|
9319
9321
|
* clearing the marker of an item that has no text. Null when Enter should just insert a
|
|
9320
9322
|
* newline — no list line, a selection, or the caret before the marker.
|
|
9321
9323
|
*/
|
|
9322
9324
|
export function continueList(value: string, start: number, end: number): TextEdit | null;
|
|
9325
|
+
/** A textarea edit that keeps a selection: the new value and the selected range in it. */
|
|
9326
|
+
export interface RangeEdit {
|
|
9327
|
+
value: string;
|
|
9328
|
+
start: number;
|
|
9329
|
+
end: number;
|
|
9330
|
+
}
|
|
9331
|
+
/**
|
|
9332
|
+
* What Tab (or Shift+Tab when `outdent`) does on the list items the selection touches: nests
|
|
9333
|
+
* each one level deeper or shallower, renumbering the ordered items that follow. Null when no
|
|
9334
|
+
* list item is touched, so Tab keeps its default. Items already at the limit are left as they
|
|
9335
|
+
* are, but the key is still claimed.
|
|
9336
|
+
*/
|
|
9337
|
+
export function indentList(value: string, start: number, end: number, outdent: boolean): RangeEdit | null;
|
|
9323
9338
|
}
|
|
9324
9339
|
declare module "internal/toolbar-overflow" {
|
|
9325
9340
|
import type { ReactiveController, ReactiveControllerHost } from 'lit';
|
|
@@ -9499,6 +9514,8 @@ declare module "components/remarkd-editor/remarkd-editor.component" {
|
|
|
9499
9514
|
* delimited containers (``` ==== !!!! .... ---- ____ **** ////) as single blocks.
|
|
9500
9515
|
*/
|
|
9501
9516
|
private splitBlocks;
|
|
9517
|
+
/** `splitBlocks`, plus whether the source ends inside an unclosed container, where a blank line does not split. */
|
|
9518
|
+
private scanBlocks;
|
|
9502
9519
|
private fenceMarker;
|
|
9503
9520
|
private closesFence;
|
|
9504
9521
|
private updateBlocks;
|
|
@@ -9550,7 +9567,13 @@ declare module "components/remarkd-editor/remarkd-editor.component" {
|
|
|
9550
9567
|
private commitEdit;
|
|
9551
9568
|
private handleDraftInput;
|
|
9552
9569
|
private handleEditKeydown;
|
|
9570
|
+
/**
|
|
9571
|
+
* The draft to commit when Enter should finish the block — pressed on a trailing blank line or
|
|
9572
|
+
* empty list item, outside any container — with that line dropped. Null otherwise.
|
|
9573
|
+
*/
|
|
9574
|
+
private finishedDraft;
|
|
9553
9575
|
private isPlainEnter;
|
|
9576
|
+
private isListTab;
|
|
9554
9577
|
private handleRawKeydown;
|
|
9555
9578
|
/** Whether the block being edited is nothing but the slash command. */
|
|
9556
9579
|
private isSlashBlock;
|