@prototyp/skeletor 1.3.0-beta0 → 1.3.0-beta2
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/commonjs/components/Block/Block.js +10 -8
- package/lib/commonjs/components/Block/Block.js.map +1 -1
- package/lib/commonjs/components/InputFocusScrollView/InputFocusScrollView.js +4 -6
- package/lib/commonjs/components/InputFocusScrollView/InputFocusScrollView.js.map +1 -1
- package/lib/commonjs/components/SkeletorProvider/SkeletorProvider.js +6 -4
- package/lib/commonjs/components/SkeletorProvider/SkeletorProvider.js.map +1 -1
- package/lib/commonjs/components/Text/Text.js +1 -3
- package/lib/commonjs/components/Text/Text.js.map +1 -1
- package/lib/commonjs/hooks/skeleform/package.json +1 -1
- package/lib/commonjs/hooks/skeleform/src/index.js +43 -25
- package/lib/commonjs/hooks/skeleform/src/index.js.map +1 -1
- package/lib/commonjs/utils/extract-skeletor-style-properties.js +9 -9
- package/lib/commonjs/utils/extract-skeletor-style-properties.js.map +1 -1
- package/lib/commonjs/utils/memoize-styles.js +36 -12
- package/lib/commonjs/utils/memoize-styles.js.map +1 -1
- package/lib/module/components/Block/Block.js +10 -8
- package/lib/module/components/Block/Block.js.map +1 -1
- package/lib/module/components/InputFocusScrollView/InputFocusScrollView.js +5 -7
- package/lib/module/components/InputFocusScrollView/InputFocusScrollView.js.map +1 -1
- package/lib/module/components/SkeletorProvider/SkeletorProvider.js +6 -4
- package/lib/module/components/SkeletorProvider/SkeletorProvider.js.map +1 -1
- package/lib/module/components/Text/Text.js +1 -2
- package/lib/module/components/Text/Text.js.map +1 -1
- package/lib/module/hooks/skeleform/package.json +1 -1
- package/lib/module/hooks/skeleform/src/index.js +43 -25
- package/lib/module/hooks/skeleform/src/index.js.map +1 -1
- package/lib/module/utils/extract-skeletor-style-properties.js +9 -9
- package/lib/module/utils/extract-skeletor-style-properties.js.map +1 -1
- package/lib/module/utils/memoize-styles.js +36 -12
- package/lib/module/utils/memoize-styles.js.map +1 -1
- package/lib/typescript/commonjs/components/Block/Block.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/InputFocusScrollView/InputFocusScrollView.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/SkeletorProvider/SkeletorProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Text/Text.d.ts +2 -1
- package/lib/typescript/commonjs/components/Text/Text.d.ts.map +1 -1
- package/lib/typescript/commonjs/hooks/skeleform/src/index.d.ts +3 -1
- package/lib/typescript/commonjs/hooks/skeleform/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/extract-skeletor-style-properties.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/memoize-styles.d.ts +2 -1
- package/lib/typescript/commonjs/utils/memoize-styles.d.ts.map +1 -1
- package/lib/typescript/module/components/Block/Block.d.ts.map +1 -1
- package/lib/typescript/module/components/InputFocusScrollView/InputFocusScrollView.d.ts.map +1 -1
- package/lib/typescript/module/components/SkeletorProvider/SkeletorProvider.d.ts.map +1 -1
- package/lib/typescript/module/components/Text/Text.d.ts +2 -1
- package/lib/typescript/module/components/Text/Text.d.ts.map +1 -1
- package/lib/typescript/module/hooks/skeleform/src/index.d.ts +3 -1
- package/lib/typescript/module/hooks/skeleform/src/index.d.ts.map +1 -1
- package/lib/typescript/module/utils/extract-skeletor-style-properties.d.ts.map +1 -1
- package/lib/typescript/module/utils/memoize-styles.d.ts +2 -1
- package/lib/typescript/module/utils/memoize-styles.d.ts.map +1 -1
- package/package.json +1 -1
- package/lib/commonjs/testing/TestingPlayground.js +0 -16
- package/lib/commonjs/testing/TestingPlayground.js.map +0 -1
- package/lib/module/testing/TestingPlayground.js +0 -16
- package/lib/module/testing/TestingPlayground.js.map +0 -1
- package/lib/typescript/commonjs/testing/TestingPlayground.d.ts +0 -2
- package/lib/typescript/commonjs/testing/TestingPlayground.d.ts.map +0 -1
- package/lib/typescript/module/testing/TestingPlayground.d.ts +0 -2
- package/lib/typescript/module/testing/TestingPlayground.d.ts.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ViewStyle } from "react-native";
|
|
2
2
|
/**
|
|
3
|
-
* High-performance memoizeStyle
|
|
3
|
+
* High-performance memoizeStyle with hash-based lookup and collision detection
|
|
4
|
+
* Uses a fast hash for primary lookup, but verifies the key to catch collisions
|
|
4
5
|
*/
|
|
5
6
|
export declare function memoizeStyle<T extends ViewStyle>(obj: T): T;
|
|
6
7
|
//# sourceMappingURL=memoize-styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memoize-styles.d.ts","sourceRoot":"","sources":["../../../../src/utils/memoize-styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"memoize-styles.d.ts","sourceRoot":"","sources":["../../../../src/utils/memoize-styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AA8C9C;;;GAGG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,SAAS,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAoB3D"}
|
package/package.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _index = require("../components/index.js");
|
|
4
|
-
var _index2 = require("../hooks/index.js");
|
|
5
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
6
|
-
const _TestingPlayground = () => {
|
|
7
|
-
const transition = (0, _index2.useAnimateParallel)({
|
|
8
|
-
scale: [0, 1]
|
|
9
|
-
});
|
|
10
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Screen, {
|
|
11
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Block, {
|
|
12
|
-
animations: transition.animations
|
|
13
|
-
})
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=TestingPlayground.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_index","require","_index2","_jsxRuntime","_TestingPlayground","transition","useAnimateParallel","scale","jsx","Screen","children","Block","animations"],"sourceRoot":"../../../src","sources":["testing/TestingPlayground.tsx"],"mappings":";;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAA8C,IAAAE,WAAA,GAAAF,OAAA;AAE9C,MAAMG,kBAA4B,GAAGA,CAAA,KAAM;EAC1C,MAAMC,UAAU,GAAG,IAAAC,0BAAkB,EAAC;IAAEC,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC;EAAE,CAAC,CAAC;EAExD,oBACC,IAAAJ,WAAA,CAAAK,GAAA,EAACR,MAAA,CAAAS,MAAM;IAAAC,QAAA,eACN,IAAAP,WAAA,CAAAK,GAAA,EAACR,MAAA,CAAAW,KAAK;MAACC,UAAU,EAAEP,UAAU,CAACO;IAAW,CAAE;EAAC,CACrC,CAAC;AAEX,CAAC","ignoreList":[]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { Block, Screen } from "../components/index.js";
|
|
4
|
-
import { useAnimateParallel } from "../hooks/index.js";
|
|
5
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
const _TestingPlayground = () => {
|
|
7
|
-
const transition = useAnimateParallel({
|
|
8
|
-
scale: [0, 1]
|
|
9
|
-
});
|
|
10
|
-
return /*#__PURE__*/_jsx(Screen, {
|
|
11
|
-
children: /*#__PURE__*/_jsx(Block, {
|
|
12
|
-
animations: transition.animations
|
|
13
|
-
})
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=TestingPlayground.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Block","Screen","useAnimateParallel","jsx","_jsx","_TestingPlayground","transition","scale","children","animations"],"sourceRoot":"../../../src","sources":["testing/TestingPlayground.tsx"],"mappings":";;AAAA,SAASA,KAAK,EAAEC,MAAM,QAAQ,wBAAe;AAC7C,SAASC,kBAAkB,QAAQ,mBAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE9C,MAAMC,kBAA4B,GAAGA,CAAA,KAAM;EAC1C,MAAMC,UAAU,GAAGJ,kBAAkB,CAAC;IAAEK,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC;EAAE,CAAC,CAAC;EAExD,oBACCH,IAAA,CAACH,MAAM;IAAAO,QAAA,eACNJ,IAAA,CAACJ,KAAK;MAACS,UAAU,EAAEH,UAAU,CAACG;IAAW,CAAE;EAAC,CACrC,CAAC;AAEX,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TestingPlayground.d.ts","sourceRoot":"","sources":["../../../../src/testing/TestingPlayground.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TestingPlayground.d.ts","sourceRoot":"","sources":["../../../../src/testing/TestingPlayground.tsx"],"names":[],"mappings":""}
|