kritzel-stencil 0.4.24 → 0.4.26
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/LICENSE +21 -21
- package/LICENSE.md +49 -49
- package/dist/cjs/{index-Dn19mGl-.js → index-Xav9JFHg.js} +13 -49
- package/dist/cjs/index.cjs.js +7 -1
- package/dist/cjs/{kritzel-active-users_47.cjs.entry.js → kritzel-active-users_46.cjs.entry.js} +112 -217
- package/dist/cjs/kritzel-brush-style.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{schema.constants-CY0WWJYd.js → schema.constants-CjN-B633.js} +20 -44
- package/dist/cjs/stencil.cjs.js +3 -3
- package/dist/collection/classes/providers/sync/hocuspocus-sync-provider.class.js +3 -0
- package/dist/collection/classes/providers/sync/websocket-sync-provider.class.js +3 -0
- package/dist/collection/collection-manifest.json +1 -2
- package/dist/collection/components/core/kritzel-awareness-cursors/kritzel-awareness-cursors.css +115 -115
- package/dist/collection/components/core/kritzel-awareness-cursors/kritzel-awareness-cursors.js +1 -1
- package/dist/collection/components/core/kritzel-cursor-trail/kritzel-cursor-trail.css +10 -10
- package/dist/collection/components/core/kritzel-cursor-trail/kritzel-cursor-trail.js +1 -1
- package/dist/collection/components/core/kritzel-editor/kritzel-editor.css +160 -160
- package/dist/collection/components/core/kritzel-editor/kritzel-editor.js +18 -20
- package/dist/collection/components/core/kritzel-engine/kritzel-engine.css +80 -80
- package/dist/collection/components/core/kritzel-engine/kritzel-engine.js +22 -124
- package/dist/collection/components/core/kritzel-watermark/kritzel-watermark.css +29 -29
- package/dist/collection/components/core/kritzel-watermark/kritzel-watermark.js +2 -2
- package/dist/collection/components/shared/kritzel-avatar/kritzel-avatar.css +58 -58
- package/dist/collection/components/shared/kritzel-avatar/kritzel-avatar.js +3 -3
- package/dist/collection/components/shared/kritzel-brush-style/kritzel-brush-style.css +42 -42
- package/dist/collection/components/shared/kritzel-brush-style/kritzel-brush-style.js +3 -3
- package/dist/collection/components/shared/kritzel-button/kritzel-button.css +73 -73
- package/dist/collection/components/shared/kritzel-button/kritzel-button.js +2 -2
- package/dist/collection/components/shared/kritzel-color/kritzel-color.css +24 -24
- package/dist/collection/components/shared/kritzel-color/kritzel-color.js +2 -2
- package/dist/collection/components/shared/kritzel-color-palette/kritzel-color-palette.css +46 -46
- package/dist/collection/components/shared/kritzel-color-palette/kritzel-color-palette.js +1 -1
- package/dist/collection/components/shared/kritzel-dialog/kritzel-dialog.css +209 -209
- package/dist/collection/components/shared/kritzel-dropdown/kritzel-dropdown.css +190 -190
- package/dist/collection/components/shared/kritzel-dropdown/kritzel-dropdown.js +2 -2
- package/dist/collection/components/shared/kritzel-font/kritzel-font.css +10 -10
- package/dist/collection/components/shared/kritzel-font/kritzel-font.js +1 -1
- package/dist/collection/components/shared/kritzel-font-family/kritzel-font-family.css +48 -48
- package/dist/collection/components/shared/kritzel-font-family/kritzel-font-family.js +2 -2
- package/dist/collection/components/shared/kritzel-font-size/kritzel-font-size.css +30 -30
- package/dist/collection/components/shared/kritzel-font-size/kritzel-font-size.js +1 -1
- package/dist/collection/components/shared/kritzel-icon/kritzel-icon.css +18 -18
- package/dist/collection/components/shared/kritzel-input/kritzel-input.css +69 -69
- package/dist/collection/components/shared/kritzel-input/kritzel-input.js +1 -1
- package/dist/collection/components/shared/kritzel-line-endings/kritzel-line-endings.css +60 -60
- package/dist/collection/components/shared/kritzel-line-endings/kritzel-line-endings.js +3 -3
- package/dist/collection/components/shared/kritzel-master-detail/kritzel-master-detail.css +190 -190
- package/dist/collection/components/shared/kritzel-master-detail/kritzel-master-detail.js +3 -3
- package/dist/collection/components/shared/kritzel-menu/kritzel-menu.css +34 -34
- package/dist/collection/components/shared/kritzel-menu/kritzel-menu.js +1 -1
- package/dist/collection/components/shared/kritzel-menu-item/kritzel-menu-item.css +166 -166
- package/dist/collection/components/shared/kritzel-menu-item/kritzel-menu-item.js +2 -2
- package/dist/collection/components/shared/kritzel-numeric-input/kritzel-numeric-input.css +102 -102
- package/dist/collection/components/shared/kritzel-numeric-input/kritzel-numeric-input.js +1 -1
- package/dist/collection/components/shared/kritzel-opacity-slider/kritzel-opacity-slider.css +85 -85
- package/dist/collection/components/shared/kritzel-opacity-slider/kritzel-opacity-slider.js +1 -1
- package/dist/collection/components/shared/kritzel-pill-tabs/kritzel-pill-tabs.css +68 -68
- package/dist/collection/components/shared/kritzel-pill-tabs/kritzel-pill-tabs.js +2 -2
- package/dist/collection/components/shared/kritzel-portal/kritzel-portal.js +1 -1
- package/dist/collection/components/shared/kritzel-shape-fill/kritzel-shape-fill.css +47 -47
- package/dist/collection/components/shared/kritzel-shape-fill/kritzel-shape-fill.js +4 -4
- package/dist/collection/components/shared/kritzel-slide-toggle/kritzel-slide-toggle.css +48 -48
- package/dist/collection/components/shared/kritzel-slide-toggle/kritzel-slide-toggle.js +1 -1
- package/dist/collection/components/shared/kritzel-split-button/kritzel-split-button.css +78 -78
- package/dist/collection/components/shared/kritzel-split-button/kritzel-split-button.js +1 -1
- package/dist/collection/components/shared/kritzel-stroke-size/kritzel-stroke-size.css +37 -37
- package/dist/collection/components/shared/kritzel-stroke-size/kritzel-stroke-size.js +1 -1
- package/dist/collection/components/shared/kritzel-tooltip/kritzel-tooltip.css +18 -18
- package/dist/collection/components/shared/kritzel-tooltip/kritzel-tooltip.js +2 -2
- package/dist/collection/components/ui/kritzel-active-users/kritzel-active-users.css +65 -65
- package/dist/collection/components/ui/kritzel-back-to-content/kritzel-back-to-content.css +42 -42
- package/dist/collection/components/ui/kritzel-back-to-content/kritzel-back-to-content.js +1 -1
- package/dist/collection/components/ui/kritzel-context-menu/kritzel-context-menu.css +112 -112
- package/dist/collection/components/ui/kritzel-controls/kritzel-controls.css +331 -331
- package/dist/collection/components/ui/kritzel-controls/kritzel-controls.js +6 -6
- package/dist/collection/components/ui/kritzel-current-user/kritzel-current-user.css +11 -11
- package/dist/collection/components/ui/kritzel-current-user/kritzel-current-user.js +1 -1
- package/dist/collection/components/ui/kritzel-current-user-dialog/kritzel-current-user-dialog.css +39 -39
- package/dist/collection/components/ui/kritzel-current-user-dialog/kritzel-current-user-dialog.js +1 -1
- package/dist/collection/components/ui/kritzel-export/kritzel-export.css +89 -89
- package/dist/collection/components/ui/kritzel-export/kritzel-export.js +1 -1
- package/dist/collection/components/ui/kritzel-loading-overlay/kritzel-loading-overlay.css +50 -50
- package/dist/collection/components/ui/kritzel-loading-overlay/kritzel-loading-overlay.js +1 -1
- package/dist/collection/components/ui/kritzel-login-dialog/kritzel-login-dialog.css +98 -98
- package/dist/collection/components/ui/kritzel-login-dialog/kritzel-login-dialog.js +1 -1
- package/dist/collection/components/ui/kritzel-more-menu/kritzel-more-menu.css +58 -58
- package/dist/collection/components/ui/kritzel-more-menu/kritzel-more-menu.js +2 -2
- package/dist/collection/components/ui/kritzel-notification-card/kritzel-notification-card.css +101 -101
- package/dist/collection/components/ui/kritzel-settings/kritzel-settings.css +137 -137
- package/dist/collection/components/ui/kritzel-settings/kritzel-settings.js +1 -1
- package/dist/collection/components/ui/kritzel-share-dialog/kritzel-share-dialog.css +150 -150
- package/dist/collection/components/ui/kritzel-share-dialog/kritzel-share-dialog.js +2 -2
- package/dist/collection/components/ui/kritzel-tool-config/kritzel-tool-config.css +38 -38
- package/dist/collection/components/ui/kritzel-utility-panel/kritzel-utility-panel.css +45 -45
- package/dist/collection/components/ui/kritzel-utility-panel/kritzel-utility-panel.js +1 -1
- package/dist/collection/components/ui/kritzel-workspace-manager/kritzel-workspace-manager.css +16 -16
- package/dist/collection/components/ui/kritzel-zoom-panel/kritzel-zoom-panel.css +72 -72
- package/dist/collection/components/ui/kritzel-zoom-panel/kritzel-zoom-panel.js +1 -1
- package/dist/collection/constants/version.js +1 -1
- package/dist/collection/helpers/cursor.helper.js +6 -6
- package/dist/collection/helpers/svg-export.helper.js +41 -41
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.js +9 -4
- package/dist/components/kritzel-active-users.js +1 -1
- package/dist/components/kritzel-avatar.js +1 -1
- package/dist/components/kritzel-awareness-cursors.js +1 -1
- package/dist/components/kritzel-back-to-content.js +1 -1
- package/dist/components/kritzel-brush-style.js +4 -4
- package/dist/components/kritzel-button.js +1 -1
- package/dist/components/kritzel-color-palette.js +1 -1
- package/dist/components/kritzel-color.js +1 -1
- package/dist/components/kritzel-context-menu.js +1 -1
- package/dist/components/kritzel-controls.js +1 -1
- package/dist/components/kritzel-current-user-dialog.js +1 -1
- package/dist/components/kritzel-current-user.js +1 -1
- package/dist/components/kritzel-cursor-trail.js +1 -1
- package/dist/components/kritzel-dialog.js +1 -1
- package/dist/components/kritzel-dropdown.js +1 -1
- package/dist/components/kritzel-editor.js +94 -102
- package/dist/components/kritzel-engine.js +1 -1
- package/dist/components/kritzel-export.js +1 -1
- package/dist/components/kritzel-font-family.js +1 -1
- package/dist/components/kritzel-font-size.js +1 -1
- package/dist/components/kritzel-font.js +1 -1
- package/dist/components/kritzel-icon.js +1 -1
- package/dist/components/kritzel-input.js +1 -1
- package/dist/components/kritzel-line-endings.js +1 -1
- package/dist/components/kritzel-loading-overlay.js +1 -1
- package/dist/components/kritzel-login-dialog.js +1 -1
- package/dist/components/kritzel-master-detail.js +1 -1
- package/dist/components/kritzel-menu-item.js +1 -1
- package/dist/components/kritzel-menu.js +1 -1
- package/dist/components/kritzel-more-menu.js +1 -1
- package/dist/components/kritzel-notification-card.js +1 -1
- package/dist/components/kritzel-numeric-input.js +1 -1
- package/dist/components/kritzel-opacity-slider.js +1 -1
- package/dist/components/kritzel-pill-tabs.js +1 -1
- package/dist/components/kritzel-portal.js +1 -1
- package/dist/components/kritzel-settings.js +1 -1
- package/dist/components/kritzel-shape-fill.js +1 -1
- package/dist/components/kritzel-share-dialog.js +1 -1
- package/dist/components/kritzel-slide-toggle.js +1 -1
- package/dist/components/kritzel-split-button.js +1 -1
- package/dist/components/kritzel-stroke-size.js +1 -1
- package/dist/components/kritzel-tool-config.js +1 -1
- package/dist/components/kritzel-tooltip.js +1 -1
- package/dist/components/kritzel-utility-panel.js +1 -1
- package/dist/components/kritzel-watermark.js +1 -1
- package/dist/components/kritzel-workspace-manager.js +1 -1
- package/dist/components/kritzel-zoom-panel.js +1 -1
- package/dist/components/{p-BFYT03fw.js → p-B38_9BJg.js} +3 -3
- package/dist/components/{p-C9_yBEoX.js → p-B43upypT.js} +10 -30
- package/dist/components/{p-Covorf4C.js → p-BFYtCsZu.js} +3 -3
- package/dist/components/{p-BppcoKoo.js → p-BPzdPKWE.js} +5 -5
- package/dist/components/{p-Cx-L_28S.js → p-Ba0c-tu2.js} +3 -3
- package/dist/components/{p-MhQxGUvY.js → p-BeSKOETx.js} +3 -3
- package/dist/components/{p-CLAz6RJc.js → p-BprEDRpA.js} +3 -3
- package/dist/components/{p-BXUx_C0N.js → p-BsLI_BWq.js} +2 -2
- package/dist/components/{p-CSKToqUl.js → p-C0FEC_gS.js} +4 -4
- package/dist/components/{p-D2VcPEtL.js → p-CAXR5-S9.js} +6 -6
- package/dist/components/{p-DYPA7jpg.js → p-CBrn5AIB.js} +2 -2
- package/dist/components/{p-D3BzgkIE.js → p-CSPYkLLH.js} +2 -2
- package/dist/components/{p-Ck-87E2G.js → p-CSuU8frA.js} +1 -1
- package/dist/components/{p-Di--2boB.js → p-CXpv9Rxe.js} +3 -3
- package/dist/components/{p-dAXnRkjA.js → p-Ce1j1-Hg.js} +5 -5
- package/dist/components/{p-BrA9NBEE.js → p-CeffYwAK.js} +21 -21
- package/dist/components/{p-DT_WBwsw.js → p-ChPs27Fd.js} +6 -6
- package/dist/components/{p-3tBE7SyG.js → p-Cm33td2O.js} +2 -2
- package/dist/components/{p-BkXQL5Dl.js → p-CoXN583u.js} +5 -5
- package/dist/components/{p-Ch-KG9To.js → p-CucCT7Qn.js} +3 -3
- package/dist/components/{p-DPsbNStn.js → p-Cva3jIIU.js} +2 -2
- package/dist/components/{p-D0Trc3IQ.js → p-D0Ed8epW.js} +5 -5
- package/dist/components/{p-DafP9PAA.js → p-DFMZEarE.js} +2 -2
- package/dist/components/{p-BShrnlam.js → p-DK0anxtL.js} +2 -2
- package/dist/components/{p-zG-WUBGF.js → p-DN9p3G9K.js} +4 -4
- package/dist/components/{p-DcUIO14-.js → p-DOTdJ3JQ.js} +4 -4
- package/dist/components/{p-CWAChRD5.js → p-DOl-95VY.js} +12 -12
- package/dist/components/{p-Dznwo6oc.js → p-DTB3ykgO.js} +2 -2
- package/dist/components/{p-BZZ3KRPk.js → p-DUmLsjKb.js} +3 -3
- package/dist/components/{p-DwEYMvIn.js → p-DUoQyGKc.js} +66 -178
- package/dist/components/{p-QSyeAy8R.js → p-DX2nriaq.js} +2 -2
- package/dist/components/{p-BrqSjRJN.js → p-D_cyY7Nd.js} +3 -3
- package/dist/components/{p-CHoOe3FD.js → p-Df3BwVGy.js} +3 -3
- package/dist/components/{p-CSWCmyzb.js → p-DhabvHJM.js} +5 -5
- package/dist/components/{p-o3NYKrVL.js → p-DkHYY72B.js} +3 -3
- package/dist/components/{p-vDCa_ZDm.js → p-DnmVD1Mz.js} +3 -3
- package/dist/components/{p-fSV6KVTC.js → p-DoxFuOy1.js} +3 -3
- package/dist/components/{p-b0J2ktAm.js → p-Dpm75DfV.js} +7 -7
- package/dist/components/{p-ME1sDz3f.js → p-Dvn6ad4a.js} +2 -2
- package/dist/components/{p-Qdo3E8dr.js → p-NOWtUeeQ.js} +2 -2
- package/dist/components/{p-Dp1CD4gK.js → p-OUl5CA4Y.js} +2 -2
- package/dist/components/{p-D6JycG-I.js → p-bAacqNHq.js} +3 -3
- package/dist/components/{p-DjXQxw9R.js → p-djJSnjAX.js} +3 -3
- package/dist/components/{p-1Q4VnThv.js → p-jIKskj3S.js} +3 -3
- package/dist/components/{p-DW1B118Q.js → p-m7SeNszM.js} +9 -9
- package/dist/esm/{index-2va1Pk9z.js → index-Dhio9uis.js} +13 -49
- package/dist/esm/index.js +8 -2
- package/dist/{stencil/p-ce6d432e.entry.js → esm/kritzel-active-users_46.entry.js} +113 -217
- package/dist/esm/kritzel-brush-style.entry.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{schema.constants-DBvUmuDH.js → schema.constants-DfvqHmxc.js} +20 -44
- package/dist/esm/stencil.js +4 -4
- package/dist/stencil/index.esm.js +8 -2
- package/dist/{esm/kritzel-active-users_47.entry.js → stencil/p-5c045d3e.entry.js} +113 -217
- package/dist/stencil/{p-DBvUmuDH.js → p-DfvqHmxc.js} +20 -44
- package/dist/stencil/{p-2va1Pk9z.js → p-Dhio9uis.js} +11 -47
- package/dist/stencil/{p-df06ca3a.entry.js → p-fb32cd8f.entry.js} +2 -2
- package/dist/stencil/stencil.esm.js +4 -4
- package/dist/types/classes/providers/sync/hocuspocus-sync-provider.class.d.ts +1 -0
- package/dist/types/classes/providers/sync/websocket-sync-provider.class.d.ts +1 -0
- package/dist/types/components/core/kritzel-editor/kritzel-editor.d.ts +0 -1
- package/dist/types/components/core/kritzel-engine/kritzel-engine.d.ts +0 -14
- package/dist/types/components.d.ts +0 -42
- package/dist/types/constants/version.d.ts +1 -1
- package/dist/types/interfaces/sync-provider.interface.d.ts +7 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -12
- package/loader/index.d.ts +1 -1
- package/package.json +1 -1
- package/readme.md +10 -10
- package/dist/collection/components/shared/kritzel-sync-indicator/kritzel-sync-indicator.css +0 -50
- package/dist/collection/components/shared/kritzel-sync-indicator/kritzel-sync-indicator.js +0 -66
- package/dist/components/kritzel-sync-indicator.d.ts +0 -11
- package/dist/components/kritzel-sync-indicator.js +0 -6
- package/dist/components/p-Bxi-Bm49.js +0 -39
- package/dist/types/components/shared/kritzel-sync-indicator/kritzel-sync-indicator.d.ts +0 -7
|
@@ -1538,18 +1538,6 @@ export namespace Components {
|
|
|
1538
1538
|
*/
|
|
1539
1539
|
"sizes": number[];
|
|
1540
1540
|
}
|
|
1541
|
-
interface KritzelSyncIndicator {
|
|
1542
|
-
/**
|
|
1543
|
-
* The text displayed next to the spinner.
|
|
1544
|
-
* @default 'Syncing...'
|
|
1545
|
-
*/
|
|
1546
|
-
"text": string;
|
|
1547
|
-
/**
|
|
1548
|
-
* Whether the indicator is visible.
|
|
1549
|
-
* @default false
|
|
1550
|
-
*/
|
|
1551
|
-
"visible": boolean;
|
|
1552
|
-
}
|
|
1553
1541
|
interface KritzelToolConfig {
|
|
1554
1542
|
"engine": HTMLElement;
|
|
1555
1543
|
/**
|
|
@@ -2036,7 +2024,6 @@ declare global {
|
|
|
2036
2024
|
"notificationsChange": KritzelNotification;
|
|
2037
2025
|
"contextMenuStateChange": KritzelContextMenuState;
|
|
2038
2026
|
"loadingChange": boolean;
|
|
2039
|
-
"syncingChange": boolean;
|
|
2040
2027
|
}
|
|
2041
2028
|
interface HTMLKritzelEngineElement extends Components.KritzelEngine, HTMLStencilElement {
|
|
2042
2029
|
addEventListener<K extends keyof HTMLKritzelEngineElementEventMap>(type: K, listener: (this: HTMLKritzelEngineElement, ev: KritzelEngineCustomEvent<HTMLKritzelEngineElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -2458,12 +2445,6 @@ declare global {
|
|
|
2458
2445
|
prototype: HTMLKritzelStrokeSizeElement;
|
|
2459
2446
|
new (): HTMLKritzelStrokeSizeElement;
|
|
2460
2447
|
};
|
|
2461
|
-
interface HTMLKritzelSyncIndicatorElement extends Components.KritzelSyncIndicator, HTMLStencilElement {
|
|
2462
|
-
}
|
|
2463
|
-
var HTMLKritzelSyncIndicatorElement: {
|
|
2464
|
-
prototype: HTMLKritzelSyncIndicatorElement;
|
|
2465
|
-
new (): HTMLKritzelSyncIndicatorElement;
|
|
2466
|
-
};
|
|
2467
2448
|
interface HTMLKritzelToolConfigElementEventMap {
|
|
2468
2449
|
"toolChange": ConfigurableTool;
|
|
2469
2450
|
"displayValuesChange": ToolDisplayValues;
|
|
@@ -2610,7 +2591,6 @@ declare global {
|
|
|
2610
2591
|
"kritzel-slide-toggle": HTMLKritzelSlideToggleElement;
|
|
2611
2592
|
"kritzel-split-button": HTMLKritzelSplitButtonElement;
|
|
2612
2593
|
"kritzel-stroke-size": HTMLKritzelStrokeSizeElement;
|
|
2613
|
-
"kritzel-sync-indicator": HTMLKritzelSyncIndicatorElement;
|
|
2614
2594
|
"kritzel-tool-config": HTMLKritzelToolConfigElement;
|
|
2615
2595
|
"kritzel-tooltip": HTMLKritzelTooltipElement;
|
|
2616
2596
|
"kritzel-utility-panel": HTMLKritzelUtilityPanelElement;
|
|
@@ -3184,10 +3164,6 @@ declare namespace LocalJSX {
|
|
|
3184
3164
|
* Emitted when one or more objects are updated on the canvas.
|
|
3185
3165
|
*/
|
|
3186
3166
|
"onObjectsUpdated"?: (event: KritzelEngineCustomEvent<ObjectsUpdatedEvent>) => void;
|
|
3187
|
-
/**
|
|
3188
|
-
* Emitted when remote workspace synchronization is in progress.
|
|
3189
|
-
*/
|
|
3190
|
-
"onSyncingChange"?: (event: KritzelEngineCustomEvent<boolean>) => void;
|
|
3191
3167
|
/**
|
|
3192
3168
|
* Emitted when the undo/redo state changes, providing current undo availability.
|
|
3193
3169
|
*/
|
|
@@ -3716,18 +3692,6 @@ declare namespace LocalJSX {
|
|
|
3716
3692
|
*/
|
|
3717
3693
|
"sizes"?: number[];
|
|
3718
3694
|
}
|
|
3719
|
-
interface KritzelSyncIndicator {
|
|
3720
|
-
/**
|
|
3721
|
-
* The text displayed next to the spinner.
|
|
3722
|
-
* @default 'Syncing...'
|
|
3723
|
-
*/
|
|
3724
|
-
"text"?: string;
|
|
3725
|
-
/**
|
|
3726
|
-
* Whether the indicator is visible.
|
|
3727
|
-
* @default false
|
|
3728
|
-
*/
|
|
3729
|
-
"visible"?: boolean;
|
|
3730
|
-
}
|
|
3731
3695
|
interface KritzelToolConfig {
|
|
3732
3696
|
"engine"?: HTMLElement;
|
|
3733
3697
|
/**
|
|
@@ -4037,10 +4001,6 @@ declare namespace LocalJSX {
|
|
|
4037
4001
|
interface KritzelStrokeSizeAttributes {
|
|
4038
4002
|
"selectedSize": number | null;
|
|
4039
4003
|
}
|
|
4040
|
-
interface KritzelSyncIndicatorAttributes {
|
|
4041
|
-
"visible": boolean;
|
|
4042
|
-
"text": string;
|
|
4043
|
-
}
|
|
4044
4004
|
interface KritzelToolConfigAttributes {
|
|
4045
4005
|
"isExpanded": boolean;
|
|
4046
4006
|
"theme": ThemeName;
|
|
@@ -4103,7 +4063,6 @@ declare namespace LocalJSX {
|
|
|
4103
4063
|
"kritzel-slide-toggle": Omit<KritzelSlideToggle, keyof KritzelSlideToggleAttributes> & { [K in keyof KritzelSlideToggle & keyof KritzelSlideToggleAttributes]?: KritzelSlideToggle[K] } & { [K in keyof KritzelSlideToggle & keyof KritzelSlideToggleAttributes as `attr:${K}`]?: KritzelSlideToggleAttributes[K] } & { [K in keyof KritzelSlideToggle & keyof KritzelSlideToggleAttributes as `prop:${K}`]?: KritzelSlideToggle[K] };
|
|
4104
4064
|
"kritzel-split-button": Omit<KritzelSplitButton, keyof KritzelSplitButtonAttributes> & { [K in keyof KritzelSplitButton & keyof KritzelSplitButtonAttributes]?: KritzelSplitButton[K] } & { [K in keyof KritzelSplitButton & keyof KritzelSplitButtonAttributes as `attr:${K}`]?: KritzelSplitButtonAttributes[K] } & { [K in keyof KritzelSplitButton & keyof KritzelSplitButtonAttributes as `prop:${K}`]?: KritzelSplitButton[K] };
|
|
4105
4065
|
"kritzel-stroke-size": Omit<KritzelStrokeSize, keyof KritzelStrokeSizeAttributes> & { [K in keyof KritzelStrokeSize & keyof KritzelStrokeSizeAttributes]?: KritzelStrokeSize[K] } & { [K in keyof KritzelStrokeSize & keyof KritzelStrokeSizeAttributes as `attr:${K}`]?: KritzelStrokeSizeAttributes[K] } & { [K in keyof KritzelStrokeSize & keyof KritzelStrokeSizeAttributes as `prop:${K}`]?: KritzelStrokeSize[K] };
|
|
4106
|
-
"kritzel-sync-indicator": Omit<KritzelSyncIndicator, keyof KritzelSyncIndicatorAttributes> & { [K in keyof KritzelSyncIndicator & keyof KritzelSyncIndicatorAttributes]?: KritzelSyncIndicator[K] } & { [K in keyof KritzelSyncIndicator & keyof KritzelSyncIndicatorAttributes as `attr:${K}`]?: KritzelSyncIndicatorAttributes[K] } & { [K in keyof KritzelSyncIndicator & keyof KritzelSyncIndicatorAttributes as `prop:${K}`]?: KritzelSyncIndicator[K] };
|
|
4107
4066
|
"kritzel-tool-config": Omit<KritzelToolConfig, keyof KritzelToolConfigAttributes> & { [K in keyof KritzelToolConfig & keyof KritzelToolConfigAttributes]?: KritzelToolConfig[K] } & { [K in keyof KritzelToolConfig & keyof KritzelToolConfigAttributes as `attr:${K}`]?: KritzelToolConfigAttributes[K] } & { [K in keyof KritzelToolConfig & keyof KritzelToolConfigAttributes as `prop:${K}`]?: KritzelToolConfig[K] };
|
|
4108
4067
|
"kritzel-tooltip": Omit<KritzelTooltip, keyof KritzelTooltipAttributes> & { [K in keyof KritzelTooltip & keyof KritzelTooltipAttributes]?: KritzelTooltip[K] } & { [K in keyof KritzelTooltip & keyof KritzelTooltipAttributes as `attr:${K}`]?: KritzelTooltipAttributes[K] } & { [K in keyof KritzelTooltip & keyof KritzelTooltipAttributes as `prop:${K}`]?: KritzelTooltip[K] };
|
|
4109
4068
|
"kritzel-utility-panel": KritzelUtilityPanel;
|
|
@@ -4167,7 +4126,6 @@ declare module "@stencil/core" {
|
|
|
4167
4126
|
"kritzel-slide-toggle": LocalJSX.IntrinsicElements["kritzel-slide-toggle"] & JSXBase.HTMLAttributes<HTMLKritzelSlideToggleElement>;
|
|
4168
4127
|
"kritzel-split-button": LocalJSX.IntrinsicElements["kritzel-split-button"] & JSXBase.HTMLAttributes<HTMLKritzelSplitButtonElement>;
|
|
4169
4128
|
"kritzel-stroke-size": LocalJSX.IntrinsicElements["kritzel-stroke-size"] & JSXBase.HTMLAttributes<HTMLKritzelStrokeSizeElement>;
|
|
4170
|
-
"kritzel-sync-indicator": LocalJSX.IntrinsicElements["kritzel-sync-indicator"] & JSXBase.HTMLAttributes<HTMLKritzelSyncIndicatorElement>;
|
|
4171
4129
|
"kritzel-tool-config": LocalJSX.IntrinsicElements["kritzel-tool-config"] & JSXBase.HTMLAttributes<HTMLKritzelToolConfigElement>;
|
|
4172
4130
|
"kritzel-tooltip": LocalJSX.IntrinsicElements["kritzel-tooltip"] & JSXBase.HTMLAttributes<HTMLKritzelTooltipElement>;
|
|
4173
4131
|
"kritzel-utility-panel": LocalJSX.IntrinsicElements["kritzel-utility-panel"] & JSXBase.HTMLAttributes<HTMLKritzelUtilityPanelElement>;
|
|
@@ -22,6 +22,13 @@ export interface ISyncProvider {
|
|
|
22
22
|
* local-only providers (IndexedDB, BroadcastChannel) return null or undefined.
|
|
23
23
|
*/
|
|
24
24
|
readonly awareness?: Awareness | null;
|
|
25
|
+
/**
|
|
26
|
+
* The underlying third-party provider instance (e.g. `WebsocketProvider`, `HocuspocusProvider`)
|
|
27
|
+
* used as the Yjs transaction origin for updates it applies. Exposed so callers can
|
|
28
|
+
* distinguish genuine remote-origin transactions from local-only providers (IndexedDB,
|
|
29
|
+
* BroadcastChannel), which don't tag their transactions with a recognizable origin.
|
|
30
|
+
*/
|
|
31
|
+
readonly rawProvider?: unknown;
|
|
25
32
|
/**
|
|
26
33
|
* Initialize and connect the provider
|
|
27
34
|
*/
|
|
@@ -1008,7 +1008,6 @@ export declare namespace JSXBase {
|
|
|
1008
1008
|
onClose?: (event: Event) => void;
|
|
1009
1009
|
open?: boolean;
|
|
1010
1010
|
returnValue?: string;
|
|
1011
|
-
closedby?: 'any' | 'closerequest' | 'none';
|
|
1012
1011
|
}
|
|
1013
1012
|
interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1014
1013
|
height?: number | string;
|
|
@@ -1046,8 +1045,6 @@ export declare namespace JSXBase {
|
|
|
1046
1045
|
allowtransparency?: string | boolean;
|
|
1047
1046
|
frameBorder?: number | string;
|
|
1048
1047
|
frameborder?: number | string;
|
|
1049
|
-
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1050
|
-
fetchpriority?: 'high' | 'low' | 'auto';
|
|
1051
1048
|
importance?: 'low' | 'auto' | 'high';
|
|
1052
1049
|
height?: number | string;
|
|
1053
1050
|
loading?: 'lazy' | 'auto' | 'eager';
|
|
@@ -1070,8 +1067,6 @@ export declare namespace JSXBase {
|
|
|
1070
1067
|
crossOrigin?: string;
|
|
1071
1068
|
crossorigin?: string;
|
|
1072
1069
|
decoding?: 'async' | 'auto' | 'sync';
|
|
1073
|
-
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1074
|
-
fetchpriority?: 'high' | 'low' | 'auto';
|
|
1075
1070
|
importance?: 'low' | 'auto' | 'high';
|
|
1076
1071
|
height?: number | string;
|
|
1077
1072
|
loading?: 'lazy' | 'auto' | 'eager';
|
|
@@ -1171,8 +1166,6 @@ export declare namespace JSXBase {
|
|
|
1171
1166
|
}
|
|
1172
1167
|
interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1173
1168
|
as?: string;
|
|
1174
|
-
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1175
|
-
fetchpriority?: 'high' | 'low' | 'auto';
|
|
1176
1169
|
href?: string;
|
|
1177
1170
|
hrefLang?: string;
|
|
1178
1171
|
hreflang?: string;
|
|
@@ -1296,8 +1289,6 @@ export declare namespace JSXBase {
|
|
|
1296
1289
|
crossOrigin?: string;
|
|
1297
1290
|
crossorigin?: string;
|
|
1298
1291
|
defer?: boolean;
|
|
1299
|
-
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1300
|
-
fetchpriority?: 'high' | 'low' | 'auto';
|
|
1301
1292
|
importance?: 'low' | 'auto' | 'high';
|
|
1302
1293
|
integrity?: string;
|
|
1303
1294
|
nonce?: string;
|
|
@@ -1413,10 +1404,7 @@ export declare namespace JSXBase {
|
|
|
1413
1404
|
tabIndex?: number;
|
|
1414
1405
|
tabindex?: number | string;
|
|
1415
1406
|
title?: string;
|
|
1416
|
-
translate?: 'yes' | 'no' | (string & {});
|
|
1417
1407
|
popover?: string | null;
|
|
1418
|
-
focusgroup?: string;
|
|
1419
|
-
focusgroupstart?: boolean;
|
|
1420
1408
|
inputMode?: string;
|
|
1421
1409
|
inputmode?: string;
|
|
1422
1410
|
enterKeyHint?: string;
|
package/loader/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export interface CustomElementsDefineOptions {
|
|
|
8
8
|
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
9
9
|
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
10
10
|
}
|
|
11
|
-
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions):
|
|
11
|
+
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): void;
|
|
12
12
|
/**
|
|
13
13
|
* @deprecated
|
|
14
14
|
*/
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# Kritzel Stencil Core
|
|
2
|
-
|
|
3
|
-
This package contains the shared Stencil-based core that powers Kritzel's framework-specific variants.
|
|
4
|
-
|
|
5
|
-
It is not intended as the primary entry point for application integration. Instead, use the framework wrapper that matches your stack:
|
|
6
|
-
|
|
7
|
-
- [Kritzel for Angular](https://kritzel.io/docs/angular/quick-start)
|
|
8
|
-
- [Kritzel for React](https://kritzel.io/docs/react/quick-start)
|
|
9
|
-
- [Kritzel for Vue](https://kritzel.io/docs/vue/quick-start)
|
|
10
|
-
|
|
1
|
+
# Kritzel Stencil Core
|
|
2
|
+
|
|
3
|
+
This package contains the shared Stencil-based core that powers Kritzel's framework-specific variants.
|
|
4
|
+
|
|
5
|
+
It is not intended as the primary entry point for application integration. Instead, use the framework wrapper that matches your stack:
|
|
6
|
+
|
|
7
|
+
- [Kritzel for Angular](https://kritzel.io/docs/angular/quick-start)
|
|
8
|
+
- [Kritzel for React](https://kritzel.io/docs/react/quick-start)
|
|
9
|
+
- [Kritzel for Vue](https://kritzel.io/docs/vue/quick-start)
|
|
10
|
+
|
|
11
11
|
For licensing details, see the [Kritzel License](https://kritzel.io/license).
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: contents;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.indicator {
|
|
6
|
-
position: absolute;
|
|
7
|
-
top: 12px;
|
|
8
|
-
left: 50%;
|
|
9
|
-
transform: translateX(-50%);
|
|
10
|
-
z-index: var(--kritzel-editor-sync-indicator-z-index, 10001);
|
|
11
|
-
pointer-events: none;
|
|
12
|
-
display: inline-flex;
|
|
13
|
-
align-items: center;
|
|
14
|
-
gap: 8px;
|
|
15
|
-
padding: 6px 10px;
|
|
16
|
-
border-radius: 999px;
|
|
17
|
-
background: var(--kritzel-editor-sync-indicator-background, rgba(255, 255, 255, 0.92));
|
|
18
|
-
color: var(--kritzel-editor-sync-indicator-color, #334155);
|
|
19
|
-
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
|
|
20
|
-
font-family: var(--kritzel-font-family, sans-serif);
|
|
21
|
-
font-size: 12px;
|
|
22
|
-
line-height: 1;
|
|
23
|
-
font-weight: 500;
|
|
24
|
-
opacity: 0;
|
|
25
|
-
visibility: hidden;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.indicator.visible {
|
|
29
|
-
opacity: 1;
|
|
30
|
-
visibility: visible;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.spinner {
|
|
34
|
-
width: 12px;
|
|
35
|
-
height: 12px;
|
|
36
|
-
border-radius: 50%;
|
|
37
|
-
border: 2px solid var(--kritzel-editor-sync-indicator-spinner-track, rgba(148, 163, 184, 0.35));
|
|
38
|
-
border-top-color: var(--kritzel-editor-sync-indicator-spinner-color, #2563eb);
|
|
39
|
-
animation: kritzel-sync-indicator-spin 0.8s linear infinite;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
@keyframes kritzel-sync-indicator-spin {
|
|
43
|
-
from {
|
|
44
|
-
transform: rotate(0deg);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
to {
|
|
48
|
-
transform: rotate(360deg);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
export class KritzelSyncIndicator {
|
|
3
|
-
/** Whether the indicator is visible. */
|
|
4
|
-
visible = false;
|
|
5
|
-
/** The text displayed next to the spinner. */
|
|
6
|
-
text = 'Syncing...';
|
|
7
|
-
render() {
|
|
8
|
-
return (h(Host, { key: '2622544751cd377f172115f5f73e21e0f0995185' }, h("div", { key: '0cf49cbfbfa4ed0625eeff443ba1e2996a26562e', class: { indicator: true, visible: this.visible }, role: "status", "aria-live": "polite", "aria-label": "Synchronizing workspace" }, h("span", { key: '053ddc85e9ad2210822d3100ecf5d54d7170d470', class: "spinner", "aria-hidden": "true" }), h("span", { key: '94ea7f6be206688e9065d02b1d5c753e3598e9df' }, this.text))));
|
|
9
|
-
}
|
|
10
|
-
static get is() { return "kritzel-sync-indicator"; }
|
|
11
|
-
static get encapsulation() { return "shadow"; }
|
|
12
|
-
static get originalStyleUrls() {
|
|
13
|
-
return {
|
|
14
|
-
"$": ["kritzel-sync-indicator.css"]
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
static get styleUrls() {
|
|
18
|
-
return {
|
|
19
|
-
"$": ["kritzel-sync-indicator.css"]
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
static get properties() {
|
|
23
|
-
return {
|
|
24
|
-
"visible": {
|
|
25
|
-
"type": "boolean",
|
|
26
|
-
"mutable": false,
|
|
27
|
-
"complexType": {
|
|
28
|
-
"original": "boolean",
|
|
29
|
-
"resolved": "boolean",
|
|
30
|
-
"references": {}
|
|
31
|
-
},
|
|
32
|
-
"required": false,
|
|
33
|
-
"optional": false,
|
|
34
|
-
"docs": {
|
|
35
|
-
"tags": [],
|
|
36
|
-
"text": "Whether the indicator is visible."
|
|
37
|
-
},
|
|
38
|
-
"getter": false,
|
|
39
|
-
"setter": false,
|
|
40
|
-
"reflect": false,
|
|
41
|
-
"attribute": "visible",
|
|
42
|
-
"defaultValue": "false"
|
|
43
|
-
},
|
|
44
|
-
"text": {
|
|
45
|
-
"type": "string",
|
|
46
|
-
"mutable": false,
|
|
47
|
-
"complexType": {
|
|
48
|
-
"original": "string",
|
|
49
|
-
"resolved": "string",
|
|
50
|
-
"references": {}
|
|
51
|
-
},
|
|
52
|
-
"required": false,
|
|
53
|
-
"optional": false,
|
|
54
|
-
"docs": {
|
|
55
|
-
"tags": [],
|
|
56
|
-
"text": "The text displayed next to the spinner."
|
|
57
|
-
},
|
|
58
|
-
"getter": false,
|
|
59
|
-
"setter": false,
|
|
60
|
-
"reflect": false,
|
|
61
|
-
"attribute": "text",
|
|
62
|
-
"defaultValue": "'Syncing...'"
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface KritzelSyncIndicator extends Components.KritzelSyncIndicator, HTMLElement {}
|
|
4
|
-
export const KritzelSyncIndicator: {
|
|
5
|
-
prototype: KritzelSyncIndicator;
|
|
6
|
-
new (): KritzelSyncIndicator;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, h, d as Host, t as transformTag } from './p-C9_yBEoX.js';
|
|
2
|
-
|
|
3
|
-
const kritzelSyncIndicatorCss = () => `:host{display:contents}.indicator{position:absolute;top:12px;left:50%;transform:translateX(-50%);z-index:var(--kritzel-editor-sync-indicator-z-index, 10001);pointer-events:none;display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;background:var(--kritzel-editor-sync-indicator-background, rgba(255, 255, 255, 0.92));color:var(--kritzel-editor-sync-indicator-color, #334155);box-shadow:0 2px 10px rgba(0, 0, 0, 0.12);font-family:var(--kritzel-font-family, sans-serif);font-size:12px;line-height:1;font-weight:500;opacity:0;visibility:hidden}.indicator.visible{opacity:1;visibility:visible}.spinner{width:12px;height:12px;border-radius:50%;border:2px solid var(--kritzel-editor-sync-indicator-spinner-track, rgba(148, 163, 184, 0.35));border-top-color:var(--kritzel-editor-sync-indicator-spinner-color, #2563eb);animation:kritzel-sync-indicator-spin 0.8s linear infinite}@keyframes kritzel-sync-indicator-spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}`;
|
|
4
|
-
|
|
5
|
-
const KritzelSyncIndicator = /*@__PURE__*/ proxyCustomElement(class KritzelSyncIndicator extends H {
|
|
6
|
-
constructor(registerHost) {
|
|
7
|
-
super();
|
|
8
|
-
if (registerHost !== false) {
|
|
9
|
-
this.__registerHost();
|
|
10
|
-
}
|
|
11
|
-
this.__attachShadow();
|
|
12
|
-
}
|
|
13
|
-
/** Whether the indicator is visible. */
|
|
14
|
-
visible = false;
|
|
15
|
-
/** The text displayed next to the spinner. */
|
|
16
|
-
text = 'Syncing...';
|
|
17
|
-
render() {
|
|
18
|
-
return (h(Host, { key: '2622544751cd377f172115f5f73e21e0f0995185' }, h("div", { key: '0cf49cbfbfa4ed0625eeff443ba1e2996a26562e', class: { indicator: true, visible: this.visible }, role: "status", "aria-live": "polite", "aria-label": "Synchronizing workspace" }, h("span", { key: '053ddc85e9ad2210822d3100ecf5d54d7170d470', class: "spinner", "aria-hidden": "true" }), h("span", { key: '94ea7f6be206688e9065d02b1d5c753e3598e9df' }, this.text))));
|
|
19
|
-
}
|
|
20
|
-
static get style() { return kritzelSyncIndicatorCss(); }
|
|
21
|
-
}, [513, "kritzel-sync-indicator", {
|
|
22
|
-
"visible": [4],
|
|
23
|
-
"text": [1]
|
|
24
|
-
}]);
|
|
25
|
-
function defineCustomElement() {
|
|
26
|
-
if (typeof customElements === "undefined") {
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
const components = ["kritzel-sync-indicator"];
|
|
30
|
-
components.forEach(tagName => { switch (tagName) {
|
|
31
|
-
case "kritzel-sync-indicator":
|
|
32
|
-
if (!customElements.get(transformTag(tagName))) {
|
|
33
|
-
customElements.define(transformTag(tagName), KritzelSyncIndicator);
|
|
34
|
-
}
|
|
35
|
-
break;
|
|
36
|
-
} });
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export { KritzelSyncIndicator as K, defineCustomElement as d };
|