@lvce-editor/about-view 7.20.0 → 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.
|
@@ -2486,7 +2486,7 @@ var create10 = () => {
|
|
|
2486
2486
|
};
|
|
2487
2487
|
|
|
2488
2488
|
// packages/notification-center-view/src/parts/NotificationCenterStates/NotificationCenterStates.ts
|
|
2489
|
-
var { get: get3, getCommandIds, getKeys, registerCommands, set: set8, wrapCommand } = create10();
|
|
2489
|
+
var { clear, get: get3, getCommandIds, getKeys, registerCommands, set: set8, wrapCommand } = create10();
|
|
2490
2490
|
|
|
2491
2491
|
// packages/notification-center-view/src/parts/Create/Create.ts
|
|
2492
2492
|
var create11 = (uid) => {
|
|
@@ -2524,21 +2524,6 @@ var handleNotificationsChanged = (state, notifications) => {
|
|
|
2524
2524
|
return { ...state, notifications };
|
|
2525
2525
|
};
|
|
2526
2526
|
|
|
2527
|
-
// packages/notification-center-view/src/parts/HandleExtensionManagementMessagePort/HandleExtensionManagementMessagePort.ts
|
|
2528
|
-
var handleExtensionManagementMessagePort = async (port) => {
|
|
2529
|
-
const rpc = await PlainMessagePortRpc_exports.create({
|
|
2530
|
-
commandMap: { "NotificationCenter.handleNotificationsChanged": handleNotificationsChanged },
|
|
2531
|
-
messagePort: port
|
|
2532
|
-
});
|
|
2533
|
-
ExtensionManagementWorker_exports.set(rpc);
|
|
2534
|
-
};
|
|
2535
|
-
|
|
2536
|
-
// packages/notification-center-view/src/parts/LoadContent/LoadContent.ts
|
|
2537
|
-
var loadContent = async (state) => {
|
|
2538
|
-
const notifications = await ExtensionManagementWorker_exports.invoke("Extensions.getNotifications");
|
|
2539
|
-
return { ...state, notifications };
|
|
2540
|
-
};
|
|
2541
|
-
|
|
2542
2527
|
// node_modules/@lvce-editor/virtual-dom-worker/dist/parts/Text/Text.js
|
|
2543
2528
|
var text = (data) => {
|
|
2544
2529
|
return {
|
|
@@ -2612,6 +2597,47 @@ var render2 = (uid, diffResult) => {
|
|
|
2612
2597
|
return [[ViewletCommand_exports.SetDom2, uid, getNotificationCenterVirtualDom(scheduledState.notifications)]];
|
|
2613
2598
|
};
|
|
2614
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
|
+
|
|
2615
2641
|
// packages/notification-center-view/src/parts/RenderEventListeners/RenderEventListeners.ts
|
|
2616
2642
|
var renderEventListeners = () => {
|
|
2617
2643
|
return [{ name: 1, params: ["handleClick", EventExpression_exports.TargetName] }];
|