@mcurros2/microm 1.1.321-0 → 1.1.323-0
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/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1268,7 +1268,11 @@ class $16abd72d1aa9b62d$export$6118e57c65bf19ee {
|
|
|
1268
1268
|
return randomId;
|
|
1269
1269
|
}
|
|
1270
1270
|
async #loadToken() {
|
|
1271
|
-
if (!this.#TOKEN)
|
|
1271
|
+
if (!this.#TOKEN) {
|
|
1272
|
+
this.#TOKEN = await this.#TOKEN_STORAGE.readToken(this.#APP_ID);
|
|
1273
|
+
const menu_items = await this.#readEnabledMenus();
|
|
1274
|
+
this.#ENABLED_MENUS = new Set(menu_items);
|
|
1275
|
+
}
|
|
1272
1276
|
if (!this.#TOKEN) {
|
|
1273
1277
|
console.warn('No token found, clearing enabled menus');
|
|
1274
1278
|
this.#ENABLED_MENUS.clear();
|
|
@@ -37142,7 +37146,8 @@ const $468dbc1019a115f1$var$createMenuStateSetters = (menuIds, setState)=>Object
|
|
|
37142
37146
|
});
|
|
37143
37147
|
}
|
|
37144
37148
|
]));
|
|
37145
|
-
function $468dbc1019a115f1$export$48c6e824f65803ea(
|
|
37149
|
+
function $468dbc1019a115f1$export$48c6e824f65803ea(props) {
|
|
37150
|
+
const { menus: menuConfig, client: client, setContent: setContent, setOpened: setOpened, isLoggedIn: isLoggedIn, setIsLoggedIn: setIsLoggedIn, loggedInInfo: loggedInInfo, theme: theme, enableMenuSecurity: enableMenuSecurity = true, searchMenuItemsWithContentOnly: searchMenuItemsWithContentOnly = true } = props;
|
|
37146
37151
|
const menuIds = (0, $b4te3$react.useMemo)(()=>Object.keys(menuConfig), [
|
|
37147
37152
|
menuConfig
|
|
37148
37153
|
]);
|