@lvce-editor/about-view 7.20.2 → 7.20.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.
@@ -2519,11 +2519,33 @@ var handleClick = async (state, name) => {
2519
2519
  return state;
2520
2520
  };
2521
2521
 
2522
+ // packages/notification-center-view/src/parts/HandleNotificationsChangedAll/HandleNotificationsChangedAll.ts
2523
+ var handleNotificationsChangedAll = async (notifications) => {
2524
+ for (const uid of getKeys()) {
2525
+ await RendererWorker_exports.invoke("Viewlet.executeViewletCommand", uid, "handleNotificationsChanged", notifications);
2526
+ }
2527
+ };
2528
+
2529
+ // packages/notification-center-view/src/parts/HandleExtensionManagementMessagePort/HandleExtensionManagementMessagePort.ts
2530
+ var handleExtensionManagementMessagePort = async (port) => {
2531
+ const rpc = await PlainMessagePortRpc_exports.create({
2532
+ commandMap: { "NotificationCenter.handleNotificationsChanged": handleNotificationsChangedAll },
2533
+ messagePort: port
2534
+ });
2535
+ ExtensionManagementWorker_exports.set(rpc);
2536
+ };
2537
+
2522
2538
  // packages/notification-center-view/src/parts/HandleNotificationsChanged/HandleNotificationsChanged.ts
2523
2539
  var handleNotificationsChanged = (state, notifications) => {
2524
2540
  return { ...state, notifications };
2525
2541
  };
2526
2542
 
2543
+ // packages/notification-center-view/src/parts/LoadContent/LoadContent.ts
2544
+ var loadContent = async (state) => {
2545
+ const notifications = await ExtensionManagementWorker_exports.invoke("Extensions.getNotifications");
2546
+ return { ...state, notifications };
2547
+ };
2548
+
2527
2549
  // node_modules/@lvce-editor/virtual-dom-worker/dist/parts/Text/Text.js
2528
2550
  var text = (data) => {
2529
2551
  return {
@@ -2597,47 +2619,6 @@ var render2 = (uid, diffResult) => {
2597
2619
  return [[ViewletCommand_exports.SetDom2, uid, getNotificationCenterVirtualDom(scheduledState.notifications)]];
2598
2620
  };
2599
2621
 
2600
- // packages/notification-center-view/src/parts/RenderOutOfBand/RenderOutOfBand.ts
2601
- var renderOutOfBand = async (uid) => {
2602
- const diffResult = diff2(uid);
2603
- if (diffResult.length === 0) {
2604
- return;
2605
- }
2606
- const commands2 = render2(uid, diffResult);
2607
- if (commands2.length === 0) {
2608
- return;
2609
- }
2610
- await RendererWorker_exports.invoke("Viewlet.sendMultiple", commands2);
2611
- };
2612
-
2613
- // packages/notification-center-view/src/parts/HandleNotificationsChangedAll/HandleNotificationsChangedAll.ts
2614
- var handleNotificationsChangedAll = async (notifications) => {
2615
- for (const uid of getKeys()) {
2616
- const { newState, oldState } = get3(uid);
2617
- const newerState = handleNotificationsChanged(newState, notifications);
2618
- if (newState === newerState || oldState === newerState) {
2619
- continue;
2620
- }
2621
- set8(uid, oldState, newerState);
2622
- await renderOutOfBand(uid);
2623
- }
2624
- };
2625
-
2626
- // packages/notification-center-view/src/parts/HandleExtensionManagementMessagePort/HandleExtensionManagementMessagePort.ts
2627
- var handleExtensionManagementMessagePort = async (port) => {
2628
- const rpc = await PlainMessagePortRpc_exports.create({
2629
- commandMap: { "NotificationCenter.handleNotificationsChanged": handleNotificationsChangedAll },
2630
- messagePort: port
2631
- });
2632
- ExtensionManagementWorker_exports.set(rpc);
2633
- };
2634
-
2635
- // packages/notification-center-view/src/parts/LoadContent/LoadContent.ts
2636
- var loadContent = async (state) => {
2637
- const notifications = await ExtensionManagementWorker_exports.invoke("Extensions.getNotifications");
2638
- return { ...state, notifications };
2639
- };
2640
-
2641
2622
  // packages/notification-center-view/src/parts/RenderEventListeners/RenderEventListeners.ts
2642
2623
  var renderEventListeners = () => {
2643
2624
  return [{ name: 1, params: ["handleClick", EventExpression_exports.TargetName] }];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/about-view",
3
- "version": "7.20.2",
3
+ "version": "7.20.3",
4
4
  "description": "About View Worker",
5
5
  "keywords": [
6
6
  "about-view"