@joker.front/core 1.3.83 → 1.3.84
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 +46 -38
- package/dist/bundle.es.js +1 -1
- package/dist/bundle.es.js.map +1 -0
- package/dist/bundle.js +1 -1
- package/dist/bundle.js.map +1 -0
- package/package.json +24 -18
- package/types/component.d.ts +1 -0
- package/types/parser/vnode.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@joker.front/core",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.84",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/bundle.js",
|
|
6
6
|
"module": "./dist/bundle.es.js",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
],
|
|
21
21
|
"scripts": {
|
|
22
22
|
"test": "jest",
|
|
23
|
-
"test:temp": "jest test/parser/
|
|
24
|
-
"build": "
|
|
25
|
-
"build:prod": "
|
|
26
|
-
"release": "npm run test && npm run build &&
|
|
23
|
+
"test:temp": "jest test/parser/component.spec.ts",
|
|
24
|
+
"build": "node build/index.js",
|
|
25
|
+
"build:prod": "node build/index.js --terser --sourcemap=false",
|
|
26
|
+
"release": "npm run test && npm run build && npm publish",
|
|
27
27
|
"release:prod": "npm run test && npm run build:prod && npm publish --access public --registry https://registry.npmjs.org/"
|
|
28
28
|
},
|
|
29
29
|
"author": "Zohar",
|
|
@@ -31,7 +31,10 @@
|
|
|
31
31
|
"homepage": "https://front.jokers.pub",
|
|
32
32
|
"keywords": [
|
|
33
33
|
"joker",
|
|
34
|
-
"
|
|
34
|
+
"javascript",
|
|
35
|
+
"frontend",
|
|
36
|
+
"framework",
|
|
37
|
+
"core"
|
|
35
38
|
],
|
|
36
39
|
"dependencies": {
|
|
37
40
|
"@joker.front/ast": "^1.3.31"
|
|
@@ -41,17 +44,20 @@
|
|
|
41
44
|
"url": "git+https://github.com/jokers-pub/front-core.git"
|
|
42
45
|
},
|
|
43
46
|
"devDependencies": {
|
|
44
|
-
"@joker.front/
|
|
45
|
-
"@joker.front/
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"jest": "^29.
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
47
|
+
"@joker.front/sfc": "^1.1.27",
|
|
48
|
+
"@joker.front/shared": "^1.5.32",
|
|
49
|
+
"@types/jest": "^30.0.0",
|
|
50
|
+
"@typescript-eslint/parser": "^8.38.0 ",
|
|
51
|
+
"eslint": "^9.31.0",
|
|
52
|
+
"jest": "^30.0.5",
|
|
53
|
+
"jest-environment-jsdom": "^30.0.5",
|
|
54
|
+
"ts-jest": "^29.4.0",
|
|
55
|
+
"typescript": "^5.8.3",
|
|
56
|
+
"rollup": "^4.45.1",
|
|
57
|
+
"rollup-plugin-typescript2": "^0.36.0",
|
|
58
|
+
"@rollup/plugin-commonjs": "^28.0.6",
|
|
59
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
60
|
+
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
61
|
+
"@rollup/plugin-terser": "^0.4.4"
|
|
56
62
|
}
|
|
57
63
|
}
|
package/types/component.d.ts
CHANGED
|
@@ -145,6 +145,7 @@ export declare class Component<T extends DefaultKeyVal = {}> implements ICompone
|
|
|
145
145
|
* @param callBack
|
|
146
146
|
*/
|
|
147
147
|
$off(eventName: string, callBack?: VNode.EventCallBack): void;
|
|
148
|
+
get $listeners(): Record<string, VNode.EventCallBack<any>[]>;
|
|
148
149
|
/**
|
|
149
150
|
* Trigger event
|
|
150
151
|
* @param eventName Event name
|
package/types/parser/vnode.d.ts
CHANGED
|
@@ -118,7 +118,7 @@ export declare namespace VNode {
|
|
|
118
118
|
_assistEventCache?: Array<[string, (e: any) => void]>;
|
|
119
119
|
constructor(tagName: string, parent: Node);
|
|
120
120
|
}
|
|
121
|
-
type Event<T = undefined, N extends VNode.Node = VNode.Element
|
|
121
|
+
type Event<T = undefined, N extends VNode.Node = VNode.Element & VNode.Component> = {
|
|
122
122
|
/**
|
|
123
123
|
* Event name
|
|
124
124
|
*/
|