kritzel-stencil 0.2.10 → 0.2.11

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.
Files changed (46) hide show
  1. package/dist/cjs/kritzel-active-users_42.cjs.entry.js +188 -14
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/stencil.cjs.js +1 -1
  4. package/dist/collection/components/core/kritzel-editor/kritzel-editor.css +8 -1
  5. package/dist/collection/components/shared/kritzel-dialog/kritzel-dialog.css +29 -0
  6. package/dist/collection/components/shared/kritzel-dialog/kritzel-dialog.js +201 -5
  7. package/dist/collection/components/ui/kritzel-controls/kritzel-controls.css +1 -1
  8. package/dist/collection/components/ui/kritzel-current-user-dialog/kritzel-current-user-dialog.js +1 -1
  9. package/dist/collection/components/ui/kritzel-export/kritzel-export.js +1 -1
  10. package/dist/collection/components/ui/kritzel-login-dialog/kritzel-login-dialog.js +1 -1
  11. package/dist/collection/components/ui/kritzel-settings/kritzel-settings.js +1 -1
  12. package/dist/collection/components/ui/kritzel-share-dialog/kritzel-share-dialog.js +2 -2
  13. package/dist/collection/constants/version.js +1 -1
  14. package/dist/components/kritzel-controls.js +1 -1
  15. package/dist/components/kritzel-current-user-dialog.js +1 -1
  16. package/dist/components/kritzel-current-user.js +1 -1
  17. package/dist/components/kritzel-dialog.js +1 -1
  18. package/dist/components/kritzel-editor.js +1 -1
  19. package/dist/components/kritzel-export.js +1 -1
  20. package/dist/components/kritzel-login-dialog.js +1 -1
  21. package/dist/components/kritzel-settings.js +1 -1
  22. package/dist/components/kritzel-share-dialog.js +1 -1
  23. package/dist/components/p-BTSOqHMI.js +1 -0
  24. package/dist/components/p-C51_twnc.js +1 -0
  25. package/dist/components/p-CrSLn46K.js +1 -0
  26. package/dist/components/p-CrmWVXea.js +1 -0
  27. package/dist/components/p-DMfU0hHe.js +1 -0
  28. package/dist/components/{p-DykzXVCs.js → p-DqJ9KC24.js} +1 -1
  29. package/dist/components/p-DsxW_miC.js +1 -0
  30. package/dist/components/{p-nW05C2cx.js → p-Z9_amVdR.js} +1 -1
  31. package/dist/esm/kritzel-active-users_42.entry.js +188 -14
  32. package/dist/esm/loader.js +1 -1
  33. package/dist/esm/stencil.js +1 -1
  34. package/dist/stencil/p-836d973c.entry.js +9 -0
  35. package/dist/stencil/stencil.esm.js +1 -1
  36. package/dist/types/components/shared/kritzel-dialog/kritzel-dialog.d.ts +21 -0
  37. package/dist/types/components.d.ts +11 -0
  38. package/dist/types/constants/version.d.ts +1 -1
  39. package/package.json +1 -1
  40. package/dist/components/p-B1V6yEGY.js +0 -1
  41. package/dist/components/p-BuSOJ7Xd.js +0 -1
  42. package/dist/components/p-CzYgMB2N.js +0 -1
  43. package/dist/components/p-DBIK7z89.js +0 -1
  44. package/dist/components/p-DPxSr1wV.js +0 -1
  45. package/dist/components/p-Dpr_JQam.js +0 -1
  46. package/dist/stencil/p-bfff1c18.entry.js +0 -9
@@ -14,11 +14,18 @@ kritzel-editor{
14
14
  -khtml-user-select: none;
15
15
  -moz-user-select: none;
16
16
  -ms-user-select: none;
17
- user-select: none;
17
+ user-select: none;
18
+ text-align: start;
19
+ line-height: normal;
18
20
  }
19
21
 
20
22
  kritzel-controls {
21
23
  position: absolute;
24
+ left: 0;
25
+ right: 0;
26
+ margin-inline: auto;
27
+ width: max-content;
28
+ max-width: calc(100% - 16px);
22
29
  bottom: var(--kritzel-editor-controls-bottom, 14px);
23
30
  transition: transform var(--kritzel-editor-controls-transition-duration, 0.1s) var(--kritzel-editor-controls-transition, ease-in-out);
24
31
  }
@@ -2,6 +2,11 @@
2
2
  display: contents;
3
3
  }
4
4
 
5
+ .dialog-content {
6
+ text-align: start;
7
+ line-height: normal;
8
+ }
9
+
5
10
  .backdrop {
6
11
  position: fixed;
7
12
  top: 0;
@@ -71,6 +76,30 @@
71
76
  border-radius: 0;
72
77
  }
73
78
 
79
+ /*
80
+ * Contained-mobile: when the wrapping container itself is mobile-sized, the
81
+ * dialog fills the container fully (mirrors the viewport fullscreen-on-mobile
82
+ * behavior). The actual sizing is set inline by JS based on the container
83
+ * rect; here we just remove decorations and ensure body flex layout.
84
+ */
85
+ .backdrop.contained-fullscreen {
86
+ background-color: transparent;
87
+ }
88
+
89
+ .dialog-content.contained-fullscreen {
90
+ border-radius: 0;
91
+ }
92
+
93
+ .dialog-content.contained-fullscreen .dialog-body {
94
+ display: flex;
95
+ flex-direction: column;
96
+ }
97
+
98
+ .dialog-content.contained-fullscreen .dialog-body ::slotted(*) {
99
+ flex: 1;
100
+ min-height: 0;
101
+ }
102
+
74
103
  /* Responsive: auto fullscreen on mobile when enabled (portrait) */
75
104
  @media (max-width: 576px),
76
105
  (max-height: 576px) and (orientation: landscape) {
@@ -20,8 +20,12 @@ export class KritzelDialog {
20
20
  size = 'medium';
21
21
  /** Whether to automatically go fullscreen on mobile viewports */
22
22
  fullscreenOnMobile = true;
23
+ /** Constrain the dialog to its nearest editor/container ancestor instead of the viewport. */
24
+ contained = false;
23
25
  isAnimating = false;
24
26
  mobileLockedHeight = null;
27
+ containerRect = null;
28
+ containerBorderRadius = null;
25
29
  /** Emitted when the dialog opens */
26
30
  dialogOpen;
27
31
  /** Emitted when the dialog closes */
@@ -29,6 +33,9 @@ export class KritzelDialog {
29
33
  previousOverflow = '';
30
34
  previousActiveElement = null;
31
35
  visualViewportListenersAttached = false;
36
+ containerElement = null;
37
+ containerResizeObserver = null;
38
+ containerTrackingFrame = null;
32
39
  handleIsOpenChange(newValue) {
33
40
  if (newValue) {
34
41
  this.openDialog();
@@ -78,13 +85,19 @@ export class KritzelDialog {
78
85
  }
79
86
  disconnectedCallback() {
80
87
  this.removeVisualViewportListeners();
88
+ this.stopContainerTracking();
81
89
  this.restoreBodyScroll();
82
90
  }
83
91
  openDialog() {
84
92
  this.isAnimating = true;
85
93
  this.previousActiveElement = document.activeElement;
86
- this.lockBodyScroll();
87
- this.addVisualViewportListeners();
94
+ if (this.contained) {
95
+ this.startContainerTracking();
96
+ }
97
+ else {
98
+ this.lockBodyScroll();
99
+ this.addVisualViewportListeners();
100
+ }
88
101
  this.lockMobileViewportHeight();
89
102
  this.dialogOpen.emit();
90
103
  if (this.autoFocus) {
@@ -99,9 +112,106 @@ export class KritzelDialog {
99
112
  closeDialog() {
100
113
  this.restoreBodyScroll();
101
114
  this.removeVisualViewportListeners();
115
+ this.stopContainerTracking();
102
116
  this.mobileLockedHeight = null;
103
117
  this.returnFocusToPreviousElement();
104
118
  }
119
+ findContainerElement() {
120
+ // Walk up the composed DOM (crossing shadow roots) and return the first
121
+ // ancestor that opts into containing dialogs. We accept either an explicit
122
+ // [data-kritzel-dialog-container] marker or the kritzel-editor host so any
123
+ // consumer can opt in without modifying the editor itself.
124
+ let node = this.host;
125
+ while (node) {
126
+ if (node instanceof HTMLElement) {
127
+ if (node.hasAttribute('data-kritzel-dialog-container') || node.tagName === 'KRITZEL-EDITOR') {
128
+ return node;
129
+ }
130
+ }
131
+ const parent = node.parentNode;
132
+ if (parent) {
133
+ node = parent;
134
+ }
135
+ else if (node instanceof ShadowRoot) {
136
+ node = node.host;
137
+ }
138
+ else {
139
+ node = null;
140
+ }
141
+ }
142
+ return null;
143
+ }
144
+ startContainerTracking() {
145
+ this.containerElement = this.findContainerElement();
146
+ if (!this.containerElement) {
147
+ // No container found — fall back to viewport behavior.
148
+ this.containerRect = null;
149
+ return;
150
+ }
151
+ this.updateContainerRect();
152
+ if (typeof ResizeObserver !== 'undefined') {
153
+ this.containerResizeObserver = new ResizeObserver(() => this.updateContainerRect());
154
+ this.containerResizeObserver.observe(this.containerElement);
155
+ }
156
+ window.addEventListener('resize', this.handleContainerTrackingEvent, { passive: true });
157
+ window.addEventListener('scroll', this.handleContainerTrackingEvent, { capture: true, passive: true });
158
+ }
159
+ stopContainerTracking() {
160
+ if (this.containerResizeObserver) {
161
+ this.containerResizeObserver.disconnect();
162
+ this.containerResizeObserver = null;
163
+ }
164
+ window.removeEventListener('resize', this.handleContainerTrackingEvent);
165
+ window.removeEventListener('scroll', this.handleContainerTrackingEvent, { capture: true });
166
+ if (this.containerTrackingFrame !== null) {
167
+ cancelAnimationFrame(this.containerTrackingFrame);
168
+ this.containerTrackingFrame = null;
169
+ }
170
+ this.containerElement = null;
171
+ this.containerRect = null;
172
+ this.containerBorderRadius = null;
173
+ }
174
+ handleContainerTrackingEvent = () => {
175
+ if (this.containerTrackingFrame !== null)
176
+ return;
177
+ this.containerTrackingFrame = requestAnimationFrame(() => {
178
+ this.containerTrackingFrame = null;
179
+ this.updateContainerRect();
180
+ });
181
+ };
182
+ updateContainerRect() {
183
+ if (!this.containerElement)
184
+ return;
185
+ const rect = this.containerElement.getBoundingClientRect();
186
+ const next = { top: rect.top, left: rect.left, width: rect.width, height: rect.height };
187
+ const prev = this.containerRect;
188
+ if (!prev || prev.top !== next.top || prev.left !== next.left || prev.width !== next.width || prev.height !== next.height) {
189
+ this.containerRect = next;
190
+ }
191
+ // Look for the nearest visually-rounded ancestor (the container itself or
192
+ // any ancestor up to the document) so the backdrop matches wrappers that
193
+ // round their corners around the editor.
194
+ const radius = this.findVisualBorderRadius(this.containerElement);
195
+ if (this.containerBorderRadius !== radius) {
196
+ this.containerBorderRadius = radius;
197
+ }
198
+ }
199
+ findVisualBorderRadius(start) {
200
+ let node = start;
201
+ while (node && node !== document.body && node !== document.documentElement) {
202
+ const computed = window.getComputedStyle(node);
203
+ const tl = computed.borderTopLeftRadius;
204
+ const tr = computed.borderTopRightRadius;
205
+ const br = computed.borderBottomRightRadius;
206
+ const bl = computed.borderBottomLeftRadius;
207
+ const isZero = (v) => !v || v === '0px' || v === '0%';
208
+ if (!(isZero(tl) && isZero(tr) && isZero(br) && isZero(bl))) {
209
+ return `${tl} ${tr} ${br} ${bl}`;
210
+ }
211
+ node = node.parentElement;
212
+ }
213
+ return null;
214
+ }
105
215
  emitClose(reason) {
106
216
  this.dialogClose.emit({ reason });
107
217
  }
@@ -110,6 +220,12 @@ export class KritzelDialog {
110
220
  document.body.style.overflow = 'hidden';
111
221
  }
112
222
  lockMobileViewportHeight() {
223
+ // Skip mobile viewport height locking when contained — the dialog is sized
224
+ // by its wrapper, not the viewport.
225
+ if (this.contained) {
226
+ this.mobileLockedHeight = null;
227
+ return;
228
+ }
113
229
  // Only lock height on mobile when fullscreenOnMobile is enabled.
114
230
  // Use the smaller dimension so landscape phones (wide but short) are also detected.
115
231
  const viewportWidth = this.getViewportWidth();
@@ -244,15 +360,73 @@ export class KritzelDialog {
244
360
  return null;
245
361
  return (h("div", { class: "dialog-footer" }, h("slot", { name: "footer" })));
246
362
  }
363
+ getBackdropStyle() {
364
+ if (!this.contained || !this.containerRect)
365
+ return undefined;
366
+ const { top, left, width, height } = this.containerRect;
367
+ const style = {
368
+ top: `${top}px`,
369
+ left: `${left}px`,
370
+ right: 'auto',
371
+ bottom: 'auto',
372
+ width: `${width}px`,
373
+ height: `${height}px`,
374
+ };
375
+ if (this.containerBorderRadius) {
376
+ style.borderRadius = this.containerBorderRadius;
377
+ // Ensure rounded corners actually clip the inner dialog content.
378
+ style.overflow = 'hidden';
379
+ }
380
+ return style;
381
+ }
382
+ getDialogContentStyle() {
383
+ const style = {};
384
+ // In contained mode, cap the dialog dimensions to the container so the
385
+ // declared widths/heights of size variants cannot overflow the wrapper.
386
+ if (this.contained && this.containerRect) {
387
+ const { width, height } = this.containerRect;
388
+ if (this.isContainerMobile()) {
389
+ // Mobile-sized container: behave like fullscreen-on-mobile but scoped
390
+ // to the container instead of the viewport (works in any orientation).
391
+ style.width = `${width}px`;
392
+ style.height = `${height}px`;
393
+ style.maxWidth = `${width}px`;
394
+ style.maxHeight = `${height}px`;
395
+ style.borderRadius = '0';
396
+ }
397
+ else {
398
+ // Leave a small margin so the dialog visibly sits within the container.
399
+ const maxWidth = Math.max(0, width - 32);
400
+ const maxHeight = Math.max(0, height - 32);
401
+ style.maxWidth = `${maxWidth}px`;
402
+ style.maxHeight = `${maxHeight}px`;
403
+ }
404
+ }
405
+ if (this.mobileLockedHeight) {
406
+ style.height = this.mobileLockedHeight;
407
+ style.maxHeight = this.mobileLockedHeight;
408
+ }
409
+ return Object.keys(style).length > 0 ? style : undefined;
410
+ }
411
+ isContainerMobile() {
412
+ if (!this.fullscreenOnMobile || !this.containerRect)
413
+ return false;
414
+ // Match the existing viewport media-query threshold: container is "mobile"
415
+ // when its smaller dimension is <= 576px. This handles both portrait and
416
+ // landscape wrappers symmetrically.
417
+ return Math.min(this.containerRect.width, this.containerRect.height) <= 576;
418
+ }
247
419
  render() {
248
420
  if (!this.isOpen)
249
421
  return null;
250
- return (h(Host, null, h("div", { class: { backdrop: true, 'is-animating': this.isAnimating }, onClick: this.handleBackdropClick }, h("div", { class: {
422
+ const containerFullscreen = this.contained && this.isContainerMobile();
423
+ return (h(Host, null, h("div", { class: { backdrop: true, 'is-animating': this.isAnimating, 'contained-fullscreen': containerFullscreen }, style: this.getBackdropStyle(), onClick: this.handleBackdropClick }, h("div", { class: {
251
424
  'dialog-content': true,
252
425
  'is-animating': this.isAnimating,
253
426
  [`size-${this.size}`]: true,
254
427
  'fullscreen-on-mobile': this.fullscreenOnMobile,
255
- }, style: this.mobileLockedHeight ? { height: this.mobileLockedHeight, maxHeight: this.mobileLockedHeight } : undefined, role: "dialog", "aria-modal": "true", "aria-labelledby": this.dialogTitle ? 'dialog-title' : undefined, tabIndex: -1, onClick: this.handleContentClick }, this.renderHeader(), h("div", { class: "dialog-body" }, h("slot", null)), this.renderFooter()))));
428
+ 'contained-fullscreen': containerFullscreen,
429
+ }, style: this.getDialogContentStyle(), role: "dialog", "aria-modal": "true", "aria-labelledby": this.dialogTitle ? 'dialog-title' : undefined, tabIndex: -1, onClick: this.handleContentClick }, this.renderHeader(), h("div", { class: "dialog-body" }, h("slot", null)), this.renderFooter()))));
256
430
  }
257
431
  static get is() { return "kritzel-dialog"; }
258
432
  static get encapsulation() { return "shadow"; }
@@ -446,13 +620,35 @@ export class KritzelDialog {
446
620
  "reflect": false,
447
621
  "attribute": "fullscreen-on-mobile",
448
622
  "defaultValue": "true"
623
+ },
624
+ "contained": {
625
+ "type": "boolean",
626
+ "mutable": false,
627
+ "complexType": {
628
+ "original": "boolean",
629
+ "resolved": "boolean",
630
+ "references": {}
631
+ },
632
+ "required": false,
633
+ "optional": false,
634
+ "docs": {
635
+ "tags": [],
636
+ "text": "Constrain the dialog to its nearest editor/container ancestor instead of the viewport."
637
+ },
638
+ "getter": false,
639
+ "setter": false,
640
+ "reflect": true,
641
+ "attribute": "contained",
642
+ "defaultValue": "false"
449
643
  }
450
644
  };
451
645
  }
452
646
  static get states() {
453
647
  return {
454
648
  "isAnimating": {},
455
- "mobileLockedHeight": {}
649
+ "mobileLockedHeight": {},
650
+ "containerRect": {},
651
+ "containerBorderRadius": {}
456
652
  };
457
653
  }
458
654
  static get events() {
@@ -2,7 +2,7 @@
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  user-select: none;
5
- max-width: calc(100vw - 16px);
5
+ max-width: 100%;
6
6
  }
7
7
 
8
8
  :host(.mobile) {
@@ -21,7 +21,7 @@ export class KritzelCurrentUserDialog {
21
21
  }
22
22
  render() {
23
23
  const displayName = this.getDisplayName();
24
- return (h(Host, { key: 'e1dd44cdfdbaebfe886fed0d9feba2ef232b6615' }, h("kritzel-dialog", { key: '49dd037cca0741cc949f20d9d44cfd028492dc60', dialogTitle: "Account", isOpen: this.isDialogOpen, onDialogClose: this.closeDialog, size: "small" }, h("div", { key: 'ddcdfb82cc0c896025559888d475ab5c9ad59b4c', class: "user-info" }, h("kritzel-avatar", { key: '4d164b784cde6787d26ac164c7450c0352e6a7cb', user: this.user, size: 80 }), displayName && h("div", { key: '13ad719d8bd90cd608c78438fccbb38ed1d5e5ba', class: "user-name" }, displayName), this.user?.email && h("div", { key: 'df360afd434293d9c9d5fcf114713e0a6925a78e', class: "user-email" }, this.user.email)))));
24
+ return (h(Host, { key: 'e1dd44cdfdbaebfe886fed0d9feba2ef232b6615' }, h("kritzel-dialog", { key: 'cd3daa7abd53c10852d63a2fe53d919414cd8904', dialogTitle: "Account", isOpen: this.isDialogOpen, onDialogClose: this.closeDialog, size: "small", contained: true }, h("div", { key: '94d0a691ede73135e6cf4ef144c13e52e410ffbe', class: "user-info" }, h("kritzel-avatar", { key: 'e57592d2f3663b593534055be5aae1b224fa8906', user: this.user, size: 80 }), displayName && h("div", { key: '237db2d0608ee49ea70e5282b61a59077f0f4595', class: "user-name" }, displayName), this.user?.email && h("div", { key: 'd821e8171530b92ce6f1781c1145b611d3c533d0', class: "user-email" }, this.user.email)))));
25
25
  }
26
26
  static get is() { return "kritzel-current-user-dialog"; }
27
27
  static get encapsulation() { return "shadow"; }
@@ -65,7 +65,7 @@ export class KritzelExport {
65
65
  return (h("div", { class: "export-tab-content" }, h("kritzel-input", { label: "Filename", value: this.exportFilename, placeholder: "Enter filename", suffix: ".json", onValueChange: this.handleFilenameChange })));
66
66
  }
67
67
  render() {
68
- return (h(Host, { key: '5178e66f75b94697c771e2dc6fe7ce317e21cd1a' }, h("kritzel-dialog", { key: '01aae6955be6828945b20e8a8a4d7c49eb92b2e2', isOpen: this.isDialogOpen, dialogTitle: "Export", closable: true, onDialogClose: this.closeDialog }, h("div", { key: '57c6f6de2917fb51201d737c4d0e1877f5671466', class: "export-content" }, h("kritzel-pill-tabs", { key: '800b8c058078ba1bba06b5edbaf370c4fa3c6806', tabs: this.tabs, value: this.activeTab, onValueChange: this.handleTabChange }), this.activeTab === 'viewport' && this.renderViewportExport(), this.activeTab === 'workspace' && this.renderWorkspaceExport(), h("button", { key: '99fb3b3d8dc42fdb47a3110e8403dde4e508e6cd', class: "export-primary-button", onClick: this.handleExport }, "Export")))));
68
+ return (h(Host, { key: '5178e66f75b94697c771e2dc6fe7ce317e21cd1a' }, h("kritzel-dialog", { key: 'f80cbe3fa709ed7e046303034b7345ca1f94bc48', isOpen: this.isDialogOpen, dialogTitle: "Export", closable: true, contained: true, onDialogClose: this.closeDialog }, h("div", { key: 'e7968807c2b67ebfc800cb1694b4e34af245ffba', class: "export-content" }, h("kritzel-pill-tabs", { key: 'eac62225c4c42431296f330791a1fb2212f579f5', tabs: this.tabs, value: this.activeTab, onValueChange: this.handleTabChange }), this.activeTab === 'viewport' && this.renderViewportExport(), this.activeTab === 'workspace' && this.renderWorkspaceExport(), h("button", { key: '3489affca39a901c2ef05a0698cdf51c0a7f6d1a', class: "export-primary-button", onClick: this.handleExport }, "Export")))));
69
69
  }
70
70
  static get is() { return "kritzel-export"; }
71
71
  static get encapsulation() { return "shadow"; }
@@ -44,7 +44,7 @@ export class KritzelLoginDialog {
44
44
  this.dialogClosed.emit();
45
45
  };
46
46
  render() {
47
- return (h(Host, { key: '1a664868b840030a773f61c2a0f4388dfb014675' }, h("kritzel-dialog", { key: '09ece6fb5949fc8b204f29cd931c583e525590e1', dialogTitle: this.dialogTitle, isOpen: this.isDialogOpen, onDialogClose: this.closeDialog, size: "small" }, h("div", { key: '57218d7762734929691b82700c31922f5a4991c8', class: "login-content" }, this.subtitle && (h("p", { key: '9ee071786f393857cd6a666e395526a139359d60', class: "login-subtitle" }, this.subtitle)), h("div", { key: 'a487687345aabcfb55976437ddc85feb464f0cae', class: "login-providers" }, this.providers.map(provider => (h("button", { key: provider.name, class: {
47
+ return (h(Host, { key: '1a664868b840030a773f61c2a0f4388dfb014675' }, h("kritzel-dialog", { key: '54844ffa772a211515c1ef3e6834ec45f7f3d035', dialogTitle: this.dialogTitle, isOpen: this.isDialogOpen, onDialogClose: this.closeDialog, size: "small", contained: true }, h("div", { key: 'd9b981b6904c58bc39173ae37ee5c4c0ee329005', class: "login-content" }, this.subtitle && (h("p", { key: 'd4d200060507d2b8b755796d8313acdfc7e2f587', class: "login-subtitle" }, this.subtitle)), h("div", { key: '3dc1e3c070e62d026eb16ceb48eb63c94bc2bed0', class: "login-providers" }, this.providers.map(provider => (h("button", { key: provider.name, class: {
48
48
  'provider-button': true,
49
49
  'is-loading': this.loadingProvider === provider.name,
50
50
  'is-disabled': this.loadingProvider !== null && this.loadingProvider !== provider.name,
@@ -181,7 +181,7 @@ export class KritzelSettings {
181
181
  }
182
182
  }
183
183
  render() {
184
- return (h(Host, { key: 'e86192a8ca49f8618d58ede4d04d321ea238d7d4' }, h("kritzel-dialog", { key: '111bc00bbf36c2a2f82179b1a8ba22fb3a9ed11b', isOpen: this.isDialogOpen, dialogTitle: "Settings", size: "large", onDialogClose: this.closeDialog }, h("kritzel-master-detail", { key: '02c49d50572678e2ffc9d0a02bece918fbaa14e2', items: SETTINGS_CATEGORIES, selectedItemId: this.selectedCategoryId, onItemSelect: this.handleCategorySelect }, this.renderCategoryContent()))));
184
+ return (h(Host, { key: 'e86192a8ca49f8618d58ede4d04d321ea238d7d4' }, h("kritzel-dialog", { key: '23a47a8cd9281794bfd2aec7edd6a4ef4b931550', isOpen: this.isDialogOpen, dialogTitle: "Settings", size: "large", contained: true, onDialogClose: this.closeDialog }, h("kritzel-master-detail", { key: '007c8a1c04bd0d692b55d88988b0f8874f9242a4', items: SETTINGS_CATEGORIES, selectedItemId: this.selectedCategoryId, onItemSelect: this.handleCategorySelect }, this.renderCategoryContent()))));
185
185
  }
186
186
  static get is() { return "kritzel-settings"; }
187
187
  static get encapsulation() { return "shadow"; }
@@ -84,9 +84,9 @@ export class KritzelShareDialog {
84
84
  this.dialogClosed.emit();
85
85
  };
86
86
  render() {
87
- return (h(Host, { key: 'bd58f146337b3eca96ca34408a3d30621f01765a' }, h("kritzel-dialog", { key: 'c152f4ec5739a18b265f9a8b161ec8501c1a053b', dialogTitle: "Share Workspace", isOpen: this.isDialogOpen, onDialogClose: this.closeDialog, size: "small" }, h("div", { key: '2810061b1c99e4f4644342453de693e1cddf9a27', class: "share-content" }, h("div", { key: 'bc56de53fd6136c6867018af24019383094cab0d', class: "share-section" }, h("div", { key: '43464ffd61e5a19653cc081e823f01c0eb17e454', class: "share-row" }, h("div", { key: 'ed83ea6684695d09dc6af82b3367fbbff6e4c7e2', class: "share-label-group" }, h("label", { key: 'fe2eaf501dd80ad0b8d83f93a2dcdd18bc093d3b', class: "share-label" }, "Link sharing"), h("p", { key: '738f1a6afc0421380164b9d270920631cefdfd78', class: "share-description" }, this.internalIsPublic
87
+ return (h(Host, { key: 'bd58f146337b3eca96ca34408a3d30621f01765a' }, h("kritzel-dialog", { key: '0575ac82e19d07cf909556cae2ec433e0057fd5b', dialogTitle: "Share Workspace", size: "small", isOpen: this.isDialogOpen, onDialogClose: this.closeDialog, contained: true }, h("div", { key: 'c51d207e31255f45724103bfecbe858f13a721e6', class: "share-content" }, h("div", { key: 'ca6cb7721b9ba834c133b2cb953b208475e34fb5', class: "share-section" }, h("div", { key: '2c76845c903cc1c18cc26b9111d608e732ed12a5', class: "share-row" }, h("div", { key: '7700533f54372bc81d8d795414318a6bf0e93c47', class: "share-label-group" }, h("label", { key: 'a1d80009cb09cfe35bce35ce1151bf0754b052c1', class: "share-label" }, "Link sharing"), h("p", { key: '10c1963e95e658c7fb86174f1dba7565ce40d5a6', class: "share-description" }, this.internalIsPublic
88
88
  ? 'Anyone with the link can access this workspace.'
89
- : 'Link sharing is disabled. Only you can access this workspace.')), h("kritzel-slide-toggle", { key: '60f0200ea8f9c207cd5ee76f5a86f82707bb724b', checked: this.internalIsPublic, onCheckedChange: this.handleToggleChange, label: "Enable link sharing" }))), this.internalIsPublic && (h("div", { key: '83212a2a996b85996eee119d5535203f77d3c8dd', class: "share-section" }, h("div", { key: '297031b5aef2018f7aa33c32fd0f8c82f1ddb4cb', class: "share-url-container" }, h("input", { key: '467cca4a8c31b75daa82670f64b562730c241f52', type: "text", class: "share-url-input", value: this.getShareUrl(), readOnly: true, onClick: (e) => e.target.select() }), h("button", { key: 'fdc0f490339cb7050fb020cb1e83e51f6374b183', class: { 'copy-button': true, 'copy-success': this.copySuccess }, onClick: this.handleCopyUrl, title: this.copySuccess ? 'Copied!' : 'Copy link' }, h("kritzel-icon", { key: '5ff1a76d7977c75ea7bc8c339bdf515ba102e511', name: this.copySuccess ? 'check' : 'copy', size: 18 })))))))));
89
+ : 'Link sharing is disabled. Only you can access this workspace.')), h("kritzel-slide-toggle", { key: 'ec62a5ece12be0cea18a16c5d41db0a992309174', checked: this.internalIsPublic, onCheckedChange: this.handleToggleChange, label: "Enable link sharing" }))), this.internalIsPublic && (h("div", { key: '5e826d4c8c37792ba3a74a0189ad313a8ab482e2', class: "share-section" }, h("div", { key: 'f8e35cda32cb34ab21f56335aa27503fd6fe98c4', class: "share-url-container" }, h("input", { key: '47feb20a1843e1d3d8f7d146d71574b187002e8d', type: "text", class: "share-url-input", value: this.getShareUrl(), readOnly: true, onClick: (e) => e.target.select() }), h("button", { key: '052f56f35d057430cbc8fd03da5bef574b173791', class: { 'copy-button': true, 'copy-success': this.copySuccess }, onClick: this.handleCopyUrl, title: this.copySuccess ? 'Copied!' : 'Copy link' }, h("kritzel-icon", { key: '4e1de478f837a352185be2a06e15796dc1fb2f5e', name: this.copySuccess ? 'check' : 'copy', size: 18 })))))))));
90
90
  }
91
91
  static get is() { return "kritzel-share-dialog"; }
92
92
  static get encapsulation() { return "shadow"; }
@@ -3,4 +3,4 @@
3
3
  * This file is auto-generated by the version bump scripts.
4
4
  * Do not modify manually.
5
5
  */
6
- export const KRITZEL_VERSION = '0.2.10';
6
+ export const KRITZEL_VERSION = '0.2.11';
@@ -1 +1 @@
1
- import{K as o,d as s}from"./p-CzYgMB2N.js";const p=o,r=s;export{p as KritzelControls,r as defineCustomElement}
1
+ import{K as o,d as s}from"./p-C51_twnc.js";const t=o,p=s;export{t as KritzelControls,p as defineCustomElement}
@@ -1 +1 @@
1
- import{K as o,d as s}from"./p-BuSOJ7Xd.js";const p=o,r=s;export{p as KritzelCurrentUserDialog,r as defineCustomElement}
1
+ import{K as o,d as r}from"./p-CrmWVXea.js";const s=o,a=r;export{s as KritzelCurrentUserDialog,a as defineCustomElement}
@@ -1 +1 @@
1
- import{K as o,d as s}from"./p-nW05C2cx.js";const p=o,r=s;export{p as KritzelCurrentUser,r as defineCustomElement}
1
+ import{K as o,d as s}from"./p-Z9_amVdR.js";const a=o,m=s;export{a as KritzelCurrentUser,m as defineCustomElement}
@@ -1 +1 @@
1
- import{K as o,d as r}from"./p-DPxSr1wV.js";const s=o,p=r;export{s as KritzelDialog,p as defineCustomElement}
1
+ import{K as o,d as s}from"./p-BTSOqHMI.js";const p=o,r=s;export{p as KritzelDialog,r as defineCustomElement}