@nysds/nys-unavbundle 1.21.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/package.json ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "@nysds/nys-unavbundle",
3
+ "version": "1.21.0",
4
+ "description": "Single-file drop-in bundle of the NYS universal navigation header and footer, with design tokens and a pruned icon set inlined.",
5
+ "type": "module",
6
+ "main": "dist/nys-unavbundle.js",
7
+ "module": "dist/nys-unavbundle.js",
8
+ "types": "types/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./types/index.d.ts",
12
+ "default": "./dist/nys-unavbundle.js"
13
+ },
14
+ "./dist/nys-unavbundle.js": "./dist/nys-unavbundle.js"
15
+ },
16
+ "unpkg": "dist/nys-unavbundle.js",
17
+ "jsdelivr": "dist/nys-unavbundle.js",
18
+ "files": [
19
+ "dist/",
20
+ "types/"
21
+ ],
22
+ "scripts": {
23
+ "build": "vite build",
24
+ "build:watch": "vite build --watch",
25
+ "icons": "node scripts/icon-allowlist.js"
26
+ },
27
+ "devDependencies": {
28
+ "@nysds/internals": "^1.21.0",
29
+ "@nysds/nys-alert": "1.21.0",
30
+ "@nysds/nys-button": "^1.21.0",
31
+ "@nysds/nys-errormessage": "^1.21.0",
32
+ "@nysds/nys-icon": "^1.21.0",
33
+ "@nysds/nys-label": "^1.21.0",
34
+ "@nysds/nys-textinput": "^1.21.0",
35
+ "@nysds/nys-tooltip": "^1.21.0",
36
+ "@nysds/nys-unavfooter": "1.21.0",
37
+ "@nysds/nys-unavheader": "1.21.0",
38
+ "@nysds/tokens": "1.21.0",
39
+ "lit": "^3.3.1",
40
+ "typescript": "^5.9.3",
41
+ "vite": "^7.3.1"
42
+ },
43
+ "keywords": [
44
+ "nysds",
45
+ "new-york-state",
46
+ "design-system",
47
+ "web-components",
48
+ "lit",
49
+ "nys",
50
+ "unav",
51
+ "unavheader",
52
+ "unavfooter",
53
+ "bundle",
54
+ "cdn"
55
+ ],
56
+ "author": "New York State Design System Team",
57
+ "license": "MIT",
58
+ "sideEffects": true
59
+ }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Hand-maintained: the bundle is built with esbuild (no `tsc --emitDeclarationOnly`
3
+ * pass) because it compiles other packages' sources, which a composite project
4
+ * reference cannot express.
5
+ *
6
+ * The element classes are typed structurally rather than re-exported from
7
+ * `@nysds/nys-unavheader` / `@nysds/nys-unavfooter`: those are build-time
8
+ * devDependencies here — their code is inlined — so a consumer of this package
9
+ * has no reason to have them installed.
10
+ */
11
+
12
+ /** Constructor for `<nys-unavheader>`, already registered by loading this module. */
13
+ export declare const NysUnavHeader: CustomElementConstructor;
14
+
15
+ /** Constructor for `<nys-unavfooter>`, already registered by loading this module. */
16
+ export declare const NysUnavFooter: CustomElementConstructor;
17
+
18
+ /**
19
+ * Inject the NYSDS design tokens as the first `<style>` in `<head>`.
20
+ * Called automatically when the bundle loads; exported for callers that set
21
+ * `window.NYS_UNAV_SKIP_TOKENS` and want to control the timing themselves.
22
+ */
23
+ export declare function injectTokens(): void;
24
+
25
+ declare global {
26
+ interface Window {
27
+ /** Set before the bundle loads to suppress automatic token injection. */
28
+ NYS_UNAV_SKIP_TOKENS?: boolean;
29
+ }
30
+ }