@trustme24/flext 1.9.1 → 1.9.2
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 +1 -1
- package/dist/index.cjs +265 -263
- package/dist/index.js +24 -24
- package/dist/lib.d.ts +1 -2
- package/dist/modules/number/index.d.ts +2 -0
- package/package.json +9 -9
package/dist/lib.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { AST } from '@handlebars/parser';
|
|
2
|
-
import { Theme as Wind4Theme } from '@unocss/preset-wind4';
|
|
3
2
|
import { Obj, Isset, IsNumber, IsObject, Has, Inarr, Macro, MacroParam, DataModel, DataModelNode, CollectorFilterHandler } from './types';
|
|
4
3
|
import { TemplateDataValidationError } from './errors';
|
|
5
4
|
import striptags from 'striptags';
|
|
6
5
|
import Handlebars, { TemplateDelegate } from 'handlebars';
|
|
7
6
|
import * as types from "./types";
|
|
8
|
-
export declare const uno:
|
|
7
|
+
export declare const uno: any;
|
|
9
8
|
export declare const DEFAULT_MODEL_DEPTH = 10;
|
|
10
9
|
export declare const stripHtml: typeof striptags;
|
|
11
10
|
export declare class HandlebarsCollector<T = any> extends Handlebars.Visitor {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { SafeString } from 'handlebars';
|
|
2
|
+
import { Obj } from '../../types';
|
|
2
3
|
export declare const DEFAULT_LANG = "en";
|
|
4
|
+
export declare const LOCALES: Obj;
|
|
3
5
|
export declare function op(state: any): number | string | boolean;
|
|
4
6
|
export declare function opWithColor(state: any): SafeString;
|
|
5
7
|
export declare function text(state: any): SafeString;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trustme24/flext",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.2",
|
|
4
4
|
"description": "A Powerful Templating Engine",
|
|
5
5
|
"keywords": ["templates", "templating engine", "modular templates", "handlebars"],
|
|
6
6
|
"type": "module",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"scripts": {
|
|
18
18
|
"start:test-app": "cd test/app && npm run test-app",
|
|
19
19
|
"build:types": "tsc && tsc-alias",
|
|
20
|
-
"build:css": "tailwindcss -i ./src/index.
|
|
20
|
+
"build:css": "tailwindcss -i ./src/index.css -o ./dist/index.css --minify",
|
|
21
21
|
"build-only": "bin/build.mjs && npm run build:types && npm run build:css",
|
|
22
22
|
"build": "npm run build-only && vitest run",
|
|
23
23
|
"test:app": "npm run build && cd test/app && npm i && npm run test-app",
|
|
@@ -31,26 +31,26 @@
|
|
|
31
31
|
"author": "Kenny Romanov",
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@babel/cli": "^7.28.
|
|
35
|
-
"@babel/core": "^7.28.
|
|
36
|
-
"@babel/preset-env": "^7.28.
|
|
34
|
+
"@babel/cli": "^7.28.6",
|
|
35
|
+
"@babel/core": "^7.28.6",
|
|
36
|
+
"@babel/preset-env": "^7.28.6",
|
|
37
37
|
"@babel/preset-typescript": "^7.28.5",
|
|
38
38
|
"@handlebars/parser": "^2.2.2",
|
|
39
39
|
"@tailwindcss/cli": "^4.1.18",
|
|
40
|
-
"@types/node": "^25.0.
|
|
40
|
+
"@types/node": "^25.0.10",
|
|
41
41
|
"esbuild": "^0.27.2",
|
|
42
42
|
"esbuild-plugin-import-glob": "^0.1.1",
|
|
43
43
|
"tailwindcss": "^4.1.18",
|
|
44
44
|
"tsc-alias": "^1.8.16",
|
|
45
45
|
"typescript": "^5.9.3",
|
|
46
|
-
"vitest": "^4.0.
|
|
46
|
+
"vitest": "^4.0.18"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@unocss/preset-wind4": "^66.
|
|
49
|
+
"@unocss/preset-wind4": "^66.6.0",
|
|
50
50
|
"handlebars": "^4.7.8",
|
|
51
51
|
"luxon": "^3.7.2",
|
|
52
52
|
"striptags": "^3.2.0",
|
|
53
|
-
"unocss": "^66.
|
|
53
|
+
"unocss": "^66.6.0",
|
|
54
54
|
"written-number": "^0.11.1"
|
|
55
55
|
}
|
|
56
56
|
}
|