@trustme24/flext 1.4.4 → 1.5.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.
- package/dist/index.cjs +295 -294
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +21 -21
- package/dist/lib.d.ts +1 -1
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/number/index.d.ts +8 -0
- package/package.json +9 -8
package/dist/lib.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export declare function unique<T = any>(arr: T[]): T[];
|
|
|
26
26
|
export declare function getAst(val: string): AST.Program;
|
|
27
27
|
export declare function getTemplate(val: string | AST.Program): TemplateDelegate;
|
|
28
28
|
export declare function getHtml(template: TemplateDelegate, data?: Obj, helpers?: Obj): string;
|
|
29
|
-
export declare function getCss(template: TemplateDelegate, data?: Obj,
|
|
29
|
+
export declare function getCss(template: TemplateDelegate, data?: Obj, options?: Obj): Promise<string>;
|
|
30
30
|
export declare function getPaths(ast: AST.Program): string[];
|
|
31
31
|
export declare function pathToDataModelNode(path: string, depth?: number): DataModelNode;
|
|
32
32
|
export declare function pathToDataModel(path: string, depth?: number): DataModel;
|
package/dist/modules/index.d.ts
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SafeString } from 'handlebars';
|
|
2
|
+
export declare const DEFAULT_LANG = "en";
|
|
3
|
+
export declare function op(state: any): number | string | boolean;
|
|
4
|
+
export declare function opWithColor(state: any): SafeString;
|
|
5
|
+
export declare function text(state: any): SafeString;
|
|
6
|
+
export declare function check(state: any): boolean;
|
|
7
|
+
declare const _default: any;
|
|
8
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trustme24/flext",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "A Powerful Templating Engine",
|
|
5
5
|
"keywords": ["templates", "templating engine", "modular templates", "handlebars"],
|
|
6
6
|
"type": "module",
|
|
@@ -36,20 +36,21 @@
|
|
|
36
36
|
"@babel/preset-env": "^7.28.5",
|
|
37
37
|
"@babel/preset-typescript": "^7.28.5",
|
|
38
38
|
"@handlebars/parser": "^2.2.1",
|
|
39
|
-
"@tailwindcss/cli": "^4.1.
|
|
40
|
-
"@types/node": "^24.
|
|
41
|
-
"esbuild": "^0.
|
|
39
|
+
"@tailwindcss/cli": "^4.1.17",
|
|
40
|
+
"@types/node": "^24.10.0",
|
|
41
|
+
"esbuild": "^0.27.0",
|
|
42
42
|
"esbuild-plugin-import-glob": "^0.1.1",
|
|
43
|
-
"tailwindcss": "^4.1.
|
|
43
|
+
"tailwindcss": "^4.1.17",
|
|
44
44
|
"tsc-alias": "^1.8.16",
|
|
45
45
|
"typescript": "^5.9.3",
|
|
46
|
-
"vitest": "^4.0.
|
|
46
|
+
"vitest": "^4.0.8"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@unocss/preset-wind4": "^66.5.
|
|
49
|
+
"@unocss/preset-wind4": "^66.5.5",
|
|
50
50
|
"handlebars": "^4.7.8",
|
|
51
51
|
"luxon": "^3.7.2",
|
|
52
52
|
"striptags": "^3.2.0",
|
|
53
|
-
"unocss": "^66.5.
|
|
53
|
+
"unocss": "^66.5.5",
|
|
54
|
+
"written-number": "^0.11.1"
|
|
54
55
|
}
|
|
55
56
|
}
|