@oj-module/runtime 0.1.14 → 0.1.15
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 -0
- package/dist/runtime.js +8 -8
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export type { NotificationsApiProvider, SystemApiProvider, UploadApiProvider, }
|
|
|
38
38
|
export { useAuthStore } from "./store/auth";
|
|
39
39
|
export type { AuthProvider } from "./store/auth-provider";
|
|
40
40
|
export type { HeaderProvider } from "./store/header-provider";
|
|
41
|
+
export { useTabsStore } from "./store/tabs";
|
|
41
42
|
export { useUserStore } from "./store/user";
|
|
42
43
|
export type { AppInfo } from "./types/app-info";
|
|
43
44
|
export { getAllExpandedKeys } from "./utils/get-all-expanded-keys";
|
package/dist/runtime.js
CHANGED
|
@@ -225,10 +225,10 @@ function getAppInfo() {
|
|
|
225
225
|
return {
|
|
226
226
|
"pkg": {
|
|
227
227
|
"name": "@oj-module/runtime",
|
|
228
|
-
"version": "0.1.
|
|
228
|
+
"version": "0.1.15",
|
|
229
229
|
"license": "MIT"
|
|
230
230
|
},
|
|
231
|
-
"lastBuildTime": "2026-10-12
|
|
231
|
+
"lastBuildTime": "2026-10-12 19:08:32"
|
|
232
232
|
};
|
|
233
233
|
}
|
|
234
234
|
var init_get_app_info = __esmMin((() => {}));
|
|
@@ -8711,11 +8711,10 @@ function ensureReq() {
|
|
|
8711
8711
|
/** ky HTTPError → ContractApiError(错误体为信封时取 code/msg);契约违例与原错误原样透传 */
|
|
8712
8712
|
async function toApiError(e) {
|
|
8713
8713
|
if (e instanceof ContractApiError) return e;
|
|
8714
|
-
const
|
|
8715
|
-
|
|
8716
|
-
|
|
8717
|
-
|
|
8718
|
-
} catch {}
|
|
8714
|
+
const err = e;
|
|
8715
|
+
const res = err?.response;
|
|
8716
|
+
const d = err?.data;
|
|
8717
|
+
if (res instanceof Response && d && typeof d.code === "number") return new ContractApiError(d.code, d.msg ?? res.statusText);
|
|
8719
8718
|
return e;
|
|
8720
8719
|
}
|
|
8721
8720
|
async function fetchAddRoleItem$1(body) {
|
|
@@ -27407,6 +27406,7 @@ init_locales();
|
|
|
27407
27406
|
init_module_loader();
|
|
27408
27407
|
init_slots();
|
|
27409
27408
|
init_auth();
|
|
27409
|
+
init_tabs();
|
|
27410
27410
|
init_user();
|
|
27411
27411
|
init_get_app_info();
|
|
27412
27412
|
init_get_redirect_path();
|
|
@@ -27416,4 +27416,4 @@ init_ri();
|
|
|
27416
27416
|
init_menu_icons();
|
|
27417
27417
|
init_tree();
|
|
27418
27418
|
//#endregion
|
|
27419
|
-
export { AccessControl, AccessControlRoles, AntdApp, BasicButton, BasicContent, BasicTable, EmbeddedIcon, ErrorBoundary, ExternalIcon, FormAvatarItem, FormTreeItem, Iframe, LayoutCenterIcon, LayoutEffects, LayoutLeftIcon, LayoutRightIcon, MixedNavigationIcon, OutsidePageIcon, PageError, ProfileCardIcon, RiAccountCircleLine, RiContrastFill, RiFullscreenExitLine, RiFullscreenLine, RiMailCheckLine, RiMoonIcon, RiReactjsLine, RiSunIcon, RiUserSettingsLine, ServerErrorIcon, SideNavigationIcon, TopNavigationIcon, TwoColumnNavigationIcon, accessControlCodes, defineModule, fetchAddMenuItem, fetchAddRoleItem, fetchAsyncRoutes, fetchDeleteMenuItem, fetchDeleteRoleItem, fetchLogin, fetchLogout, fetchMenuByRoleId, fetchMenuList, fetchRefreshToken, fetchRoleList, fetchRoleMenu, fetchUpdateMenuItem, fetchUpdateRoleItem, fetchUserInfo, filterTree, getAllExpandedKeys, getAppInfo, getBooleanOptions, getModule, getModules, getRedirectPath, getRegisteredApiPrefix, getRegisteredStore, getRoutes, getYesNoOptions, handleTree, loadAll, mapTree, menuIcons, permissionPrefix, setupI18n, traverseTreeValues, unloadModule, useAccess, useAuthStore, usePreferences, useSlotNodes, useUserStore, external_exports as z };
|
|
27419
|
+
export { AccessControl, AccessControlRoles, AntdApp, BasicButton, BasicContent, BasicTable, EmbeddedIcon, ErrorBoundary, ExternalIcon, FormAvatarItem, FormTreeItem, Iframe, LayoutCenterIcon, LayoutEffects, LayoutLeftIcon, LayoutRightIcon, MixedNavigationIcon, OutsidePageIcon, PageError, ProfileCardIcon, RiAccountCircleLine, RiContrastFill, RiFullscreenExitLine, RiFullscreenLine, RiMailCheckLine, RiMoonIcon, RiReactjsLine, RiSunIcon, RiUserSettingsLine, ServerErrorIcon, SideNavigationIcon, TopNavigationIcon, TwoColumnNavigationIcon, accessControlCodes, defineModule, fetchAddMenuItem, fetchAddRoleItem, fetchAsyncRoutes, fetchDeleteMenuItem, fetchDeleteRoleItem, fetchLogin, fetchLogout, fetchMenuByRoleId, fetchMenuList, fetchRefreshToken, fetchRoleList, fetchRoleMenu, fetchUpdateMenuItem, fetchUpdateRoleItem, fetchUserInfo, filterTree, getAllExpandedKeys, getAppInfo, getBooleanOptions, getModule, getModules, getRedirectPath, getRegisteredApiPrefix, getRegisteredStore, getRoutes, getYesNoOptions, handleTree, loadAll, mapTree, menuIcons, permissionPrefix, setupI18n, traverseTreeValues, unloadModule, useAccess, useAuthStore, usePreferences, useSlotNodes, useTabsStore, useUserStore, external_exports as z };
|