gyosjs 0.2.4 → 0.3.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/README.md +10 -6
- package/dist/auto-init.d.ts +1 -1
- package/dist/auto-init.d.ts.map +1 -1
- package/dist/core/component.d.ts.map +1 -1
- package/dist/core/router/script.d.ts.map +1 -1
- package/dist/core/transition.d.ts.map +1 -1
- package/dist/csp-auto-init.d.ts +3 -0
- package/dist/csp-auto-init.d.ts.map +1 -0
- package/dist/csp.d.ts +3 -0
- package/dist/csp.d.ts.map +1 -0
- package/dist/gyos.auto.esm.js +79 -46
- package/dist/gyos.auto.esm.js.map +1 -1
- package/dist/gyos.auto.js +79 -46
- package/dist/gyos.auto.js.map +1 -1
- package/dist/gyos.auto.min.js +2 -2
- package/dist/gyos.csp.auto.esm.js +14979 -0
- package/dist/gyos.csp.auto.esm.js.map +1 -0
- package/dist/gyos.csp.auto.js +14989 -0
- package/dist/gyos.csp.auto.js.map +1 -0
- package/dist/gyos.csp.auto.min.js +6 -0
- package/dist/gyos.csp.esm.js +14952 -0
- package/dist/gyos.csp.esm.js.map +1 -0
- package/dist/gyos.csp.js +15023 -0
- package/dist/gyos.csp.js.map +1 -0
- package/dist/gyos.csp.min.js +6 -0
- package/dist/gyos.css +73 -0
- package/dist/gyos.esm.js +81 -47
- package/dist/gyos.esm.js.map +1 -1
- package/dist/gyos.js +81 -46
- package/dist/gyos.js.map +1 -1
- package/dist/gyos.min.js +2 -2
- package/dist/index.d.ts +2 -85
- package/dist/index.d.ts.map +1 -1
- package/dist/public-api.d.ts +89 -0
- package/dist/public-api.d.ts.map +1 -0
- package/dist/runtime/csp-evaluator.d.ts +7 -0
- package/dist/runtime/csp-evaluator.d.ts.map +1 -0
- package/dist/runtime/csp-nonce.d.ts +7 -0
- package/dist/runtime/csp-nonce.d.ts.map +1 -0
- package/dist/runtime/evaluator.d.ts +12 -0
- package/dist/runtime/evaluator.d.ts.map +1 -0
- package/dist/runtime/install-csp.d.ts +2 -0
- package/dist/runtime/install-csp.d.ts.map +1 -0
- package/dist/runtime/install-standard.d.ts +2 -0
- package/dist/runtime/install-standard.d.ts.map +1 -0
- package/dist/runtime/standard-evaluator.d.ts +3 -0
- package/dist/runtime/standard-evaluator.d.ts.map +1 -0
- package/dist/template/events.d.ts.map +1 -1
- package/dist/template/expression.d.ts.map +1 -1
- package/dist/utils/target-spinner.d.ts +0 -4
- package/dist/utils/target-spinner.d.ts.map +1 -1
- 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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SAAS,EACT,eAAe,EACf,WAAW,EACX,UAAU,EACV,WAAW,EACX,WAAW,EACX,QAAQ,EACR,aAAa,EACb,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,cAAc,EACd,qBAAqB,EACrB,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,aAAa,EACb,WAAW,GACX,CAAC;AAGF,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+DT,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -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 nonce used when Gyos recreates scripts 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,kFAAkF;AAClF,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 @@
|
|
|
1
|
+
{"version":3,"file":"install-csp.d.ts","sourceRoot":"","sources":["../../src/runtime/install-csp.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"install-standard.d.ts","sourceRoot":"","sources":["../../src/runtime/install-standard.ts"],"names":[],"mappings":""}
|
|
@@ -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":"
|
|
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":"
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"target-spinner.d.ts","sourceRoot":"","sources":["../../src/utils/target-spinner.ts"],"names":[],"mappings":"
|
|
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.
|
|
3
|
+
"version": "0.3.0",
|
|
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
|
-
"./
|
|
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": "
|
|
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",
|