@kubex/zinc 1.1.87 → 1.1.89
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 +1045 -1045
- package/dist/vscode.html-custom-data.json +89 -89
- package/dist/web-types.json +215 -215
- package/dist/zn.d.ts +6 -32
- package/dist/zn.min.js +229 -248
- package/package.json +1 -1
- package/src/components/editor/modules/context-menu/context-menu-tool.test.ts +36 -7
- package/src/components/editor/modules/context-menu/context-menu.ts +108 -118
- package/src/components/editor/modules/toolbar/toolbar.ts +4 -1
- package/src/components/slash-menu/slash-menu.component.ts +1 -0
- package/src/components/slash-menu/slash-menu.test.ts +13 -1
- package/src/components/theme-editor/theme-editor.component.ts +0 -1
- package/src/components/theme-editor/theme-editor.scss +0 -1
- package/src/components/editor/modules/context-menu/context-menu-component.ts +0 -116
- package/src/components/editor/modules/context-menu/context-menu.scss +0 -49
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.89",
|
|
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### **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### **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### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
89
|
+
"doc-url": "",
|
|
90
|
+
"attributes": [],
|
|
91
|
+
"slots": [
|
|
92
|
+
{ "name": "", "description": "The default slot." },
|
|
93
|
+
{ "name": "example", "description": "An example slot." }
|
|
94
|
+
],
|
|
95
|
+
"events": [
|
|
96
|
+
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
97
|
+
],
|
|
98
|
+
"js": {
|
|
99
|
+
"properties": [],
|
|
100
|
+
"events": [
|
|
101
|
+
{
|
|
102
|
+
"name": "zn-event-name",
|
|
103
|
+
"description": "Emitted as an example."
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
108
|
{
|
|
109
109
|
"name": "zn-animated-button",
|
|
110
110
|
"description": "\n---\n\n\n### **Methods:**\n - **purchase(): _void_** - Programmatically trigger the purchase flow\n- **setSuccess(): _void_** - Set the button to success state manually\n- **setFailure(message): _void_** - Set the button to failure state manually with optional error message\n- **reset(): _void_** - Reset the button to idle state",
|
|
@@ -250,6 +250,44 @@
|
|
|
250
250
|
"events": []
|
|
251
251
|
}
|
|
252
252
|
},
|
|
253
|
+
{
|
|
254
|
+
"name": "zn-bulk-actions",
|
|
255
|
+
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
256
|
+
"doc-url": "",
|
|
257
|
+
"attributes": [
|
|
258
|
+
{ "name": "name", "value": { "type": "string" } },
|
|
259
|
+
{ "name": "value", "value": { "type": "PropertyKey" } },
|
|
260
|
+
{
|
|
261
|
+
"name": "actions",
|
|
262
|
+
"value": { "type": "BulkActionData", "default": "[]" }
|
|
263
|
+
}
|
|
264
|
+
],
|
|
265
|
+
"slots": [
|
|
266
|
+
{ "name": "", "description": "The default slot." },
|
|
267
|
+
{ "name": "example", "description": "An example slot." }
|
|
268
|
+
],
|
|
269
|
+
"events": [
|
|
270
|
+
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
271
|
+
],
|
|
272
|
+
"js": {
|
|
273
|
+
"properties": [
|
|
274
|
+
{ "name": "container", "type": "HTMLDivElement" },
|
|
275
|
+
{ "name": "addRule", "type": "ZnSelect" },
|
|
276
|
+
{ "name": "input", "type": "HTMLInputElement" },
|
|
277
|
+
{ "name": "name", "type": "string" },
|
|
278
|
+
{ "name": "value", "type": "PropertyKey" },
|
|
279
|
+
{ "name": "actions", "type": "BulkActionData" },
|
|
280
|
+
{ "name": "validationMessage", "type": "string" },
|
|
281
|
+
{ "name": "validity", "type": "ValidityState" }
|
|
282
|
+
],
|
|
283
|
+
"events": [
|
|
284
|
+
{
|
|
285
|
+
"name": "zn-event-name",
|
|
286
|
+
"description": "Emitted as an example."
|
|
287
|
+
}
|
|
288
|
+
]
|
|
289
|
+
}
|
|
290
|
+
},
|
|
253
291
|
{
|
|
254
292
|
"name": "zn-button",
|
|
255
293
|
"description": "Buttons represent actions that are available to the user.\n---\n\n\n### **Events:**\n - **zn-blur** - Emitted when the button loses focus.\n- **zn-focus** - Emitted when the button gains focus.\n- **zn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Slots:**\n - _default_ - The button's label.\n- **prefix** - A presentational prefix icon or similar element.\n- **suffix** - A presentational suffix icon or similar element.\n- **cancel** - Slot for custom cancel button/content when autoClick is active.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **prefix** - The container that wraps the prefix.\n- **label** - The button's label.\n- **suffix** - The container that wraps the suffix.\n- **caret** - The button's caret icon, an `<zn-icon>` element.\n- **spinner** - The spinner that shows when the button is in the loading state.",
|
|
@@ -516,44 +554,6 @@
|
|
|
516
554
|
]
|
|
517
555
|
}
|
|
518
556
|
},
|
|
519
|
-
{
|
|
520
|
-
"name": "zn-bulk-actions",
|
|
521
|
-
"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.",
|
|
522
|
-
"doc-url": "",
|
|
523
|
-
"attributes": [
|
|
524
|
-
{ "name": "name", "value": { "type": "string" } },
|
|
525
|
-
{ "name": "value", "value": { "type": "PropertyKey" } },
|
|
526
|
-
{
|
|
527
|
-
"name": "actions",
|
|
528
|
-
"value": { "type": "BulkActionData", "default": "[]" }
|
|
529
|
-
}
|
|
530
|
-
],
|
|
531
|
-
"slots": [
|
|
532
|
-
{ "name": "", "description": "The default slot." },
|
|
533
|
-
{ "name": "example", "description": "An example slot." }
|
|
534
|
-
],
|
|
535
|
-
"events": [
|
|
536
|
-
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
537
|
-
],
|
|
538
|
-
"js": {
|
|
539
|
-
"properties": [
|
|
540
|
-
{ "name": "container", "type": "HTMLDivElement" },
|
|
541
|
-
{ "name": "addRule", "type": "ZnSelect" },
|
|
542
|
-
{ "name": "input", "type": "HTMLInputElement" },
|
|
543
|
-
{ "name": "name", "type": "string" },
|
|
544
|
-
{ "name": "value", "type": "PropertyKey" },
|
|
545
|
-
{ "name": "actions", "type": "BulkActionData" },
|
|
546
|
-
{ "name": "validationMessage", "type": "string" },
|
|
547
|
-
{ "name": "validity", "type": "ValidityState" }
|
|
548
|
-
],
|
|
549
|
-
"events": [
|
|
550
|
-
{
|
|
551
|
-
"name": "zn-event-name",
|
|
552
|
-
"description": "Emitted as an example."
|
|
553
|
-
}
|
|
554
|
-
]
|
|
555
|
-
}
|
|
556
|
-
},
|
|
557
557
|
{
|
|
558
558
|
"name": "zn-button-group",
|
|
559
559
|
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n\n### **CSS Properties:**\n - **--grow** - Use flex-grow to fill available space. _(default: undefined)_\n- **--start** - Justify content at the start of the flex space. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
@@ -3304,6 +3304,130 @@
|
|
|
3304
3304
|
]
|
|
3305
3305
|
}
|
|
3306
3306
|
},
|
|
3307
|
+
{
|
|
3308
|
+
"name": "zn-editor",
|
|
3309
|
+
"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.",
|
|
3310
|
+
"doc-url": "",
|
|
3311
|
+
"attributes": [
|
|
3312
|
+
{ "name": "id", "value": { "type": "string" } },
|
|
3313
|
+
{ "name": "name", "value": { "type": "string" } },
|
|
3314
|
+
{ "name": "value", "value": { "type": "string" } },
|
|
3315
|
+
{
|
|
3316
|
+
"name": "interaction-type",
|
|
3317
|
+
"value": { "type": "'ticket' | 'chat'", "default": "'chat'" }
|
|
3318
|
+
},
|
|
3319
|
+
{ "name": "attachment-url", "value": { "type": "string" } },
|
|
3320
|
+
{
|
|
3321
|
+
"name": "code-blocks",
|
|
3322
|
+
"value": { "type": "boolean", "default": "false" }
|
|
3323
|
+
},
|
|
3324
|
+
{
|
|
3325
|
+
"name": "dividers",
|
|
3326
|
+
"value": { "type": "boolean", "default": "false" }
|
|
3327
|
+
},
|
|
3328
|
+
{
|
|
3329
|
+
"name": "links",
|
|
3330
|
+
"value": { "type": "boolean", "default": "false" }
|
|
3331
|
+
},
|
|
3332
|
+
{
|
|
3333
|
+
"name": "attachments",
|
|
3334
|
+
"value": { "type": "boolean", "default": "false" }
|
|
3335
|
+
},
|
|
3336
|
+
{
|
|
3337
|
+
"name": "images",
|
|
3338
|
+
"value": { "type": "boolean", "default": "false" }
|
|
3339
|
+
},
|
|
3340
|
+
{
|
|
3341
|
+
"name": "videos",
|
|
3342
|
+
"value": { "type": "boolean", "default": "false" }
|
|
3343
|
+
},
|
|
3344
|
+
{
|
|
3345
|
+
"name": "dates",
|
|
3346
|
+
"value": { "type": "boolean", "default": "false" }
|
|
3347
|
+
},
|
|
3348
|
+
{
|
|
3349
|
+
"name": "emojis",
|
|
3350
|
+
"value": { "type": "boolean", "default": "false" }
|
|
3351
|
+
},
|
|
3352
|
+
{
|
|
3353
|
+
"name": "code",
|
|
3354
|
+
"value": { "type": "boolean", "default": "false" }
|
|
3355
|
+
},
|
|
3356
|
+
{
|
|
3357
|
+
"name": "ai",
|
|
3358
|
+
"value": { "type": "boolean", "default": "false" }
|
|
3359
|
+
},
|
|
3360
|
+
{
|
|
3361
|
+
"name": "ai-path",
|
|
3362
|
+
"value": { "type": "string", "default": "''" }
|
|
3363
|
+
},
|
|
3364
|
+
{
|
|
3365
|
+
"name": "store-key",
|
|
3366
|
+
"description": "Caches unsent content while typing and restores it when the editor next loads,\nso agent replies in tickets/chats survive reloads and navigation. Use a key\nunique to the conversation (e.g. the ticket ID). The cache is cleared on submit.",
|
|
3367
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
3368
|
+
},
|
|
3369
|
+
{
|
|
3370
|
+
"name": "store-ttl",
|
|
3371
|
+
"description": "Cached-content expiry in seconds. Defaults to 1 day.",
|
|
3372
|
+
"value": { "type": "number", "default": "86400" }
|
|
3373
|
+
},
|
|
3374
|
+
{
|
|
3375
|
+
"name": "local-storage",
|
|
3376
|
+
"description": "Cache to localStorage instead of sessionStorage, persisting across tabs and browser restarts.",
|
|
3377
|
+
"value": { "type": "boolean" }
|
|
3378
|
+
}
|
|
3379
|
+
],
|
|
3380
|
+
"slots": [
|
|
3381
|
+
{ "name": "", "description": "The default slot." },
|
|
3382
|
+
{ "name": "example", "description": "An example slot." }
|
|
3383
|
+
],
|
|
3384
|
+
"events": [
|
|
3385
|
+
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
3386
|
+
],
|
|
3387
|
+
"js": {
|
|
3388
|
+
"properties": [
|
|
3389
|
+
{ "name": "id", "type": "string" },
|
|
3390
|
+
{ "name": "name", "type": "string" },
|
|
3391
|
+
{ "name": "value", "type": "string" },
|
|
3392
|
+
{ "name": "interactionType", "type": "'ticket' | 'chat'" },
|
|
3393
|
+
{ "name": "uploadAttachmentUrl", "type": "string" },
|
|
3394
|
+
{ "name": "codeBlocksEnabled", "type": "boolean" },
|
|
3395
|
+
{ "name": "dividersEnabled", "type": "boolean" },
|
|
3396
|
+
{ "name": "linksEnabled", "type": "boolean" },
|
|
3397
|
+
{ "name": "attachmentsEnabled", "type": "boolean" },
|
|
3398
|
+
{ "name": "imagesEnabled", "type": "boolean" },
|
|
3399
|
+
{ "name": "videosEnabled", "type": "boolean" },
|
|
3400
|
+
{ "name": "datesEnabled", "type": "boolean" },
|
|
3401
|
+
{ "name": "emojisEnabled", "type": "boolean" },
|
|
3402
|
+
{ "name": "codeEnabled", "type": "boolean" },
|
|
3403
|
+
{ "name": "aiEnabled", "type": "boolean" },
|
|
3404
|
+
{ "name": "aiPath", "type": "string" },
|
|
3405
|
+
{
|
|
3406
|
+
"name": "storeKey",
|
|
3407
|
+
"description": "Caches unsent content while typing and restores it when the editor next loads,\nso agent replies in tickets/chats survive reloads and navigation. Use a key\nunique to the conversation (e.g. the ticket ID). The cache is cleared on submit.",
|
|
3408
|
+
"type": "string"
|
|
3409
|
+
},
|
|
3410
|
+
{
|
|
3411
|
+
"name": "storeTtl",
|
|
3412
|
+
"description": "Cached-content expiry in seconds. Defaults to 1 day.",
|
|
3413
|
+
"type": "number"
|
|
3414
|
+
},
|
|
3415
|
+
{
|
|
3416
|
+
"name": "localStorage",
|
|
3417
|
+
"description": "Cache to localStorage instead of sessionStorage, persisting across tabs and browser restarts.",
|
|
3418
|
+
"type": "boolean"
|
|
3419
|
+
},
|
|
3420
|
+
{ "name": "validity", "type": "ValidityState" },
|
|
3421
|
+
{ "name": "validationMessage", "type": "string" }
|
|
3422
|
+
],
|
|
3423
|
+
"events": [
|
|
3424
|
+
{
|
|
3425
|
+
"name": "zn-event-name",
|
|
3426
|
+
"description": "Emitted as an example."
|
|
3427
|
+
}
|
|
3428
|
+
]
|
|
3429
|
+
}
|
|
3430
|
+
},
|
|
3307
3431
|
{
|
|
3308
3432
|
"name": "zn-dropdown",
|
|
3309
3433
|
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Methods:**\n - **show()** - Opens the dropdown\n- **hide()** - Closes the dropdown\n- **reposition()** - Instructs the dropdown to 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.",
|
|
@@ -3430,130 +3554,6 @@
|
|
|
3430
3554
|
]
|
|
3431
3555
|
}
|
|
3432
3556
|
},
|
|
3433
|
-
{
|
|
3434
|
-
"name": "zn-editor",
|
|
3435
|
-
"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.",
|
|
3436
|
-
"doc-url": "",
|
|
3437
|
-
"attributes": [
|
|
3438
|
-
{ "name": "id", "value": { "type": "string" } },
|
|
3439
|
-
{ "name": "name", "value": { "type": "string" } },
|
|
3440
|
-
{ "name": "value", "value": { "type": "string" } },
|
|
3441
|
-
{
|
|
3442
|
-
"name": "interaction-type",
|
|
3443
|
-
"value": { "type": "'ticket' | 'chat'", "default": "'chat'" }
|
|
3444
|
-
},
|
|
3445
|
-
{ "name": "attachment-url", "value": { "type": "string" } },
|
|
3446
|
-
{
|
|
3447
|
-
"name": "code-blocks",
|
|
3448
|
-
"value": { "type": "boolean", "default": "false" }
|
|
3449
|
-
},
|
|
3450
|
-
{
|
|
3451
|
-
"name": "dividers",
|
|
3452
|
-
"value": { "type": "boolean", "default": "false" }
|
|
3453
|
-
},
|
|
3454
|
-
{
|
|
3455
|
-
"name": "links",
|
|
3456
|
-
"value": { "type": "boolean", "default": "false" }
|
|
3457
|
-
},
|
|
3458
|
-
{
|
|
3459
|
-
"name": "attachments",
|
|
3460
|
-
"value": { "type": "boolean", "default": "false" }
|
|
3461
|
-
},
|
|
3462
|
-
{
|
|
3463
|
-
"name": "images",
|
|
3464
|
-
"value": { "type": "boolean", "default": "false" }
|
|
3465
|
-
},
|
|
3466
|
-
{
|
|
3467
|
-
"name": "videos",
|
|
3468
|
-
"value": { "type": "boolean", "default": "false" }
|
|
3469
|
-
},
|
|
3470
|
-
{
|
|
3471
|
-
"name": "dates",
|
|
3472
|
-
"value": { "type": "boolean", "default": "false" }
|
|
3473
|
-
},
|
|
3474
|
-
{
|
|
3475
|
-
"name": "emojis",
|
|
3476
|
-
"value": { "type": "boolean", "default": "false" }
|
|
3477
|
-
},
|
|
3478
|
-
{
|
|
3479
|
-
"name": "code",
|
|
3480
|
-
"value": { "type": "boolean", "default": "false" }
|
|
3481
|
-
},
|
|
3482
|
-
{
|
|
3483
|
-
"name": "ai",
|
|
3484
|
-
"value": { "type": "boolean", "default": "false" }
|
|
3485
|
-
},
|
|
3486
|
-
{
|
|
3487
|
-
"name": "ai-path",
|
|
3488
|
-
"value": { "type": "string", "default": "''" }
|
|
3489
|
-
},
|
|
3490
|
-
{
|
|
3491
|
-
"name": "store-key",
|
|
3492
|
-
"description": "Caches unsent content while typing and restores it when the editor next loads,\nso agent replies in tickets/chats survive reloads and navigation. Use a key\nunique to the conversation (e.g. the ticket ID). The cache is cleared on submit.",
|
|
3493
|
-
"value": { "type": "string", "default": "\"\"" }
|
|
3494
|
-
},
|
|
3495
|
-
{
|
|
3496
|
-
"name": "store-ttl",
|
|
3497
|
-
"description": "Cached-content expiry in seconds. Defaults to 1 day.",
|
|
3498
|
-
"value": { "type": "number", "default": "86400" }
|
|
3499
|
-
},
|
|
3500
|
-
{
|
|
3501
|
-
"name": "local-storage",
|
|
3502
|
-
"description": "Cache to localStorage instead of sessionStorage, persisting across tabs and browser restarts.",
|
|
3503
|
-
"value": { "type": "boolean" }
|
|
3504
|
-
}
|
|
3505
|
-
],
|
|
3506
|
-
"slots": [
|
|
3507
|
-
{ "name": "", "description": "The default slot." },
|
|
3508
|
-
{ "name": "example", "description": "An example slot." }
|
|
3509
|
-
],
|
|
3510
|
-
"events": [
|
|
3511
|
-
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
3512
|
-
],
|
|
3513
|
-
"js": {
|
|
3514
|
-
"properties": [
|
|
3515
|
-
{ "name": "id", "type": "string" },
|
|
3516
|
-
{ "name": "name", "type": "string" },
|
|
3517
|
-
{ "name": "value", "type": "string" },
|
|
3518
|
-
{ "name": "interactionType", "type": "'ticket' | 'chat'" },
|
|
3519
|
-
{ "name": "uploadAttachmentUrl", "type": "string" },
|
|
3520
|
-
{ "name": "codeBlocksEnabled", "type": "boolean" },
|
|
3521
|
-
{ "name": "dividersEnabled", "type": "boolean" },
|
|
3522
|
-
{ "name": "linksEnabled", "type": "boolean" },
|
|
3523
|
-
{ "name": "attachmentsEnabled", "type": "boolean" },
|
|
3524
|
-
{ "name": "imagesEnabled", "type": "boolean" },
|
|
3525
|
-
{ "name": "videosEnabled", "type": "boolean" },
|
|
3526
|
-
{ "name": "datesEnabled", "type": "boolean" },
|
|
3527
|
-
{ "name": "emojisEnabled", "type": "boolean" },
|
|
3528
|
-
{ "name": "codeEnabled", "type": "boolean" },
|
|
3529
|
-
{ "name": "aiEnabled", "type": "boolean" },
|
|
3530
|
-
{ "name": "aiPath", "type": "string" },
|
|
3531
|
-
{
|
|
3532
|
-
"name": "storeKey",
|
|
3533
|
-
"description": "Caches unsent content while typing and restores it when the editor next loads,\nso agent replies in tickets/chats survive reloads and navigation. Use a key\nunique to the conversation (e.g. the ticket ID). The cache is cleared on submit.",
|
|
3534
|
-
"type": "string"
|
|
3535
|
-
},
|
|
3536
|
-
{
|
|
3537
|
-
"name": "storeTtl",
|
|
3538
|
-
"description": "Cached-content expiry in seconds. Defaults to 1 day.",
|
|
3539
|
-
"type": "number"
|
|
3540
|
-
},
|
|
3541
|
-
{
|
|
3542
|
-
"name": "localStorage",
|
|
3543
|
-
"description": "Cache to localStorage instead of sessionStorage, persisting across tabs and browser restarts.",
|
|
3544
|
-
"type": "boolean"
|
|
3545
|
-
},
|
|
3546
|
-
{ "name": "validity", "type": "ValidityState" },
|
|
3547
|
-
{ "name": "validationMessage", "type": "string" }
|
|
3548
|
-
],
|
|
3549
|
-
"events": [
|
|
3550
|
-
{
|
|
3551
|
-
"name": "zn-event-name",
|
|
3552
|
-
"description": "Emitted as an example."
|
|
3553
|
-
}
|
|
3554
|
-
]
|
|
3555
|
-
}
|
|
3556
|
-
},
|
|
3557
3557
|
{
|
|
3558
3558
|
"name": "zn-empty-state",
|
|
3559
3559
|
"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.",
|
|
@@ -9584,36 +9584,6 @@
|
|
|
9584
9584
|
"events": []
|
|
9585
9585
|
}
|
|
9586
9586
|
},
|
|
9587
|
-
{
|
|
9588
|
-
"name": "zn-tab",
|
|
9589
|
-
"description": "Defines a tab panel for use inside zn-page.\n---\n\n\n### **Slots:**\n - _default_ - The tab panel content.",
|
|
9590
|
-
"doc-url": "",
|
|
9591
|
-
"attributes": [
|
|
9592
|
-
{ "name": "caption", "value": { "type": "string" } },
|
|
9593
|
-
{ "name": "priority", "value": { "type": "number" } },
|
|
9594
|
-
{ "name": "uri", "value": { "type": "string" } },
|
|
9595
|
-
{
|
|
9596
|
-
"name": "selected",
|
|
9597
|
-
"description": "When present, zn-page opens this tab on load instead of the first tab.",
|
|
9598
|
-
"value": { "type": "boolean", "default": "false" }
|
|
9599
|
-
}
|
|
9600
|
-
],
|
|
9601
|
-
"slots": [{ "name": "", "description": "The tab panel content." }],
|
|
9602
|
-
"events": [],
|
|
9603
|
-
"js": {
|
|
9604
|
-
"properties": [
|
|
9605
|
-
{ "name": "caption", "type": "string" },
|
|
9606
|
-
{ "name": "priority", "type": "number" },
|
|
9607
|
-
{ "name": "uri", "type": "string" },
|
|
9608
|
-
{
|
|
9609
|
-
"name": "selected",
|
|
9610
|
-
"description": "When present, zn-page opens this tab on load instead of the first tab.",
|
|
9611
|
-
"type": "boolean"
|
|
9612
|
-
}
|
|
9613
|
-
],
|
|
9614
|
-
"events": []
|
|
9615
|
-
}
|
|
9616
|
-
},
|
|
9617
9587
|
{
|
|
9618
9588
|
"name": "zn-style",
|
|
9619
9589
|
"description": "\n---\n",
|
|
@@ -9707,6 +9677,36 @@
|
|
|
9707
9677
|
"events": []
|
|
9708
9678
|
}
|
|
9709
9679
|
},
|
|
9680
|
+
{
|
|
9681
|
+
"name": "zn-tab",
|
|
9682
|
+
"description": "Defines a tab panel for use inside zn-page.\n---\n\n\n### **Slots:**\n - _default_ - The tab panel content.",
|
|
9683
|
+
"doc-url": "",
|
|
9684
|
+
"attributes": [
|
|
9685
|
+
{ "name": "caption", "value": { "type": "string" } },
|
|
9686
|
+
{ "name": "priority", "value": { "type": "number" } },
|
|
9687
|
+
{ "name": "uri", "value": { "type": "string" } },
|
|
9688
|
+
{
|
|
9689
|
+
"name": "selected",
|
|
9690
|
+
"description": "When present, zn-page opens this tab on load instead of the first tab.",
|
|
9691
|
+
"value": { "type": "boolean", "default": "false" }
|
|
9692
|
+
}
|
|
9693
|
+
],
|
|
9694
|
+
"slots": [{ "name": "", "description": "The tab panel content." }],
|
|
9695
|
+
"events": [],
|
|
9696
|
+
"js": {
|
|
9697
|
+
"properties": [
|
|
9698
|
+
{ "name": "caption", "type": "string" },
|
|
9699
|
+
{ "name": "priority", "type": "number" },
|
|
9700
|
+
{ "name": "uri", "type": "string" },
|
|
9701
|
+
{
|
|
9702
|
+
"name": "selected",
|
|
9703
|
+
"description": "When present, zn-page opens this tab on load instead of the first tab.",
|
|
9704
|
+
"type": "boolean"
|
|
9705
|
+
}
|
|
9706
|
+
],
|
|
9707
|
+
"events": []
|
|
9708
|
+
}
|
|
9709
|
+
},
|
|
9710
9710
|
{
|
|
9711
9711
|
"name": "zn-table",
|
|
9712
9712
|
"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.",
|
package/dist/zn.d.ts
CHANGED
|
@@ -6356,33 +6356,6 @@ declare module "components/editor/modules/attachment/attachment" {
|
|
|
6356
6356
|
private _uploadAttachment;
|
|
6357
6357
|
}
|
|
6358
6358
|
}
|
|
6359
|
-
declare module "components/editor/modules/context-menu/context-menu-component" {
|
|
6360
|
-
import { type CSSResultGroup, type PropertyValues } from 'lit';
|
|
6361
|
-
import ZincElement from "internal/zinc-element";
|
|
6362
|
-
export interface ResultItem {
|
|
6363
|
-
icon: string;
|
|
6364
|
-
label: string;
|
|
6365
|
-
format?: string;
|
|
6366
|
-
key?: string;
|
|
6367
|
-
value?: string | boolean;
|
|
6368
|
-
order?: number;
|
|
6369
|
-
}
|
|
6370
|
-
export default class ContextMenuComponent extends ZincElement {
|
|
6371
|
-
static styles: CSSResultGroup;
|
|
6372
|
-
open: boolean;
|
|
6373
|
-
query: string;
|
|
6374
|
-
results: ResultItem[];
|
|
6375
|
-
private _activeIndex;
|
|
6376
|
-
show(): void;
|
|
6377
|
-
hide(): void;
|
|
6378
|
-
setPosition(left: number, top: number): void;
|
|
6379
|
-
setActiveIndex(index: number): void;
|
|
6380
|
-
getActiveIndex(): number;
|
|
6381
|
-
private _onClickItem;
|
|
6382
|
-
protected willUpdate(changed: PropertyValues): void;
|
|
6383
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
6384
|
-
}
|
|
6385
|
-
}
|
|
6386
6359
|
declare module "components/editor/modules/context-menu/quick-action/quick-action.component" {
|
|
6387
6360
|
import ZincElement from "internal/zinc-element";
|
|
6388
6361
|
export default class ZnEditorQuickAction extends ZincElement {
|
|
@@ -6406,29 +6379,30 @@ declare module "components/editor/modules/context-menu/quick-action/index" {
|
|
|
6406
6379
|
}
|
|
6407
6380
|
}
|
|
6408
6381
|
declare module "components/editor/modules/context-menu/context-menu" {
|
|
6409
|
-
import "components/editor/modules/context-menu/context-menu-component";
|
|
6410
6382
|
import Quill from "quill";
|
|
6411
6383
|
import type { EditorFeatureConfig } from "components/editor/editor.component";
|
|
6412
6384
|
class ContextMenu {
|
|
6413
6385
|
private _quill;
|
|
6414
6386
|
private readonly _toolbarModule;
|
|
6415
|
-
private
|
|
6387
|
+
private _menu;
|
|
6416
6388
|
private _startIndex;
|
|
6389
|
+
/** Trigger position the user dismissed with Escape; the menu stays shut until they move off it. */
|
|
6390
|
+
private _dismissedIndex;
|
|
6417
6391
|
private _keydownHandler;
|
|
6418
6392
|
private _docClickHandler;
|
|
6419
6393
|
private _featureConfig;
|
|
6394
|
+
private readonly _caretAnchor;
|
|
6420
6395
|
constructor(quill: Quill, options: {
|
|
6421
6396
|
config: EditorFeatureConfig;
|
|
6422
6397
|
});
|
|
6423
6398
|
private initComponent;
|
|
6424
6399
|
private attachEvents;
|
|
6425
|
-
private createComponent;
|
|
6426
6400
|
private onDocumentClick;
|
|
6427
6401
|
private updateFromEditor;
|
|
6428
|
-
private
|
|
6402
|
+
private caretRect;
|
|
6429
6403
|
private getToolbarQuery;
|
|
6430
6404
|
private onKeydown;
|
|
6431
|
-
private
|
|
6405
|
+
private onItemSelect;
|
|
6432
6406
|
private _clickToolbarItem;
|
|
6433
6407
|
private _applySelectedFormat;
|
|
6434
6408
|
private deleteLastIndex;
|