@kya-os/consent 0.1.43 → 0.1.44
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/bundle/inline.d.ts +17 -0
- package/dist/bundle/inline.d.ts.map +1 -1
- package/dist/bundle/inline.js +19 -2
- package/dist/bundle/inline.js.map +1 -1
- package/dist/bundle/shell.d.ts +13 -8
- package/dist/bundle/shell.d.ts.map +1 -1
- package/dist/bundle/shell.js +33 -30
- package/dist/bundle/shell.js.map +1 -1
- package/dist/cjs/bundle/inline.js +20 -3
- package/dist/cjs/bundle/inline.js.map +1 -1
- package/dist/cjs/bundle/shell.js +32 -29
- package/dist/cjs/bundle/shell.js.map +1 -1
- package/dist/cjs/components/mcp-consent.js +7 -0
- package/dist/cjs/components/mcp-consent.js.map +1 -1
- package/dist/cjs/index.js +3 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/mcp-app/inline.js +2 -2
- package/dist/cjs/mcp-app/inline.js.map +1 -1
- package/dist/components/mcp-consent.d.ts.map +1 -1
- package/dist/components/mcp-consent.js +7 -0
- package/dist/components/mcp-consent.js.map +1 -1
- package/dist/consent.js +3 -0
- package/dist/consent.min.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/mcp-app/inline.d.ts.map +1 -1
- package/dist/mcp-app/inline.js +2 -2
- package/dist/mcp-app/inline.js.map +1 -1
- package/package.json +1 -1
package/dist/bundle/inline.d.ts
CHANGED
|
@@ -16,3 +16,20 @@ export declare const CONSENT_BUNDLE: string;
|
|
|
16
16
|
* Size of the bundle in bytes (for logging/debugging)
|
|
17
17
|
*/
|
|
18
18
|
export declare const CONSENT_BUNDLE_SIZE: number;
|
|
19
|
+
/**
|
|
20
|
+
* sha256 content hash of {@link CONSENT_BUNDLE} (first 16 hex chars).
|
|
21
|
+
*/
|
|
22
|
+
export declare const CONSENT_BUNDLE_HASH: string;
|
|
23
|
+
/**
|
|
24
|
+
* The canonical path this bundle is served from — content-addressed, so a new
|
|
25
|
+
* build is a new URL.
|
|
26
|
+
*
|
|
27
|
+
* This is the single source of truth for BOTH sides: the shell emits it as the
|
|
28
|
+
* `<script src>`, and the worker routes it. Anything that hardcodes
|
|
29
|
+
* `/consent.js` instead will silently drift from whatever is actually served.
|
|
30
|
+
*
|
|
31
|
+
* Serving a stable, unversioned URL with `Cache-Control: immutable` is what
|
|
32
|
+
* pinned browsers to a stale consent UI indefinitely; a content-addressed path
|
|
33
|
+
* makes that header safe.
|
|
34
|
+
*/
|
|
35
|
+
export declare const CONSENT_BUNDLE_PATH: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline.d.ts","sourceRoot":"","sources":["../../src/bundle/inline.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"inline.d.ts","sourceRoot":"","sources":["../../src/bundle/inline.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,MAAqlpQ,CAAC;AAEnnpQ;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAe,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAA2B,CAAC;AAE9D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAuC,CAAC"}
|