@eintrek/erp-shell 0.1.62 → 0.1.63

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.
@@ -2,6 +2,7 @@ import * as React from "react";
2
2
  import { type ShellChrome, type WorkspaceHeaderTone } from "./chrome";
3
3
  import { type HelpAppId } from "../help/help-store";
4
4
  import { type OrganizationsStatus } from "./url-org-gate";
5
+ import type { GuideConfig } from "../guide/types";
5
6
  /**
6
7
  * Shape the shell needs from an organization to wire the URL `[code]` segment
7
8
  * back to the active org id. Hosts already keep richer types around — this is
@@ -86,6 +87,12 @@ export interface AppLayoutShellProps {
86
87
  /** Which app the help dialog says a message came from; detected when
87
88
  * omitted (the app's buildSystemLinks call, then the host name). */
88
89
  helpApp?: HelpAppId;
90
+ /**
91
+ * The app's guided tour (ไกด์เริ่มต้น). The engine runs only once the URL's
92
+ * organisation is active and never over the not-member refusal; who sees
93
+ * it (forced, optional, none) comes from platform-api. Omit for no tour.
94
+ */
95
+ guides?: GuideConfig;
89
96
  }
90
97
  /**
91
98
  * Top-level app chrome: sticky header, sidebar slot, content gutter and the
@@ -99,4 +106,4 @@ export interface AppLayoutShellProps {
99
106
  * an erp-shell bump — domain components must NOT add their own root padding
100
107
  * or content gets indented twice.
101
108
  */
102
- export declare function AppLayoutShell({ children, sidebar, loadingComponent, breadcrumb, permissionProvider, organizationId, setOrganizationId, organizations, organizationsStatus, notMemberComponent, signInUrl, selectOrganizationUrl, chrome, workspaceHeader, headerEnd, mobileBrand, showHelp, helpApp, }: AppLayoutShellProps): import("react/jsx-runtime").JSX.Element;
109
+ export declare function AppLayoutShell({ children, sidebar, loadingComponent, breadcrumb, permissionProvider, organizationId, setOrganizationId, organizations, organizationsStatus, notMemberComponent, signInUrl, selectOrganizationUrl, chrome, workspaceHeader, headerEnd, mobileBrand, showHelp, helpApp, guides, }: AppLayoutShellProps): import("react/jsx-runtime").JSX.Element;
package/dist/version.d.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * This package's version, attached to help messages so the back office can
3
3
  * tell which shell a report came from. Keep in step with package.json.
4
4
  */
5
- export declare const SHELL_VERSION = "0.1.62";
5
+ export declare const SHELL_VERSION = "0.1.63";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eintrek/erp-shell",
3
- "version": "0.1.62",
3
+ "version": "0.1.63",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Shared frontend platform for ERP apps — HTTP client, providers, navigation, hooks.",
@@ -24,6 +24,9 @@
24
24
  "react",
25
25
  "next"
26
26
  ],
27
+ "dependencies": {
28
+ "@floating-ui/dom": "^1.7.6"
29
+ },
27
30
  "peerDependencies": {
28
31
  "@tanstack/react-query": "^5.0.0",
29
32
  "@tanstack/react-query-devtools": "^5.0.0",