@lynx-js/web-elements 0.12.10 → 0.12.12
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/CHANGELOG.md +14 -0
- package/dist/element-reactive/registerAttributeHandler.d.ts +2 -2
- package/dist/element-reactive/registerAttributeHandler.js +2 -2
- package/dist/element-reactive/registerEventStatusChangedHandler.d.ts +1 -1
- package/dist/element-reactive/registerEventStatusChangedHandler.js +1 -1
- package/dist/elements/ScrollView/index.d.ts +3 -2
- package/dist/elements/ScrollView/index.js +3 -2
- package/dist/elements/XImage/ImageEvents.d.ts +1 -0
- package/dist/elements/XImage/ImageEvents.js +16 -2
- package/dist/elements/XInput/index.d.ts +2 -2
- package/dist/elements/XInput/index.js +2 -2
- package/dist/elements/XList/XList.d.ts +1 -2
- package/dist/elements/XList/index.d.ts +3 -3
- package/dist/elements/XList/index.js +3 -3
- package/dist/elements/XMarkdown/index.d.ts +4 -1
- package/dist/elements/XMarkdown/index.js +4 -1
- package/dist/elements/XSwiper/index.d.ts +1 -2
- package/dist/elements/XSwiper/index.js +1 -2
- package/dist/elements/XText/InlineImage.js +2 -1
- package/dist/elements/XTextarea/index.d.ts +3 -5
- package/dist/elements/XTextarea/index.js +3 -5
- package/dist/elements/XViewpagerNg/index.d.ts +2 -1
- package/dist/elements/XViewpagerNg/index.js +2 -1
- package/package.json +6 -6
- package/src/elements/XText/x-text.css +14 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @lynx-js/web-elements
|
|
2
2
|
|
|
3
|
+
## 0.12.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependency `markdown-it` to `^15.0.2`. ([#3943](https://github.com/lynx-family/lynx-stack/pull/3943))
|
|
8
|
+
|
|
9
|
+
## 0.12.11
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Defer `x-image` and `inline-image` load events received while detached until the host connects to the document, preserving the image dimensions at load time. ([#3906](https://github.com/lynx-family/lynx-stack/pull/3906))
|
|
14
|
+
|
|
15
|
+
- Apply inline image layout styles to `x-svg` inside text and custom truncation content. ([#3899](https://github.com/lynx-family/lynx-stack/pull/3899))
|
|
16
|
+
|
|
3
17
|
## 0.12.10
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export type AttributeChangeHandler = (newValue: string | null, oldValue: string | null, attributeName: string) => void;
|
|
7
7
|
/**
|
|
8
|
-
* @param
|
|
9
|
-
* @param noDomMeasure
|
|
8
|
+
* @param key - The attribute name
|
|
9
|
+
* @param args - `[noDomMeasure]`: if there are any measurement operation, the handler will be invoked after connected
|
|
10
10
|
* @returns
|
|
11
11
|
*/
|
|
12
12
|
export declare const registerAttributeHandler: (key: string, args_0: boolean) => <T>(this: T, target: AttributeChangeHandler | undefined, context: ClassMemberDecoratorContext | ClassFieldDecoratorContext<T>) => any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { generateRegister } from './generateRegister.js';
|
|
2
2
|
/**
|
|
3
|
-
* @param
|
|
4
|
-
* @param noDomMeasure
|
|
3
|
+
* @param key - The attribute name
|
|
4
|
+
* @param args - `[noDomMeasure]`: if there are any measurement operation, the handler will be invoked after connected
|
|
5
5
|
* @returns
|
|
6
6
|
*/
|
|
7
7
|
export const registerAttributeHandler = generateRegister('attributeChangedHandler', (handler, [noDomMeasure]) => ({
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export type EventStatusChangeHandler = (enable: boolean, eventName: string) => void;
|
|
7
7
|
/**
|
|
8
|
-
* @param
|
|
8
|
+
* @param key - The event name
|
|
9
9
|
* @returns
|
|
10
10
|
*/
|
|
11
11
|
export declare const registerEventEnableStatusChangeHandler: (key: string) => <T>(this: T, target: EventStatusChangeHandler | undefined, context: ClassMemberDecoratorContext | ClassFieldDecoratorContext<T>) => any;
|
|
@@ -13,12 +13,13 @@
|
|
|
13
13
|
* - `scroll-orientation`: 'vertical' | 'horizontal' | 'both'.
|
|
14
14
|
* - `scroll-y`: 'true' | 'false' to enable vertical scrolling.
|
|
15
15
|
* - `scroll-x`: 'true' | 'false' to enable horizontal scrolling.
|
|
16
|
-
* - `enable-scroll`:
|
|
16
|
+
* - `enable-scroll`: Set to 'false' to disable user scrolling (enabled by default).
|
|
17
17
|
*
|
|
18
18
|
* Events:
|
|
19
19
|
* - `scrolltoupper`: Reached top threshold.
|
|
20
20
|
* - `scrolltolower`: Reached bottom threshold.
|
|
21
|
-
* - `scroll
|
|
21
|
+
* - `scroll` (mapped to `lynxscroll`): Fired on scroll. Detail: `{ scrollTop, scrollLeft, scrollHeight, scrollWidth, isDragging, deltaX, deltaY }`.
|
|
22
|
+
* - `scrollend` (mapped to `lynxscrollend`): Fired when scrolling ends. Same detail as `scroll`.
|
|
22
23
|
*
|
|
23
24
|
* CSS:
|
|
24
25
|
* - Forces `display: flex` and linear layout behavior.
|
|
@@ -16,12 +16,13 @@
|
|
|
16
16
|
* - `scroll-orientation`: 'vertical' | 'horizontal' | 'both'.
|
|
17
17
|
* - `scroll-y`: 'true' | 'false' to enable vertical scrolling.
|
|
18
18
|
* - `scroll-x`: 'true' | 'false' to enable horizontal scrolling.
|
|
19
|
-
* - `enable-scroll`:
|
|
19
|
+
* - `enable-scroll`: Set to 'false' to disable user scrolling (enabled by default).
|
|
20
20
|
*
|
|
21
21
|
* Events:
|
|
22
22
|
* - `scrolltoupper`: Reached top threshold.
|
|
23
23
|
* - `scrolltolower`: Reached bottom threshold.
|
|
24
|
-
* - `scroll
|
|
24
|
+
* - `scroll` (mapped to `lynxscroll`): Fired on scroll. Detail: `{ scrollTop, scrollLeft, scrollHeight, scrollWidth, isDragging, deltaX, deltaY }`.
|
|
25
|
+
* - `scrollend` (mapped to `lynxscrollend`): Fired when scrolling ends. Same detail as `scroll`.
|
|
25
26
|
*
|
|
26
27
|
* CSS:
|
|
27
28
|
* - Forces `display: flex` and linear layout behavior.
|
|
@@ -22,6 +22,7 @@ let ImageEvents = (() => {
|
|
|
22
22
|
}
|
|
23
23
|
static observedAttributes = [];
|
|
24
24
|
#dom = __runInitializers(this, _instanceExtraInitializers);
|
|
25
|
+
#pendingLoadEvents = [];
|
|
25
26
|
#getImg = genDomGetter(() => this.#dom.shadowRoot, '#img');
|
|
26
27
|
_enableLoadEvent(status) {
|
|
27
28
|
if (status) {
|
|
@@ -31,6 +32,7 @@ let ImageEvents = (() => {
|
|
|
31
32
|
}
|
|
32
33
|
else {
|
|
33
34
|
this.#getImg().removeEventListener('load', this.#teleportLoadEvent);
|
|
35
|
+
this.#pendingLoadEvents = [];
|
|
34
36
|
}
|
|
35
37
|
}
|
|
36
38
|
_enableErrorEvent(status) {
|
|
@@ -44,14 +46,26 @@ let ImageEvents = (() => {
|
|
|
44
46
|
}
|
|
45
47
|
}
|
|
46
48
|
#teleportLoadEvent = () => {
|
|
47
|
-
|
|
49
|
+
const event = new CustomEvent('load', {
|
|
48
50
|
...commonComponentEventSetting,
|
|
49
51
|
detail: {
|
|
50
52
|
width: this.#getImg().naturalWidth,
|
|
51
53
|
height: this.#getImg().naturalHeight,
|
|
52
54
|
},
|
|
53
|
-
})
|
|
55
|
+
});
|
|
56
|
+
if (this.#dom.isConnected) {
|
|
57
|
+
this.#dom.dispatchEvent(event);
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
// Preserve the dimensions at load time until the host joins the document.
|
|
61
|
+
this.#pendingLoadEvents.push(event);
|
|
62
|
+
}
|
|
54
63
|
};
|
|
64
|
+
connectedCallback() {
|
|
65
|
+
while (this.#dom.isConnected && this.#pendingLoadEvents.length) {
|
|
66
|
+
this.#dom.dispatchEvent(this.#pendingLoadEvents.shift());
|
|
67
|
+
}
|
|
68
|
+
}
|
|
55
69
|
#teleportErrorEvent = () => {
|
|
56
70
|
this.#dom.dispatchEvent(new CustomEvent('error', {
|
|
57
71
|
...commonComponentEventSetting,
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
*
|
|
21
21
|
* Events:
|
|
22
22
|
* - `input` (mapped to `lynxinput`): Fired on input.
|
|
23
|
-
* - `focus
|
|
24
|
-
* - `blur
|
|
23
|
+
* - `focus` (mapped to `lynxfocus`): Fired on focus.
|
|
24
|
+
* - `blur` (mapped to `lynxblur`): Fired on blur.
|
|
25
25
|
* - `confirm` (submit): Fired on enter key.
|
|
26
26
|
*
|
|
27
27
|
* Methods:
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
*
|
|
24
24
|
* Events:
|
|
25
25
|
* - `input` (mapped to `lynxinput`): Fired on input.
|
|
26
|
-
* - `focus
|
|
27
|
-
* - `blur
|
|
26
|
+
* - `focus` (mapped to `lynxfocus`): Fired on focus.
|
|
27
|
+
* - `blur` (mapped to `lynxblur`): Fired on blur.
|
|
28
28
|
* - `confirm` (submit): Fired on enter key.
|
|
29
29
|
*
|
|
30
30
|
* Methods:
|
|
@@ -27,8 +27,7 @@ export declare class XList extends HTMLElement {
|
|
|
27
27
|
*/
|
|
28
28
|
rate: `${number}px` | `${number}rpx` | `${number}ppx` | number;
|
|
29
29
|
/**
|
|
30
|
-
* @description start
|
|
31
|
-
* @defaultValue true
|
|
30
|
+
* @description true to start, false to stop.
|
|
32
31
|
*/
|
|
33
32
|
start: boolean;
|
|
34
33
|
/**
|
|
@@ -16,8 +16,8 @@ export { ListItem } from './ListItem.js';
|
|
|
16
16
|
* Events:
|
|
17
17
|
* - `scrolltoupper`: Reached top threshold.
|
|
18
18
|
* - `scrolltolower`: Reached bottom threshold.
|
|
19
|
-
* - `scroll
|
|
20
|
-
* - `scrollend
|
|
19
|
+
* - `scroll` (mapped to `lynxscroll`): Fired on scroll.
|
|
20
|
+
* - `scrollend` (mapped to `lynxscrollend`): Fired when scrolling stops.
|
|
21
21
|
* - `snap`: Fired on scroll snap.
|
|
22
22
|
*
|
|
23
23
|
* Methods:
|
|
@@ -26,7 +26,7 @@ export { ListItem } from './ListItem.js';
|
|
|
26
26
|
*
|
|
27
27
|
* CSS:
|
|
28
28
|
* - `list-type="flow"` uses `display: grid`.
|
|
29
|
-
* - `list-type="waterfall"` uses `display: flex` (column
|
|
29
|
+
* - `list-type="waterfall"` uses `display: flex` (`flex-direction: column`, or `row` when horizontal) with absolute positioning for items.
|
|
30
30
|
* - `sticky` items use `position: sticky`.
|
|
31
31
|
*/
|
|
32
32
|
export { XList } from './XList.js';
|
|
@@ -19,8 +19,8 @@ export { ListItem } from './ListItem.js';
|
|
|
19
19
|
* Events:
|
|
20
20
|
* - `scrolltoupper`: Reached top threshold.
|
|
21
21
|
* - `scrolltolower`: Reached bottom threshold.
|
|
22
|
-
* - `scroll
|
|
23
|
-
* - `scrollend
|
|
22
|
+
* - `scroll` (mapped to `lynxscroll`): Fired on scroll.
|
|
23
|
+
* - `scrollend` (mapped to `lynxscrollend`): Fired when scrolling stops.
|
|
24
24
|
* - `snap`: Fired on scroll snap.
|
|
25
25
|
*
|
|
26
26
|
* Methods:
|
|
@@ -29,7 +29,7 @@ export { ListItem } from './ListItem.js';
|
|
|
29
29
|
*
|
|
30
30
|
* CSS:
|
|
31
31
|
* - `list-type="flow"` uses `display: grid`.
|
|
32
|
-
* - `list-type="waterfall"` uses `display: flex` (column
|
|
32
|
+
* - `list-type="waterfall"` uses `display: flex` (`flex-direction: column`, or `row` when horizontal) with absolute positioning for items.
|
|
33
33
|
* - `sticky` items use `position: sticky`.
|
|
34
34
|
*/
|
|
35
35
|
export { XList } from './XList.js';
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* @module elements/XMarkdown
|
|
3
3
|
*
|
|
4
4
|
* `x-markdown` renders markdown content with minimal styling.
|
|
5
|
-
*
|
|
5
|
+
* Key attributes: `content`, `markdown-style`, `content-id`, `text-selection`,
|
|
6
|
+
* `text-maxline`, `content-range`, `markdown-effect`, and the typewriter
|
|
7
|
+
* controls `animation-type`, `animation-velocity`, `animation-paused`,
|
|
8
|
+
* `initial-animation-step` and `content-complete`.
|
|
6
9
|
*/
|
|
7
10
|
export { XMarkdown } from './XMarkdown.js';
|
|
@@ -5,7 +5,10 @@
|
|
|
5
5
|
* @module elements/XMarkdown
|
|
6
6
|
*
|
|
7
7
|
* `x-markdown` renders markdown content with minimal styling.
|
|
8
|
-
*
|
|
8
|
+
* Key attributes: `content`, `markdown-style`, `content-id`, `text-selection`,
|
|
9
|
+
* `text-maxline`, `content-range`, `markdown-effect`, and the typewriter
|
|
10
|
+
* controls `animation-type`, `animation-velocity`, `animation-paused`,
|
|
11
|
+
* `initial-animation-step` and `content-complete`.
|
|
9
12
|
*/
|
|
10
13
|
export { XMarkdown } from './XMarkdown.js';
|
|
11
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -5,13 +5,12 @@ export { SwiperItem } from './SwiperItem.js';
|
|
|
5
5
|
* `x-swiper` provides a swipeable container for items.
|
|
6
6
|
*
|
|
7
7
|
* Attributes:
|
|
8
|
-
* - `mode`: 'normal' | 'carousel' | 'flat-coverflow'.
|
|
8
|
+
* - `mode`: 'normal' | 'carousel' | 'coverflow' | 'flat-coverflow'.
|
|
9
9
|
* - `vertical`: 'true' | 'false', vertical scrolling.
|
|
10
10
|
* - `circular`: 'true' | 'false', circular scrolling.
|
|
11
11
|
* - `current`: Current index.
|
|
12
12
|
* - `autoplay`: 'true' | 'false'.
|
|
13
13
|
* - `interval`: Autoplay interval in ms (default 5000).
|
|
14
|
-
* - `duration`: Animation duration.
|
|
15
14
|
* - `smooth-scroll`: 'true' | 'false'.
|
|
16
15
|
* - `indicator-dots`: 'true' | 'false', show indicator dots.
|
|
17
16
|
* - `indicator-color`: Color of inactive indicator dots.
|
|
@@ -8,13 +8,12 @@ export { SwiperItem } from './SwiperItem.js';
|
|
|
8
8
|
* `x-swiper` provides a swipeable container for items.
|
|
9
9
|
*
|
|
10
10
|
* Attributes:
|
|
11
|
-
* - `mode`: 'normal' | 'carousel' | 'flat-coverflow'.
|
|
11
|
+
* - `mode`: 'normal' | 'carousel' | 'coverflow' | 'flat-coverflow'.
|
|
12
12
|
* - `vertical`: 'true' | 'false', vertical scrolling.
|
|
13
13
|
* - `circular`: 'true' | 'false', circular scrolling.
|
|
14
14
|
* - `current`: Current index.
|
|
15
15
|
* - `autoplay`: 'true' | 'false'.
|
|
16
16
|
* - `interval`: Autoplay interval in ms (default 5000).
|
|
17
|
-
* - `duration`: Animation duration.
|
|
18
17
|
* - `smooth-scroll`: 'true' | 'false'.
|
|
19
18
|
* - `indicator-dots`: 'true' | 'false', show indicator dots.
|
|
20
19
|
* - `indicator-color`: Color of inactive indicator dots.
|
|
@@ -6,6 +6,7 @@ import { __esDecorate, __runInitializers } from "tslib";
|
|
|
6
6
|
*/
|
|
7
7
|
import { Component, genDomGetter, registerAttributeHandler, } from '../../element-reactive/index.js';
|
|
8
8
|
import { templateInlineImage } from '../htmlTemplates.js';
|
|
9
|
+
import { ImageEvents } from '../XImage/ImageEvents.js';
|
|
9
10
|
let InlineImageAttributes = (() => {
|
|
10
11
|
let _instanceExtraInitializers = [];
|
|
11
12
|
let __handleSrc_decorators;
|
|
@@ -35,7 +36,7 @@ export { InlineImageAttributes };
|
|
|
35
36
|
* @deprecated you can use `x-image` instead in `x-text`.
|
|
36
37
|
*/
|
|
37
38
|
let InlineImage = (() => {
|
|
38
|
-
let _classDecorators = [Component('inline-image', [InlineImageAttributes], templateInlineImage({}))];
|
|
39
|
+
let _classDecorators = [Component('inline-image', [InlineImageAttributes, ImageEvents], templateInlineImage({}))];
|
|
39
40
|
let _classDescriptor;
|
|
40
41
|
let _classExtraInitializers = [];
|
|
41
42
|
let _classThis;
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
* - `disabled`: 'true' | 'false'.
|
|
9
9
|
* - `placeholder`: Placeholder text.
|
|
10
10
|
* - `maxlength`: Max character length (default 140).
|
|
11
|
-
* - `auto-height`: 'true' | 'false', auto resize height.
|
|
12
11
|
* - `confirm-type`: 'send' | 'search' | 'next' | 'go' | 'done'.
|
|
13
12
|
* - `confirm-enter`: 'true' | 'false', trigger confirm event on enter.
|
|
14
13
|
* - `max-height`: Max height style.
|
|
@@ -19,11 +18,10 @@
|
|
|
19
18
|
* - `placeholder-font-family`: Font family of the placeholder.
|
|
20
19
|
*
|
|
21
20
|
* Events:
|
|
22
|
-
* - `input
|
|
23
|
-
* - `focus
|
|
24
|
-
* - `blur
|
|
21
|
+
* - `input` (mapped to `lynxinput`): Fired on input.
|
|
22
|
+
* - `focus` (mapped to `lynxfocus`): Fired on focus.
|
|
23
|
+
* - `blur` (mapped to `lynxblur`): Fired on blur.
|
|
25
24
|
* - `confirm`: Fired on confirm/enter.
|
|
26
|
-
* - `linechange`: Fired when line count changes.
|
|
27
25
|
*
|
|
28
26
|
* Methods:
|
|
29
27
|
* - `addText({ text })`: Inserts text.
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
* - `disabled`: 'true' | 'false'.
|
|
12
12
|
* - `placeholder`: Placeholder text.
|
|
13
13
|
* - `maxlength`: Max character length (default 140).
|
|
14
|
-
* - `auto-height`: 'true' | 'false', auto resize height.
|
|
15
14
|
* - `confirm-type`: 'send' | 'search' | 'next' | 'go' | 'done'.
|
|
16
15
|
* - `confirm-enter`: 'true' | 'false', trigger confirm event on enter.
|
|
17
16
|
* - `max-height`: Max height style.
|
|
@@ -22,11 +21,10 @@
|
|
|
22
21
|
* - `placeholder-font-family`: Font family of the placeholder.
|
|
23
22
|
*
|
|
24
23
|
* Events:
|
|
25
|
-
* - `input
|
|
26
|
-
* - `focus
|
|
27
|
-
* - `blur
|
|
24
|
+
* - `input` (mapped to `lynxinput`): Fired on input.
|
|
25
|
+
* - `focus` (mapped to `lynxfocus`): Fired on focus.
|
|
26
|
+
* - `blur` (mapped to `lynxblur`): Fired on blur.
|
|
28
27
|
* - `confirm`: Fired on confirm/enter.
|
|
29
|
-
* - `linechange`: Fired when line count changes.
|
|
30
28
|
*
|
|
31
29
|
* Methods:
|
|
32
30
|
* - `addText({ text })`: Inserts text.
|
|
@@ -4,13 +4,14 @@
|
|
|
4
4
|
* `x-viewpager-ng` provides a page container that allows sliding between pages.
|
|
5
5
|
*
|
|
6
6
|
* Attributes:
|
|
7
|
-
* - `select-index`:
|
|
7
|
+
* - `select-index`: Page shown on connect; later changes are ignored, use `selectTab()`.
|
|
8
8
|
* - `initial-select-index`: Initial selected index.
|
|
9
9
|
* - `allow-horizontal-gesture`: 'true' | 'false'.
|
|
10
10
|
* - `enable-scroll`: 'true' | 'false'.
|
|
11
11
|
*
|
|
12
12
|
* Events:
|
|
13
13
|
* - `change`: Fired when the selected page changes. Detail: `{ index, isDragged }`.
|
|
14
|
+
* - `willchange`: Fired on touch end with the page the view will settle on. Detail: `{ index }`.
|
|
14
15
|
* - `offsetchange`: Fired when scroll offset changes. Detail: `{ offset }`.
|
|
15
16
|
*
|
|
16
17
|
* Methods:
|
|
@@ -7,13 +7,14 @@
|
|
|
7
7
|
* `x-viewpager-ng` provides a page container that allows sliding between pages.
|
|
8
8
|
*
|
|
9
9
|
* Attributes:
|
|
10
|
-
* - `select-index`:
|
|
10
|
+
* - `select-index`: Page shown on connect; later changes are ignored, use `selectTab()`.
|
|
11
11
|
* - `initial-select-index`: Initial selected index.
|
|
12
12
|
* - `allow-horizontal-gesture`: 'true' | 'false'.
|
|
13
13
|
* - `enable-scroll`: 'true' | 'false'.
|
|
14
14
|
*
|
|
15
15
|
* Events:
|
|
16
16
|
* - `change`: Fired when the selected page changes. Detail: `{ index, isDragged }`.
|
|
17
|
+
* - `willchange`: Fired on touch end with the page the view will settle on. Detail: `{ index }`.
|
|
17
18
|
* - `offsetchange`: Fired when scroll offset changes. Detail: `{ offset }`.
|
|
18
19
|
*
|
|
19
20
|
* Methods:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-elements",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.12",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -140,17 +140,17 @@
|
|
|
140
140
|
],
|
|
141
141
|
"dependencies": {
|
|
142
142
|
"dompurify": "^3.4.13",
|
|
143
|
-
"markdown-it": "^15.0.
|
|
143
|
+
"markdown-it": "^15.0.2"
|
|
144
144
|
},
|
|
145
145
|
"devDependencies": {
|
|
146
|
+
"@lynx-js/playwright-fixtures": "0.0.0",
|
|
146
147
|
"@playwright/test": "^1.61.1",
|
|
147
|
-
"@rsbuild/core": "2.2.
|
|
148
|
-
"@rsbuild/plugin-source-build": "1.0.
|
|
148
|
+
"@rsbuild/core": "2.2.9",
|
|
149
|
+
"@rsbuild/plugin-source-build": "1.0.7",
|
|
149
150
|
"@types/markdown-it": "^14.1.2",
|
|
150
151
|
"@types/node": "^24.13.3",
|
|
151
152
|
"nyc": "^18.0.0",
|
|
152
|
-
"tslib": "^2.8.1"
|
|
153
|
-
"@lynx-js/playwright-fixtures": "0.0.0"
|
|
153
|
+
"tslib": "^2.8.1"
|
|
154
154
|
},
|
|
155
155
|
"peerDependencies": {
|
|
156
156
|
"tslib": "^2.5.0"
|
|
@@ -68,16 +68,22 @@ inline-truncation > lynx-wrapper > x-text {
|
|
|
68
68
|
|
|
69
69
|
x-text > inline-image,
|
|
70
70
|
x-text > x-image,
|
|
71
|
+
x-text > x-svg,
|
|
71
72
|
inline-truncation > inline-image,
|
|
72
73
|
inline-truncation > x-image,
|
|
74
|
+
inline-truncation > x-svg,
|
|
73
75
|
inline-text > inline-image,
|
|
74
76
|
inline-text > x-image,
|
|
77
|
+
inline-text > x-svg,
|
|
75
78
|
x-text > lynx-wrapper > inline-image,
|
|
76
79
|
x-text > lynx-wrapper > x-image,
|
|
80
|
+
x-text > lynx-wrapper > x-svg,
|
|
77
81
|
inline-truncation > lynx-wrapper > inline-image,
|
|
78
82
|
inline-truncation > lynx-wrapper > x-image,
|
|
83
|
+
inline-truncation > lynx-wrapper > x-svg,
|
|
79
84
|
inline-text > lynx-wrapper > inline-image,
|
|
80
|
-
inline-text > lynx-wrapper > x-image
|
|
85
|
+
inline-text > lynx-wrapper > x-image,
|
|
86
|
+
inline-text > lynx-wrapper > x-svg {
|
|
81
87
|
display: contents !important;
|
|
82
88
|
}
|
|
83
89
|
|
|
@@ -118,9 +124,13 @@ inline-image::part(img) {
|
|
|
118
124
|
}
|
|
119
125
|
|
|
120
126
|
x-text > x-image::part(img),
|
|
127
|
+
x-text > x-svg::part(img),
|
|
121
128
|
x-text > lynx-wrapper > x-image::part(img),
|
|
129
|
+
x-text > lynx-wrapper > x-svg::part(img),
|
|
122
130
|
inline-truncation > x-image::part(img),
|
|
123
|
-
inline-truncation >
|
|
131
|
+
inline-truncation > x-svg::part(img),
|
|
132
|
+
inline-truncation > lynx-wrapper > x-image::part(img),
|
|
133
|
+
inline-truncation > lynx-wrapper > x-svg::part(img) {
|
|
124
134
|
display: inline-block;
|
|
125
135
|
height: inherit !important;
|
|
126
136
|
width: inherit !important;
|
|
@@ -159,11 +169,13 @@ x-text[text-selection] > inline-text,
|
|
|
159
169
|
x-text[text-selection] > x-text,
|
|
160
170
|
x-text[text-selection] > inline-image,
|
|
161
171
|
x-text[text-selection] > x-image,
|
|
172
|
+
x-text[text-selection] > x-svg,
|
|
162
173
|
x-text[text-selection] > inline-truncation,
|
|
163
174
|
x-text[text-selection] > lynx-wrapper > inline-text,
|
|
164
175
|
x-text[text-selection] > lynx-wrapper > x-text,
|
|
165
176
|
x-text[text-selection] > lynx-wrapper > inline-image,
|
|
166
177
|
x-text[text-selection] > lynx-wrapper > x-image,
|
|
178
|
+
x-text[text-selection] > lynx-wrapper > x-svg,
|
|
167
179
|
x-text[text-selection] > lynx-wrapper > inline-truncation {
|
|
168
180
|
-webkit-user-select: auto;
|
|
169
181
|
user-select: auto;
|