@lvce-editor/about-view 7.20.1 → 7.20.2
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.
|
@@ -2524,33 +2524,6 @@ var handleNotificationsChanged = (state, notifications) => {
|
|
|
2524
2524
|
return { ...state, notifications };
|
|
2525
2525
|
};
|
|
2526
2526
|
|
|
2527
|
-
// packages/notification-center-view/src/parts/HandleNotificationsChangedAll/HandleNotificationsChangedAll.ts
|
|
2528
|
-
var handleNotificationsChangedAll = (notifications) => {
|
|
2529
|
-
for (const uid of getKeys()) {
|
|
2530
|
-
const { newState, oldState } = get3(uid);
|
|
2531
|
-
const newerState = handleNotificationsChanged(newState, notifications);
|
|
2532
|
-
if (newState === newerState || oldState === newerState) {
|
|
2533
|
-
continue;
|
|
2534
|
-
}
|
|
2535
|
-
set8(uid, oldState, newerState);
|
|
2536
|
-
}
|
|
2537
|
-
};
|
|
2538
|
-
|
|
2539
|
-
// packages/notification-center-view/src/parts/HandleExtensionManagementMessagePort/HandleExtensionManagementMessagePort.ts
|
|
2540
|
-
var handleExtensionManagementMessagePort = async (port) => {
|
|
2541
|
-
const rpc = await PlainMessagePortRpc_exports.create({
|
|
2542
|
-
commandMap: { "NotificationCenter.handleNotificationsChanged": handleNotificationsChangedAll },
|
|
2543
|
-
messagePort: port
|
|
2544
|
-
});
|
|
2545
|
-
ExtensionManagementWorker_exports.set(rpc);
|
|
2546
|
-
};
|
|
2547
|
-
|
|
2548
|
-
// packages/notification-center-view/src/parts/LoadContent/LoadContent.ts
|
|
2549
|
-
var loadContent = async (state) => {
|
|
2550
|
-
const notifications = await ExtensionManagementWorker_exports.invoke("Extensions.getNotifications");
|
|
2551
|
-
return { ...state, notifications };
|
|
2552
|
-
};
|
|
2553
|
-
|
|
2554
2527
|
// node_modules/@lvce-editor/virtual-dom-worker/dist/parts/Text/Text.js
|
|
2555
2528
|
var text = (data) => {
|
|
2556
2529
|
return {
|
|
@@ -2624,6 +2597,47 @@ var render2 = (uid, diffResult) => {
|
|
|
2624
2597
|
return [[ViewletCommand_exports.SetDom2, uid, getNotificationCenterVirtualDom(scheduledState.notifications)]];
|
|
2625
2598
|
};
|
|
2626
2599
|
|
|
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
|
+
|
|
2627
2641
|
// packages/notification-center-view/src/parts/RenderEventListeners/RenderEventListeners.ts
|
|
2628
2642
|
var renderEventListeners = () => {
|
|
2629
2643
|
return [{ name: 1, params: ["handleClick", EventExpression_exports.TargetName] }];
|