@lvce-editor/about-view 7.20.0 → 7.20.1
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,10 +2524,22 @@ 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
|
+
|
|
2527
2539
|
// packages/notification-center-view/src/parts/HandleExtensionManagementMessagePort/HandleExtensionManagementMessagePort.ts
|
|
2528
2540
|
var handleExtensionManagementMessagePort = async (port) => {
|
|
2529
2541
|
const rpc = await PlainMessagePortRpc_exports.create({
|
|
2530
|
-
commandMap: { "NotificationCenter.handleNotificationsChanged":
|
|
2542
|
+
commandMap: { "NotificationCenter.handleNotificationsChanged": handleNotificationsChangedAll },
|
|
2531
2543
|
messagePort: port
|
|
2532
2544
|
});
|
|
2533
2545
|
ExtensionManagementWorker_exports.set(rpc);
|