@eintrek/erp-shell 0.1.58 → 0.1.60
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/help/help-store.d.ts +1 -1
- package/dist/hooks/use-organization-id-state.d.ts +5 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.esm.js +392 -134
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +395 -130
- package/dist/index.js.map +1 -1
- package/dist/lib/plan-features.d.ts +4 -0
- package/dist/navigation/app-layout-shell.d.ts +16 -1
- package/dist/navigation/app-registry.d.ts +1 -1
- package/dist/navigation/nav-row.d.ts +24 -0
- package/dist/navigation/sidebar-components.d.ts +5 -0
- package/dist/navigation/url-org-gate.d.ts +56 -0
- package/dist/organization/active-organization.d.ts +33 -0
- package/dist/providers/query-scope.d.ts +25 -0
- package/dist/providers/react-query-config.d.ts +3 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* live in different subtrees. A tiny external store rather than a context so
|
|
5
5
|
* NavUser works the same whether or not it sits under the layout.
|
|
6
6
|
*/
|
|
7
|
-
export type HelpAppId = "platform" | "accounx" | "invenx" | "plannex" | "peoplx";
|
|
7
|
+
export type HelpAppId = "platform" | "accounx" | "invenx" | "plannex" | "peoplx" | "sellx" | "carex";
|
|
8
8
|
/** Opens the dialog — a no-op when no layout has mounted one. */
|
|
9
9
|
export declare function openHelp(): void;
|
|
10
10
|
export declare function closeHelp(): void;
|
|
@@ -18,5 +18,10 @@ export interface UseOrganizationIdStateResult {
|
|
|
18
18
|
*
|
|
19
19
|
* On set, writes through to localStorage + cookie before flipping React state
|
|
20
20
|
* so all readers see a consistent value across navigations.
|
|
21
|
+
*
|
|
22
|
+
* The tab's own organisation (organization/active-organization.ts) follows
|
|
23
|
+
* this state, and it is written synchronously — in the initialiser and at the
|
|
24
|
+
* start of every set — because requests read it: an effect would run after
|
|
25
|
+
* the children's effects, which is where their queries start.
|
|
21
26
|
*/
|
|
22
27
|
export declare function useOrganizationIdState(initialOrganizationId: string | null | undefined, actions: OrganizationCookieActions): UseOrganizationIdStateResult;
|
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export { OrganizationSwitcher, type OrganizationSwitcherProps, type Organization
|
|
|
23
23
|
export { SidebarHeader } from "./navigation/sidebar-header";
|
|
24
24
|
export { AppSidebar, type AppSidebarProps } from "./navigation/app-sidebar";
|
|
25
25
|
export { AppLayoutShell, type AppLayoutShellProps, type AppLayoutShellOrganization, } from "./navigation/app-layout-shell";
|
|
26
|
+
export { resolveUrlOrgGate, findOrganizationForCode, type UrlOrgGate, type UrlOrgGateInput, type OrganizationsStatus, } from "./navigation/url-org-gate";
|
|
26
27
|
export { type ShellChrome, type WorkspaceHeaderTone, WORKSPACE_HEADER_VARS, WORKSPACE_LIGHT_HEADER_VARS, } from "./navigation/chrome";
|
|
27
28
|
export { WorkspaceBrand, type WorkspaceBrandProps } from "./navigation/workspace-brand";
|
|
28
29
|
export { SidebarHelpCard, SidebarHelpLink, type SidebarHelpCardProps, type SidebarHelpLinkProps, } from "./navigation/sidebar-help-card";
|
|
@@ -43,6 +44,7 @@ export { ThemeProvider } from "./providers/theme-provider";
|
|
|
43
44
|
export { FeatureFlagsProvider, useFeatureFlags, useFeatureFlag, type FeatureFlags, } from "./providers/feature-flags-provider";
|
|
44
45
|
export { ReactQueryProvider } from "./providers/react-query-provider";
|
|
45
46
|
export { getQueryClientConfig } from "./providers/react-query-config";
|
|
47
|
+
export { organizationScopedQueryHash, shouldRetryQuery, } from "./providers/query-scope";
|
|
46
48
|
export { PermissionRulesProvider, usePermissionRules, type PermissionRulesData, type PermissionRulesMap, type ApiPoliciesMap, type PolicyRule, type PermissionRulesProviderProps, } from "./providers/permission-rules-context";
|
|
47
49
|
export { SessionBackedProfileCacheSeeder, type SessionBackedProfileCacheSeederProps, } from "./providers/session-backed-profile-cache-seeder";
|
|
48
50
|
export { default as axiosInstance } from "./http/axios";
|
|
@@ -52,5 +54,6 @@ export { unwrapApiResponse } from "./http/unwrap";
|
|
|
52
54
|
export { getAccessToken, clearAccessTokenCache, } from "./http/auth-token-manager";
|
|
53
55
|
export { runGlobalRequestPrecheck } from "./http/request-precheck";
|
|
54
56
|
export { getOrganizationId, setOrganizationId, clearOrganizationId, } from "./organization/organization-id";
|
|
57
|
+
export { getRequestOrganizationId, getTabOrganizationId, setTabOrganizationId, } from "./organization/active-organization";
|
|
55
58
|
export declare const updateOrganizationId: (organizationId: string | null) => void;
|
|
56
59
|
export declare const getAxiosErrorMessage: (error: unknown) => string;
|