@lynx-js/web-core-server-canary 0.19.6-canary-20260122-af2487a2 → 0.19.6-canary-20260122-f7133c13

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,6 +1,6 @@
1
1
  # @lynx-js/web-core-server
2
2
 
3
- ## 0.19.6-canary-20260122133816-af2487a274881e1b22ce9250656c96bcb60b2300
3
+ ## 0.19.6-canary-20260122140843-f7133c137f094063e991dfa0e993ea92177aa173
4
4
 
5
5
  ## 0.19.5
6
6
 
package/dist/27.js CHANGED
@@ -431,8 +431,24 @@ __webpack_require__.add({
431
431
  const componentAtIndex = runtimeInfo.componentAtIndex;
432
432
  const enqueueComponent = runtimeInfo.enqueueComponent;
433
433
  const uniqueId = (0, _pureElementPAPIs_js__rspack_import_2.Tj)(element);
434
- for (const action of insertAction)componentAtIndex?.(element, uniqueId, action.position, 0, false);
435
- for (const action of removeAction)enqueueComponent?.(element, uniqueId, action.position);
434
+ removeAction.forEach((position, i)=>{
435
+ const removedEle = element.children[position - i];
436
+ if (removedEle) {
437
+ const sign = (0, _pureElementPAPIs_js__rspack_import_2.Tj)(removedEle);
438
+ enqueueComponent?.(element, uniqueId, sign);
439
+ element.removeChild(removedEle);
440
+ }
441
+ });
442
+ for (const action of insertAction){
443
+ const childSign = componentAtIndex?.(element, uniqueId, action.position, 0, false);
444
+ if ('number' == typeof childSign) {
445
+ const childElement = lynxUniqueIdToElement[childSign]?.deref();
446
+ if (childElement) {
447
+ const referenceNode = element.children[action.position];
448
+ if (referenceNode !== childElement) element.insertBefore(childElement, referenceNode || null);
449
+ }
450
+ }
451
+ }
436
452
  }
437
453
  });
438
454
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-core-server-canary",
3
- "version": "0.19.6-canary-20260122-af2487a2",
3
+ "version": "0.19.6-canary-20260122-f7133c13",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [],
@@ -25,11 +25,11 @@
25
25
  "devDependencies": {
26
26
  "rsbuild-plugin-arethetypeswrong": "0.1.1",
27
27
  "rsbuild-plugin-publint": "0.3.3",
28
- "@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4",
28
+ "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.19.6-canary-20260122-f7133c13",
29
29
  "@lynx-js/web-elements": "npm:@lynx-js/web-elements-canary@0.11.0",
30
- "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.19.6-canary-20260122-af2487a2",
31
- "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.6-canary-20260122-af2487a2",
32
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.6-canary-20260122-af2487a2"
30
+ "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.6-canary-20260122-f7133c13",
31
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.6-canary-20260122-f7133c13",
32
+ "@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4"
33
33
  },
34
34
  "scripts": {
35
35
  "build": "rslib build",