@unsetsoft/ryunixjs 0.5.3-nightly.8 → 0.5.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/README.md +10 -10
- package/dist/Ryunix.js +4 -3
- package/package.json +1 -1
- package/src/lib/createElement.js +2 -2
- package/src/lib/hooks.js +1 -0
- package/src/lib/index.js +3 -11
- package/src/lib/render.js +1 -0
- package/src/main.js +1 -1
package/README.md
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
<img src="https://raw.githubusercontent.com/UnSetSoft/Ryunixjs/dev/extensions/ryunix/logo-dark.svg" width="200" height="200" style="
|
|
2
|
+
display: block;
|
|
3
|
+
margin: 0 auto;" />
|
|
2
4
|
|
|
3
|
-
[](https://www.npmjs.com/package/@unsetsoft/ryunixjs)[](https://www.npmjs.com/package/@unsetsoft/ryunixjs/v/nightly)
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
### What is RyunixJS?
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
Like React, NextJS, Preact, Vite. Ryunix allows you to build static websites from JavaScript in a similar way to the aforementioned frameworks. However, Ryunix is planned to be completely standalone, i.e. without including React internally. This way allowing it to be more manageable and moldable for each developer. The reactivity of Ryunix is similar to Preact, however, it does not pretend to follow any standard of React or any similar Framework, but to allow to generate an SPA in its own way.
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
### Usage
|
|
10
12
|
|
|
11
13
|
`npx @unsetsoft/cra@latest`
|
|
12
14
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
You can create an issue on GitHub.
|
|
16
|
-
|
|
17
|
-
## Do you want to contribute?
|
|
15
|
+
### Do you want to contribute?
|
|
18
16
|
|
|
19
17
|
Fork a send a pull request!
|
|
18
|
+
|
|
19
|
+
[](https://cafecito.app/neyunse) [](https://ko-fi.com/A1314KEV)
|
package/dist/Ryunix.js
CHANGED
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
DELETION: Symbol(),
|
|
45
45
|
});
|
|
46
46
|
|
|
47
|
-
const
|
|
47
|
+
const Fragment = (props) => {
|
|
48
48
|
return props.children
|
|
49
49
|
};
|
|
50
50
|
|
|
@@ -135,6 +135,7 @@
|
|
|
135
135
|
const init = (root) => {
|
|
136
136
|
const rootElement = root || '__ryunix';
|
|
137
137
|
vars.containerRoot = document.getElementById(rootElement);
|
|
138
|
+
return undefined
|
|
138
139
|
};
|
|
139
140
|
|
|
140
141
|
/**
|
|
@@ -686,7 +687,7 @@
|
|
|
686
687
|
createElement,
|
|
687
688
|
render,
|
|
688
689
|
init,
|
|
689
|
-
|
|
690
|
+
Fragment,
|
|
690
691
|
Dom,
|
|
691
692
|
Workers,
|
|
692
693
|
Reconciler,
|
|
@@ -696,7 +697,7 @@
|
|
|
696
697
|
|
|
697
698
|
window.Ryunix = Ryunix;
|
|
698
699
|
|
|
699
|
-
exports.
|
|
700
|
+
exports.Fragment = Fragment;
|
|
700
701
|
exports.default = Ryunix;
|
|
701
702
|
exports.useCallback = useCallback;
|
|
702
703
|
exports.useEffect = useEffect;
|
package/package.json
CHANGED
package/src/lib/createElement.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RYUNIX_TYPES, STRINGS } from '../utils/index'
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const Fragment = (props) => {
|
|
4
4
|
return props.children
|
|
5
5
|
}
|
|
6
6
|
|
|
@@ -75,4 +75,4 @@ const createTextElement = (text) => {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
export { createElement, createTextElement,
|
|
78
|
+
export { createElement, createTextElement, Fragment, cloneElement }
|
package/src/lib/hooks.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { RYUNIX_TYPES, STRINGS, vars } from '../utils/index'
|
|
2
2
|
import { isEqual } from 'lodash'
|
|
3
|
+
import { Fragment, createElement, cloneElement } from './createElement'
|
|
3
4
|
/**
|
|
4
5
|
* @description The function creates a state.
|
|
5
6
|
* @param initial - The initial value of the state for the hook.
|
package/src/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createElement, cloneElement,
|
|
1
|
+
import { createElement, cloneElement, Fragment } from './createElement'
|
|
2
2
|
import { render, init } from './render'
|
|
3
3
|
import {
|
|
4
4
|
useStore,
|
|
@@ -14,21 +14,13 @@ import * as Reconciler from './reconciler'
|
|
|
14
14
|
import * as Components from './components'
|
|
15
15
|
import * as Commits from './commits'
|
|
16
16
|
|
|
17
|
-
export {
|
|
18
|
-
useStore,
|
|
19
|
-
useEffect,
|
|
20
|
-
useQuery,
|
|
21
|
-
useRef,
|
|
22
|
-
useMemo,
|
|
23
|
-
useCallback,
|
|
24
|
-
Fragments,
|
|
25
|
-
}
|
|
17
|
+
export { useStore, useEffect, useQuery, useRef, useMemo, useCallback, Fragment }
|
|
26
18
|
|
|
27
19
|
export default {
|
|
28
20
|
createElement,
|
|
29
21
|
render,
|
|
30
22
|
init,
|
|
31
|
-
|
|
23
|
+
Fragment,
|
|
32
24
|
Dom,
|
|
33
25
|
Workers,
|
|
34
26
|
Reconciler,
|
package/src/lib/render.js
CHANGED