@declarion/react 0.41.0 → 0.43.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-lib/{DraggableChildrenTable-x_3rA4Rm.js → DraggableChildrenTable-G4Sw1XAD.js} +43 -43
- package/dist-lib/{Grid-CKvYZx69.js → Grid-CXn-IK3H.js} +2 -2
- package/dist-lib/{LayoutRenderer-Bxvllfdl.js → LayoutRenderer-DX8pFS5A.js} +906 -861
- package/dist-lib/MarkdownRenderer-CreI9x2m.js +85 -0
- package/dist-lib/{RefreshControl-Cxzbbj3F.js → RefreshControl-DFh0-gCb.js} +58 -60
- package/dist-lib/{SmartDetailPage.impl-RDaFEH3Y.js → SmartDetailPage.impl-K6Jj1-9z.js} +545 -545
- package/dist-lib/{SmartRecordListPage.impl-BDdULatb.js → SmartRecordListPage.impl-DQW_uVfL.js} +250 -250
- package/dist-lib/hooks/usePageStateTtl.d.ts +1 -1
- package/dist-lib/index.js +1216 -1216
- package/dist-lib/lib/brand-tokens.d.ts +1 -1
- package/dist-lib/lib/evidence-verdict.d.ts +0 -1
- package/dist-lib/lib/safe-url.d.ts +14 -0
- package/dist-lib/{registry-DsZmw4hy.js → registry-r4hiflwC.js} +501 -501
- package/dist-lib/testing.js +42 -42
- package/dist-lib/types/api.d.ts +1 -1
- package/dist-lib/{useCurrentScreen-D6LPBFOi.js → useCurrentScreen-CpQjVmrT.js} +1320 -1286
- package/dist-lib/{useProperties-DiwFyA4b.js → useProperties-CULxrNT4.js} +43 -43
- package/dist-lib/{value-BudY9GCn.js → value-fUHxMV4r.js} +20 -20
- package/package.json +12 -12
- package/dist-lib/MarkdownRenderer-BvWJ8pzN.js +0 -98
|
@@ -7,7 +7,7 @@ export type BrandColorScheme = (typeof COLOR_SCHEMES)[number];
|
|
|
7
7
|
*
|
|
8
8
|
* Each writes the CSS custom property of the SAME name with underscores
|
|
9
9
|
* hyphenated. Keep in sync with `branding_theme_colors` in
|
|
10
|
-
* `modules/
|
|
10
|
+
* `modules/declarion-core/schema/core_branding.yaml`; a Go test exports that
|
|
11
11
|
* structure's fields and `brand-tokens.parity.test.ts` asserts the two agree in
|
|
12
12
|
* both directions, so a field added to one and forgotten in the other fails CI
|
|
13
13
|
* rather than loading, validating, and doing nothing.
|
|
@@ -1 +1,15 @@
|
|
|
1
1
|
export declare function safeExternalUrl(input: string | undefined | null): string | undefined;
|
|
2
|
+
/**
|
|
3
|
+
* An href is "external" exactly when the global link interceptor will NOT
|
|
4
|
+
* handle it: a cross-origin URL, a protocol-relative URL, or a non-http scheme
|
|
5
|
+
* (mailto:, tel:, ...). Those open in a new window so a cross-origin link can
|
|
6
|
+
* never navigate the embed iframe away from Declarion. Same-origin links -
|
|
7
|
+
* whether relative (/cases/5) OR absolute (https://<this-origin>/cases/5) -
|
|
8
|
+
* are INTERNAL: they stay plain <a href> so the interceptor routes them in-app.
|
|
9
|
+
* This mirrors the interceptor's own predicate (same-origin http(s) only).
|
|
10
|
+
*
|
|
11
|
+
* Rendering an internal path with `target="_blank"` is the bug this prevents:
|
|
12
|
+
* the interceptor skips any anchor carrying a target, so the click leaves the
|
|
13
|
+
* SPA for a full document load in a new tab instead of navigating.
|
|
14
|
+
*/
|
|
15
|
+
export declare function isExternalHref(href: string | undefined): boolean;
|