@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.
Files changed (59) hide show
  1. package/lib/commonjs/components/Block/Block.js +10 -8
  2. package/lib/commonjs/components/Block/Block.js.map +1 -1
  3. package/lib/commonjs/components/InputFocusScrollView/InputFocusScrollView.js +4 -6
  4. package/lib/commonjs/components/InputFocusScrollView/InputFocusScrollView.js.map +1 -1
  5. package/lib/commonjs/components/SkeletorProvider/SkeletorProvider.js +6 -4
  6. package/lib/commonjs/components/SkeletorProvider/SkeletorProvider.js.map +1 -1
  7. package/lib/commonjs/components/Text/Text.js +1 -3
  8. package/lib/commonjs/components/Text/Text.js.map +1 -1
  9. package/lib/commonjs/hooks/skeleform/package.json +1 -1
  10. package/lib/commonjs/hooks/skeleform/src/index.js +43 -25
  11. package/lib/commonjs/hooks/skeleform/src/index.js.map +1 -1
  12. package/lib/commonjs/utils/extract-skeletor-style-properties.js +9 -9
  13. package/lib/commonjs/utils/extract-skeletor-style-properties.js.map +1 -1
  14. package/lib/commonjs/utils/memoize-styles.js +36 -12
  15. package/lib/commonjs/utils/memoize-styles.js.map +1 -1
  16. package/lib/module/components/Block/Block.js +10 -8
  17. package/lib/module/components/Block/Block.js.map +1 -1
  18. package/lib/module/components/InputFocusScrollView/InputFocusScrollView.js +5 -7
  19. package/lib/module/components/InputFocusScrollView/InputFocusScrollView.js.map +1 -1
  20. package/lib/module/components/SkeletorProvider/SkeletorProvider.js +6 -4
  21. package/lib/module/components/SkeletorProvider/SkeletorProvider.js.map +1 -1
  22. package/lib/module/components/Text/Text.js +1 -2
  23. package/lib/module/components/Text/Text.js.map +1 -1
  24. package/lib/module/hooks/skeleform/package.json +1 -1
  25. package/lib/module/hooks/skeleform/src/index.js +43 -25
  26. package/lib/module/hooks/skeleform/src/index.js.map +1 -1
  27. package/lib/module/utils/extract-skeletor-style-properties.js +9 -9
  28. package/lib/module/utils/extract-skeletor-style-properties.js.map +1 -1
  29. package/lib/module/utils/memoize-styles.js +36 -12
  30. package/lib/module/utils/memoize-styles.js.map +1 -1
  31. package/lib/typescript/commonjs/components/Block/Block.d.ts.map +1 -1
  32. package/lib/typescript/commonjs/components/InputFocusScrollView/InputFocusScrollView.d.ts.map +1 -1
  33. package/lib/typescript/commonjs/components/SkeletorProvider/SkeletorProvider.d.ts.map +1 -1
  34. package/lib/typescript/commonjs/components/Text/Text.d.ts +2 -1
  35. package/lib/typescript/commonjs/components/Text/Text.d.ts.map +1 -1
  36. package/lib/typescript/commonjs/hooks/skeleform/src/index.d.ts +3 -1
  37. package/lib/typescript/commonjs/hooks/skeleform/src/index.d.ts.map +1 -1
  38. package/lib/typescript/commonjs/utils/extract-skeletor-style-properties.d.ts.map +1 -1
  39. package/lib/typescript/commonjs/utils/memoize-styles.d.ts +2 -1
  40. package/lib/typescript/commonjs/utils/memoize-styles.d.ts.map +1 -1
  41. package/lib/typescript/module/components/Block/Block.d.ts.map +1 -1
  42. package/lib/typescript/module/components/InputFocusScrollView/InputFocusScrollView.d.ts.map +1 -1
  43. package/lib/typescript/module/components/SkeletorProvider/SkeletorProvider.d.ts.map +1 -1
  44. package/lib/typescript/module/components/Text/Text.d.ts +2 -1
  45. package/lib/typescript/module/components/Text/Text.d.ts.map +1 -1
  46. package/lib/typescript/module/hooks/skeleform/src/index.d.ts +3 -1
  47. package/lib/typescript/module/hooks/skeleform/src/index.d.ts.map +1 -1
  48. package/lib/typescript/module/utils/extract-skeletor-style-properties.d.ts.map +1 -1
  49. package/lib/typescript/module/utils/memoize-styles.d.ts +2 -1
  50. package/lib/typescript/module/utils/memoize-styles.d.ts.map +1 -1
  51. package/package.json +1 -1
  52. package/lib/commonjs/testing/TestingPlayground.js +0 -16
  53. package/lib/commonjs/testing/TestingPlayground.js.map +0 -1
  54. package/lib/module/testing/TestingPlayground.js +0 -16
  55. package/lib/module/testing/TestingPlayground.js.map +0 -1
  56. package/lib/typescript/commonjs/testing/TestingPlayground.d.ts +0 -2
  57. package/lib/typescript/commonjs/testing/TestingPlayground.d.ts.map +0 -1
  58. package/lib/typescript/module/testing/TestingPlayground.d.ts +0 -2
  59. 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 function
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;AA2B9C;;GAEG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,SAAS,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAc3D"}
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
@@ -6,7 +6,7 @@
6
6
  "Luka Buljan <luka@prototyp.digital>",
7
7
  "Vlatko Vlahek <vlatko@prototyp.digital>"
8
8
  ],
9
- "version": "1.3.0-beta0",
9
+ "version": "1.3.0-beta2",
10
10
  "license": "MIT",
11
11
  "main": "./lib/commonjs/index.js",
12
12
  "module": "./lib/module/index.js",
@@ -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,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=TestingPlayground.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TestingPlayground.d.ts","sourceRoot":"","sources":["../../../../src/testing/TestingPlayground.tsx"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=TestingPlayground.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TestingPlayground.d.ts","sourceRoot":"","sources":["../../../../src/testing/TestingPlayground.tsx"],"names":[],"mappings":""}