@unsetsoft/ryunixjs 0.2.8-nightly.0 → 0.2.8-nightly.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/lib/dom.js CHANGED
@@ -236,6 +236,7 @@ let containerRoot = null;
236
236
  * root or container for a web application or component. The `createRoot` function takes this element
237
237
  * as an argument and assigns it to a variable called `containerRoot`. This variable can then be used
238
238
  * to manipulate the contents
239
+ * @example Ryunix.init(document.getElementById("root");)
239
240
  */
240
241
  function createRoot(root) {
241
242
  containerRoot = root;
@@ -512,18 +513,11 @@ function useEffect(effect, deps) {
512
513
 
513
514
  // export
514
515
 
515
- export {
516
- // Main functions
517
- createElement,
518
- render,
519
- createRoot,
520
- init,
521
- // Hooks
522
- useStore,
523
- useEffect,
524
- };
516
+ export { useStore, useEffect };
525
517
 
526
518
  export default {
527
519
  createElement,
528
520
  render,
521
+ createRoot,
522
+ init,
529
523
  };
package/lib/main.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import Ryunix from "./dom";
2
2
 
3
- export { useStore, useEffect, createElement, render, createRoot } from "./dom";
3
+ export { useStore, useEffect } from "./dom";
4
4
 
5
5
  window.Ryunix = Ryunix;
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unsetsoft/ryunixjs",
3
- "version": "0.2.8-nightly.0",
3
+ "version": "0.2.8-nightly.2",
4
4
  "license": "MIT",
5
5
  "main": "./dist/Ryunix.js",
6
6
  "private": false,