@lynx-js/web-elements-canary 0.5.1 → 0.5.2-canary-20250331-6eef3cab

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @lynx-js/web-elements
2
2
 
3
+ ## 0.5.2-canary-20250331043255-6eef3cab6ca2cc2baaa290eca36d3b9019a530fb
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: When list with list-type: flow, scrolltoupper, scrolltolower were specified, there was a blank block. ([#379](https://github.com/lynx-family/lynx-stack/pull/379))
8
+
3
9
  ## 0.5.1
4
10
 
5
11
  ### Patch Changes
@@ -272,8 +278,8 @@
272
278
  For compating usage, `@lynx-js/web-elements-compat/LinearContainer` is provided.
273
279
 
274
280
  ```javascript
275
- import '@lynx-js/web-elements-compat/LinearContainer';
276
- import '@lynx-js/web-elements/all';
281
+ import "@lynx-js/web-elements-compat/LinearContainer";
282
+ import "@lynx-js/web-elements/all";
277
283
  ```
278
284
 
279
285
  - f8d1d98: break: rename the `blur` and `focus` event to `lynxblur` and `lynxfocus` for x-input element
@@ -295,11 +301,11 @@
295
301
  There is also a simple way to use this feature
296
302
 
297
303
  ```javascript
298
- import { LynxCard } from '@lynx-js/web-core';
299
- import { loadElement } from '@lynx-js/web-elements/lazy';
300
- import '@lynx-js/web-elements/index.css';
301
- import '@lynx-js/web-core/index.css';
302
- import './index.css';
304
+ import { LynxCard } from "@lynx-js/web-core";
305
+ import { loadElement } from "@lynx-js/web-elements/lazy";
306
+ import "@lynx-js/web-elements/index.css";
307
+ import "@lynx-js/web-core/index.css";
308
+ import "./index.css";
303
309
 
304
310
  const lynxcard = new LynxCard({
305
311
  ...beforeConfigs,
package/README.md CHANGED
@@ -4,33 +4,29 @@ It provides the custom-element implementation of Lynx Elements in Web.
4
4
 
5
5
  So far, support compared to Lynx Elements on the client:
6
6
 
7
- | Elements | Whether support | Details |
8
- | -------------- | --------------- | -------------------------------------------------------------------------------- |
9
- | Elements | | |
10
- | canvas | ❌ | No |
11
- | image | ✅ | Full Support |
12
- | list | ✅ | Only single layout type is supported, flow and waterfall will be supported later |
13
- | scroll-view | ✅ | Full Support |
14
- | text | ✅ | Full Support |
15
- | view | ✅ | Full Support |
16
- | X-Elements | | |
17
- | svg | ✅ | Full Support |
18
- | x-blur-view | ✅ | Full Support |
19
- | x-input | ✅ | Full Support |
20
- | x-textarea | ✅ | Full Support |
21
- | x-swiper | ✅ | Full Support |
22
- | x-viewpager-ng | ✅ | Full Support |
23
- | x-foldview-ng | ✅ | Full Support |
24
- | x-refresh-view | ✅ | Full Support |
25
- | x-overlay-ng | ✅ | Full Support |
26
- | x-audio-tt | ✅ | Full Support |
7
+ | Elements | Whether support | Details |
8
+ | -------------- | --------------- | ------------------------------------------------------------------------------ |
9
+ | Elements | | |
10
+ | canvas | ❌ | No |
11
+ | image | ✅ | Full Support |
12
+ | list | ✅ | list-type with single and flow are available, and waterfall is being supported |
13
+ | scroll-view | ✅ | Full Support |
14
+ | text | ✅ | Full Support |
15
+ | view | ✅ | Full Support |
16
+ | X-Elements | | |
17
+ | svg | ✅ | Full Support |
18
+ | x-blur-view | ✅ | Full Support |
19
+ | x-input | ✅ | Full Support |
20
+ | x-textarea | ✅ | Full Support |
21
+ | x-swiper | ✅ | Full Support |
22
+ | x-viewpager-ng | ✅ | Full Support |
23
+ | x-foldview-ng | ✅ | Full Support |
24
+ | x-refresh-view | ✅ | Full Support |
25
+ | x-overlay-ng | ✅ | Full Support |
26
+ | x-audio-tt | ✅ | Full Support |
27
27
 
28
28
  ## Usage
29
29
 
30
- Normally, you don't need to import `@lynx-js/web-elements` directly, because the `@lynx-js/web-core` has included it.
31
-
32
- But if you want to use it separately, you can import it like this:
33
-
34
30
  ```javascript
35
31
  import '@lynx-js/web-elements/all';
36
32
  import '@lynx-js/web-elements/index.css';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-elements-canary",
3
- "version": "0.5.1",
3
+ "version": "0.5.2-canary-20250331-6eef3cab",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -191,3 +191,17 @@ x-list[list-type="flow"][scroll-orientation="horizontal"]
191
191
  grid-row-start: 1;
192
192
  grid-row-end: calc(var(--list-item-span-count) + 1);
193
193
  }
194
+
195
+ x-list[list-type="flow"][x-enable-scrolltoupper-event]::part(upper-threshold-observer),
196
+ x-list[list-type="flow"][x-enable-scrolltoupperedge-event]::part(upper-threshold-observer),
197
+ x-list[list-type="flow"][x-enable-scrolltolower-event]::part(lower-threshold-observer),
198
+ x-list[list-type="flow"][x-enable-scrolltoloweredge-event]::part(lower-threshold-observer) {
199
+ grid-column: 1 / calc(var(--list-item-span-count) + 1);
200
+ }
201
+
202
+ x-list[list-type="flow"][scroll-orientation="horizontal"][x-enable-scrolltoupper-event]::part(upper-threshold-observer),
203
+ x-list[list-type="flow"][scroll-orientation="horizontal"][x-enable-scrolltoupperedge-event]::part(upper-threshold-observer),
204
+ x-list[list-type="flow"][scroll-orientation="horizontal"][x-enable-scrolltolower-event]::part(lower-threshold-observer),
205
+ x-list[list-type="flow"][scroll-orientation="horizontal"][x-enable-scrolltoloweredge-event]::part(lower-threshold-observer) {
206
+ grid-row: 1 / calc(var(--list-item-span-count) + 1);
207
+ }