@lynx-js/web-constants-canary 0.16.1 → 0.17.0-canary-20250918-b69a986a

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,16 @@
1
1
  # @lynx-js/web-constants
2
2
 
3
+ ## 0.17.0-canary-20250918085607-b69a986acd19ecbcb6246a7c9dccd99544415131
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: avoid duplicate style transformation ([#1748](https://github.com/lynx-family/lynx-stack/pull/1748))
8
+
9
+ After this commit, we use DAG methods to handle the styleInfos
10
+
11
+ - Updated dependencies []:
12
+ - @lynx-js/web-worker-rpc@0.17.0-canary-20250918085607-b69a986acd19ecbcb6246a7c9dccd99544415131
13
+
3
14
  ## 0.16.1
4
15
 
5
16
  ### Patch Changes
@@ -187,25 +198,25 @@
187
198
  lynxView.initI18nResources = [
188
199
  {
189
200
  options: {
190
- locale: 'en',
191
- channel: '1',
192
- fallback_url: '',
201
+ locale: "en",
202
+ channel: "1",
203
+ fallback_url: "",
193
204
  },
194
205
  resource: {
195
- hello: 'hello',
196
- lynx: 'lynx web platform1',
206
+ hello: "hello",
207
+ lynx: "lynx web platform1",
197
208
  },
198
209
  },
199
210
  ];
200
- lynxView.addEventListener('i18nResourceMissed', (e) => {
211
+ lynxView.addEventListener("i18nResourceMissed", (e) => {
201
212
  console.log(e);
202
213
  });
203
214
 
204
215
  // mts
205
216
  _I18nResourceTranslation({
206
- locale: 'en',
207
- channel: '1',
208
- fallback_url: '',
217
+ locale: "en",
218
+ channel: "1",
219
+ fallback_url: "",
209
220
  });
210
221
  ```
211
222
 
@@ -444,8 +455,8 @@
444
455
  }
445
456
  };`,
446
457
  ],
447
- { type: 'text/javascript' },
448
- ),
458
+ { type: "text/javascript" }
459
+ )
449
460
  ),
450
461
  };
451
462
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -531,8 +542,8 @@
531
542
  };
532
543
  };`,
533
544
  ],
534
- { type: 'text/javascript' },
535
- ),
545
+ { type: "text/javascript" }
546
+ )
536
547
  );
537
548
 
538
549
  const color_methods = URL.createObjectURL(
@@ -547,8 +558,8 @@
547
558
  };
548
559
  };`,
549
560
  ],
550
- { type: 'text/javascript' },
551
- ),
561
+ { type: "text/javascript" }
562
+ )
552
563
  );
553
564
 
554
565
  lynxView.napiModuleMap = {
@@ -565,7 +576,7 @@
565
576
 
566
577
  ```js
567
578
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
568
- if (name === 'getColor' && moduleName === 'color_methods') {
579
+ if (name === "getColor" && moduleName === "color_methods") {
569
580
  return data.color;
570
581
  }
571
582
  };
@@ -629,8 +640,8 @@
629
640
  }
630
641
  };`,
631
642
  ],
632
- { type: 'text/javascript' },
633
- ),
643
+ { type: "text/javascript" }
644
+ )
634
645
  );
635
646
  ```
636
647
 
@@ -642,7 +653,7 @@
642
653
 
643
654
  ```js
644
655
  lynxView.onNativeModulesCall = (name, data, callback) => {
645
- if (name === 'getColor') {
656
+ if (name === "getColor") {
646
657
  callback(data.color);
647
658
  }
648
659
  };
@@ -652,7 +663,7 @@
652
663
 
653
664
  ```js
654
665
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
655
- if (name === 'getColor' && moduleName === 'bridge') {
666
+ if (name === "getColor" && moduleName === "bridge") {
656
667
  return data.color;
657
668
  }
658
669
  };
@@ -16,6 +16,12 @@ export interface OneInfo {
16
16
  export interface StyleInfo {
17
17
  [cssId: string]: OneInfo;
18
18
  }
19
+ export interface FlattenedOneInfo {
20
+ content: string[];
21
+ rules: CSSRule[];
22
+ importBy: string[];
23
+ }
24
+ export type FlattenedStyleInfo = FlattenedOneInfo[];
19
25
  /**
20
26
  * CSS Info for Old Generation CSS System
21
27
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-constants-canary",
3
- "version": "0.16.1",
3
+ "version": "0.17.0-canary-20250918-b69a986a",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [],
@@ -23,7 +23,7 @@
23
23
  "**/*.css"
24
24
  ],
25
25
  "dependencies": {
26
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.16.1"
26
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.17.0-canary-20250918-b69a986a"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4"