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.
- package/dist/lilact.development.js +337 -227
- package/dist/lilact.development.js.map +1 -1
- package/dist/lilact.development.min.js +1 -1
- package/dist/lilact.development.min.js.LICENSE.txt +6 -0
- package/dist/lilact.development.min.js.map +1 -1
- package/dist/lilact.production.min.js +1 -1
- package/dist/lilact.production.min.js.map +1 -1
- package/docs/classes/accessories.ErrorBoundary.html +11 -11
- package/docs/classes/accessories.Suspense.html +10 -10
- package/docs/classes/components.Component.html +11 -11
- package/docs/classes/components.HTMLComponent.html +11 -11
- package/docs/classes/components.RootComponent.html +11 -11
- package/docs/functions/accessories.DragHandle.html +1 -1
- package/docs/functions/accessories.Spinner.html +1 -1
- package/docs/functions/components.createComponent.html +1 -1
- package/docs/functions/components.createRoot.html +1 -1
- package/docs/functions/components.render.html +1 -1
- package/docs/functions/hooks.createContext.html +1 -1
- package/docs/functions/hooks.useActionState.html +1 -1
- package/docs/functions/hooks.useCallback.html +1 -1
- package/docs/functions/hooks.useContext.html +1 -1
- package/docs/functions/hooks.useDeferredValue.html +1 -1
- package/docs/functions/hooks.useEffect.html +1 -1
- package/docs/functions/hooks.useHook.html +1 -1
- package/docs/functions/hooks.useId.html +1 -1
- package/docs/functions/hooks.useImperativeHandle.html +1 -1
- package/docs/functions/hooks.useLayoutEffect.html +1 -1
- package/docs/functions/hooks.useLocalStorage.html +1 -1
- package/docs/functions/hooks.useMemo.html +1 -1
- package/docs/functions/hooks.useReducer.html +1 -1
- package/docs/functions/hooks.useRef.html +1 -1
- package/docs/functions/hooks.useState.html +1 -1
- package/docs/functions/hooks.useTransition.html +1 -1
- package/docs/functions/redux.Provider.html +1 -1
- package/docs/functions/redux.combineReducers.html +1 -1
- package/docs/functions/redux.connect.html +1 -1
- package/docs/functions/redux.useDispatch.html +1 -1
- package/docs/functions/redux.useSelector.html +1 -1
- package/docs/functions/redux.useStore.html +1 -1
- package/docs/functions/run.lazy.html +1 -1
- package/docs/functions/run.require.html +3 -3
- package/docs/functions/run.run.html +1 -1
- package/docs/functions/run.runScripts.html +3 -3
- package/docs/functions/timers.timeoutPromise.html +133 -2
- package/docs/static/lilact.development.js +337 -227
- package/docs/static/lilact.development.min.js +1 -1
- package/docs/static/lilact.production.min.js +1 -1
- package/docs/variables/accessories.SplitPane.html +1 -1
- package/package.json +1 -1
- package/root/lilact.development.js +337 -227
- package/root/lilact.development.min.js +1 -1
- package/root/lilact.production.min.js +1 -1
- package/src/accessories.jsx +14 -17
- package/src/components.jsx +16 -12
- package/src/hooks.jsx +25 -24
- package/src/lilact.jsx +9 -9
- package/src/loader.cjs +1 -1
- package/src/misc.jsx +1 -4
- package/src/redux.jsx +13 -11
- package/src/router.jsx +1 -1
- package/src/run.jsx +19 -16
- package/src/symbols.jsx +64 -0
- package/src/timers.jsx +6 -6
- package/src/transition.jsx +4 -4
- package/webpack.config.js +7 -3
package/src/transition.jsx
CHANGED
|
@@ -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
|
-
|
|
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) {
|