@worktile/planet 17.0.0-next.2 → 17.0.0-next.3
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/CHANGELOG.md +9 -0
- package/assets-loader.d.ts +13 -6
- package/assets-loader.d.ts.map +1 -1
- package/esm2022/assets-loader.mjs +71 -17
- package/esm2022/helpers.mjs +44 -44
- package/esm2022/inner-types.mjs +2 -0
- package/fesm2022/worktile-planet.mjs +112 -58
- package/fesm2022/worktile-planet.mjs.map +1 -1
- package/helpers.d.ts +7 -13
- package/helpers.d.ts.map +1 -1
- package/inner-types.d.ts +12 -0
- package/inner-types.d.ts.map +1 -0
- package/package.json +1 -1
package/helpers.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AssetsTagItem } from './inner-types';
|
|
1
2
|
import { PlanetApplication } from './planet.class';
|
|
2
3
|
export declare function hashCode(str: string): number;
|
|
3
4
|
export declare function getHTMLElement(selector: string | HTMLElement): HTMLElement | null;
|
|
@@ -23,20 +24,13 @@ export declare function getExtName(name: string): string;
|
|
|
23
24
|
* @param resourceFilePath Resource File Path
|
|
24
25
|
* @param manifestResult manifest
|
|
25
26
|
*/
|
|
26
|
-
export declare function buildResourceFilePath(resourceFilePath: string, manifestResult:
|
|
27
|
-
[key: string]: string;
|
|
28
|
-
}): string;
|
|
27
|
+
export declare function buildResourceFilePath(resourceFilePath: string, manifestResult: Record<string, AssetsTagItem>): string;
|
|
29
28
|
export declare function buildFullPath(path: string, basePath?: string): string;
|
|
30
29
|
export declare function getAssetsBasePath(app: PlanetApplication): string;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
export declare function getScriptsAndStylesFullPaths(app: PlanetApplication, basePath: string, manifestResult?: {
|
|
37
|
-
[key: string]: string;
|
|
38
|
-
}): {
|
|
39
|
-
scripts: string[];
|
|
40
|
-
styles: string[];
|
|
30
|
+
export declare function toAssetsTagItem(src: string): AssetsTagItem;
|
|
31
|
+
export declare function toAssetsTagItems(src: string[]): AssetsTagItem[];
|
|
32
|
+
export declare function getScriptsAndStylesAssets(app: PlanetApplication, basePath: string, manifestResult?: Record<string, AssetsTagItem>): {
|
|
33
|
+
scripts: AssetsTagItem[];
|
|
34
|
+
styles: AssetsTagItem[];
|
|
41
35
|
};
|
|
42
36
|
//# sourceMappingURL=helpers.d.ts.map
|
package/helpers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../packages/planet/src/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAA0B,MAAM,gBAAgB,CAAC;AAI3E,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAY5C;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,WAAW,GAAG,WAAW,GAAG,IAAI,CAMjF;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAG7D;AAED,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,eAUvD;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,EAAE,CAElD;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAM3C;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,QAAQ,CAGxD;AAED,wBAAgB,QAAQ,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,CAAC,CAEjE;AACD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../packages/planet/src/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EA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AE/D;AAED,wBAAgB,yBAAyB,CACrC,GAAG,EAAE,iBAAiB,EACtB,QAAQ,EAAE,MAAM,EAChB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,GAC/C;IAAE,OAAO,EAAE,aAAa,EAAE,CAAC;IAAC,MAAM,EAAE,aAAa,EAAE,CAAA;CAAE,CAoBvD"}
|
package/inner-types.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ScriptTagAttributes {
|
|
2
|
+
type: 'module' | 'text/script' | undefined;
|
|
3
|
+
async?: string;
|
|
4
|
+
defer?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface StyleTagAttributes {
|
|
7
|
+
}
|
|
8
|
+
export interface AssetsTagItem {
|
|
9
|
+
src: string;
|
|
10
|
+
attributes?: ScriptTagAttributes | StyleTagAttributes;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=inner-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inner-types.d.ts","sourceRoot":"","sources":["../../packages/planet/src/inner-types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAChC,IAAI,EAAE,QAAQ,GAAG,aAAa,GAAG,SAAS,CAAC;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;CAAG;AAEtC,MAAM,WAAW,aAAa;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,mBAAmB,GAAG,kBAAkB,CAAC;CACzD"}
|