tungsten 0.1.68 → 0.1.69
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/Components.d.ts +1 -1
- package/dist/Components.d.ts.map +1 -1
- package/dist/Components.js +4 -2
- package/dist/ContentNode.d.ts +2 -0
- package/dist/ContentNode.d.ts.map +1 -1
- package/dist/ContentNode.js +6 -0
- package/dist/Framework.d.ts.map +1 -1
- package/dist/Framework.js +9 -1
- package/dist/FrameworkConfig.d.ts.map +1 -1
- package/dist/Instance/Instance.d.ts.map +1 -1
- package/dist/Instance/Instance.js +9 -0
- package/dist/Servers/DevServer.d.ts.map +1 -1
- package/dist/Servers/DevServer.js +9 -8
- package/dist/Servers/ProdServer.d.ts.map +1 -1
- package/dist/Servers/ProdServer.js +28 -1
- package/dist/Servers/TungstenServer.d.ts +3 -0
- package/dist/Servers/TungstenServer.d.ts.map +1 -1
- package/dist/Servers/TungstenServer.js +32 -1
- package/dist/Servers/loadEnvsDev.d.ts.map +1 -1
- package/dist/Servers/loadEnvsDev.js +5 -5
- package/dist/TungstenApp.d.ts +24 -0
- package/dist/TungstenApp.d.ts.map +1 -1
- package/dist/TungstenApp.js +86 -76
- package/dist/TungstenAppOld.d.ts +2 -0
- package/dist/TungstenAppOld.d.ts.map +1 -0
- package/dist/TungstenAppOld.js +76 -0
- package/dist/cliOutput.d.ts +2 -0
- package/dist/cliOutput.d.ts.map +1 -1
- package/dist/cliOutput.js +6 -0
- package/dist/componentProxyHandlers.d.ts +1 -0
- package/dist/componentProxyHandlers.d.ts.map +1 -1
- package/dist/componentProxyHandlers.js +53 -33
- package/dist/components/RedirectComponent.d.ts +12 -0
- package/dist/components/RedirectComponent.d.ts.map +1 -0
- package/dist/components/RedirectComponent.js +15 -0
- package/dist/defaultConfig.d.ts.map +1 -1
- package/dist/defaultConfig.js +1 -0
- package/dist/env/Interfaces.d.ts +1 -0
- package/dist/env/Interfaces.d.ts.map +1 -1
- package/dist/{getEnvSchemas.d.ts → env/getEnvSchemas.d.ts} +2 -2
- package/dist/env/getEnvSchemas.d.ts.map +1 -0
- package/dist/{getEnvSchemas.js → env/getEnvSchemas.js} +4 -2
- package/dist/env/privateEnv.d.ts.map +1 -1
- package/dist/env/privateEnv.js +3 -1
- package/dist/env/setPrivateEnvValidator.d.ts +8 -0
- package/dist/env/setPrivateEnvValidator.d.ts.map +1 -0
- package/dist/env/setPrivateEnvValidator.js +4 -0
- package/dist/env/setPublicEnvValidator.d.ts +8 -0
- package/dist/env/setPublicEnvValidator.d.ts.map +1 -0
- package/dist/env/setPublicEnvValidator.js +4 -0
- package/dist/indexInner.d.ts +2 -1
- package/dist/indexInner.d.ts.map +1 -1
- package/dist/indexInner.js +2 -1
- package/dist/routing/RouteDataFunction.type.d.ts.map +1 -1
- package/dist/routing/RouteDataReturnType.d.ts.map +1 -1
- package/dist/update/integrateUpdateVdom.js +6 -6
- package/package.json +2 -2
- package/dist/getEnvSchemas.d.ts.map +0 -1
package/dist/TungstenApp.js
CHANGED
|
@@ -1,76 +1,86 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
//
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
//
|
|
39
|
-
|
|
40
|
-
//
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
//
|
|
45
|
-
//
|
|
46
|
-
//
|
|
47
|
-
|
|
48
|
-
//
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
//
|
|
58
|
-
//
|
|
59
|
-
//
|
|
60
|
-
//
|
|
61
|
-
//
|
|
62
|
-
//
|
|
63
|
-
//
|
|
64
|
-
//
|
|
65
|
-
//
|
|
66
|
-
//
|
|
67
|
-
//
|
|
68
|
-
//
|
|
69
|
-
//
|
|
70
|
-
//
|
|
71
|
-
//
|
|
72
|
-
//
|
|
73
|
-
//
|
|
74
|
-
//
|
|
75
|
-
//
|
|
76
|
-
// }
|
|
1
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
2
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
|
+
/// WIP
|
|
5
|
+
import { cliLog } from "./cliOutput.js";
|
|
6
|
+
import { Framework } from "./Framework.js";
|
|
7
|
+
import { throwError } from "./throwError.js";
|
|
8
|
+
export class TungstenApp {
|
|
9
|
+
constructor(options) {
|
|
10
|
+
_defineProperty(this, "rootComponent", void 0);
|
|
11
|
+
_defineProperty(this, "appRoutes", void 0);
|
|
12
|
+
_defineProperty(this, "privateEnvValidator", void 0);
|
|
13
|
+
_defineProperty(this, "publicEnvValidator", void 0);
|
|
14
|
+
_defineProperty(this, "setRootComponent", rootComponent => {
|
|
15
|
+
this.rootComponent = rootComponent;
|
|
16
|
+
});
|
|
17
|
+
_defineProperty(this, "setRoutes", routes => {
|
|
18
|
+
this.appRoutes = routes;
|
|
19
|
+
});
|
|
20
|
+
_defineProperty(this, "setPrivateEnvValidator", privateEnvValidator => {
|
|
21
|
+
this.privateEnvValidator = privateEnvValidator;
|
|
22
|
+
});
|
|
23
|
+
_defineProperty(this, "setPublicEnvValidator", publicEnvValidator => {
|
|
24
|
+
this.publicEnvValidator = publicEnvValidator;
|
|
25
|
+
});
|
|
26
|
+
_defineProperty(this, "start", async ({
|
|
27
|
+
dev = false
|
|
28
|
+
}) => {
|
|
29
|
+
if (dev) cliLog('Starting Tungsten in Development mode');else cliLog('Starting Tungsten in Production mode');
|
|
30
|
+
if (this.rootComponent === undefined) throwError('TungstenApp', 'No root component set.' + ' You must set a root component in the option objects of the TungstenApp constructor, ' + ' or by calling set tungstenApp.setRootComponent()');
|
|
31
|
+
if (this.appRoutes === undefined) throwError('TungstenApp', 'No routes set.' + ' You must set your application routes in the options object of the TungstenApp constructor, ' + ' or by calling set tungstenApp.setRoutes()');
|
|
32
|
+
if (this.rootComponent === undefined) throwError('TungstenApp', 'No Private Env Validator set.' + ' You must set a private env validator in the options object of the TungstenApp constructor, ' + ' or by calling set tungstenApp.setPrivateEnvValidator()');
|
|
33
|
+
if (this.rootComponent === undefined) throwError('TungstenApp', 'No Public Env Validator set.' + ' You must set a public env validator in the options object of the TungstenApp constructor, ' + ' or by calling set tungstenApp.setPublicEnvValidator()');
|
|
34
|
+
// start stuff
|
|
35
|
+
const framework = new Framework();
|
|
36
|
+
await framework.init();
|
|
37
|
+
if (dev) {
|
|
38
|
+
// build for dev
|
|
39
|
+
await framework.clean('dev');
|
|
40
|
+
//cliOut('cleaned')
|
|
41
|
+
await framework.build('dev');
|
|
42
|
+
}
|
|
43
|
+
if (dev) {
|
|
44
|
+
// const devServer = await sxyFramework.createDevServer()
|
|
45
|
+
// //cliOut('Dev server ready')
|
|
46
|
+
// const devServerLocation = await devServer.start()
|
|
47
|
+
}
|
|
48
|
+
// const prodServer = await framework.createProdServer()
|
|
49
|
+
});
|
|
50
|
+
this.rootComponent = options.rootComponent;
|
|
51
|
+
this.appRoutes = options.routes;
|
|
52
|
+
this.privateEnvValidator = options.privateEnvValidator;
|
|
53
|
+
this.publicEnvValidator = options.publicEnvValidator;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
/// DEV
|
|
57
|
+
// import open from 'open'
|
|
58
|
+
// import { cliOut } from '../../cliOutput.js'
|
|
59
|
+
// import { Framework } from '../../Framework.js'
|
|
60
|
+
// import dotenv from 'dotenv'
|
|
61
|
+
// dotenv.config({ path: '.private.env' })
|
|
62
|
+
// cliOut(`Starting dev mode`)
|
|
63
|
+
// //// prep the app
|
|
64
|
+
// const sxyFramework = new Framework
|
|
65
|
+
// await sxyFramework.init()
|
|
66
|
+
// // build for dev
|
|
67
|
+
// await sxyFramework.clean('dev')
|
|
68
|
+
// //cliOut('cleaned')
|
|
69
|
+
// await sxyFramework.build('dev')
|
|
70
|
+
// // start a dev server
|
|
71
|
+
// const devServer = await sxyFramework.createDevServer()
|
|
72
|
+
// //cliOut('Dev server ready')
|
|
73
|
+
// const devServerLocation = await devServer.start()
|
|
74
|
+
// cliOut('Booting to the dev site in your browser')
|
|
75
|
+
// open(devServerLocation)
|
|
76
|
+
// export {}
|
|
77
|
+
/// PROD
|
|
78
|
+
// import { Framework } from '../../Framework.js'
|
|
79
|
+
// import dotenv from 'dotenv'
|
|
80
|
+
// dotenv.config({ path: '.private.env' })
|
|
81
|
+
// console.log('tungsten start')
|
|
82
|
+
// //// prep the framework
|
|
83
|
+
// const framework = new Framework
|
|
84
|
+
// await framework.init()
|
|
85
|
+
// const prodServer = await framework.createProdServer()
|
|
86
|
+
// export {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TungstenAppOld.d.ts","sourceRoot":"","sources":["../src/TungstenAppOld.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
///// I think this is just a dev project, unused
|
|
2
|
+
export {};
|
|
3
|
+
// import {
|
|
4
|
+
// ComponentStore, ConstructPackage,
|
|
5
|
+
// TungstenBaseComponentType, TungstenBaseStatefulStoreComponent,
|
|
6
|
+
// TungstenComponentPropsBase, TungstenComponentStateConstraint,
|
|
7
|
+
// TungstenSimpleComponent, TungstenStatefulComponent
|
|
8
|
+
// } from './Components.jsx'
|
|
9
|
+
// import { TungstenBaseSimpleStoreComponent } from './Components.jsx'
|
|
10
|
+
// import { AppRoutes as TungstenAppRoutes } from './routing/AppRoutes.js'
|
|
11
|
+
// import { registerStore } from './Store/registerStore.js'
|
|
12
|
+
// import { StoreSchemaClass } from './Store/StoreSchemaClass.js'
|
|
13
|
+
// // export class TungstenApp<
|
|
14
|
+
// // AppRoutes extends TungstenAppRoutes,
|
|
15
|
+
// // > {
|
|
16
|
+
// // constructor(
|
|
17
|
+
// // rootComponent: TungstenBaseComponentType<any, any>,
|
|
18
|
+
// // routes: AppRoutes,
|
|
19
|
+
// // ) {
|
|
20
|
+
// // }
|
|
21
|
+
// // }
|
|
22
|
+
// export class TungstenAppWithStore<
|
|
23
|
+
// AppRoutes extends TungstenAppRoutes,
|
|
24
|
+
// StoreSchema extends object
|
|
25
|
+
// > {
|
|
26
|
+
// SimpleComponent: abstract new <
|
|
27
|
+
// Props extends TungstenComponentPropsBase = object,
|
|
28
|
+
// RouteData = undefined
|
|
29
|
+
// >(pkg: ConstructPackage<Props, RouteData>) => void
|
|
30
|
+
// StatefulComponent: abstract new <
|
|
31
|
+
// Props extends TungstenComponentPropsBase = object,
|
|
32
|
+
// RouteData = undefined
|
|
33
|
+
// >(pkg: ConstructPackage<Props, RouteData>) => void
|
|
34
|
+
// SimpleStoreComponent: abstract new <
|
|
35
|
+
// Props extends TungstenComponentPropsBase = object,
|
|
36
|
+
// RouteData = undefined
|
|
37
|
+
// >(pkg: ConstructPackage<Props, RouteData>) => void
|
|
38
|
+
// StatefulStoreComponent: abstract new <
|
|
39
|
+
// Props extends TungstenComponentPropsBase = object,
|
|
40
|
+
// RouteData = undefined
|
|
41
|
+
// >(pkg: ConstructPackage<Props, RouteData>) => void
|
|
42
|
+
// constructor(
|
|
43
|
+
// rootComponent: TungstenBaseComponentType<any, any>,
|
|
44
|
+
// routes: AppRoutes,
|
|
45
|
+
// StoreSchema: StoreSchemaClass<StoreSchema>
|
|
46
|
+
// ) {
|
|
47
|
+
// //cliInfo('Creating Tungsten App')
|
|
48
|
+
// abstract class SimpleComponent<
|
|
49
|
+
// Props extends TungstenComponentPropsBase = object,
|
|
50
|
+
// RouteData = undefined
|
|
51
|
+
// > extends TungstenSimpleComponent<Props, RouteData> {}
|
|
52
|
+
// this.SimpleComponent = SimpleComponent
|
|
53
|
+
// abstract class StatefulComponent<
|
|
54
|
+
// Props extends TungstenComponentPropsBase,
|
|
55
|
+
// State extends TungstenComponentStateConstraint,
|
|
56
|
+
// RouteData = undefined
|
|
57
|
+
// > extends TungstenStatefulComponent<Props, State, RouteData> { }
|
|
58
|
+
// this.StatefulComponent = StatefulComponent
|
|
59
|
+
// const { getComponentStore } = registerStore(StoreSchema)
|
|
60
|
+
// abstract class SimpleStoreComponent<
|
|
61
|
+
// Props extends TungstenComponentPropsBase = object,
|
|
62
|
+
// RouteData = undefined
|
|
63
|
+
// > extends TungstenBaseSimpleStoreComponent<Props, RouteData, StoreSchema> {
|
|
64
|
+
// store = getComponentStore(this)
|
|
65
|
+
// }
|
|
66
|
+
// this.SimpleStoreComponent = SimpleStoreComponent
|
|
67
|
+
// abstract class StatefulStoreComponent<
|
|
68
|
+
// Props extends TungstenComponentPropsBase,
|
|
69
|
+
// State extends TungstenComponentStateConstraint,
|
|
70
|
+
// RouteData = undefined
|
|
71
|
+
// > extends TungstenBaseStatefulStoreComponent<Props, State, RouteData, StoreSchema> {
|
|
72
|
+
// store = getComponentStore(this)
|
|
73
|
+
// }
|
|
74
|
+
// this.StatefulStoreComponent = StatefulStoreComponent
|
|
75
|
+
// }
|
|
76
|
+
// }
|
package/dist/cliOutput.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export declare function cliOut(...texts: unknown[]): void;
|
|
2
2
|
export declare function cliNote(...texts: unknown[]): void;
|
|
3
3
|
export declare function cliLog(...texts: unknown[]): void;
|
|
4
|
+
export declare function cliDebug(...texts: unknown[]): void;
|
|
4
5
|
export declare function cliInfo(...texts: unknown[]): void;
|
|
5
6
|
export declare function cliNews(...texts: unknown[]): void;
|
|
6
7
|
export declare function cliAlert(...texts: unknown[]): void;
|
|
7
8
|
export declare function cliWarn(...texts: unknown[]): void;
|
|
8
9
|
export declare function cliError(...texts: unknown[]): void;
|
|
10
|
+
export declare function cliTodo(...texts: unknown[]): void;
|
|
9
11
|
//# sourceMappingURL=cliOutput.d.ts.map
|
package/dist/cliOutput.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cliOutput.d.ts","sourceRoot":"","sources":["../src/cliOutput.ts"],"names":[],"mappings":"AAMA,wBAAgB,MAAM,CAAC,GAAG,KAAK,EAAE,OAAO,EAAE,QAGzC;AAGD,wBAAgB,OAAO,CAAC,GAAG,KAAK,EAAE,OAAO,EAAE,QAE1C;AACD,wBAAgB,MAAM,CAAC,GAAG,KAAK,EAAE,OAAO,EAAE,QAEzC;AACD,wBAAgB,OAAO,CAAC,GAAG,KAAK,EAAE,OAAO,EAAE,QAE1C;AACD,wBAAgB,OAAO,CAAC,GAAG,KAAK,EAAE,OAAO,EAAE,QAE1C;AACD,wBAAgB,QAAQ,CAAC,GAAG,KAAK,EAAE,OAAO,EAAE,QAE3C;AACD,wBAAgB,OAAO,CAAC,GAAG,KAAK,EAAE,OAAO,EAAE,QAE1C;AACD,wBAAgB,QAAQ,CAAC,GAAG,KAAK,EAAE,OAAO,EAAE,QAE3C"}
|
|
1
|
+
{"version":3,"file":"cliOutput.d.ts","sourceRoot":"","sources":["../src/cliOutput.ts"],"names":[],"mappings":"AAMA,wBAAgB,MAAM,CAAC,GAAG,KAAK,EAAE,OAAO,EAAE,QAGzC;AAGD,wBAAgB,OAAO,CAAC,GAAG,KAAK,EAAE,OAAO,EAAE,QAE1C;AACD,wBAAgB,MAAM,CAAC,GAAG,KAAK,EAAE,OAAO,EAAE,QAEzC;AACD,wBAAgB,QAAQ,CAAC,GAAG,KAAK,EAAE,OAAO,EAAE,QAE3C;AACD,wBAAgB,OAAO,CAAC,GAAG,KAAK,EAAE,OAAO,EAAE,QAE1C;AACD,wBAAgB,OAAO,CAAC,GAAG,KAAK,EAAE,OAAO,EAAE,QAE1C;AACD,wBAAgB,QAAQ,CAAC,GAAG,KAAK,EAAE,OAAO,EAAE,QAE3C;AACD,wBAAgB,OAAO,CAAC,GAAG,KAAK,EAAE,OAAO,EAAE,QAE1C;AACD,wBAAgB,QAAQ,CAAC,GAAG,KAAK,EAAE,OAAO,EAAE,QAE3C;AACD,wBAAgB,OAAO,CAAC,GAAG,KAAK,EAAE,OAAO,EAAE,QAE1C"}
|
package/dist/cliOutput.js
CHANGED
|
@@ -12,6 +12,9 @@ export function cliNote(...texts) {
|
|
|
12
12
|
export function cliLog(...texts) {
|
|
13
13
|
console.log(...texts);
|
|
14
14
|
}
|
|
15
|
+
export function cliDebug(...texts) {
|
|
16
|
+
console.log('Debug:', ...texts);
|
|
17
|
+
}
|
|
15
18
|
export function cliInfo(...texts) {
|
|
16
19
|
console.log(...texts.map(t => chalk.brightblue(t)));
|
|
17
20
|
}
|
|
@@ -26,4 +29,7 @@ export function cliWarn(...texts) {
|
|
|
26
29
|
}
|
|
27
30
|
export function cliError(...texts) {
|
|
28
31
|
console.log(...texts.map(t => chalk.brightred(t)));
|
|
32
|
+
}
|
|
33
|
+
export function cliTodo(...texts) {
|
|
34
|
+
console.log(...['ToDo:', ...texts].map(t => chalk.yellow(t)));
|
|
29
35
|
}
|
|
@@ -19,6 +19,7 @@ export declare const getStateArrayProxyHandler: (element: StatefulComponentAny)
|
|
|
19
19
|
get: (arr: unknown[], key: string | symbol) => any;
|
|
20
20
|
set: (arr: unknown[], key: string | symbol, value: unknown) => boolean;
|
|
21
21
|
has(arr: unknown[], key: string | symbol): boolean;
|
|
22
|
+
deleteProperty(arr: unknown[], key: string | symbol): boolean;
|
|
22
23
|
};
|
|
23
24
|
export declare const getStateMapProxyHandler: (element: StatefulComponentAny) => {
|
|
24
25
|
get: (map: Map<unknown, unknown>, key: string | symbol) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"componentProxyHandlers.d.ts","sourceRoot":"","sources":["../src/componentProxyHandlers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAS/E,KAAK,0BAA0B,CAAC,KAAK,SAAS,MAAM,IAC9C,yBAAyB,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,CAAC,GAC1C,iBAAiB,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,CAAC,CAAA;AAExC,KAAK,oBAAoB,GAAG,yBAAyB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,iBAAiB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAA;AAEvG,eAAO,MAAM,SAAS,eAAqB,CAAA;AAC3C,eAAO,MAAM,UAAU,eAAsB,CAAA;AAE7C,eAAO,MAAM,oBAAoB,GAAI,KAAK,SAAS,MAAM,EACxD,SAAS,0BAA0B,CAAC,KAAK,CAAC;eAC5B,KAAK,OAAO,MAAM,GAAG,MAAM;eAQ3B,KAAK,OAAO,MAAM,GAAG,MAAM,SAAS,OAAO;0BAmChC,KAAK,OAAO,MAAM,GAAG,MAAM;aAOxC,KAAK,OAAO,MAAM,GAAG,MAAM;CAItC,CAAA;AAGF,eAAO,MAAM,0BAA0B,GAAI,CAAC,SAAS,MAAM,EAAE,SAAS,oBAAoB;eAC3E,CAAC,OAAO,MAAM,GAAG,MAAM;eAKvB,CAAC,OAAO,MAAM,GAAG,MAAM,SAAS,OAAO;0BAkC5B,CAAC,OAAO,MAAM,GAAG,MAAM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AM,GAAG,MAAM;eA7B5B,OAAO,EAAE,OAAO,MAAM,GAAG,MAAM,SAAS,OAAO;aAgEpD,OAAO,EAAE,OAAO,MAAM,GAAG,MAAM;wBAIpB,OAAO,EAAE,OAAO,MAAM,GAAG,MAAM;CAU1D,CAAA;AAID,eAAO,MAAM,uBAAuB,GAAI,SAAS,oBAAoB;eACtD,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,MAAM,GAAG,MAAM;aA+C7C,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,MAAM,GAAG,MAAM;CAItD,CAAA;AAIF,eAAO,MAAM,uBAAuB,GAAI,SAAS,oBAAoB;eACtD,GAAG,CAAC,OAAO,CAAC,OAAO,MAAM,GAAG,MAAM;aA0CpC,GAAG,CAAC,OAAO,CAAC,OAAO,MAAM,GAAG,MAAM;CAI7C,CAAA;AAgCF,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,MAAM,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,EAAE,CAAC,GAAG,IAAI,CAkCnG;AAED,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,OAAO,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI,CAkCpG"}
|
|
@@ -114,31 +114,8 @@ export const getStateObjectProxyHandler = element => ({
|
|
|
114
114
|
}
|
|
115
115
|
});
|
|
116
116
|
// intercept calls to array prototype funcs that mutate the array, to trigger an update
|
|
117
|
-
export const getStateArrayProxyHandler = element =>
|
|
118
|
-
|
|
119
|
-
//console.log('arr key', typeof key)
|
|
120
|
-
if (key === $original) return arr; // return the internal object if requested
|
|
121
|
-
// owner?
|
|
122
|
-
if (key === $ownerName) return element.constructor.name;
|
|
123
|
-
if (typeof key === 'string') {
|
|
124
|
-
if (key === '__original') return arr; // return the internal object if requested
|
|
125
|
-
if (KeyIsArrayMutatingFunction(key)) {
|
|
126
|
-
//console.log('yeah go')
|
|
127
|
-
return (...args) => {
|
|
128
|
-
arr[key](
|
|
129
|
-
// @ts-ignore -- don't wanna deal with args compatibility
|
|
130
|
-
...args);
|
|
131
|
-
// reactivity
|
|
132
|
-
//const varKey = key
|
|
133
|
-
//this.__reactiveUpdate(varKey)
|
|
134
|
-
if (element.__initialized) element.__stateUpdated();
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
// @ts-ignore // TS doesn't like us accessing array by string key
|
|
139
|
-
return arr[key];
|
|
140
|
-
},
|
|
141
|
-
set: (arr, key, value) => {
|
|
117
|
+
export const getStateArrayProxyHandler = element => {
|
|
118
|
+
const set = (arr, key, value) => {
|
|
142
119
|
//console.log('set in proxied array', arr, key)
|
|
143
120
|
//if (typeof key === 'string') {
|
|
144
121
|
if (Array.isArray(value)) {
|
|
@@ -157,8 +134,7 @@ export const getStateArrayProxyHandler = element => ({
|
|
|
157
134
|
//= new Proxy(value, getStateObjectProxyHandler) // if an plan object was set, proxy it too. If an object has a class other than Object, we'll leave it alone
|
|
158
135
|
= proxyObject(value, element);
|
|
159
136
|
} else {
|
|
160
|
-
|
|
161
|
-
arr[key] = value;
|
|
137
|
+
arr[key] = value; // eslint-disable-line no-type-assertion/no-type-assertion
|
|
162
138
|
}
|
|
163
139
|
// reactivity
|
|
164
140
|
//const varKey = key
|
|
@@ -166,12 +142,56 @@ export const getStateArrayProxyHandler = element => ({
|
|
|
166
142
|
//this.__reactiveUpdate(String(varKey))
|
|
167
143
|
if (element.__initialized) element.__stateUpdated();
|
|
168
144
|
return true;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
145
|
+
};
|
|
146
|
+
return {
|
|
147
|
+
get: (arr, key) => {
|
|
148
|
+
//console.log('arr key', typeof key)
|
|
149
|
+
if (key === $original) return arr; // return the internal object if requested
|
|
150
|
+
// owner?
|
|
151
|
+
if (key === $ownerName) return element.constructor.name;
|
|
152
|
+
if (typeof key === 'string') {
|
|
153
|
+
if (key === '__original') return arr; // return the internal object if requested
|
|
154
|
+
else if (key === 'push') return (...values) => {
|
|
155
|
+
let index = arr.length;
|
|
156
|
+
for (const v of values) {
|
|
157
|
+
// this should trigger updates
|
|
158
|
+
//arr[index] = v
|
|
159
|
+
set(arr, index.toString(), v);
|
|
160
|
+
index++;
|
|
161
|
+
}
|
|
162
|
+
return index;
|
|
163
|
+
};else if (KeyIsArrayMutatingFunction(key)) {
|
|
164
|
+
//console.log('yeah go')
|
|
165
|
+
return (...args) => {
|
|
166
|
+
arr[key](
|
|
167
|
+
// @ts-ignore -- don't wanna deal with args compatibility
|
|
168
|
+
...args);
|
|
169
|
+
// reactivity
|
|
170
|
+
//const varKey = key
|
|
171
|
+
//this.__reactiveUpdate(varKey)
|
|
172
|
+
if (element.__initialized) element.__stateUpdated();
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
// @ts-ignore // TS doesn't like us accessing array by string key
|
|
177
|
+
return arr[key];
|
|
178
|
+
},
|
|
179
|
+
set,
|
|
180
|
+
has(arr, key) {
|
|
181
|
+
if (key === $original || key === $ownerName) return true;
|
|
182
|
+
return key in arr;
|
|
183
|
+
},
|
|
184
|
+
deleteProperty(arr, key) {
|
|
185
|
+
//console.log('proxy delete')
|
|
186
|
+
const res = delete arr[key]; // eslint-disable-line no-type-assertion/no-type-assertion
|
|
187
|
+
if (element.__initialized) {
|
|
188
|
+
//console.log('proxy delete update')
|
|
189
|
+
element.__stateUpdated();
|
|
190
|
+
}
|
|
191
|
+
return res;
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
};
|
|
175
195
|
// intercept calls to array prototype funcs that mutate the array, to trigger an update
|
|
176
196
|
export const getStateMapProxyHandler = element => ({
|
|
177
197
|
get: (map, key) => {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TungstenSimpleComponent } from '../Components.jsx';
|
|
2
|
+
import type { Path } from '../routing/RouteTypes.js';
|
|
3
|
+
import type { RedirectCode } from '../routing/RoutingRedirect.js';
|
|
4
|
+
export type RedirectComponentProps = {
|
|
5
|
+
to: Path;
|
|
6
|
+
code?: RedirectCode;
|
|
7
|
+
};
|
|
8
|
+
export declare class RedirectComponent extends TungstenSimpleComponent<RedirectComponentProps> {
|
|
9
|
+
static __tungstenRedirect: boolean;
|
|
10
|
+
content: () => "This should redirect - if you see this, redirection didn't work" | null;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=RedirectComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RedirectComponent.d.ts","sourceRoot":"","sources":["../../src/components/RedirectComponent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAEjE,MAAM,MAAM,sBAAsB,GAAG;IACjC,EAAE,EAAE,IAAI,CAAA;IACR,IAAI,CAAC,EAAE,YAAY,CAAA;CACtB,CAAA;AACD,qBAAa,iBAAkB,SAAQ,uBAAuB,CAAC,sBAAsB,CAAC;IAClF,MAAM,CAAC,kBAAkB,UAAO;IAIhC,OAAO,iFAEG;CACb"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
2
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
|
+
import { isDev } from 'tungsten/isDev.js';
|
|
5
|
+
import { TungstenSimpleComponent } from "../Components.js";
|
|
6
|
+
export class RedirectComponent extends TungstenSimpleComponent {
|
|
7
|
+
constructor(...args) {
|
|
8
|
+
super(...args);
|
|
9
|
+
//__tungstenComponentType = 'redirect' as const
|
|
10
|
+
//to = this.props.to
|
|
11
|
+
//code = this.props.code
|
|
12
|
+
_defineProperty(this, "content", () => isDev ? 'This should redirect - if you see this, redirection didn\'t work' : null);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
_defineProperty(RedirectComponent, "__tungstenRedirect", true);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultConfig.d.ts","sourceRoot":"","sources":["../src/defaultConfig.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"defaultConfig.d.ts","sourceRoot":"","sources":["../src/defaultConfig.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;CAmBS,CAAA;AAEnC,MAAM,MAAM,sBAAsB,GAAG,OAAO,aAAa,CAAA"}
|
package/dist/defaultConfig.js
CHANGED
package/dist/env/Interfaces.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Interfaces.d.ts","sourceRoot":"","sources":["../../src/env/Interfaces.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Interfaces.d.ts","sourceRoot":"","sources":["../../src/env/Interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,kBAAkB;QACxB,oBAAoB,EAAE,MAAM,CAAA;QAC5B,KAAK,CAAC,EAAE,OAAO,CAAA;KAClB;IACD,MAAM,WAAW,iBAAiB;KAAG;CACxC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Load } from 'sxy-loader';
|
|
2
|
-
import type { FrameworkConfigComplete } from '
|
|
2
|
+
import type { FrameworkConfigComplete } from '../FrameworkConfig.js';
|
|
3
3
|
import { ZodType } from 'zod';
|
|
4
|
-
import { TungstenEnv } from './
|
|
4
|
+
import { TungstenEnv } from './types.js';
|
|
5
5
|
export type EnvSchemas = {
|
|
6
6
|
privateEnvSchema?: ZodType<TungstenEnv & TungstenPrivateEnv>;
|
|
7
7
|
publicEnvSchema?: ZodType<TungstenEnv>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEnvSchemas.d.ts","sourceRoot":"","sources":["../../src/env/getEnvSchemas.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAA;AACtC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAA;AAEpE,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,CAAA;AAG7B,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAExC,MAAM,MAAM,UAAU,GAAG;IACrB,gBAAgB,CAAC,EAAE,OAAO,CAAC,WAAW,GAAG,kBAAkB,CAAC,CAAC;IAC7D,eAAe,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;CAC1C,CAAA;AAGD,wBAAsB,aAAa,CAAC,MAAM,EAAE,uBAAuB,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AACjH,wBAAsB,aAAa,CAAC,MAAM,EAAE,uBAAuB,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AA8DpH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,uBAAuB,EAAE,IAAI,EAAE,IAAI,uBAE3E"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { join } from 'path';
|
|
2
|
-
import { fixExtension } from "
|
|
3
|
-
import { throwError } from "
|
|
2
|
+
import { fixExtension } from "../fixExtension.js";
|
|
3
|
+
import { throwError } from "../throwError.js";
|
|
4
4
|
export async function getEnvSchemas(config, load = null, dev = false) {
|
|
5
5
|
const {
|
|
6
6
|
envSchemasLocation
|
|
@@ -18,6 +18,8 @@ export async function getEnvSchemas(config, load = null, dev = false) {
|
|
|
18
18
|
module = await import(fullFilePath);
|
|
19
19
|
}
|
|
20
20
|
const envSchemas = {};
|
|
21
|
+
/// TODO: replace schemas with validator functions?
|
|
22
|
+
// validatePrivateEnv and validatePublicEnv?
|
|
21
23
|
if ('privateEnvSchema' in module) {
|
|
22
24
|
const schema = module.privateEnvSchema;
|
|
23
25
|
//console.log('private schema', typeof schema, schema.name, schema.constructor.name, schema)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"privateEnv.d.ts","sourceRoot":"","sources":["../../src/env/privateEnv.ts"],"names":[],"mappings":"AAIA,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,kBAAkB,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"privateEnv.d.ts","sourceRoot":"","sources":["../../src/env/privateEnv.ts"],"names":[],"mappings":"AAIA,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,kBAAkB,GAAG,OAAO,CAMjE"}
|
package/dist/env/privateEnv.js
CHANGED
|
@@ -2,6 +2,8 @@ import { isClient } from "../isClient.js";
|
|
|
2
2
|
import { throwError } from "../throwError.js";
|
|
3
3
|
export function privateEnv(key) {
|
|
4
4
|
if (isClient) throw new Error('Error, tried to access privateEnv from client');
|
|
5
|
-
if (tungstenPrivateEnv === undefined)
|
|
5
|
+
if (tungstenPrivateEnv === undefined) {
|
|
6
|
+
throwError('publicEnv', 'Tungsten Private Env is undefined - do you have a .env or .private.env file?');
|
|
7
|
+
}
|
|
6
8
|
return tungstenPrivateEnv[key];
|
|
7
9
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ZodObject } from 'zod';
|
|
2
|
+
export type TungstenPrivateEnvValidatorFunction = () => TungstenPrivateEnv;
|
|
3
|
+
export type TungstenPrivateEnvValidator = TungstenPrivateEnvValidatorFunction | ZodObject<any>;
|
|
4
|
+
declare global {
|
|
5
|
+
var __tungstenPrivateEnvValidator: TungstenPrivateEnvValidator | undefined;
|
|
6
|
+
}
|
|
7
|
+
export declare function setPrivateEnvValidator(validator: TungstenPrivateEnvValidator): void;
|
|
8
|
+
//# sourceMappingURL=setPrivateEnvValidator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setPrivateEnvValidator.d.ts","sourceRoot":"","sources":["../../src/env/setPrivateEnvValidator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAEpC,MAAM,MAAM,mCAAmC,GAAG,MAAM,kBAAkB,CAAA;AAC1E,MAAM,MAAM,2BAA2B,GAAG,mCAAmC,GAAG,SAAS,CAAC,GAAG,CAAC,CAAA;AAE9F,OAAO,CAAC,MAAM,CAAC;IACX,IAAI,6BAA6B,EAAE,2BAA2B,GAAG,SAAS,CAAA;CAC7E;AAGD,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,2BAA2B,QAE5E"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ZodObject } from 'zod';
|
|
2
|
+
export type TungstenPublicEnvValidatorFunction = () => TungstenPrivateEnv;
|
|
3
|
+
export type TungstenPublicEnvValidator = TungstenPublicEnvValidatorFunction | ZodObject<any>;
|
|
4
|
+
declare global {
|
|
5
|
+
var __tungstenPublicEnvValidator: TungstenPublicEnvValidator | undefined;
|
|
6
|
+
}
|
|
7
|
+
export declare function setPublicEnvValidator(validator: TungstenPublicEnvValidator): void;
|
|
8
|
+
//# sourceMappingURL=setPublicEnvValidator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setPublicEnvValidator.d.ts","sourceRoot":"","sources":["../../src/env/setPublicEnvValidator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAEpC,MAAM,MAAM,kCAAkC,GAAG,MAAM,kBAAkB,CAAA;AACzE,MAAM,MAAM,0BAA0B,GAAG,kCAAkC,GAAG,SAAS,CAAC,GAAG,CAAC,CAAA;AAE5F,OAAO,CAAC,MAAM,CAAC;IACX,IAAI,4BAA4B,EAAE,0BAA0B,GAAG,SAAS,CAAA;CAC3E;AAGD,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,0BAA0B,QAE1E"}
|
package/dist/indexInner.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './TungstenAppOld.js';
|
|
2
2
|
export { TungstenSimpleComponent, TungstenSimpleComponent as SimpleComponent, // static component
|
|
3
3
|
TungstenStatefulComponent, TungstenStatefulComponent as StatefulComponent, // stateful component
|
|
4
4
|
TungstenBaseSimpleStoreComponent, TungstenBaseSimpleStoreComponent as BaseSimpleStoreComponent, TungstenBaseStatefulStoreComponent, TungstenBaseStatefulStoreComponent as BaseStatefulStoreComponent, } from './Components.jsx';
|
|
@@ -16,6 +16,7 @@ export * from './components/bindable/BindableTextarea.jsx';
|
|
|
16
16
|
export * from './components/GoToComponent.jsx';
|
|
17
17
|
export * from './components/Lazy.js';
|
|
18
18
|
export * from './components/Link.jsx';
|
|
19
|
+
export * from './components/RedirectComponent.js';
|
|
19
20
|
export * from './nbsp.js';
|
|
20
21
|
export * from './browserStorage.js';
|
|
21
22
|
export { createElement } from './createElement.js';
|
package/dist/indexInner.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indexInner.d.ts","sourceRoot":"","sources":["../src/indexInner.ts"],"names":[],"mappings":"AAEA,cAAc,
|
|
1
|
+
{"version":3,"file":"indexInner.d.ts","sourceRoot":"","sources":["../src/indexInner.ts"],"names":[],"mappings":"AAEA,cAAc,qBAAqB,CAAA;AACnC,OAAO,EACH,uBAAuB,EAAE,uBAAuB,IAAI,eAAe,EAA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EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAC/D,YAAY,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAChE,YAAY,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AACvD,YAAY,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAA;AAC5E,YAAY,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AAC3E,YAAY,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC3D,YAAY,EACR,0BAA0B,EAAE,0BAA0B,IAAI,SAAS,EACnE,gCAAgC,EAAE,gCAAgC,IAAI,eAAe,EACrF,cAAc,EACjB,MAAM,kBAAkB,CAAA;AACzB,YAAY,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAG7C,mBAAmB,mBAAmB,CAAA"}
|
package/dist/indexInner.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// core
|
|
2
|
-
export * from "./
|
|
2
|
+
export * from "./TungstenAppOld.js";
|
|
3
3
|
export { TungstenSimpleComponent, TungstenSimpleComponent as SimpleComponent,
|
|
4
4
|
// static component
|
|
5
5
|
TungstenStatefulComponent, TungstenStatefulComponent as StatefulComponent,
|
|
@@ -21,6 +21,7 @@ export * from "./components/bindable/BindableTextarea.js";
|
|
|
21
21
|
export * from "./components/GoToComponent.js";
|
|
22
22
|
export * from "./components/Lazy.js";
|
|
23
23
|
export * from "./components/Link.js";
|
|
24
|
+
export * from "./components/RedirectComponent.js";
|
|
24
25
|
export * from "./nbsp.js";
|
|
25
26
|
export * from "./browserStorage.js";
|
|
26
27
|
export { createElement } from "./createElement.js";
|