@unsetsoft/ryunixjs 1.2.4 → 1.2.5-canary.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/README.md +91 -19
- package/dist/Ryunix.esm.js +3671 -1676
- package/dist/Ryunix.esm.js.map +1 -1
- package/dist/Ryunix.umd.js +3698 -1675
- package/dist/Ryunix.umd.js.map +1 -1
- package/dist/Ryunix.umd.min.js +1 -1
- package/dist/Ryunix.umd.min.js.map +1 -1
- package/jsx/jsx-dev-runtime.js +6 -6
- package/jsx/jsx-runtime.js +56 -56
- package/package.json +17 -20
package/jsx/jsx-dev-runtime.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* JSX Development Runtime for Ryunix
|
|
3
|
-
* Used during development for better debugging
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
export { jsx, jsxs, jsxDEV, Fragment } from './jsx-runtime.js'
|
|
1
|
+
/**
|
|
2
|
+
* JSX Development Runtime for Ryunix
|
|
3
|
+
* Used during development for better debugging
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export { jsx, jsxs, jsxDEV, Fragment } from './jsx-runtime.js'
|
package/jsx/jsx-runtime.js
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* JSX Runtime for Ryunix - Automatic JSX Runtime
|
|
3
|
-
* This enables compatibility with modern JSX transformations
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { createElement, Fragment } from '../dist/Ryunix.esm.js'
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Create JSX element (automatic runtime)
|
|
10
|
-
* @param {string|Function} type - Element type
|
|
11
|
-
* @param {Object} props - Element props
|
|
12
|
-
* @param {string} key - Element key
|
|
13
|
-
* @returns {Object} Ryunix element
|
|
14
|
-
*/
|
|
15
|
-
export function jsx(type, props, key) {
|
|
16
|
-
const { children, ...restProps } = props || {}
|
|
17
|
-
|
|
18
|
-
// If children is provided, pass it as rest parameter
|
|
19
|
-
if (children !== undefined) {
|
|
20
|
-
return createElement(
|
|
21
|
-
type,
|
|
22
|
-
key !== undefined ? { ...restProps, key } : restProps,
|
|
23
|
-
...(Array.isArray(children) ? children : [children]),
|
|
24
|
-
)
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
return createElement(
|
|
28
|
-
type,
|
|
29
|
-
key !== undefined ? { ...restProps, key } : restProps,
|
|
30
|
-
)
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Create JSX element with multiple children (automatic runtime)
|
|
35
|
-
* @param {string|Function} type - Element type
|
|
36
|
-
* @param {Object} props - Element props
|
|
37
|
-
* @param {string} key - Element key
|
|
38
|
-
* @returns {Object} Ryunix element
|
|
39
|
-
*/
|
|
40
|
-
export function jsxs(type, props, key) {
|
|
41
|
-
return jsx(type, props, key)
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Create JSX development element (with additional debug info)
|
|
46
|
-
* @param {string|Function} type - Element type
|
|
47
|
-
* @param {Object} props - Element props
|
|
48
|
-
* @param {string} key - Element key
|
|
49
|
-
* @returns {Object} Ryunix element
|
|
50
|
-
*/
|
|
51
|
-
export function jsxDEV(type, props, key) {
|
|
52
|
-
return jsx(type, props, key)
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// Export Fragment for JSX runtime
|
|
56
|
-
export { Fragment }
|
|
1
|
+
/**
|
|
2
|
+
* JSX Runtime for Ryunix - Automatic JSX Runtime
|
|
3
|
+
* This enables compatibility with modern JSX transformations
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { createElement, Fragment } from '../dist/Ryunix.esm.js'
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Create JSX element (automatic runtime)
|
|
10
|
+
* @param {string|Function} type - Element type
|
|
11
|
+
* @param {Object} props - Element props
|
|
12
|
+
* @param {string} key - Element key
|
|
13
|
+
* @returns {Object} Ryunix element
|
|
14
|
+
*/
|
|
15
|
+
export function jsx(type, props, key) {
|
|
16
|
+
const { children, ...restProps } = props || {}
|
|
17
|
+
|
|
18
|
+
// If children is provided, pass it as rest parameter
|
|
19
|
+
if (children !== undefined) {
|
|
20
|
+
return createElement(
|
|
21
|
+
type,
|
|
22
|
+
key !== undefined ? { ...restProps, key } : restProps,
|
|
23
|
+
...(Array.isArray(children) ? children : [children]),
|
|
24
|
+
)
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
return createElement(
|
|
28
|
+
type,
|
|
29
|
+
key !== undefined ? { ...restProps, key } : restProps,
|
|
30
|
+
)
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Create JSX element with multiple children (automatic runtime)
|
|
35
|
+
* @param {string|Function} type - Element type
|
|
36
|
+
* @param {Object} props - Element props
|
|
37
|
+
* @param {string} key - Element key
|
|
38
|
+
* @returns {Object} Ryunix element
|
|
39
|
+
*/
|
|
40
|
+
export function jsxs(type, props, key) {
|
|
41
|
+
return jsx(type, props, key)
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Create JSX development element (with additional debug info)
|
|
46
|
+
* @param {string|Function} type - Element type
|
|
47
|
+
* @param {Object} props - Element props
|
|
48
|
+
* @param {string} key - Element key
|
|
49
|
+
* @returns {Object} Ryunix element
|
|
50
|
+
*/
|
|
51
|
+
export function jsxDEV(type, props, key) {
|
|
52
|
+
return jsx(type, props, key)
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// Export Fragment for JSX runtime
|
|
56
|
+
export { Fragment }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unsetsoft/ryunixjs",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5-canary.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/Ryunix.umd.js",
|
|
6
6
|
"module": "./dist/Ryunix.esm.js",
|
|
@@ -27,33 +27,21 @@
|
|
|
27
27
|
"jsx"
|
|
28
28
|
],
|
|
29
29
|
"type": "module",
|
|
30
|
-
"
|
|
31
|
-
"build": "rollup -c",
|
|
32
|
-
"prepublishOnly": "npm run build",
|
|
33
|
-
"canary:release": "npm publish --tag canary",
|
|
34
|
-
"release": "npm publish",
|
|
35
|
-
"lint": "eslint . --ext .js --fix --max-warnings=0 --config .eslintrc.js --no-eslintrc",
|
|
36
|
-
"prettier-check": "prettier -c .",
|
|
37
|
-
"prettier-fix": "prettier -w .",
|
|
38
|
-
"test": "jest --testPathPattern=src"
|
|
39
|
-
},
|
|
40
|
-
"dependencies": {
|
|
41
|
-
"lodash": "^4.17.21"
|
|
42
|
-
},
|
|
30
|
+
"dependencies": {},
|
|
43
31
|
"devDependencies": {
|
|
44
|
-
"rollup": "
|
|
32
|
+
"rollup": "4.59.0",
|
|
45
33
|
"@rollup/plugin-node-resolve": "16.0.3",
|
|
46
34
|
"@rollup/plugin-commonjs": "29.0.0",
|
|
47
35
|
"@rollup/plugin-terser": "0.4.4",
|
|
48
36
|
"eslint": "9.39.2",
|
|
49
37
|
"@babel/core": "7.28.5",
|
|
50
|
-
"@babel/preset-env": "
|
|
38
|
+
"@babel/preset-env": "7.28.5",
|
|
51
39
|
"jest": "30.2.0",
|
|
52
40
|
"babel-jest": "30.2.0",
|
|
53
|
-
"jest-environment-jsdom": "
|
|
41
|
+
"jest-environment-jsdom": "30.2.0"
|
|
54
42
|
},
|
|
55
43
|
"engines": {
|
|
56
|
-
"node": "
|
|
44
|
+
"node": "20 || ^22 || ^24"
|
|
57
45
|
},
|
|
58
46
|
"keywords": [
|
|
59
47
|
"ryunixjs"
|
|
@@ -64,5 +52,14 @@
|
|
|
64
52
|
"bugs": {
|
|
65
53
|
"url": "https://github.com/UnSetSoft/Ryunixjs/issues"
|
|
66
54
|
},
|
|
67
|
-
"homepage": "https://github.com/UnSetSoft/Ryunixjs#readme"
|
|
68
|
-
|
|
55
|
+
"homepage": "https://github.com/UnSetSoft/Ryunixjs#readme",
|
|
56
|
+
"scripts": {
|
|
57
|
+
"build": "rollup -c",
|
|
58
|
+
"canary:release": "npm publish --tag canary",
|
|
59
|
+
"release": "npm publish",
|
|
60
|
+
"lint": "eslint . --ext .js --fix --max-warnings=0 --config .eslintrc.js --no-eslintrc",
|
|
61
|
+
"prettier-check": "prettier -c .",
|
|
62
|
+
"prettier-fix": "prettier -w .",
|
|
63
|
+
"test": "jest --testPathPattern=src"
|
|
64
|
+
}
|
|
65
|
+
}
|