@lambda-development/erp-core 1.4.1 → 1.4.3

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.
@@ -0,0 +1,18 @@
1
+ /**
2
+ * "Back to where I came from" for the header arrow.
3
+ *
4
+ * The header arrow normally goes up to the record's list (see app-shell): the
5
+ * URL decides, not browser history, because paging through records would make
6
+ * history merely reopen the previous record. A record opened from somewhere
7
+ * that isn't its list (today: a link in the chat) carries that place in the
8
+ * router state as `backTo`; the pager passes it along while paging, so the
9
+ * arrow returns there. Reloading keeps it (the browser stores history state);
10
+ * a new tab or a shared URL falls back to the list.
11
+ */
12
+ export type BackState = {
13
+ backTo?: string;
14
+ backLabel?: "chat";
15
+ };
16
+ export declare function readBackState(state: unknown): BackState | null;
17
+ /** Same-origin absolute URLs (https://erp.example/masters/item/1) as an in-app path, else null. */
18
+ export declare function sameOriginPath(href: string): string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambda-development/erp-core",
3
- "version": "1.4.1",
3
+ "version": "1.4.3",
4
4
  "description": "Frontend core of Lambda ERP \u2014 app shell, document/master pages, chat UI, reports, and extension registries.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {