sibujs 1.0.3 → 1.0.4
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/LICENSE +21 -21
- package/dist/build.cjs +20 -0
- package/dist/build.js +1 -1
- package/dist/cdn.global.js +4 -4
- package/dist/{chunk-MEZVEBPN.js → chunk-32ZISOLJ.js} +22 -0
- package/dist/{chunk-7TQKR4PP.js → chunk-AZ3ISID5.js} +4 -0
- package/dist/{chunk-3CRQALYP.js → chunk-DKOHBI74.js} +49 -2
- package/dist/{chunk-DTCOOBMX.js → chunk-OF7UZIVB.js} +1 -1
- package/dist/{chunk-N6IZB6KJ.js → chunk-PBHF5WKN.js} +56 -7
- package/dist/{customElement-BKQfbSZQ.d.ts → customElement-yz8uyk-0.d.cts} +52 -6
- package/dist/{customElement-BKQfbSZQ.d.cts → customElement-yz8uyk-0.d.ts} +52 -6
- package/dist/extras.cjs +111 -9
- package/dist/extras.d.cts +3 -2
- package/dist/extras.d.ts +3 -2
- package/dist/extras.js +9 -5
- package/dist/index.cjs +22 -0
- package/dist/index.d.cts +27 -2
- package/dist/index.d.ts +27 -2
- package/dist/index.js +5 -1
- package/dist/patterns.d.cts +8 -2
- package/dist/patterns.d.ts +8 -2
- package/dist/plugins.cjs +142 -1
- package/dist/plugins.d.cts +39 -3
- package/dist/plugins.d.ts +39 -3
- package/dist/plugins.js +119 -3
- package/dist/{ssr-WKUPVSSK.js → ssr-6GIMY5MX.js} +5 -3
- package/dist/ssr-BA6sxxUd.d.cts +135 -0
- package/dist/ssr-BA6sxxUd.d.ts +135 -0
- package/dist/ssr.cjs +5 -0
- package/dist/ssr.d.cts +3 -113
- package/dist/ssr.d.ts +3 -113
- package/dist/ssr.js +4 -2
- package/dist/ui.cjs +50 -2
- package/dist/ui.d.cts +1 -1
- package/dist/ui.d.ts +1 -1
- package/dist/ui.js +3 -1
- package/dist/widgets.cjs +56 -7
- package/dist/widgets.d.cts +4 -2
- package/dist/widgets.d.ts +4 -2
- package/dist/widgets.js +1 -1
- package/package.json +139 -139
package/dist/widgets.d.cts
CHANGED
|
@@ -127,14 +127,16 @@ declare function fileUpload(options?: FileUploadOptions): {
|
|
|
127
127
|
|
|
128
128
|
/**
|
|
129
129
|
* contentEditable provides reactive binding for contenteditable elements.
|
|
130
|
-
*
|
|
130
|
+
*
|
|
131
|
+
* Uses the modern Selection/Range API instead of the deprecated
|
|
132
|
+
* document.execCommand. Formatting is applied by wrapping the current
|
|
133
|
+
* selection in the appropriate inline element.
|
|
131
134
|
*/
|
|
132
135
|
declare function contentEditable(): {
|
|
133
136
|
content: () => string;
|
|
134
137
|
setContent: (html: string) => void;
|
|
135
138
|
isFocused: () => boolean;
|
|
136
139
|
setFocused: (v: boolean) => void;
|
|
137
|
-
execCommand: (command: string, value?: string) => void;
|
|
138
140
|
bold: () => void;
|
|
139
141
|
italic: () => void;
|
|
140
142
|
underline: () => void;
|
package/dist/widgets.d.ts
CHANGED
|
@@ -127,14 +127,16 @@ declare function fileUpload(options?: FileUploadOptions): {
|
|
|
127
127
|
|
|
128
128
|
/**
|
|
129
129
|
* contentEditable provides reactive binding for contenteditable elements.
|
|
130
|
-
*
|
|
130
|
+
*
|
|
131
|
+
* Uses the modern Selection/Range API instead of the deprecated
|
|
132
|
+
* document.execCommand. Formatting is applied by wrapping the current
|
|
133
|
+
* selection in the appropriate inline element.
|
|
131
134
|
*/
|
|
132
135
|
declare function contentEditable(): {
|
|
133
136
|
content: () => string;
|
|
134
137
|
setContent: (html: string) => void;
|
|
135
138
|
isFocused: () => boolean;
|
|
136
139
|
setFocused: (v: boolean) => void;
|
|
137
|
-
execCommand: (command: string, value?: string) => void;
|
|
138
140
|
bold: () => void;
|
|
139
141
|
italic: () => void;
|
|
140
142
|
underline: () => void;
|
package/dist/widgets.js
CHANGED
package/package.json
CHANGED
|
@@ -1,139 +1,139 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "sibujs",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "A lightweight, function-based frontend framework that combines the best of React, Svelte, and Vue — with zero VDOM and maximum simplicity. Designed for developers who want fine-grained reactivity and full control without compilation or magic.",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"frontend",
|
|
7
|
-
"framework",
|
|
8
|
-
"reactive",
|
|
9
|
-
"dom"
|
|
10
|
-
],
|
|
11
|
-
"homepage": "https://github.com/hexplus/sibujs#readme",
|
|
12
|
-
"bugs": {
|
|
13
|
-
"url": "https://github.com/hexplus/sibujs/issues"
|
|
14
|
-
},
|
|
15
|
-
"repository": {
|
|
16
|
-
"type": "git",
|
|
17
|
-
"url": "git+https://github.com/hexplus/sibujs.git"
|
|
18
|
-
},
|
|
19
|
-
"license": "MIT",
|
|
20
|
-
"author": "hexplus (https://github.com/hexplus)",
|
|
21
|
-
"type": "module",
|
|
22
|
-
"sideEffects": false,
|
|
23
|
-
"main": "dist/index.cjs",
|
|
24
|
-
"module": "dist/index.js",
|
|
25
|
-
"files": [
|
|
26
|
-
"dist",
|
|
27
|
-
"README.md",
|
|
28
|
-
"LICENSE"
|
|
29
|
-
],
|
|
30
|
-
"scripts": {
|
|
31
|
-
"lint": "biome check --max-diagnostics=500 src/ tests/",
|
|
32
|
-
"lint:fix": "biome check --write src/ tests/",
|
|
33
|
-
"format": "biome format --write src/ tests/",
|
|
34
|
-
"test": "vitest",
|
|
35
|
-
"test:ui": "vitest --ui",
|
|
36
|
-
"build": "tsup index.ts data.ts browser.ts patterns.ts motion.ts ui.ts widgets.ts ssr.ts devtools.ts performance.ts ecosystem.ts plugins.ts build.ts testing.ts extras.ts --dts --format esm,cjs --out-dir dist && tsup cdn.ts --format iife --globalName Sibu --out-dir dist --no-dts --minify",
|
|
37
|
-
"bench": "node bench.mjs",
|
|
38
|
-
"bench:save": "node bench.mjs --save",
|
|
39
|
-
"bench:check": "node bench.mjs --compare",
|
|
40
|
-
"publish:npm": "node publish.mjs",
|
|
41
|
-
"prepublishOnly": "npm run build"
|
|
42
|
-
},
|
|
43
|
-
"types": "dist/index.d.ts",
|
|
44
|
-
"exports": {
|
|
45
|
-
".": {
|
|
46
|
-
"types": "./dist/index.d.ts",
|
|
47
|
-
"import": "./dist/index.js",
|
|
48
|
-
"require": "./dist/index.cjs"
|
|
49
|
-
},
|
|
50
|
-
"./data": {
|
|
51
|
-
"types": "./dist/data.d.ts",
|
|
52
|
-
"import": "./dist/data.js",
|
|
53
|
-
"require": "./dist/data.cjs"
|
|
54
|
-
},
|
|
55
|
-
"./browser": {
|
|
56
|
-
"types": "./dist/browser.d.ts",
|
|
57
|
-
"import": "./dist/browser.js",
|
|
58
|
-
"require": "./dist/browser.cjs"
|
|
59
|
-
},
|
|
60
|
-
"./patterns": {
|
|
61
|
-
"types": "./dist/patterns.d.ts",
|
|
62
|
-
"import": "./dist/patterns.js",
|
|
63
|
-
"require": "./dist/patterns.cjs"
|
|
64
|
-
},
|
|
65
|
-
"./motion": {
|
|
66
|
-
"types": "./dist/motion.d.ts",
|
|
67
|
-
"import": "./dist/motion.js",
|
|
68
|
-
"require": "./dist/motion.cjs"
|
|
69
|
-
},
|
|
70
|
-
"./ui": {
|
|
71
|
-
"types": "./dist/ui.d.ts",
|
|
72
|
-
"import": "./dist/ui.js",
|
|
73
|
-
"require": "./dist/ui.cjs"
|
|
74
|
-
},
|
|
75
|
-
"./widgets": {
|
|
76
|
-
"types": "./dist/widgets.d.ts",
|
|
77
|
-
"import": "./dist/widgets.js",
|
|
78
|
-
"require": "./dist/widgets.cjs"
|
|
79
|
-
},
|
|
80
|
-
"./ssr": {
|
|
81
|
-
"types": "./dist/ssr.d.ts",
|
|
82
|
-
"import": "./dist/ssr.js",
|
|
83
|
-
"require": "./dist/ssr.cjs"
|
|
84
|
-
},
|
|
85
|
-
"./devtools": {
|
|
86
|
-
"types": "./dist/devtools.d.ts",
|
|
87
|
-
"import": "./dist/devtools.js",
|
|
88
|
-
"require": "./dist/devtools.cjs"
|
|
89
|
-
},
|
|
90
|
-
"./performance": {
|
|
91
|
-
"types": "./dist/performance.d.ts",
|
|
92
|
-
"import": "./dist/performance.js",
|
|
93
|
-
"require": "./dist/performance.cjs"
|
|
94
|
-
},
|
|
95
|
-
"./ecosystem": {
|
|
96
|
-
"types": "./dist/ecosystem.d.ts",
|
|
97
|
-
"import": "./dist/ecosystem.js",
|
|
98
|
-
"require": "./dist/ecosystem.cjs"
|
|
99
|
-
},
|
|
100
|
-
"./plugins": {
|
|
101
|
-
"types": "./dist/plugins.d.ts",
|
|
102
|
-
"import": "./dist/plugins.js",
|
|
103
|
-
"require": "./dist/plugins.cjs"
|
|
104
|
-
},
|
|
105
|
-
"./build": {
|
|
106
|
-
"types": "./dist/build.d.ts",
|
|
107
|
-
"import": "./dist/build.js",
|
|
108
|
-
"require": "./dist/build.cjs"
|
|
109
|
-
},
|
|
110
|
-
"./testing": {
|
|
111
|
-
"types": "./dist/testing.d.ts",
|
|
112
|
-
"import": "./dist/testing.js",
|
|
113
|
-
"require": "./dist/testing.cjs"
|
|
114
|
-
},
|
|
115
|
-
"./extras": {
|
|
116
|
-
"types": "./dist/extras.d.ts",
|
|
117
|
-
"import": "./dist/extras.js",
|
|
118
|
-
"require": "./dist/extras.cjs"
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
"browserslist": [
|
|
122
|
-
"Chrome >= 80",
|
|
123
|
-
"Firefox >= 78",
|
|
124
|
-
"Safari >= 14",
|
|
125
|
-
"Edge >= 80"
|
|
126
|
-
],
|
|
127
|
-
"engines": {
|
|
128
|
-
"node": ">=18.0.0"
|
|
129
|
-
},
|
|
130
|
-
"devDependencies": {
|
|
131
|
-
"@biomejs/biome": "2.4.7",
|
|
132
|
-
"@types/node": "^25.5.0",
|
|
133
|
-
"@vitest/ui": "^3.1.3",
|
|
134
|
-
"jsdom": "^26.1.0",
|
|
135
|
-
"tsup": "^8.5.1",
|
|
136
|
-
"typescript": "^5.8.3",
|
|
137
|
-
"vitest": "^3.1.3"
|
|
138
|
-
}
|
|
139
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "sibujs",
|
|
3
|
+
"version": "1.0.4",
|
|
4
|
+
"description": "A lightweight, function-based frontend framework that combines the best of React, Svelte, and Vue — with zero VDOM and maximum simplicity. Designed for developers who want fine-grained reactivity and full control without compilation or magic.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"frontend",
|
|
7
|
+
"framework",
|
|
8
|
+
"reactive",
|
|
9
|
+
"dom"
|
|
10
|
+
],
|
|
11
|
+
"homepage": "https://github.com/hexplus/sibujs#readme",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/hexplus/sibujs/issues"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/hexplus/sibujs.git"
|
|
18
|
+
},
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"author": "hexplus (https://github.com/hexplus)",
|
|
21
|
+
"type": "module",
|
|
22
|
+
"sideEffects": false,
|
|
23
|
+
"main": "dist/index.cjs",
|
|
24
|
+
"module": "dist/index.js",
|
|
25
|
+
"files": [
|
|
26
|
+
"dist",
|
|
27
|
+
"README.md",
|
|
28
|
+
"LICENSE"
|
|
29
|
+
],
|
|
30
|
+
"scripts": {
|
|
31
|
+
"lint": "biome check --max-diagnostics=500 src/ tests/",
|
|
32
|
+
"lint:fix": "biome check --write src/ tests/",
|
|
33
|
+
"format": "biome format --write src/ tests/",
|
|
34
|
+
"test": "vitest",
|
|
35
|
+
"test:ui": "vitest --ui",
|
|
36
|
+
"build": "tsup index.ts data.ts browser.ts patterns.ts motion.ts ui.ts widgets.ts ssr.ts devtools.ts performance.ts ecosystem.ts plugins.ts build.ts testing.ts extras.ts --dts --format esm,cjs --out-dir dist && tsup cdn.ts --format iife --globalName Sibu --out-dir dist --no-dts --minify",
|
|
37
|
+
"bench": "node bench.mjs",
|
|
38
|
+
"bench:save": "node bench.mjs --save",
|
|
39
|
+
"bench:check": "node bench.mjs --compare",
|
|
40
|
+
"publish:npm": "node publish.mjs",
|
|
41
|
+
"prepublishOnly": "npm run build"
|
|
42
|
+
},
|
|
43
|
+
"types": "dist/index.d.ts",
|
|
44
|
+
"exports": {
|
|
45
|
+
".": {
|
|
46
|
+
"types": "./dist/index.d.ts",
|
|
47
|
+
"import": "./dist/index.js",
|
|
48
|
+
"require": "./dist/index.cjs"
|
|
49
|
+
},
|
|
50
|
+
"./data": {
|
|
51
|
+
"types": "./dist/data.d.ts",
|
|
52
|
+
"import": "./dist/data.js",
|
|
53
|
+
"require": "./dist/data.cjs"
|
|
54
|
+
},
|
|
55
|
+
"./browser": {
|
|
56
|
+
"types": "./dist/browser.d.ts",
|
|
57
|
+
"import": "./dist/browser.js",
|
|
58
|
+
"require": "./dist/browser.cjs"
|
|
59
|
+
},
|
|
60
|
+
"./patterns": {
|
|
61
|
+
"types": "./dist/patterns.d.ts",
|
|
62
|
+
"import": "./dist/patterns.js",
|
|
63
|
+
"require": "./dist/patterns.cjs"
|
|
64
|
+
},
|
|
65
|
+
"./motion": {
|
|
66
|
+
"types": "./dist/motion.d.ts",
|
|
67
|
+
"import": "./dist/motion.js",
|
|
68
|
+
"require": "./dist/motion.cjs"
|
|
69
|
+
},
|
|
70
|
+
"./ui": {
|
|
71
|
+
"types": "./dist/ui.d.ts",
|
|
72
|
+
"import": "./dist/ui.js",
|
|
73
|
+
"require": "./dist/ui.cjs"
|
|
74
|
+
},
|
|
75
|
+
"./widgets": {
|
|
76
|
+
"types": "./dist/widgets.d.ts",
|
|
77
|
+
"import": "./dist/widgets.js",
|
|
78
|
+
"require": "./dist/widgets.cjs"
|
|
79
|
+
},
|
|
80
|
+
"./ssr": {
|
|
81
|
+
"types": "./dist/ssr.d.ts",
|
|
82
|
+
"import": "./dist/ssr.js",
|
|
83
|
+
"require": "./dist/ssr.cjs"
|
|
84
|
+
},
|
|
85
|
+
"./devtools": {
|
|
86
|
+
"types": "./dist/devtools.d.ts",
|
|
87
|
+
"import": "./dist/devtools.js",
|
|
88
|
+
"require": "./dist/devtools.cjs"
|
|
89
|
+
},
|
|
90
|
+
"./performance": {
|
|
91
|
+
"types": "./dist/performance.d.ts",
|
|
92
|
+
"import": "./dist/performance.js",
|
|
93
|
+
"require": "./dist/performance.cjs"
|
|
94
|
+
},
|
|
95
|
+
"./ecosystem": {
|
|
96
|
+
"types": "./dist/ecosystem.d.ts",
|
|
97
|
+
"import": "./dist/ecosystem.js",
|
|
98
|
+
"require": "./dist/ecosystem.cjs"
|
|
99
|
+
},
|
|
100
|
+
"./plugins": {
|
|
101
|
+
"types": "./dist/plugins.d.ts",
|
|
102
|
+
"import": "./dist/plugins.js",
|
|
103
|
+
"require": "./dist/plugins.cjs"
|
|
104
|
+
},
|
|
105
|
+
"./build": {
|
|
106
|
+
"types": "./dist/build.d.ts",
|
|
107
|
+
"import": "./dist/build.js",
|
|
108
|
+
"require": "./dist/build.cjs"
|
|
109
|
+
},
|
|
110
|
+
"./testing": {
|
|
111
|
+
"types": "./dist/testing.d.ts",
|
|
112
|
+
"import": "./dist/testing.js",
|
|
113
|
+
"require": "./dist/testing.cjs"
|
|
114
|
+
},
|
|
115
|
+
"./extras": {
|
|
116
|
+
"types": "./dist/extras.d.ts",
|
|
117
|
+
"import": "./dist/extras.js",
|
|
118
|
+
"require": "./dist/extras.cjs"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"browserslist": [
|
|
122
|
+
"Chrome >= 80",
|
|
123
|
+
"Firefox >= 78",
|
|
124
|
+
"Safari >= 14",
|
|
125
|
+
"Edge >= 80"
|
|
126
|
+
],
|
|
127
|
+
"engines": {
|
|
128
|
+
"node": ">=18.0.0"
|
|
129
|
+
},
|
|
130
|
+
"devDependencies": {
|
|
131
|
+
"@biomejs/biome": "2.4.7",
|
|
132
|
+
"@types/node": "^25.5.0",
|
|
133
|
+
"@vitest/ui": "^3.1.3",
|
|
134
|
+
"jsdom": "^26.1.0",
|
|
135
|
+
"tsup": "^8.5.1",
|
|
136
|
+
"typescript": "^5.8.3",
|
|
137
|
+
"vitest": "^3.1.3"
|
|
138
|
+
}
|
|
139
|
+
}
|