lilact 0.14.1 → 0.15.0

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.
Files changed (65) hide show
  1. package/dist/lilact.development.js +337 -227
  2. package/dist/lilact.development.js.map +1 -1
  3. package/dist/lilact.development.min.js +1 -1
  4. package/dist/lilact.development.min.js.LICENSE.txt +6 -0
  5. package/dist/lilact.development.min.js.map +1 -1
  6. package/dist/lilact.production.min.js +1 -1
  7. package/dist/lilact.production.min.js.map +1 -1
  8. package/docs/classes/accessories.ErrorBoundary.html +11 -11
  9. package/docs/classes/accessories.Suspense.html +10 -10
  10. package/docs/classes/components.Component.html +11 -11
  11. package/docs/classes/components.HTMLComponent.html +11 -11
  12. package/docs/classes/components.RootComponent.html +11 -11
  13. package/docs/functions/accessories.DragHandle.html +1 -1
  14. package/docs/functions/accessories.Spinner.html +1 -1
  15. package/docs/functions/components.createComponent.html +1 -1
  16. package/docs/functions/components.createRoot.html +1 -1
  17. package/docs/functions/components.render.html +1 -1
  18. package/docs/functions/hooks.createContext.html +1 -1
  19. package/docs/functions/hooks.useActionState.html +1 -1
  20. package/docs/functions/hooks.useCallback.html +1 -1
  21. package/docs/functions/hooks.useContext.html +1 -1
  22. package/docs/functions/hooks.useDeferredValue.html +1 -1
  23. package/docs/functions/hooks.useEffect.html +1 -1
  24. package/docs/functions/hooks.useHook.html +1 -1
  25. package/docs/functions/hooks.useId.html +1 -1
  26. package/docs/functions/hooks.useImperativeHandle.html +1 -1
  27. package/docs/functions/hooks.useLayoutEffect.html +1 -1
  28. package/docs/functions/hooks.useLocalStorage.html +1 -1
  29. package/docs/functions/hooks.useMemo.html +1 -1
  30. package/docs/functions/hooks.useReducer.html +1 -1
  31. package/docs/functions/hooks.useRef.html +1 -1
  32. package/docs/functions/hooks.useState.html +1 -1
  33. package/docs/functions/hooks.useTransition.html +1 -1
  34. package/docs/functions/redux.Provider.html +1 -1
  35. package/docs/functions/redux.combineReducers.html +1 -1
  36. package/docs/functions/redux.connect.html +1 -1
  37. package/docs/functions/redux.useDispatch.html +1 -1
  38. package/docs/functions/redux.useSelector.html +1 -1
  39. package/docs/functions/redux.useStore.html +1 -1
  40. package/docs/functions/run.lazy.html +1 -1
  41. package/docs/functions/run.require.html +3 -3
  42. package/docs/functions/run.run.html +1 -1
  43. package/docs/functions/run.runScripts.html +3 -3
  44. package/docs/functions/timers.timeoutPromise.html +133 -2
  45. package/docs/static/lilact.development.js +337 -227
  46. package/docs/static/lilact.development.min.js +1 -1
  47. package/docs/static/lilact.production.min.js +1 -1
  48. package/docs/variables/accessories.SplitPane.html +1 -1
  49. package/package.json +1 -1
  50. package/root/lilact.development.js +337 -227
  51. package/root/lilact.development.min.js +1 -1
  52. package/root/lilact.production.min.js +1 -1
  53. package/src/accessories.jsx +14 -17
  54. package/src/components.jsx +16 -12
  55. package/src/hooks.jsx +25 -24
  56. package/src/lilact.jsx +9 -9
  57. package/src/loader.cjs +1 -1
  58. package/src/misc.jsx +1 -4
  59. package/src/redux.jsx +13 -11
  60. package/src/router.jsx +1 -1
  61. package/src/run.jsx +19 -16
  62. package/src/symbols.jsx +64 -0
  63. package/src/timers.jsx +6 -6
  64. package/src/transition.jsx +4 -4
  65. package/webpack.config.js +7 -3
@@ -27,8 +27,11 @@
27
27
  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
28
 
29
29
  */
30
+ import { setTimeout, clearTimeout } from "./timers.jsx"
31
+ import { Children } from "./misc.jsx"
32
+ import { useEffect, useLayoutEffect, useMemo, useRef, useState } from "./hooks.jsx"
30
33
 
31
- ʔ defineSymbols ( "LILACT", [ "CORE", "COMPONENT", "CHILD_CLASS_ADDENDUM" ] ) ʔ
34
+ import { CORE, COMPONENT, CHILD_CLASS_ADDENDUM } from "./symbols.jsx"
32
35
 
33
36
  /* States */
34
37
  const UNMOUNTED = "unmounted";
@@ -37,9 +40,6 @@ const ENTERING = "entering";
37
40
  const ENTERED = "entered";
38
41
  const EXITING = "exiting";
39
42
 
40
- import { setTimeout, clearTimeout} from "./timers.jsx"
41
- import { Children } from "./misc.jsx"
42
- import { useEffect, useLayoutEffect, useMemo, useRef, useState } from "./hooks.jsx"
43
43
 
44
44
  /**
45
45
  * Transition component that manages enter/exit lifecycle and calls callbacks based on state changes.
package/webpack.config.js CHANGED
@@ -34,8 +34,7 @@ import { fileURLToPath } from 'url';
34
34
  import { dirname, resolve } from 'path';
35
35
 
36
36
  import fs from 'fs';
37
- import 'webpack';
38
-
37
+ import webpack from 'webpack';
39
38
 
40
39
 
41
40
  export default (env, argv) => {
@@ -118,7 +117,12 @@ export default (env, argv) => {
118
117
  }
119
118
  ]
120
119
  },
121
- plugins: [{
120
+ plugins: [
121
+ new webpack.DefinePlugin({
122
+ "DEBUG": mode==='development'
123
+ }),
124
+
125
+ {
122
126
  apply: (compiler) => {
123
127
  compiler.hooks.done.tap('license-plugin', (compilation) => {
124
128
  fs.readFile('./dist/' + filename, 'utf8', function(err, jssc) {