tungsten 0.1.62 → 0.1.66
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/Servers/DevServer.js +1 -1
- package/dist/TungstenApp.d.ts +1 -10
- package/dist/TungstenApp.d.ts.map +1 -1
- package/dist/TungstenApp.js +69 -39
- package/dist/babelPlugins/BabelTransformPackageImports.d.ts.map +1 -1
- package/dist/babelPlugins/BabelTransformPackageImports.js +1 -1
- package/dist/babelPlugins/transformPackageImports/BabelTransformDependencyImportsCjs.d.ts.map +1 -1
- package/dist/babelPlugins/transformPackageImports/BabelTransformDependencyImportsCjs.js +1 -0
- package/dist/bin/index.js +0 -0
- package/dist/build/compileJavascript.d.ts.map +1 -1
- package/dist/build/compileJavascript.js +5 -3
- package/dist/hydrate/hydrate.js +1 -1
- package/package.json +149 -149
- package/types/jsx/html.d.ts +3 -0
|
@@ -26,7 +26,7 @@ import { RoutingRedirect } from "../routing/RoutingRedirect.js";
|
|
|
26
26
|
import { portError } from "./portError.js";
|
|
27
27
|
import { loadEnvsDev } from "./loadEnvsDev.js";
|
|
28
28
|
import { initStores } from "./initStores.js";
|
|
29
|
-
import { MatchedRoute } from
|
|
29
|
+
import { MatchedRoute } from "../routing/MatchedRoute.js";
|
|
30
30
|
function debug(...texts) {
|
|
31
31
|
// console.log(...texts)
|
|
32
32
|
}
|
package/dist/TungstenApp.d.ts
CHANGED
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { AppRoutes as TungstenAppRoutes } from './routing/AppRoutes.js';
|
|
3
|
-
import { StoreSchemaClass } from './Store/StoreSchemaClass.js';
|
|
4
|
-
export declare class TungstenAppWithStore<AppRoutes extends TungstenAppRoutes, StoreSchema extends object> {
|
|
5
|
-
SimpleComponent: abstract new <Props extends TungstenComponentPropsBase = object, RouteData = undefined>(pkg: ConstructPackage<Props, RouteData>) => void;
|
|
6
|
-
StatefulComponent: abstract new <Props extends TungstenComponentPropsBase = object, RouteData = undefined>(pkg: ConstructPackage<Props, RouteData>) => void;
|
|
7
|
-
SimpleStoreComponent: abstract new <Props extends TungstenComponentPropsBase = object, RouteData = undefined>(pkg: ConstructPackage<Props, RouteData>) => void;
|
|
8
|
-
StatefulStoreComponent: abstract new <Props extends TungstenComponentPropsBase = object, RouteData = undefined>(pkg: ConstructPackage<Props, RouteData>) => void;
|
|
9
|
-
constructor(rootComponent: TungstenBaseComponentType<any, any>, routes: AppRoutes, StoreSchema: StoreSchemaClass<StoreSchema>);
|
|
10
|
-
}
|
|
1
|
+
export {};
|
|
11
2
|
//# sourceMappingURL=TungstenApp.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TungstenApp.d.ts","sourceRoot":"","sources":["../src/TungstenApp.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TungstenApp.d.ts","sourceRoot":"","sources":["../src/TungstenApp.ts"],"names":[],"mappings":""}
|
package/dist/TungstenApp.js
CHANGED
|
@@ -1,46 +1,76 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
//
|
|
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<
|
|
9
23
|
// AppRoutes extends TungstenAppRoutes,
|
|
24
|
+
// StoreSchema extends object
|
|
10
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
|
|
11
42
|
// constructor(
|
|
12
43
|
// rootComponent: TungstenBaseComponentType<any, any>,
|
|
13
44
|
// routes: AppRoutes,
|
|
45
|
+
// StoreSchema: StoreSchemaClass<StoreSchema>
|
|
14
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
|
|
15
75
|
// }
|
|
16
|
-
// }
|
|
17
|
-
export class TungstenAppWithStore {
|
|
18
|
-
constructor(rootComponent, routes, StoreSchema) {
|
|
19
|
-
_defineProperty(this, "SimpleComponent", void 0);
|
|
20
|
-
_defineProperty(this, "StatefulComponent", void 0);
|
|
21
|
-
_defineProperty(this, "SimpleStoreComponent", void 0);
|
|
22
|
-
_defineProperty(this, "StatefulStoreComponent", void 0);
|
|
23
|
-
cliInfo('Creating Tungsten App');
|
|
24
|
-
class SimpleComponent extends TungstenSimpleComponent {}
|
|
25
|
-
this.SimpleComponent = SimpleComponent;
|
|
26
|
-
class StatefulComponent extends TungstenStatefulComponent {}
|
|
27
|
-
this.StatefulComponent = StatefulComponent;
|
|
28
|
-
const {
|
|
29
|
-
getComponentStore
|
|
30
|
-
} = registerStore(StoreSchema);
|
|
31
|
-
class SimpleStoreComponent extends TungstenBaseSimpleStoreComponent {
|
|
32
|
-
constructor(...args) {
|
|
33
|
-
super(...args);
|
|
34
|
-
_defineProperty(this, "store", getComponentStore(this));
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
this.SimpleStoreComponent = SimpleStoreComponent;
|
|
38
|
-
class StatefulStoreComponent extends TungstenBaseStatefulStoreComponent {
|
|
39
|
-
constructor(...args) {
|
|
40
|
-
super(...args);
|
|
41
|
-
_defineProperty(this, "store", getComponentStore(this));
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
this.StatefulStoreComponent = StatefulStoreComponent;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
76
|
+
// }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BabelTransformPackageImports.d.ts","sourceRoot":"","sources":["../../src/babelPlugins/BabelTransformPackageImports.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAQpD,OAAO,EAGH,QAAQ,EACX,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"BabelTransformPackageImports.d.ts","sourceRoot":"","sources":["../../src/babelPlugins/BabelTransformPackageImports.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAQpD,OAAO,EAGH,QAAQ,EACX,MAAM,aAAa,CAAA;AA6BpB,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,CAAA;AAErE,MAAM,MAAM,QAAQ,GAAG;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,cAAc,EAAE,MAAM,CAAA;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,QAAQ,CAAA;IACd,WAAW,EAAE,WAAW,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,KAAK,GAAG,SAAS,CAAA;AAEnD,MAAM,MAAM,WAAW,GAAG;IACtB,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;IACtC,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,WAAW,CAAA;IACjB,iBAAiB,EAAE,MAAM,CAAA;IACzB,aAAa,EAAE,MAAM,CAAA;IACrB,aAAa,EAAE,MAAM,CAAA;CACxB,CAAA;AAGD,MAAM,MAAM,WAAW,GAAG;IACtB,CAAC,GAAG,EAAC,MAAM,GAAG,WAAW,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG;IACvC,KAAK,EAAE,MAAM,EAAE,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IACzB,CAAC,GAAG,EAAC,MAAM,GAAG,cAAc,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAC9B,IAAI,EAAE,QAAQ,CAAA;IACd,gBAAgB,EAAE,MAAM,CAAA;IACxB,aAAa,EAAE,MAAM,CAAA;IACrB,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,CAAC,EAAE,YAAY,CAAA;CAC9B,CAAA;AAED,MAAM,MAAM,iCAAiC,GAAG,mBAAmB,GAAG;IAClE,cAAc,EAAE,MAAM,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,CAAA;CACrC,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,EAAE,CAAA;AAEnC,KAAK,IAAI,GAAG;IACR,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,kBAAkB,EAAE,eAAe,CAAA;IACnC,eAAe,EAAE,eAAe,CAAA;IAChC,aAAa,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;IAGxC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAA;AAC3D,MAAM,MAAM,qBAAqB,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,WAAW,CAAA;AACjE,MAAM,MAAM,oCAAoC,GAC1C,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,KAAK,MAAM,CAAA;AACpG,MAAM,MAAM,kCAAkC,GACxC,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAmC,MAAM,CAAA;AAChF,MAAM,MAAM,uCAAuC,GAC7C,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAmC,MAAM,CAAA;AAChF,MAAM,MAAM,oBAAoB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,KAAK,MAAM,CAAA;AACrF,MAAM,MAAM,gBAAgB,GAAG,CAAC,UAAU,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,KAAK,MAAM,CAAA;AA0CzF,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,IAAI;eA2vBpC,OAAO;;kCAaqB,QAAQ,CAAC,iBAAiB,CAAC;;;EAwH7E"}
|
|
@@ -652,7 +652,7 @@ export function MakeBabelTransformPackageImports(opts) {
|
|
|
652
652
|
if (isBareImport(location)) {
|
|
653
653
|
//if (location.startsWith('@')) console.log('import starts with @', location)
|
|
654
654
|
//console.log(chalk.blue('Bare PackageImport found'), location, 'from', filename)
|
|
655
|
-
if (location.includes(
|
|
655
|
+
if (location.includes('range-slider')) {
|
|
656
656
|
cliNews(`package import ${location}`);
|
|
657
657
|
}
|
|
658
658
|
// if ('location'.startsWith('node:')) {
|
package/dist/babelPlugins/transformPackageImports/BabelTransformDependencyImportsCjs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BabelTransformDependencyImportsCjs.d.ts","sourceRoot":"","sources":["../../../src/babelPlugins/transformPackageImports/BabelTransformDependencyImportsCjs.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,KAAK,SAAS,MAAM,aAAa,CAAA;AAC7C,OAAO,EAAE,QAAQ,EAAc,MAAM,aAAa,CAAA;AAClD,KAAK,KAAK,GAAG,OAAO,SAAS,CAAC;AAM9B,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAA0B,KAAK,cAAc,EAAmB,KAAK,iBAAiB,EAAsB,MAAM,aAAa,CAAA;AAIpL,OAAO,KAAK,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,oCAAoC,EAAE,uCAAuC,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAA;AAU1M,KAAK,IAAI,GAAG;IACR,UAAU,EAAE,MAAM,EAAE,CAAA;CACvB,CAAA;AAED,KAAK,KAAK,GAAG;IACT,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,qBAAqB,EAAE,qBAAqB,CAAA;IAC5C,oCAAoC,EAAE,oCAAoC,CAAA;IAC1E,uCAAuC,EAAE,uCAAuC,CAAA;IAChF,oBAAoB,EAAE,oBAAoB,CAAA;CAC7C,CAAA;AAED,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,IACxB,OAAO,KAAK;eAoC5C,GAAG;;kCAQyB,QAAQ,CAAC,iBAAiB,CAAC;uCAKtB,QAAQ,CAAC,sBAAsB,CAAC;qCAOlC,QAAQ,CAAC,oBAAoB,CAAC;6BAO/C,QAAQ,CAAC,cAAc,CAAC;;
|
|
1
|
+
{"version":3,"file":"BabelTransformDependencyImportsCjs.d.ts","sourceRoot":"","sources":["../../../src/babelPlugins/transformPackageImports/BabelTransformDependencyImportsCjs.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,KAAK,SAAS,MAAM,aAAa,CAAA;AAC7C,OAAO,EAAE,QAAQ,EAAc,MAAM,aAAa,CAAA;AAClD,KAAK,KAAK,GAAG,OAAO,SAAS,CAAC;AAM9B,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAA0B,KAAK,cAAc,EAAmB,KAAK,iBAAiB,EAAsB,MAAM,aAAa,CAAA;AAIpL,OAAO,KAAK,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,oCAAoC,EAAE,uCAAuC,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAA;AAU1M,KAAK,IAAI,GAAG;IACR,UAAU,EAAE,MAAM,EAAE,CAAA;CACvB,CAAA;AAED,KAAK,KAAK,GAAG;IACT,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,qBAAqB,EAAE,qBAAqB,CAAA;IAC5C,oCAAoC,EAAE,oCAAoC,CAAA;IAC1E,uCAAuC,EAAE,uCAAuC,CAAA;IAChF,oBAAoB,EAAE,oBAAoB,CAAA;CAC7C,CAAA;AAED,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,IACxB,OAAO,KAAK;eAoC5C,GAAG;;kCAQyB,QAAQ,CAAC,iBAAiB,CAAC;uCAKtB,QAAQ,CAAC,sBAAsB,CAAC;qCAOlC,QAAQ,CAAC,oBAAoB,CAAC;6BAO/C,QAAQ,CAAC,cAAc,CAAC;;EAiE5D"}
|
|
@@ -93,6 +93,7 @@ export function MakeBabelTransformDependencyImportsCjs(opts, funcs) {
|
|
|
93
93
|
} else if (arg0.type === 'Identifier') {
|
|
94
94
|
warn('import arg 0 is an identifier', arg0);
|
|
95
95
|
warn('Handling this has not been implemented yet');
|
|
96
|
+
warn(`In file ${filename}`);
|
|
96
97
|
} else {
|
|
97
98
|
warn(`MakeBabelTransformDependencyImportsCjs warning:` + ` import call first argument is an unhandled type:` + ` ${arg0.type}`);
|
|
98
99
|
}
|
package/dist/bin/index.js
CHANGED
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compileJavascript.d.ts","sourceRoot":"","sources":["../../src/build/compileJavascript.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,MAAM,UAAU,CAAA;AAO/B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAA;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAetC,KAAK,uBAAuB,GAAG;IAC3B,OAAO,EAAE,QAAQ,CAAC,SAAS,CAAA;IAC3B,WAAW,EAAE,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAA;IACtC,aAAa,EAAE,aAAa,CAAA;CAC/B,CAAA;AAKD,wBAAsB,iBAAiB,CACnC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,uBAAuB,EACtD,YAAY,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EACrE,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,GAClC,OAAO,CAAC,uBAAuB,CAAC,
|
|
1
|
+
{"version":3,"file":"compileJavascript.d.ts","sourceRoot":"","sources":["../../src/build/compileJavascript.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,MAAM,UAAU,CAAA;AAO/B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAA;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAetC,KAAK,uBAAuB,GAAG;IAC3B,OAAO,EAAE,QAAQ,CAAC,SAAS,CAAA;IAC3B,WAAW,EAAE,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAA;IACtC,aAAa,EAAE,aAAa,CAAA;CAC/B,CAAA;AAKD,wBAAsB,iBAAiB,CACnC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,uBAAuB,EACtD,YAAY,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EACrE,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,GAClC,OAAO,CAAC,uBAAuB,CAAC,CAkOlC"}
|
|
@@ -109,10 +109,12 @@ export async function compileJavascript(projectDir, appConfig, codeLocation, sou
|
|
|
109
109
|
if (appConfig.exclude !== undefined) ignored.push(slash(`${codeLocation}/${appConfig.exclude}`));
|
|
110
110
|
//console.log('appConfig', appConfig)
|
|
111
111
|
//console.log('ignored', ignored)
|
|
112
|
+
//cliWarn(watchGlob)
|
|
113
|
+
//cliWarn('IGNORE')
|
|
114
|
+
//cliWarn(JSON.stringify(ignored))
|
|
112
115
|
/// need to do an initial build before watching
|
|
113
|
-
//
|
|
114
|
-
const paths = await globby(watchGlob);
|
|
115
|
-
//console.log(paths)
|
|
116
|
+
// not sure what glob matcher chokidar uses
|
|
117
|
+
const paths = await globby([watchGlob, ...ignored.map(x => `!${x}`)]);
|
|
116
118
|
paths.forEach(file => {
|
|
117
119
|
transformPromises.push(transformFile(file));
|
|
118
120
|
});
|
package/dist/hydrate/hydrate.js
CHANGED
|
@@ -25,7 +25,7 @@ import { bindableHtmlElementsNumber, bindableHtmlElementsString } from "../compo
|
|
|
25
25
|
import { checkedValueToBoolean } from "../checkedValueToBoolean.js";
|
|
26
26
|
import { Default404 } from "../routing/Default404.js";
|
|
27
27
|
import { initStores } from 'tungsten/Servers/initStores.js';
|
|
28
|
-
import { MatchedRoute } from
|
|
28
|
+
import { MatchedRoute } from "../routing/MatchedRoute.js";
|
|
29
29
|
import { jsx as _jsx } from "tungsten/jsxRuntime.js";
|
|
30
30
|
function debug(...texts) {
|
|
31
31
|
//console.log(...texts)
|
package/package.json
CHANGED
|
@@ -1,150 +1,150 @@
|
|
|
1
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
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
"
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
"
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
}
|
|
2
|
+
"name": "tungsten",
|
|
3
|
+
"version": "0.1.66",
|
|
4
|
+
"description": "",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"tungsten": "dist/bin/index.js"
|
|
8
|
+
},
|
|
9
|
+
"main": "dist/index.js",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": "./dist/index.js",
|
|
12
|
+
"./*": "./dist/*",
|
|
13
|
+
"./types/*": "./types/*"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"types",
|
|
18
|
+
"sxy-loader.config.js",
|
|
19
|
+
"readme.md"
|
|
20
|
+
],
|
|
21
|
+
"keywords": [],
|
|
22
|
+
"author": "",
|
|
23
|
+
"license": "UNLICENSED",
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@babel/cli": "^7.27.2",
|
|
26
|
+
"@babel/core": "^7.27.1",
|
|
27
|
+
"@babel/parser": "^7.27.2",
|
|
28
|
+
"@babel/plugin-syntax-import-assertions": "^7.27.1",
|
|
29
|
+
"@babel/plugin-transform-class-properties": "^7.27.1",
|
|
30
|
+
"@babel/preset-react": "^7.27.1",
|
|
31
|
+
"@rollup/plugin-babel": "^5.3.1",
|
|
32
|
+
"@rollup/plugin-commonjs": "^22.0.2",
|
|
33
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
34
|
+
"@rollup/plugin-node-resolve": "^14.1.0",
|
|
35
|
+
"arktype": "^2.1.20",
|
|
36
|
+
"axios": "^0.27.2",
|
|
37
|
+
"babel-loader": "^8.4.1",
|
|
38
|
+
"babel-plugin-css-to-js": "^0.0.4",
|
|
39
|
+
"babel-plugin-sxy-module-resolver": "^4.1.9",
|
|
40
|
+
"babel-plugin-sxy-transform-cjs-to-esm": "^0.2.6",
|
|
41
|
+
"bcryptjs": "^2.4.3",
|
|
42
|
+
"chalk": "^5.4.1",
|
|
43
|
+
"chalk-extensions": "^2.0.24",
|
|
44
|
+
"chokidar": "^3.6.0",
|
|
45
|
+
"cjs-module-lexer": "^1.4.3",
|
|
46
|
+
"cjstoesm": "^2.1.2",
|
|
47
|
+
"compression-webpack-plugin": "^10.0.0",
|
|
48
|
+
"cross-env": "^7.0.3",
|
|
49
|
+
"decamelize": "^6.0.0",
|
|
50
|
+
"dotenv": "^16.5.0",
|
|
51
|
+
"express": "^4.21.2",
|
|
52
|
+
"find-package-json": "^1.2.0",
|
|
53
|
+
"fs-extra": "^10.1.0",
|
|
54
|
+
"globby": "^13.2.2",
|
|
55
|
+
"html-webpack-plugin": "^5.6.3",
|
|
56
|
+
"import-meta-resolve": "^2.2.2",
|
|
57
|
+
"ini": "^4.1.3",
|
|
58
|
+
"install": "^0.13.0",
|
|
59
|
+
"lodash.clonedeep": "^4.5.0",
|
|
60
|
+
"mini-css-extract-plugin": "^2.9.2",
|
|
61
|
+
"node-fetch": "^3.3.2",
|
|
62
|
+
"npm": "^11.4.1",
|
|
63
|
+
"npm-run-all": "^4.1.5",
|
|
64
|
+
"open": "^8.4.2",
|
|
65
|
+
"path-to-regexp": "^6.3.0",
|
|
66
|
+
"postcss": "^8.5.3",
|
|
67
|
+
"precinct": "^12.2.0",
|
|
68
|
+
"react-router": "^6.30.1",
|
|
69
|
+
"redaxios": "^0.5.1",
|
|
70
|
+
"require-resolve-hook": "^1.1.0",
|
|
71
|
+
"rmfr": "^2.0.0",
|
|
72
|
+
"rollup": "^2.79.2",
|
|
73
|
+
"rollup-plugin-gzip": "^3.1.2",
|
|
74
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
75
|
+
"sass": "^1.89.0",
|
|
76
|
+
"serialize-javascript": "^6.0.2",
|
|
77
|
+
"slash": "^4.0.0",
|
|
78
|
+
"sxy-dependency-tree": "^8.1.11",
|
|
79
|
+
"sxy-filing-cabinet": "^3.4.2",
|
|
80
|
+
"sxy-lib": "^3.0.3",
|
|
81
|
+
"sxy-lib-object-copy": "^2.0.5",
|
|
82
|
+
"sxy-loader": "^3.0.36",
|
|
83
|
+
"sxy-package-investigator": "^1.0.0",
|
|
84
|
+
"terser-webpack-plugin": "^5.3.14",
|
|
85
|
+
"util": "^0.12.5",
|
|
86
|
+
"zod": "^3.25.20"
|
|
87
|
+
},
|
|
88
|
+
"devDependencies": {
|
|
89
|
+
"@babel/generator": "^7.27.1",
|
|
90
|
+
"@babel/types": "^7.27.1",
|
|
91
|
+
"@types/babel-types": "^7.0.16",
|
|
92
|
+
"@types/babel__core": "^7.20.5",
|
|
93
|
+
"@types/babel__generator": "^7.27.0",
|
|
94
|
+
"@types/bcrypt": "^5.0.2",
|
|
95
|
+
"@types/bcryptjs": "^2.4.6",
|
|
96
|
+
"@types/chai": "^4.3.20",
|
|
97
|
+
"@types/express": "^4.17.22",
|
|
98
|
+
"@types/find-package-json": "^1.2.6",
|
|
99
|
+
"@types/fs-extra": "^11.0.4",
|
|
100
|
+
"@types/ini": "^1.3.34",
|
|
101
|
+
"@types/lodash.clonedeep": "^4.5.9",
|
|
102
|
+
"@types/node": "^20.17.50",
|
|
103
|
+
"@types/prop-types": "^15.7.14",
|
|
104
|
+
"@types/rmfr": "^2.0.5",
|
|
105
|
+
"@types/serialize-javascript": "^5.0.4",
|
|
106
|
+
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
107
|
+
"@typescript-eslint/parser": "^5.62.0",
|
|
108
|
+
"babel-plugin-replace-import-extension": "^1.1.5",
|
|
109
|
+
"babel-plugin-sxy-transform-import-extensions": "^1.0.5",
|
|
110
|
+
"babel-plugin-transform-import-extension": "^1.0.3",
|
|
111
|
+
"chai": "^4.5.0",
|
|
112
|
+
"chai-subset": "^1.6.0",
|
|
113
|
+
"csstype": "^3.1.3",
|
|
114
|
+
"eslint": "^8.57.1",
|
|
115
|
+
"eslint-import-resolver-typescript": "^2.7.1",
|
|
116
|
+
"eslint-plugin-import": "^2.31.0",
|
|
117
|
+
"eslint-plugin-no-type-assertion": "^1.3.0",
|
|
118
|
+
"progress-webpack-plugin": "^1.0.16",
|
|
119
|
+
"prop-types": "^15.8.1",
|
|
120
|
+
"rimraf": "^5.0.10",
|
|
121
|
+
"rmrf": "^2.0.4",
|
|
122
|
+
"rollup-plugin-visualizer": "^5.14.0",
|
|
123
|
+
"supertest": "^6.3.4",
|
|
124
|
+
"sxy-test-runner": "^1.3.8",
|
|
125
|
+
"sxy-types": "^1.0.23",
|
|
126
|
+
"typescript": "^5.8.3",
|
|
127
|
+
"webpack-bundle-analyzer": "^4.10.2",
|
|
128
|
+
"webpack-cli": "^4.10.0",
|
|
129
|
+
"webpack-stats-plugin": "^1.1.3"
|
|
130
|
+
},
|
|
131
|
+
"peerDependencies": {
|
|
132
|
+
"rollup": "^2.79.1"
|
|
133
|
+
},
|
|
134
|
+
"scripts": {
|
|
135
|
+
"__build": "pnpm clean && pnpm build-prep && pnpm build-watch",
|
|
136
|
+
"build": "run-s -c clean build-prep build-watch",
|
|
137
|
+
"clean": "rimraf intermed && rimraf dist",
|
|
138
|
+
"build-once": "rimraf intermed && rimraf dist && pnpm build-ts-once || pnpm build-babel-once",
|
|
139
|
+
"build-quick": "pnpm build-watch",
|
|
140
|
+
"build-prep": "pnpm build-ts-once",
|
|
141
|
+
"build-watch": "run-p build-ts build-babel",
|
|
142
|
+
"build-ts": "tsc --watch",
|
|
143
|
+
"build-ts-once": "tsc",
|
|
144
|
+
"build-babel": "babel intermed --out-dir dist --ignore \"**/*.cjs\" --copy-files --config-file ./babel.framework.config.js --watch",
|
|
145
|
+
"build-babel-once": "babel intermed --out-dir dist --ignore \"**/*.cjs\" --copy-files --config-file ./babel.framework.config.js",
|
|
146
|
+
"test": "sxy-test-runner",
|
|
147
|
+
"gitpublish": "pnpm build-once && cross-env GIT_SSH_COMMAND=\"ssh -i \"\"C:\\MainFiles\\1. Development\\robert_sandiford.openssh\"\"\" gitpublish",
|
|
148
|
+
"prepublish": "pnpm build-once"
|
|
149
|
+
}
|
|
150
|
+
}
|
package/types/jsx/html.d.ts
CHANGED
|
@@ -779,6 +779,7 @@ export interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
|
779
779
|
srcSet?: string | undefined;
|
|
780
780
|
useMap?: string | undefined;
|
|
781
781
|
width?: number | string | undefined;
|
|
782
|
+
fetchpriority?: 'high' | 'low' | 'auto' | undefined;
|
|
782
783
|
}
|
|
783
784
|
|
|
784
785
|
export interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
@@ -975,6 +976,7 @@ export interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
|
975
976
|
sizes?: string | undefined;
|
|
976
977
|
type?: string | undefined;
|
|
977
978
|
charSet?: string | undefined;
|
|
979
|
+
fetchpriority?: 'high' | 'low' | 'auto' | undefined;
|
|
978
980
|
}
|
|
979
981
|
|
|
980
982
|
export interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
@@ -1097,6 +1099,7 @@ export interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
|
1097
1099
|
referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
|
|
1098
1100
|
src?: string | undefined;
|
|
1099
1101
|
type?: string | undefined;
|
|
1102
|
+
fetchpriority?: 'high' | 'low' | 'auto' | undefined;
|
|
1100
1103
|
}
|
|
1101
1104
|
|
|
1102
1105
|
export interface SelectHTMLAttributes<T, BO extends object> extends HTMLAttributes<T> {
|