gyosjs 0.2.4 → 0.3.1

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.
Files changed (58) hide show
  1. package/README.md +10 -6
  2. package/dist/auto-init.d.ts +1 -1
  3. package/dist/auto-init.d.ts.map +1 -1
  4. package/dist/core/component.d.ts.map +1 -1
  5. package/dist/core/router/csp-html.d.ts +2 -0
  6. package/dist/core/router/csp-html.d.ts.map +1 -0
  7. package/dist/core/router/diff-nodes.d.ts.map +1 -1
  8. package/dist/core/router/router.d.ts.map +1 -1
  9. package/dist/core/router/script.d.ts.map +1 -1
  10. package/dist/core/transition.d.ts.map +1 -1
  11. package/dist/csp-auto-init.d.ts +3 -0
  12. package/dist/csp-auto-init.d.ts.map +1 -0
  13. package/dist/csp.d.ts +3 -0
  14. package/dist/csp.d.ts.map +1 -0
  15. package/dist/gyos.auto.esm.js +337 -75
  16. package/dist/gyos.auto.esm.js.map +1 -1
  17. package/dist/gyos.auto.js +337 -75
  18. package/dist/gyos.auto.js.map +1 -1
  19. package/dist/gyos.auto.min.js +2 -2
  20. package/dist/gyos.csp.auto.esm.js +15208 -0
  21. package/dist/gyos.csp.auto.esm.js.map +1 -0
  22. package/dist/gyos.csp.auto.js +15218 -0
  23. package/dist/gyos.csp.auto.js.map +1 -0
  24. package/dist/gyos.csp.auto.min.js +6 -0
  25. package/dist/gyos.csp.esm.js +15181 -0
  26. package/dist/gyos.csp.esm.js.map +1 -0
  27. package/dist/gyos.csp.js +15252 -0
  28. package/dist/gyos.csp.js.map +1 -0
  29. package/dist/gyos.csp.min.js +6 -0
  30. package/dist/gyos.css +73 -0
  31. package/dist/gyos.esm.js +339 -76
  32. package/dist/gyos.esm.js.map +1 -1
  33. package/dist/gyos.js +339 -75
  34. package/dist/gyos.js.map +1 -1
  35. package/dist/gyos.min.js +2 -2
  36. package/dist/index.d.ts +2 -85
  37. package/dist/index.d.ts.map +1 -1
  38. package/dist/public-api.d.ts +89 -0
  39. package/dist/public-api.d.ts.map +1 -0
  40. package/dist/runtime/csp-evaluator.d.ts +7 -0
  41. package/dist/runtime/csp-evaluator.d.ts.map +1 -0
  42. package/dist/runtime/csp-nonce.d.ts +7 -0
  43. package/dist/runtime/csp-nonce.d.ts.map +1 -0
  44. package/dist/runtime/evaluator.d.ts +12 -0
  45. package/dist/runtime/evaluator.d.ts.map +1 -0
  46. package/dist/runtime/install-csp.d.ts +2 -0
  47. package/dist/runtime/install-csp.d.ts.map +1 -0
  48. package/dist/runtime/install-standard.d.ts +2 -0
  49. package/dist/runtime/install-standard.d.ts.map +1 -0
  50. package/dist/runtime/standard-evaluator.d.ts +3 -0
  51. package/dist/runtime/standard-evaluator.d.ts.map +1 -0
  52. package/dist/template/events.d.ts.map +1 -1
  53. package/dist/template/expression.d.ts.map +1 -1
  54. package/dist/template/structurals/transition-helpers.d.ts +1 -1
  55. package/dist/template/structurals/transition-helpers.d.ts.map +1 -1
  56. package/dist/utils/target-spinner.d.ts +0 -4
  57. package/dist/utils/target-spinner.d.ts.map +1 -1
  58. package/package.json +29 -12
@@ -0,0 +1,89 @@
1
+ import { scope, mountAll, mount, mountTree } from './core/component';
2
+ import { getAllMountedScopes as mountedScopes } from './core/scope-registry';
3
+ import { applyDirective, directive } from './core/directive';
4
+ import { pipe } from './core/pipe';
5
+ import { provide, inject, getGlobalContainer } from './core/di';
6
+ import { store, hasStore, removeStore, getStoreNames } from './core/store';
7
+ import { on, emit, off, once, getEventListeners, clearAllEvents } from './core/events';
8
+ import { validator, validate, getValidator, getValidatorNames } from './form/validator';
9
+ import { signal, computed, effect, batch, isSignal, isComputed, unref, untrack } from './reactivity/signal';
10
+ import { useFetch, useCounter, useToggle, useLocalStorage, useInterval, useTimeout, useDebounce, useThrottle, useMouse, useWindowSize, useMediaQuery, useAsync } from './core/composables';
11
+ import { applyTransitionStyles, registerTransition, getTransitionConfig } from './core/transition';
12
+ import { onAfterNavigate, onBeforeNavigate, startRouter } from './core/router/router';
13
+ import { debounce, nextTick, ready, throttle } from './utils/helpers';
14
+ import { disposeEffects as cleanup } from './template/cleanup';
15
+ import { markRaw, shallow } from './core/reactive';
16
+ import { portalCreate, portalDestroy } from './core/portal';
17
+ import { setCspNonce } from './runtime/csp-nonce';
18
+ export type { ComponentContext, Computed, Directive, DirectiveBinding, HydrationStrategy, PipeFn, RevealOptions, Scope, ScopeDefinition, ScopeFactory, Signal, SignalOptions, ValidatorFn, WatchCallback, WatchOptions } from './types';
19
+ export type { TransitionConfig } from './core/transition';
20
+ export type { RouterOptions } from './core/router/router';
21
+ export type { ValidationContext } from './form/validator';
22
+ export type { CspNonceSource } from './runtime/csp-nonce';
23
+ export { scope, mount, mountAll, mountTree, cleanup, mountedScopes, markRaw, shallow, directive, pipe, provide, inject, getGlobalContainer, store, hasStore, removeStore, getStoreNames, on, emit, off, once, getEventListeners, clearAllEvents, validator, validate, getValidator, getValidatorNames, signal, computed, effect, batch, isSignal, isComputed, unref, untrack, registerTransition, getTransitionConfig, useFetch, useCounter, useToggle, useLocalStorage, useInterval, useTimeout, useDebounce, useThrottle, useMouse, useWindowSize, useMediaQuery, useAsync, nextTick, debounce, throttle, ready, applyDirective, applyTransitionStyles, startRouter, onBeforeNavigate, onAfterNavigate, portalCreate, portalDestroy, setCspNonce, };
24
+ declare const Gyos: {
25
+ scope: typeof scope;
26
+ mount: typeof mount;
27
+ mountAll: typeof mountAll;
28
+ mountTree: typeof mountTree;
29
+ cleanup: typeof cleanup;
30
+ mountedScopes: typeof mountedScopes;
31
+ markRaw: typeof markRaw;
32
+ shallow: typeof shallow;
33
+ directive: typeof directive;
34
+ pipe: typeof pipe;
35
+ provide: typeof provide;
36
+ inject: typeof inject;
37
+ getGlobalContainer: typeof getGlobalContainer;
38
+ store: typeof store;
39
+ hasStore: typeof hasStore;
40
+ removeStore: typeof removeStore;
41
+ getStoreNames: typeof getStoreNames;
42
+ on: typeof on;
43
+ emit: typeof emit;
44
+ off: typeof off;
45
+ once: typeof once;
46
+ getEventListeners: typeof getEventListeners;
47
+ clearAllEvents: typeof clearAllEvents;
48
+ validator: typeof validator;
49
+ validate: typeof validate;
50
+ getValidator: typeof getValidator;
51
+ getValidatorNames: typeof getValidatorNames;
52
+ signal: typeof signal;
53
+ computed: typeof computed;
54
+ effect: typeof effect;
55
+ batch: typeof batch;
56
+ isSignal: typeof isSignal;
57
+ isComputed: typeof isComputed;
58
+ unref: typeof unref;
59
+ untrack: typeof untrack;
60
+ registerTransition: typeof registerTransition;
61
+ getTransitionConfig: typeof getTransitionConfig;
62
+ useFetch: typeof useFetch;
63
+ useCounter: typeof useCounter;
64
+ useToggle: typeof useToggle;
65
+ useLocalStorage: typeof useLocalStorage;
66
+ useInterval: typeof useInterval;
67
+ useTimeout: typeof useTimeout;
68
+ useDebounce: typeof useDebounce;
69
+ useThrottle: typeof useThrottle;
70
+ useMouse: typeof useMouse;
71
+ useWindowSize: typeof useWindowSize;
72
+ useMediaQuery: typeof useMediaQuery;
73
+ useAsync: typeof useAsync;
74
+ nextTick: typeof nextTick;
75
+ debounce: typeof debounce;
76
+ throttle: typeof throttle;
77
+ ready: typeof ready;
78
+ applyDirective: typeof applyDirective;
79
+ applyTransitionStyles: typeof applyTransitionStyles;
80
+ startRouter: typeof startRouter;
81
+ onBeforeNavigate: typeof onBeforeNavigate;
82
+ onAfterNavigate: typeof onAfterNavigate;
83
+ portalCreate: typeof portalCreate;
84
+ portalDestroy: typeof portalDestroy;
85
+ setCspNonce: typeof setCspNonce;
86
+ version: string;
87
+ };
88
+ export default Gyos;
89
+ //# sourceMappingURL=public-api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAE,mBAAmB,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+DT,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { ExpressionRuntime } from './evaluator';
2
+ export declare const cspExpressionRuntime: ExpressionRuntime;
3
+ export declare const __cspEvaluatorTest: {
4
+ clearCache(): void;
5
+ cacheSize(): number;
6
+ };
7
+ //# sourceMappingURL=csp-evaluator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"csp-evaluator.d.ts","sourceRoot":"","sources":["../../src/runtime/csp-evaluator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAoSrD,eAAO,MAAM,oBAAoB,EAAE,iBA0DlC,CAAC;AAEF,eAAO,MAAM,kBAAkB;kBAChB,IAAI;iBAIL,MAAM;CAGnB,CAAC"}
@@ -0,0 +1,7 @@
1
+ export type CspNonceSource = string | (() => string | null | undefined);
2
+ /** Configure the active document nonce used for scripts and styles during MPA navigation. */
3
+ export declare function setCspNonce(source: CspNonceSource | undefined): void;
4
+ export declare function resolveCspNonce(): string | undefined;
5
+ /** Capture the nonce from the CSP auto bundle before DOMContentLoaded. */
6
+ export declare function captureCspNonce(script?: HTMLScriptElement | null): void;
7
+ //# sourceMappingURL=csp-nonce.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"csp-nonce.d.ts","sourceRoot":"","sources":["../../src/runtime/csp-nonce.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,CAAC,MAAM,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;AAIxE,6FAA6F;AAC7F,wBAAgB,WAAW,CAAC,MAAM,EAAE,cAAc,GAAG,SAAS,GAAG,IAAI,CAEpE;AAED,wBAAgB,eAAe,IAAI,MAAM,GAAG,SAAS,CAGpD;AAED,0EAA0E;AAC1E,wBAAgB,eAAe,CAAC,MAAM,GAAE,iBAAiB,GAAG,IAAW,GAAG,IAAI,CAW7E"}
@@ -0,0 +1,12 @@
1
+ import type { Scope } from '../types';
2
+ export interface ExpressionRuntime {
3
+ readonly mode: 'standard' | 'csp';
4
+ evaluate(expression: string, scope: any): any;
5
+ execute(expression: string, scope: any, event?: Event): any;
6
+ parseScope(expression: string): Scope | undefined;
7
+ createMethod(parameters: string[], body: string): (...args: any[]) => any;
8
+ }
9
+ export declare function setExpressionRuntime(runtime: ExpressionRuntime): void;
10
+ export declare function expressionRuntime(): ExpressionRuntime;
11
+ export declare function expressionRuntimeMode(): ExpressionRuntime['mode'];
12
+ //# sourceMappingURL=evaluator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evaluator.d.ts","sourceRoot":"","sources":["../../src/runtime/evaluator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,MAAM,WAAW,iBAAiB;IACjC,QAAQ,CAAC,IAAI,EAAE,UAAU,GAAG,KAAK,CAAC;IAClC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,GAAG,CAAC;IAC9C,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,CAAC,EAAE,KAAK,GAAG,GAAG,CAAC;IAC5D,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,CAAC;IAClD,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;CAC1E;AAID,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI,CAErE;AAED,wBAAgB,iBAAiB,IAAI,iBAAiB,CAKrD;AAED,wBAAgB,qBAAqB,IAAI,iBAAiB,CAAC,MAAM,CAAC,CAEjE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=install-csp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"install-csp.d.ts","sourceRoot":"","sources":["../../src/runtime/install-csp.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=install-standard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"install-standard.d.ts","sourceRoot":"","sources":["../../src/runtime/install-standard.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import type { ExpressionRuntime } from './evaluator';
2
+ export declare const standardExpressionRuntime: ExpressionRuntime;
3
+ //# sourceMappingURL=standard-evaluator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standard-evaluator.d.ts","sourceRoot":"","sources":["../../src/runtime/standard-evaluator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,eAAO,MAAM,yBAAyB,EAAE,iBAiCvC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/template/events.ts"],"names":[],"mappings":"AAqMA,wBAAgB,aAAa,CAAC,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI,CA0F/D"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/template/events.ts"],"names":[],"mappings":"AAuLA,wBAAgB,aAAa,CAAC,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI,CA0F/D"}
@@ -1 +1 @@
1
- {"version":3,"file":"expression.d.ts","sourceRoot":"","sources":["../../src/template/expression.ts"],"names":[],"mappings":"AAMA;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,MAAM,CAUhE;AAqCD;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAC9B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,GAAG,EACV,UAAU,GAAE,OAAc,GAC3B,GAAG,CAgBL"}
1
+ {"version":3,"file":"expression.d.ts","sourceRoot":"","sources":["../../src/template/expression.ts"],"names":[],"mappings":"AAOA;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,MAAM,CAUhE;AAqCD;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAC9B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,GAAG,EACV,UAAU,GAAE,OAAc,GAC3B,GAAG,CAgBL"}
@@ -3,7 +3,7 @@
3
3
  * Handles:
4
4
  * 1. Literal string: "fade" or "slide-down"
5
5
  * 2. Expression with {}: "{transition}"
6
- * 3. Expression without {}: "transition" (evaluate as variable)
6
+ * 3. Quoted literal kept for backwards compatibility: "'fade'"
7
7
  *
8
8
  * @param attrValue - The g-transition attribute value
9
9
  * @param scope - Current scope for expression evaluation
@@ -1 +1 @@
1
- {"version":3,"file":"transition-helpers.d.ts","sourceRoot":"","sources":["../../../src/template/structurals/transition-helpers.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,MAAM,CAqBzE;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAiBlH;AAED;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,WAAW,GAAG,WAAW,EAAE,CAkB3E;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,YAAY,GAAE,OAAc,GAAG,IAAI,CAarG;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,EAAE,cAAc,UAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,CAY/G;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,EAAE,aAAa,UAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAY7G"}
1
+ {"version":3,"file":"transition-helpers.d.ts","sourceRoot":"","sources":["../../../src/template/structurals/transition-helpers.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,MAAM,CAgBzE;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAiBlH;AAED;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,WAAW,GAAG,WAAW,EAAE,CAkB3E;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,YAAY,GAAE,OAAc,GAAG,IAAI,CAarG;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,EAAE,cAAc,UAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,CAY/G;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,EAAE,aAAa,UAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAY7G"}
@@ -1,7 +1,3 @@
1
- /**
2
- * Target Spinner Utility
3
- * Creates and manages inline spinner for target elements during navigation
4
- */
5
1
  /**
6
2
  * Show spinner in target element
7
3
  */
@@ -1 +1 @@
1
- {"version":3,"file":"target-spinner.d.ts","sourceRoot":"","sources":["../../src/utils/target-spinner.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAmDH;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,GAAG,WAAW,CAQpF;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,GAAG,IAAI,CAInE"}
1
+ {"version":3,"file":"target-spinner.d.ts","sourceRoot":"","sources":["../../src/utils/target-spinner.ts"],"names":[],"mappings":"AAuDA;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,GAAG,WAAW,CAQpF;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,GAAG,IAAI,CAInE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gyosjs",
3
- "version": "0.2.4",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "description": "Reactive HTML for server-rendered websites, with signals, template directives, and MPA boost navigation",
6
6
  "engines": {
@@ -17,20 +17,35 @@
17
17
  "import": "./dist/gyos.esm.js",
18
18
  "default": "./dist/gyos.esm.js"
19
19
  },
20
- "./auto": {
21
- "types": "./dist/index.d.ts",
22
- "import": "./dist/gyos.auto.esm.js",
23
- "default": "./dist/gyos.auto.esm.js"
24
- },
25
- "./package.json": "./package.json"
20
+ "./auto": {
21
+ "types": "./dist/index.d.ts",
22
+ "import": "./dist/gyos.auto.esm.js",
23
+ "default": "./dist/gyos.auto.esm.js"
24
+ },
25
+ "./csp": {
26
+ "types": "./dist/csp.d.ts",
27
+ "import": "./dist/gyos.csp.esm.js",
28
+ "default": "./dist/gyos.csp.esm.js"
29
+ },
30
+ "./csp/auto": {
31
+ "types": "./dist/csp-auto-init.d.ts",
32
+ "import": "./dist/gyos.csp.auto.esm.js",
33
+ "default": "./dist/gyos.csp.auto.esm.js"
34
+ },
35
+ "./styles.css": "./dist/gyos.css",
36
+ "./package.json": "./package.json"
26
37
  },
27
38
  "files": [
28
39
  "dist"
29
40
  ],
30
41
  "sideEffects": [
31
- "./dist/gyos.auto.js",
32
- "./dist/gyos.auto.min.js",
33
- "./dist/gyos.auto.esm.js"
42
+ "./dist/gyos.auto.js",
43
+ "./dist/gyos.auto.min.js",
44
+ "./dist/gyos.auto.esm.js",
45
+ "./dist/gyos.csp.auto.js",
46
+ "./dist/gyos.csp.auto.min.js",
47
+ "./dist/gyos.csp.auto.esm.js",
48
+ "./dist/gyos.css"
34
49
  ],
35
50
  "overrides": {
36
51
  "form-data": "4.0.6",
@@ -55,8 +70,9 @@
55
70
  "version:check": "node scripts/verify-release-version.mjs",
56
71
  "preview": "vite preview",
57
72
  "typecheck": "tsc --noEmit",
58
- "pack:check": "node scripts/verify-package.mjs",
59
- "check": "npm run docs:check && npm run typecheck && npm run test:unit && npm run pack:check",
73
+ "pack:check": "node scripts/verify-package.mjs",
74
+ "csp:check": "node scripts/verify-csp-build.mjs",
75
+ "check": "npm run docs:check && npm run typecheck && npm run test:unit && npm run pack:check && npm run csp:check",
60
76
  "release:check": "npm run check && npm run version:check && npm run test:e2e:all",
61
77
  "export:public": "node scripts/export-public-source.mjs",
62
78
  "sync:public": "node scripts/export-public-source.mjs --sync",
@@ -88,6 +104,7 @@
88
104
  "@playwright/test": "1.55.1",
89
105
  "@rollup/plugin-node-resolve": "^15.2.3",
90
106
  "@rollup/plugin-typescript": "^11.1.6",
107
+ "acorn": "^8.18.0",
91
108
  "jsdom": "^24.0.0",
92
109
  "rollup": "^4.62.4",
93
110
  "terser": "^5.49.0",