@threadlabs/looma 0.43.0 → 0.43.1
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/components/ui-card/ui-card.html +6 -6
- package/components/ui-editor-mention-menu/ui-editor-mention-menu.js +3 -0
- package/components/ui-editor-slash-menu/ui-editor-slash-menu.js +4 -0
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +1 -0
- package/dist/index.js +1 -1
- package/docs/README.md +2 -2
- package/docs/card.html +2 -6
- package/docs/card.js +7 -37
- package/docs/catalog.json +214 -10
- package/docs/catalog.mjs +1 -1
- package/docs/customizer-render.mjs +7 -6
- package/docs/customizer.js +2 -7
- package/docs/documentation.css +3 -7
- package/docs/examples/ui-button/examples/08-loading.behavior.js +1 -1
- package/docs/examples/ui-checkbox/examples/02-checked-indeterminate-and-disabled.behavior.js +1 -1
- package/docs/examples/ui-editor-mention-menu/examples/00-preview.behavior.js +1 -0
- package/docs/examples/ui-editor-slash-menu/examples/00-preview.behavior.js +81 -0
- package/docs/examples/ui-editor-table-overlay/examples/00-preview.behavior.js +24 -0
- package/docs/examples/ui-search-shell/examples/00-preview.behavior.js +14 -0
- package/docs/examples/ui-search-shell/examples/02-label-dismissible-status-and-footer.behavior.js +7 -7
- package/docs/examples/ui-toast/examples/01-authored.behavior.js +2 -2
- package/docs/index.d.ts +1 -1
- package/docs/local-server.mjs +2 -5
- package/docs/pastoral.svg +54 -0
- package/docs/portrait.svg +15 -0
- package/docs/render.mjs +33 -3
- package/docs/site.mjs +22 -54
- package/package.json +1 -1
- package/styles/ui-card.css +6 -6
- package/vanilla/UiEditorTableOverlay.js +50 -36
- package/vue/UiCard.vue +6 -6
- package/vue/UiEditorTableOverlay.d.ts +11 -1
- package/vue/UiEditorTableOverlay.vue +98 -63
- package/vue/chunks/UiCard.js +1 -1
- package/vue/chunks/UiEditorTableOverlay.js +41 -13
- package/vue/components.css +54 -53
- package/docs/preview.js +0 -22
package/vue/components.css
CHANGED
|
@@ -1768,16 +1768,16 @@ html[data-ui-input-modality="touch"]
|
|
|
1768
1768
|
--_ui-selection-context-text: var(--ui-text-primary);
|
|
1769
1769
|
}
|
|
1770
1770
|
:scope[data-ui-card-state~="size=sm"]:where([data-hn-ui-card]) {
|
|
1771
|
-
inline-size: min(22rem, calc(100vw - var(--ui-space-2) * 2));
|
|
1772
|
-
max-inline-size: min(22rem, calc(100vw - var(--ui-space-2) * 2));
|
|
1771
|
+
inline-size: min(22rem, 100%, calc(100vw - var(--ui-space-2) * 2));
|
|
1772
|
+
max-inline-size: min(22rem, 100%, calc(100vw - var(--ui-space-2) * 2));
|
|
1773
1773
|
}
|
|
1774
1774
|
:scope[data-ui-card-state~="size=md"]:where([data-hn-ui-card]) {
|
|
1775
|
-
inline-size: min(28rem, calc(100vw - var(--ui-space-2) * 2));
|
|
1776
|
-
max-inline-size: min(28rem, calc(100vw - var(--ui-space-2) * 2));
|
|
1775
|
+
inline-size: min(28rem, 100%, calc(100vw - var(--ui-space-2) * 2));
|
|
1776
|
+
max-inline-size: min(28rem, 100%, calc(100vw - var(--ui-space-2) * 2));
|
|
1777
1777
|
}
|
|
1778
1778
|
:scope[data-ui-card-state~="size=lg"]:where([data-hn-ui-card]) {
|
|
1779
|
-
inline-size: min(36rem, calc(100vw - var(--ui-space-2) * 2));
|
|
1780
|
-
max-inline-size: min(36rem, calc(100vw - var(--ui-space-2) * 2));
|
|
1779
|
+
inline-size: min(36rem, 100%, calc(100vw - var(--ui-space-2) * 2));
|
|
1780
|
+
max-inline-size: min(36rem, 100%, calc(100vw - var(--ui-space-2) * 2));
|
|
1781
1781
|
}
|
|
1782
1782
|
:scope[hidden]:where([data-hn-ui-card]) {
|
|
1783
1783
|
display: none !important;
|
|
@@ -7242,38 +7242,38 @@ ul:where([data-hn-ui-editor-slash-menu-group]) {
|
|
|
7242
7242
|
}
|
|
7243
7243
|
|
|
7244
7244
|
@scope (.ui-editor-table-overlay) to ([data-hn]) {
|
|
7245
|
-
:scope {
|
|
7245
|
+
:scope:where([data-hn-ui-editor-table-overlay]) {
|
|
7246
7246
|
display: block !important;
|
|
7247
7247
|
width: 100%;
|
|
7248
7248
|
height: 100%;
|
|
7249
7249
|
overflow: visible;
|
|
7250
7250
|
pointer-events: none;
|
|
7251
7251
|
}
|
|
7252
|
-
:scope {
|
|
7252
|
+
:scope:where([data-hn-ui-editor-table-overlay]) {
|
|
7253
7253
|
position: relative;
|
|
7254
7254
|
width: 100%;
|
|
7255
7255
|
height: 100%;
|
|
7256
7256
|
overflow: visible;
|
|
7257
7257
|
pointer-events: none;
|
|
7258
7258
|
}
|
|
7259
|
-
.rows,.cols {
|
|
7259
|
+
.rows:where([data-hn-ui-editor-table-overlay]),.cols:where([data-hn-ui-editor-table-overlay]) {
|
|
7260
7260
|
pointer-events: none;
|
|
7261
7261
|
position: absolute;
|
|
7262
7262
|
}
|
|
7263
|
-
.rows {
|
|
7263
|
+
.rows:where([data-hn-ui-editor-table-overlay]) {
|
|
7264
7264
|
inset: 0;
|
|
7265
7265
|
width: 100%;
|
|
7266
7266
|
}
|
|
7267
|
-
.cols {
|
|
7267
|
+
.cols:where([data-hn-ui-editor-table-overlay]) {
|
|
7268
7268
|
inset: 0;
|
|
7269
7269
|
height: 100%;
|
|
7270
7270
|
}
|
|
7271
|
-
.control {
|
|
7271
|
+
.control:where([data-hn-ui-editor-table-overlay]) {
|
|
7272
7272
|
position: absolute;
|
|
7273
7273
|
z-index: 1;
|
|
7274
7274
|
pointer-events: none;
|
|
7275
7275
|
}
|
|
7276
|
-
.handle {
|
|
7276
|
+
.handle:where([data-hn-ui-editor-table-overlay]) {
|
|
7277
7277
|
position: absolute;
|
|
7278
7278
|
display: inline-flex !important;
|
|
7279
7279
|
align-items: center !important;
|
|
@@ -7300,60 +7300,60 @@ ul:where([data-hn-ui-editor-slash-menu-group]) {
|
|
|
7300
7300
|
pointer-events: auto;
|
|
7301
7301
|
cursor: pointer;
|
|
7302
7302
|
}
|
|
7303
|
-
.handle {
|
|
7303
|
+
.handle:where([data-hn-ui-editor-table-overlay]) {
|
|
7304
7304
|
--_ui-default-icon-size: 14px;
|
|
7305
7305
|
--_ui-default-icon-stroke-width: 2;
|
|
7306
7306
|
}
|
|
7307
|
-
.handle[data-ui-proximity="near"],.control.active .handle,.handle:focus-visible {
|
|
7307
|
+
.handle[data-ui-proximity="near"]:where([data-hn-ui-editor-table-overlay]),.control.active .handle:where([data-hn-ui-editor-table-overlay]),.handle:focus-visible:where([data-hn-ui-editor-table-overlay]) {
|
|
7308
7308
|
opacity: 1;
|
|
7309
7309
|
scale: 1;
|
|
7310
7310
|
}
|
|
7311
|
-
.control.active .handle,.handle:focus-visible {
|
|
7311
|
+
.control.active .handle:where([data-hn-ui-editor-table-overlay]),.handle:focus-visible:where([data-hn-ui-editor-table-overlay]) {
|
|
7312
7312
|
border-color: var(--ui-affordance-direct-color, var(--ui-accent-solid));
|
|
7313
7313
|
background: var(--ui-affordance-direct-color, var(--ui-accent-solid));
|
|
7314
7314
|
color: var(--ui-text-on-accent);
|
|
7315
7315
|
box-shadow: var(--ui-shadow-sm, 0 1px 3px rgb(0 0 0 / 0.1));
|
|
7316
7316
|
}
|
|
7317
|
-
.handle:focus-visible,.selector:focus-visible,.cell-menu:focus-visible {
|
|
7317
|
+
.handle:focus-visible:where([data-hn-ui-editor-table-overlay]),.selector:focus-visible:where([data-hn-ui-editor-table-overlay]),.cell-menu:focus-visible:where([data-hn-ui-editor-table-overlay]) {
|
|
7318
7318
|
outline: var(--ui-focus-width) solid var(--ui-focus-ring);
|
|
7319
7319
|
outline-offset: var(--ui-focus-width);
|
|
7320
7320
|
}
|
|
7321
|
-
.control.row {
|
|
7321
|
+
.control.row:where([data-hn-ui-editor-table-overlay]) {
|
|
7322
7322
|
left: 0;
|
|
7323
7323
|
width: 100%;
|
|
7324
7324
|
height: 0;
|
|
7325
7325
|
}
|
|
7326
|
-
.control.row .handle {
|
|
7326
|
+
.control.row .handle:where([data-hn-ui-editor-table-overlay]) {
|
|
7327
7327
|
top: -12px;
|
|
7328
7328
|
left: -30px;
|
|
7329
7329
|
}
|
|
7330
|
-
.control.col {
|
|
7330
|
+
.control.col:where([data-hn-ui-editor-table-overlay]) {
|
|
7331
7331
|
top: 0;
|
|
7332
7332
|
width: 0;
|
|
7333
7333
|
height: 100%;
|
|
7334
7334
|
}
|
|
7335
|
-
.control.col .handle {
|
|
7335
|
+
.control.col .handle:where([data-hn-ui-editor-table-overlay]) {
|
|
7336
7336
|
top: -30px;
|
|
7337
7337
|
left: -12px;
|
|
7338
7338
|
}
|
|
7339
|
-
.line {
|
|
7339
|
+
.line:where([data-hn-ui-editor-table-overlay]) {
|
|
7340
7340
|
position: absolute;
|
|
7341
7341
|
background: var(--ui-affordance-direct-color, var(--ui-accent-solid));
|
|
7342
7342
|
opacity: 0;
|
|
7343
7343
|
transition: opacity var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
|
|
7344
7344
|
}
|
|
7345
|
-
.control.row .line {
|
|
7345
|
+
.control.row .line:where([data-hn-ui-editor-table-overlay]) {
|
|
7346
7346
|
inset: calc(-0.5 * var(--ui-accent-line-width)) 0 auto;
|
|
7347
7347
|
height: var(--ui-accent-line-width);
|
|
7348
7348
|
}
|
|
7349
|
-
.control.col .line {
|
|
7349
|
+
.control.col .line:where([data-hn-ui-editor-table-overlay]) {
|
|
7350
7350
|
inset: 0 auto 0 calc(-0.5 * var(--ui-accent-line-width));
|
|
7351
7351
|
width: var(--ui-accent-line-width);
|
|
7352
7352
|
}
|
|
7353
|
-
.control.active .line {
|
|
7353
|
+
.control.active .line:where([data-hn-ui-editor-table-overlay]) {
|
|
7354
7354
|
opacity: 0.8;
|
|
7355
7355
|
}
|
|
7356
|
-
.guide {
|
|
7356
|
+
.guide:where([data-hn-ui-editor-table-overlay]) {
|
|
7357
7357
|
position: absolute;
|
|
7358
7358
|
width: var(--ui-affordance-guide-size);
|
|
7359
7359
|
height: var(--ui-affordance-guide-size);
|
|
@@ -7362,18 +7362,19 @@ ul:where([data-hn-ui-editor-slash-menu-group]) {
|
|
|
7362
7362
|
opacity: calc(var(--ui-affordance-guide-opacity) * var(--_ui-affordance-scope-guide, 1));
|
|
7363
7363
|
transition: opacity var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
|
|
7364
7364
|
}
|
|
7365
|
-
.control.row .guide {
|
|
7365
|
+
.control.row .guide:where([data-hn-ui-editor-table-overlay]) {
|
|
7366
7366
|
left: -10px;
|
|
7367
7367
|
top: -2px;
|
|
7368
7368
|
}
|
|
7369
|
-
.control.col .guide {
|
|
7369
|
+
.control.col .guide:where([data-hn-ui-editor-table-overlay]) {
|
|
7370
7370
|
left: -2px;
|
|
7371
7371
|
top: -10px;
|
|
7372
7372
|
}
|
|
7373
|
-
.control:has(.handle[data-ui-proximity="near"])
|
|
7373
|
+
.control:has(.handle[data-ui-proximity="near"])
|
|
7374
|
+
.guide:where([data-hn-ui-editor-table-overlay]),.control.active .guide:where([data-hn-ui-editor-table-overlay]) {
|
|
7374
7375
|
opacity: 0;
|
|
7375
7376
|
}
|
|
7376
|
-
.tooltip {
|
|
7377
|
+
.tooltip:where([data-hn-ui-editor-table-overlay]) {
|
|
7377
7378
|
position: absolute;
|
|
7378
7379
|
z-index: 2;
|
|
7379
7380
|
top: calc(100% + 6px);
|
|
@@ -7392,16 +7393,16 @@ ul:where([data-hn-ui-editor-slash-menu-group]) {
|
|
|
7392
7393
|
transition: opacity var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
|
|
7393
7394
|
pointer-events: none;
|
|
7394
7395
|
}
|
|
7395
|
-
.control.row .tooltip {
|
|
7396
|
+
.control.row .tooltip:where([data-hn-ui-editor-table-overlay]) {
|
|
7396
7397
|
top: 50%;
|
|
7397
7398
|
left: auto;
|
|
7398
7399
|
right: calc(100% + 8px);
|
|
7399
7400
|
transform: translateY(-50%);
|
|
7400
7401
|
}
|
|
7401
|
-
.control.active .tooltip,.handle:focus-visible .tooltip {
|
|
7402
|
+
.control.active .tooltip:where([data-hn-ui-editor-table-overlay]),.handle:focus-visible .tooltip:where([data-hn-ui-editor-table-overlay]) {
|
|
7402
7403
|
opacity: 1;
|
|
7403
7404
|
}
|
|
7404
|
-
.selector,.cell-menu {
|
|
7405
|
+
.selector:where([data-hn-ui-editor-table-overlay]),.cell-menu:where([data-hn-ui-editor-table-overlay]) {
|
|
7405
7406
|
position: absolute;
|
|
7406
7407
|
z-index: 2;
|
|
7407
7408
|
display: inline-flex !important;
|
|
@@ -7420,20 +7421,20 @@ ul:where([data-hn-ui-editor-slash-menu-group]) {
|
|
|
7420
7421
|
border-color var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease),
|
|
7421
7422
|
box-shadow var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
|
|
7422
7423
|
}
|
|
7423
|
-
.selector:hover,.cell-menu:hover {
|
|
7424
|
+
.selector:hover:where([data-hn-ui-editor-table-overlay]),.cell-menu:hover:where([data-hn-ui-editor-table-overlay]) {
|
|
7424
7425
|
background: var(--ui-surface-muted);
|
|
7425
7426
|
color: var(--ui-text-primary);
|
|
7426
7427
|
box-shadow: var(--ui-shadow-xs, 0 1px 2px rgb(0 0 0 / 0.05));
|
|
7427
7428
|
}
|
|
7428
|
-
.selector {
|
|
7429
|
+
.selector:where([data-hn-ui-editor-table-overlay]) {
|
|
7429
7430
|
border-radius: var(--ui-radius-round);
|
|
7430
7431
|
touch-action: none;
|
|
7431
7432
|
cursor: grab;
|
|
7432
7433
|
}
|
|
7433
|
-
.selector:active {
|
|
7434
|
+
.selector:active:where([data-hn-ui-editor-table-overlay]) {
|
|
7434
7435
|
cursor: grabbing;
|
|
7435
7436
|
}
|
|
7436
|
-
.selector::before {
|
|
7437
|
+
.selector:where([data-hn-ui-editor-table-overlay])::before {
|
|
7437
7438
|
content: "";
|
|
7438
7439
|
position: absolute;
|
|
7439
7440
|
inset: 50% auto auto 50%;
|
|
@@ -7444,7 +7445,7 @@ ul:where([data-hn-ui-editor-slash-menu-group]) {
|
|
|
7444
7445
|
transition: opacity var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
|
|
7445
7446
|
pointer-events: none;
|
|
7446
7447
|
}
|
|
7447
|
-
.selector .glyph {
|
|
7448
|
+
.selector .glyph:where([data-hn-ui-editor-table-overlay]) {
|
|
7448
7449
|
display: block !important;
|
|
7449
7450
|
width: 14px;
|
|
7450
7451
|
height: 14px;
|
|
@@ -7456,73 +7457,73 @@ ul:where([data-hn-ui-editor-slash-menu-group]) {
|
|
|
7456
7457
|
opacity var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease),
|
|
7457
7458
|
transform var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
|
|
7458
7459
|
}
|
|
7459
|
-
.selector:hover::before,.selector:focus-visible::before {
|
|
7460
|
+
.selector:hover:where([data-hn-ui-editor-table-overlay])::before,.selector:focus-visible:where([data-hn-ui-editor-table-overlay])::before {
|
|
7460
7461
|
opacity: 0;
|
|
7461
7462
|
}
|
|
7462
|
-
.selector:hover .glyph,.selector:focus-visible .glyph {
|
|
7463
|
+
.selector:hover .glyph:where([data-hn-ui-editor-table-overlay]),.selector:focus-visible .glyph:where([data-hn-ui-editor-table-overlay]) {
|
|
7463
7464
|
opacity: 1;
|
|
7464
7465
|
transform: scale(1);
|
|
7465
7466
|
}
|
|
7466
|
-
.selector.row {
|
|
7467
|
+
.selector.row:where([data-hn-ui-editor-table-overlay]) {
|
|
7467
7468
|
left: -9px;
|
|
7468
7469
|
width: 18px;
|
|
7469
7470
|
height: 32px;
|
|
7470
7471
|
transform: translateY(-50%);
|
|
7471
7472
|
}
|
|
7472
|
-
.selector.row::before {
|
|
7473
|
+
.selector.row:where([data-hn-ui-editor-table-overlay])::before {
|
|
7473
7474
|
width: 2px;
|
|
7474
7475
|
height: 16px;
|
|
7475
7476
|
}
|
|
7476
|
-
.selector.column {
|
|
7477
|
+
.selector.column:where([data-hn-ui-editor-table-overlay]) {
|
|
7477
7478
|
top: -9px;
|
|
7478
7479
|
width: 32px;
|
|
7479
7480
|
height: 18px;
|
|
7480
7481
|
transform: translateX(-50%);
|
|
7481
7482
|
}
|
|
7482
|
-
.selector.column::before {
|
|
7483
|
+
.selector.column:where([data-hn-ui-editor-table-overlay])::before {
|
|
7483
7484
|
width: 16px;
|
|
7484
7485
|
height: 2px;
|
|
7485
7486
|
}
|
|
7486
7487
|
@media (hover: none), (pointer: coarse) {
|
|
7487
|
-
.selector::before {
|
|
7488
|
+
.selector:where([data-hn-ui-editor-table-overlay])::before {
|
|
7488
7489
|
opacity: 0;
|
|
7489
7490
|
}
|
|
7490
|
-
.selector .glyph {
|
|
7491
|
+
.selector .glyph:where([data-hn-ui-editor-table-overlay]) {
|
|
7491
7492
|
opacity: 1;
|
|
7492
7493
|
transform: none;
|
|
7493
7494
|
}
|
|
7494
7495
|
}
|
|
7495
|
-
.cell-menu {
|
|
7496
|
+
.cell-menu:where([data-hn-ui-editor-table-overlay]) {
|
|
7496
7497
|
width: 24px;
|
|
7497
7498
|
height: 24px;
|
|
7498
7499
|
border-radius: var(--ui-radius-sm);
|
|
7499
7500
|
background: color-mix(in srgb, var(--ui-surface-muted) 78%, transparent);
|
|
7500
7501
|
}
|
|
7501
|
-
.cell-menu {
|
|
7502
|
+
.cell-menu:where([data-hn-ui-editor-table-overlay]) {
|
|
7502
7503
|
--_ui-default-icon-size: 15px;
|
|
7503
7504
|
--_ui-default-icon-stroke-width: 2;
|
|
7504
7505
|
}
|
|
7505
|
-
.drop-indicator {
|
|
7506
|
+
.drop-indicator:where([data-hn-ui-editor-table-overlay]) {
|
|
7506
7507
|
position: absolute;
|
|
7507
7508
|
z-index: 3;
|
|
7508
7509
|
background: var(--ui-accent-solid);
|
|
7509
7510
|
box-shadow: 0 0 0 var(--ui-border-width) var(--ui-surface);
|
|
7510
7511
|
pointer-events: none;
|
|
7511
7512
|
}
|
|
7512
|
-
.drop-indicator.row {
|
|
7513
|
+
.drop-indicator.row:where([data-hn-ui-editor-table-overlay]) {
|
|
7513
7514
|
left: 0;
|
|
7514
7515
|
width: 100%;
|
|
7515
7516
|
height: var(--ui-accent-line-width);
|
|
7516
7517
|
}
|
|
7517
|
-
.drop-indicator.column {
|
|
7518
|
+
.drop-indicator.column:where([data-hn-ui-editor-table-overlay]) {
|
|
7518
7519
|
top: 0;
|
|
7519
7520
|
width: var(--ui-accent-line-width);
|
|
7520
7521
|
height: 100%;
|
|
7521
7522
|
}
|
|
7522
|
-
.drop-indicator[hidden] {
|
|
7523
|
+
.drop-indicator[hidden]:where([data-hn-ui-editor-table-overlay]) {
|
|
7523
7524
|
display: none !important;
|
|
7524
7525
|
}
|
|
7525
|
-
:scope[hidden] {
|
|
7526
|
+
:scope[hidden]:where([data-hn-ui-editor-table-overlay]) {
|
|
7526
7527
|
display: none !important;
|
|
7527
7528
|
}
|
|
7528
7529
|
}
|
package/docs/preview.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/** An opaque sandbox cannot read its parent; it accepts only theme CSS from that parent. */
|
|
2
|
-
export function connect(host) {
|
|
3
|
-
const document = host.element.ownerDocument;
|
|
4
|
-
const view = document.defaultView;
|
|
5
|
-
const theme = document.createElement('style');
|
|
6
|
-
theme.dataset.loomaTheme = '';
|
|
7
|
-
document.head.append(theme);
|
|
8
|
-
const height = () => view.parent.postMessage({ type: 'looma-preview-height', height: Math.max(host.element.getBoundingClientRect().height, host.element.scrollHeight) }, '*');
|
|
9
|
-
const receive = event => {
|
|
10
|
-
if (event.source !== view.parent || event.data?.type !== 'looma-theme' || typeof event.data.css !== 'string') return;
|
|
11
|
-
theme.textContent = event.data.css;
|
|
12
|
-
document.documentElement.toggleAttribute('data-preview-reference', event.data.reference === true);
|
|
13
|
-
if (['light', 'dark'].includes(event.data.mode)) document.documentElement.dataset.theme = event.data.mode;
|
|
14
|
-
height();
|
|
15
|
-
};
|
|
16
|
-
view.addEventListener('message', receive);
|
|
17
|
-
const observer = new ResizeObserver(height);
|
|
18
|
-
observer.observe(host.element);
|
|
19
|
-
view.parent.postMessage({ type: 'looma-preview-ready' }, '*');
|
|
20
|
-
height();
|
|
21
|
-
return () => { observer.disconnect(); view.removeEventListener('message', receive); theme.remove(); };
|
|
22
|
-
}
|