@threadlabs/looma 0.23.1 → 0.23.3
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/package.json
CHANGED
package/vue/UiScrollArea.vue
CHANGED
|
@@ -23,7 +23,7 @@ const propValidityContract = {
|
|
|
23
23
|
required: false,
|
|
24
24
|
target: { attribute: 'size' },
|
|
25
25
|
description:
|
|
26
|
-
'Optional height preset. content keeps intrinsic sizing; sm fits three compact 3.125rem result rows, md is 20rem, and lg is
|
|
26
|
+
'Optional height preset. content keeps intrinsic sizing; sm fits three compact 3.125rem result rows before the overflow fade, md is 20rem, and lg is\n 30rem.',
|
|
27
27
|
values: ['content', 'sm', 'md', 'lg'],
|
|
28
28
|
default: 'content',
|
|
29
29
|
},
|
|
@@ -201,7 +201,7 @@ useComponentHost(() => import('../components/ui-scroll-area/ui-scroll-area.js'),
|
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
[data-component~="ui-scroll-area"][data-ui-scroll-area-state~="size=sm"] {
|
|
204
|
-
max-block-size: 9.375rem;
|
|
204
|
+
max-block-size: calc(9.375rem + var(--ui-scroll-fade-size, 24px));
|
|
205
205
|
}
|
|
206
206
|
[data-component~="ui-scroll-area"][data-ui-scroll-area-state~="size=md"] {
|
|
207
207
|
max-block-size: 20rem;
|
|
@@ -47,7 +47,7 @@ var UiScrollArea_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
47
47
|
},
|
|
48
48
|
required: false,
|
|
49
49
|
target: { attribute: "size" },
|
|
50
|
-
description: "Optional height preset. content keeps intrinsic sizing; sm fits three compact 3.125rem result rows, md is 20rem, and lg is
|
|
50
|
+
description: "Optional height preset. content keeps intrinsic sizing; sm fits three compact 3.125rem result rows before the overflow fade, md is 20rem, and lg is\n 30rem.",
|
|
51
51
|
values: [
|
|
52
52
|
"content",
|
|
53
53
|
"sm",
|
|
@@ -140,6 +140,6 @@ var UiScrollArea_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
140
140
|
}]]);
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
|
-
}), [["__scopeId", "data-v-
|
|
143
|
+
}), [["__scopeId", "data-v-c514834a"]]);
|
|
144
144
|
//#endregion
|
|
145
145
|
export { UiScrollArea_default as t };
|
package/vue/components.css
CHANGED
|
@@ -2340,7 +2340,7 @@ dd[data-v-7a7db3d1] {
|
|
|
2340
2340
|
/* The controller sets each fade length from overflow and scroll position. The mask blends
|
|
2341
2341
|
into whatever is behind the area without needing to know its colour. Before upgrade, its
|
|
2342
2342
|
zero-length defaults leave the authored scroll area fully visible. */
|
|
2343
|
-
[data-component~="ui-scroll-area"][data-v-
|
|
2343
|
+
[data-component~="ui-scroll-area"][data-v-c514834a] {
|
|
2344
2344
|
display: block;
|
|
2345
2345
|
box-sizing: border-box;
|
|
2346
2346
|
min-block-size: 0;
|
|
@@ -2359,29 +2359,29 @@ dd[data-v-7a7db3d1] {
|
|
|
2359
2359
|
transparent
|
|
2360
2360
|
);
|
|
2361
2361
|
}
|
|
2362
|
-
.content[data-v-
|
|
2362
|
+
.content[data-v-c514834a] {
|
|
2363
2363
|
display: flow-root;
|
|
2364
2364
|
}
|
|
2365
|
-
[data-component~="ui-scroll-area"][data-ui-scroll-area-state~="orientation=horizontal"][data-v-
|
|
2365
|
+
[data-component~="ui-scroll-area"][data-ui-scroll-area-state~="orientation=horizontal"][data-v-c514834a] {
|
|
2366
2366
|
overflow-x: auto;
|
|
2367
2367
|
overflow-y: hidden;
|
|
2368
2368
|
--_ui-scroll-fade-direction: var(--_ui-scroll-fade-inline);
|
|
2369
2369
|
}
|
|
2370
|
-
[data-component~="ui-scroll-area"][data-v-
|
|
2370
|
+
[data-component~="ui-scroll-area"][data-v-c514834a]:dir(rtl) {
|
|
2371
2371
|
--_ui-scroll-fade-inline: to left;
|
|
2372
2372
|
}
|
|
2373
|
-
[data-component~="ui-scroll-area"][data-ui-scroll-area-state~="size=sm"][data-v-
|
|
2374
|
-
max-block-size: 9.375rem;
|
|
2373
|
+
[data-component~="ui-scroll-area"][data-ui-scroll-area-state~="size=sm"][data-v-c514834a] {
|
|
2374
|
+
max-block-size: calc(9.375rem + var(--ui-scroll-fade-size, 24px));
|
|
2375
2375
|
}
|
|
2376
|
-
[data-component~="ui-scroll-area"][data-ui-scroll-area-state~="size=md"][data-v-
|
|
2376
|
+
[data-component~="ui-scroll-area"][data-ui-scroll-area-state~="size=md"][data-v-c514834a] {
|
|
2377
2377
|
max-block-size: 20rem;
|
|
2378
2378
|
}
|
|
2379
|
-
[data-component~="ui-scroll-area"][data-ui-scroll-area-state~="size=lg"][data-v-
|
|
2379
|
+
[data-component~="ui-scroll-area"][data-ui-scroll-area-state~="size=lg"][data-v-c514834a] {
|
|
2380
2380
|
max-block-size: 30rem;
|
|
2381
2381
|
}
|
|
2382
2382
|
|
|
2383
2383
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
2384
|
-
[data-component~="ui-scroll-area"][hidden][data-v-
|
|
2384
|
+
[data-component~="ui-scroll-area"][hidden][data-v-c514834a] {
|
|
2385
2385
|
display: none;
|
|
2386
2386
|
}
|
|
2387
2387
|
|
package/vue/editor/index.js
CHANGED
|
@@ -1839,7 +1839,8 @@ var LoomaEditor = defineComponent({
|
|
|
1839
1839
|
"data-active": instance.isActive("link") ? "true" : "false",
|
|
1840
1840
|
onPointerenter: () => showTool(linkTriggerId, "Link", false),
|
|
1841
1841
|
onPointerleave: hideTool,
|
|
1842
|
-
onPointerdown: () => {
|
|
1842
|
+
onPointerdown: (event) => {
|
|
1843
|
+
event.preventDefault();
|
|
1843
1844
|
linkPopoverAnchorId.value = linkTriggerId;
|
|
1844
1845
|
const selection = instance.state.selection;
|
|
1845
1846
|
linkPressedSelection = selection.empty ? null : {
|
|
@@ -2048,7 +2049,7 @@ var LoomaEditor = defineComponent({
|
|
|
2048
2049
|
value: codeUi.language,
|
|
2049
2050
|
onValueChange: (event) => chooseCodeLanguage(event.detail)
|
|
2050
2051
|
}, () => codeLanguageOptions.value.map((option) => h("option", { value: option.value }, option.label)))]) : null,
|
|
2051
|
-
instance && props.editable && mobile.value && editorFocused.value ? h("div", {
|
|
2052
|
+
instance && props.editable && mobile.value && (editorFocused.value || linkOpen.value) ? h("div", {
|
|
2052
2053
|
ref: mobileToolbarShell,
|
|
2053
2054
|
class: "looma-editor__mobile-toolbar-shell",
|
|
2054
2055
|
"data-mode": mobileToolbarMode.value,
|