react-native-unistyles 3.0.0-alpha.28 → 3.0.0-alpha.29

Sign up to get free protection for your applications and to get access to all the features.
Files changed (151) hide show
  1. package/README.md +7 -0
  2. package/android/CMakeLists.txt +12 -21
  3. package/cxx/core/UnistylesMountHook.cpp +0 -10
  4. package/cxx/core/UnistylesMountHook.h +3 -8
  5. package/cxx/hybridObjects/HybridStyleSheet.cpp +66 -32
  6. package/cxx/hybridObjects/HybridStyleSheet.h +9 -1
  7. package/cxx/hybridObjects/HybridUnistylesRuntime.cpp +15 -7
  8. package/cxx/hybridObjects/HybridUnistylesRuntime.h +5 -1
  9. package/cxx/parser/Parser.cpp +0 -1
  10. package/ios/NativePlatform+ios.swift +16 -5
  11. package/ios/NativePlatform+keyboard.swift +83 -0
  12. package/ios/NativePlatformListener+ios.swift +19 -6
  13. package/ios/UnistylesModuleOnLoad.h +3 -1
  14. package/ios/UnistylesModuleOnLoad.mm +11 -1
  15. package/lib/commonjs/core/index.js.map +1 -1
  16. package/lib/commonjs/index.js.map +1 -1
  17. package/lib/commonjs/mq.js +4 -1
  18. package/lib/commonjs/mq.js.map +1 -2
  19. package/lib/commonjs/specs/NativePlatform/NativePlatform.nitro.js +1 -0
  20. package/lib/commonjs/specs/NativePlatform/NativePlatform.nitro.js.map +1 -2
  21. package/lib/commonjs/specs/NavigtionBar/UnistylesNavigationBar.nitro.js.map +1 -1
  22. package/lib/commonjs/specs/NavigtionBar/index.js.map +1 -2
  23. package/lib/commonjs/specs/StatusBar/index.js.map +1 -2
  24. package/lib/commonjs/specs/TurboUnistyles/NativeTurboUnistyles.js +1 -3
  25. package/lib/commonjs/specs/TurboUnistyles/NativeTurboUnistyles.js.map +2 -1
  26. package/lib/commonjs/specs/TurboUnistyles/index.js.map +1 -1
  27. package/lib/commonjs/specs/UnistylesRuntime/index.js.map +2 -1
  28. package/lib/commonjs/specs/index.js.map +1 -1
  29. package/lib/commonjs/specs/index.web.js.map +2 -1
  30. package/lib/commonjs/web/convert/index.js +7 -1
  31. package/lib/commonjs/web/convert/shadow.js +5 -1
  32. package/lib/commonjs/web/convert/shadow.js.map +1 -2
  33. package/lib/commonjs/web/convert/textShadow.js +4 -1
  34. package/lib/commonjs/web/convert/textShadow.js.map +1 -2
  35. package/lib/commonjs/web/convert/transform.js.map +1 -2
  36. package/lib/commonjs/web/create.js +6 -5
  37. package/lib/commonjs/web/create.js.map +1 -2
  38. package/lib/commonjs/web/mock.js.map +1 -2
  39. package/lib/commonjs/web/registry.js +1 -4
  40. package/lib/commonjs/web/registry.js.map +1 -1
  41. package/lib/commonjs/web/runtime.js.map +1 -2
  42. package/lib/commonjs/web/shadowRegistry.js +1 -4
  43. package/lib/commonjs/web/shadowRegistry.js.map +1 -1
  44. package/lib/commonjs/web/utils/common.js +3 -1
  45. package/lib/commonjs/web/utils/common.js.map +1 -2
  46. package/lib/commonjs/web/variants/index.js.map +1 -1
  47. package/lib/module/common.js.map +1 -1
  48. package/lib/module/core/useBreakpoint.js.map +1 -1
  49. package/lib/module/core/useBreakpoint.native.js.map +1 -2
  50. package/lib/module/core/useTheme.js.map +1 -2
  51. package/lib/module/core/useTheme.native.js.map +1 -2
  52. package/lib/module/index.js.map +1 -1
  53. package/lib/module/mq.js +4 -1
  54. package/lib/module/mq.js.map +1 -2
  55. package/lib/module/specs/NativePlatform/NativePlatform.nitro.js +7 -5
  56. package/lib/module/specs/NativePlatform/NativePlatform.nitro.js.map +2 -1
  57. package/lib/module/specs/NavigtionBar/index.js.map +1 -2
  58. package/lib/module/specs/ShadowRegistry/index.js.map +1 -2
  59. package/lib/module/specs/StatusBar/UnistylesStatusBar.nitro.js.map +2 -1
  60. package/lib/module/specs/TurboUnistyles/NativeTurboUnistyles.js.map +1 -2
  61. package/lib/module/specs/index.js.map +2 -1
  62. package/lib/module/specs/types.js +10 -10
  63. package/lib/module/specs/types.js.map +2 -1
  64. package/lib/module/web/convert/boxShadow.js +4 -1
  65. package/lib/module/web/convert/boxShadow.js.map +1 -2
  66. package/lib/module/web/convert/pseudo.js.map +1 -2
  67. package/lib/module/web/convert/shadow.js +5 -1
  68. package/lib/module/web/convert/shadow.js.map +1 -2
  69. package/lib/module/web/convert/style.js.map +1 -2
  70. package/lib/module/web/convert/textShadow.js +4 -1
  71. package/lib/module/web/convert/textShadow.js.map +1 -2
  72. package/lib/module/web/convert/transform.js.map +1 -2
  73. package/lib/module/web/convert/utils.js.map +1 -2
  74. package/lib/module/web/create.js +2 -5
  75. package/lib/module/web/create.js.map +1 -1
  76. package/lib/module/web/index.js +2 -1
  77. package/lib/module/web/index.js.map +1 -2
  78. package/lib/module/web/listener.js.map +1 -2
  79. package/lib/module/web/mock.js.map +1 -2
  80. package/lib/module/web/registry.js +5 -6
  81. package/lib/module/web/registry.js.map +1 -2
  82. package/lib/module/web/runtime.js.map +1 -2
  83. package/lib/module/web/shadowRegistry.js +11 -6
  84. package/lib/module/web/shadowRegistry.js.map +1 -2
  85. package/lib/module/web/utils/index.js.map +1 -1
  86. package/lib/module/web/utils/unistyle.js.map +1 -2
  87. package/lib/module/web/variants/index.js.map +1 -1
  88. package/lib/module/web/variants/useVariants.js +2 -1
  89. package/lib/module/web/variants/useVariants.js.map +1 -2
  90. package/lib/typescript/src/specs/NativePlatform/NativePlatform.nitro.d.ts +4 -1
  91. package/lib/typescript/src/specs/NativePlatform/NativePlatform.nitro.d.ts.map +1 -1
  92. package/lib/typescript/src/types/breakpoints.d.ts +11 -11
  93. package/lib/typescript/src/types/breakpoints.d.ts.map +1 -1
  94. package/lib/typescript/src/web/create.d.ts.map +1 -1
  95. package/lib/typescript/src/web/registry.d.ts.map +1 -1
  96. package/lib/typescript/src/web/shadowRegistry.d.ts.map +1 -1
  97. package/nitrogen/generated/android/c++/JFunc_void.hpp +48 -0
  98. package/nitrogen/generated/android/c++/JHybridNativePlatformSpec.cpp +9 -0
  99. package/nitrogen/generated/android/c++/JHybridNativePlatformSpec.hpp +2 -0
  100. package/nitrogen/generated/android/c++/JUnistyleDependency.hpp +3 -0
  101. package/nitrogen/generated/android/kotlin/com/margelo/nitro/unistyles/Func_void.kt +45 -0
  102. package/nitrogen/generated/android/kotlin/com/margelo/nitro/unistyles/HybridNativePlatformSpec.kt +15 -0
  103. package/nitrogen/generated/android/kotlin/com/margelo/nitro/unistyles/UnistyleDependency.kt +2 -1
  104. package/nitrogen/generated/android/unistylesOnLoad.cpp +2 -0
  105. package/nitrogen/generated/ios/Unistyles-Swift-Cxx-Bridge.hpp +29 -1
  106. package/nitrogen/generated/ios/c++/HybridNativePlatformSpecSwift.hpp +6 -0
  107. package/nitrogen/generated/ios/swift/HybridNativePlatformSpec.swift +2 -0
  108. package/nitrogen/generated/ios/swift/HybridNativePlatformSpecCxx.swift +27 -0
  109. package/nitrogen/generated/ios/swift/UnistyleDependency.swift +4 -0
  110. package/nitrogen/generated/shared/c++/HybridNativePlatformSpec.cpp +2 -0
  111. package/nitrogen/generated/shared/c++/HybridNativePlatformSpec.hpp +2 -0
  112. package/nitrogen/generated/shared/c++/UnistyleDependency.hpp +2 -1
  113. package/package.json +1 -1
  114. package/plugin/common.js +9 -0
  115. package/plugin/stylesheet.js +7 -1
  116. package/src/specs/NativePlatform/NativePlatform.nitro.ts +5 -2
  117. package/src/types/breakpoints.ts +25 -13
  118. package/src/web/create.ts +2 -5
  119. package/src/web/registry.ts +2 -5
  120. package/src/web/shadowRegistry.ts +2 -5
  121. package/src/common.js +0 -4
  122. package/src/core/index.js +0 -2
  123. package/src/core/useBreakpoint.js +0 -14
  124. package/src/core/useBreakpoint.native.js +0 -16
  125. package/src/core/useTheme.js +0 -14
  126. package/src/core/useTheme.native.js +0 -16
  127. package/src/index.js +0 -3
  128. package/src/mq.js +0 -38
  129. package/src/web/convert/boxShadow.js +0 -59
  130. package/src/web/convert/index.js +0 -56
  131. package/src/web/convert/pseudo.js +0 -131
  132. package/src/web/convert/shadow.js +0 -50
  133. package/src/web/convert/style.js +0 -137
  134. package/src/web/convert/textShadow.js +0 -56
  135. package/src/web/convert/transform.js +0 -65
  136. package/src/web/convert/types.js +0 -2
  137. package/src/web/convert/utils.js +0 -39
  138. package/src/web/create.js +0 -39
  139. package/src/web/index.js +0 -22
  140. package/src/web/listener.js +0 -26
  141. package/src/web/mock.js +0 -21
  142. package/src/web/mq.js +0 -14
  143. package/src/web/registry.js +0 -168
  144. package/src/web/runtime.js +0 -160
  145. package/src/web/shadowRegistry.js +0 -99
  146. package/src/web/utils/common.js +0 -79
  147. package/src/web/utils/index.js +0 -2
  148. package/src/web/utils/unistyle.js +0 -72
  149. package/src/web/variants/getVariants.js +0 -26
  150. package/src/web/variants/index.js +0 -2
  151. package/src/web/variants/useVariants.js +0 -50
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  import { UnistylesRegistry } from './registry';
4
- import { createDoubleMap, equal, extractSecrets, extractUnistyleDependencies, isInDocument } from './utils';
4
+ import { createDoubleMap, deepMergeObjects, equal, extractSecrets, extractUnistyleDependencies, isInDocument } from './utils';
5
5
  import { getVariants } from './variants';
6
6
  class UnistylesShadowRegistryBuilder {
7
7
  // MOCKS
@@ -11,6 +11,7 @@ class UnistylesShadowRegistryBuilder {
11
11
  toString = () => 'UnistylesShadowRegistry';
12
12
  dispose = () => {};
13
13
  // END MOCKS
14
+
14
15
  resultsMap = createDoubleMap();
15
16
  classNamesMap = createDoubleMap();
16
17
  add = (ref, _style, _variants, _args) => {
@@ -18,15 +19,18 @@ class UnistylesShadowRegistryBuilder {
18
19
  if (!_style) {
19
20
  return;
20
21
  }
22
+
21
23
  // Array of styles
22
24
  if (Array.isArray(_style)) {
23
25
  _style.forEach(style => this.add(ref, style, _variants, _args));
24
26
  return;
25
27
  }
28
+
26
29
  // Not a unistyle
27
30
  if (!Object.keys(_style).some(key => key.startsWith('__uni__'))) {
28
31
  return;
29
32
  }
33
+
30
34
  // Ref is unmounted, remove style tags from the document
31
35
  if (ref === null) {
32
36
  const secrets = extractSecrets(_style);
@@ -48,6 +52,7 @@ class UnistylesShadowRegistryBuilder {
48
52
  });
49
53
  return;
50
54
  }
55
+
51
56
  // Ref is not an HTMLElement
52
57
  if (!(ref instanceof HTMLElement)) {
53
58
  return;
@@ -70,20 +75,20 @@ class UnistylesShadowRegistryBuilder {
70
75
  } = Object.fromEntries(getVariants({
71
76
  variantsResult: result
72
77
  }, variants));
73
- const resultWithVariants = {
74
- ...result,
75
- ...variantsResult
76
- };
78
+ const resultWithVariants = deepMergeObjects(result, variantsResult ?? {});
77
79
  const oldResult = this.resultsMap.get(ref, __uni__key);
80
+
78
81
  // If results are the same do nothing
79
82
  if (equal(oldResult, resultWithVariants)) {
80
83
  return;
81
84
  }
82
85
  const oldClassNames = this.classNamesMap.get(ref, __uni__key);
86
+
83
87
  // Remove old styles
84
88
  if (oldResult) {
85
89
  UnistylesRegistry.remove(oldResult);
86
90
  }
91
+
87
92
  // Remove old classnames from the ref
88
93
  oldClassNames?.forEach(className => ref.classList.remove(className));
89
94
  this.resultsMap.set(ref, __uni__key, resultWithVariants);
@@ -110,4 +115,4 @@ class UnistylesShadowRegistryBuilder {
110
115
  remove = () => {};
111
116
  }
112
117
  export const UnistylesShadowRegistry = new UnistylesShadowRegistryBuilder();
113
- //# sourceMappingURL=shadowRegistry.js.mapy.js.map
118
+ //# sourceMappingURL=shadowRegistry.js.map
@@ -1,2 +1 @@
1
- {"version":3,"names":["UnistylesRegistry","createDoubleMap","equal","extractSecrets","extractUnistyleDependencies","isInDocument","getVariants","UnistylesShadowRegistryBuilder","name","__type","equals","toString","dispose","resultsMap","classNamesMap","add","ref","_style","_variants","_args","Array","isArray","forEach","style","Object","keys","some","key","startsWith","secrets","__uni__refs","__uni__key","oldResult","get","delete","remove","HTMLElement","secret","__uni__stylesheet","__uni__variants","__uni__args","newComputedStylesheet","getComputedStylesheet","args","variants","length","result","variantsResult","fromEntries","resultWithVariants","oldClassNames","className","classList","set","stylesheet","value","injectedClassNames","_web","_classNames","newClassNames","concat","dependencies","addDependenciesToStylesheet","UnistylesShadowRegistry"],"sourceRoot":"../../../src","sources":["web/shadowReg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AAC;EACN,CAAC;EACDxB,MAAM,GAAGA,CAAA,KAAM,CAAE,CAAC;AACtB;AACA,OAAO,MAAM4B,uBAAuB,GAAG,IAAIxD,8BAA8B,CAAC,CAAC","ignoreList":[]}
2
- oreList":[]}
1
+ {"version":3,"names":["UnistylesRegistry","createDoubleMap","deepMergeObjects","equal","extractSecrets","extractUnistyleDependencies","isInDocument","getVariants","UnistylesShadowRegistryBuilder","name","__type","equals","toString","dispose","resultsMap","classNamesMap","add","ref","_style","_variants","_args","Array","isArray","forEach","style","Object","keys","some","key","startsWith","secrets","__uni__refs","__uni__key","oldResult","get","delete","remove","HTMLElement","secret","__uni__stylesheet","__uni__variants","__uni__args","newComputedStylesheet","getComputedStylesheet","args","variants","length","result","variantsResult","fromEntries","resultWithVariants","oldClassNames","className","classList","set","stylesheet","value","injectedClassNames","_web","_classNames","newClassNames","concat","dependencies","addDependenciesToStylesheet","UnistylesShadowRegistry"],"sourceRoot":"../../../src","sources":["web/shadowRegistry.ts"],"mappings":";;AACA,SAASA,iBAAiB,QAAQ,YAAY;AAC9C,SAASC,eAAe,EAAEC,gBAAgB,EAAEC,KAAK,EAAEC,cAAc,EAAEC,2BAA2B,EAAEC,YAAY,QAAQ,SAAS;AAC7H,SAASC,WAAW,QAAQ,YAAY;AAIxC,MAAMC,8BAA8B,CAAC;EACjC;EACAC,IAAI,GAAG,yBAAyB;EAChCC,MAAM,GAAG,KAAK;EACdC,MAAM,GAAGA,CAAA,KAAM,IAAI;EACnBC,QAAQ,GAAGA,CAAA,KAAM,yBAAyB;EAC1CC,OAAO,GAAGA,CAAA,KAAM,CAAC,CAAC;EAClB;;EAEQC,UAAU,GAAGb,eAAe,CAAuC,CAAC;EACpEc,aAAa,GAAGd,eAAe,CAAqC,CAAC;EAE7Ee,GAAG,GAAGA,CAACC,GAAQ,EAAEC,MAA6B,EAAEC,SAA+B,EAAEC,KAAkB,KAAK;IACpG;IACA,IAAI,CAACF,MAAM,EAAE;MACT;IACJ;;IAEA;I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,GAAG,CAAC;QACpCY,GAAG,EAAEI,UAAU;QACfY,IAAI;QACJW,UAAU,EAAEhB,iBAAiB;QAC7BiB,KAAK,EAAEN,kBAAkB;QACzBL;MACJ,CAAC,CAAC;MACF,MAAMY,kBAAiC,GAAGP,kBAAkB,EAAEQ,IAAI,EAAEC,WAAW,IAAI,EAAE;MACrF,MAAMC,aAAa,GAAGH,kBAAkB,CAACI,MAAM,CAACT,SAAS,CAAC;MAC1D,MAAMU,YAAY,GAAGzD,2BAA2B,CAAC6C,kBAAkB,CAAC;MAEpE,IAAI,OAAOX,iBAAiB,KAAK,UAAU,EAAE;QACzC;QACAvC,iBAAiB,CAAC+D,2BAA2B,CAACxB,iBAAiB,EAAEuB,YAAY,CAAC;MAClF;MAEA/B,WAAW,CAACf,GAAG,CAACC,GAAG,CAAC;MACpB,IAAI,CAACF,aAAa,CAACuC,GAAG,CAACrC,GAAG,EAAEe,UAAU,EAAE4B,aAAa,CAAC;MACtD;MACA3C,GAAG,CAACoC,SAAS,CAACrC,GAAG,CAAC,GAAG4C,aAAa,CAAC;IACvC,CAAC,CAAC;EACN,CAAC;EAEDxB,MAAM,GAAGA,CAAA,KAAM,CAAC,CAAC;AACrB;AAEA,OAAO,MAAM4B,uBAAuB,GAAG,IAAIxD,8BAA8B,CAAC,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["web/utils/index.js"],"mappings":";;AAAA,cAAc,UAAU;AACxB,cAAc,YAAY","ignoreList":[]}
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["web/utils/index.ts"],"mappings":";;AAAA,cAAc,UAAU;AACxB,cAAc,YAAY","ignoreList":[]}
@@ -1,2 +1 @@
1
- {"version":3,"names":["ColorScheme","Orientation","isUnistylesMq","parseMq","UnistylesState","keyInObject","reduceObject","schemeToTheme","scheme","Dark","Light","hexToRGBA","hex","opacity","replace","split","map","x","parseInt","filter","num","isNaN","reduce","acc","color","concat","assignSecrets","object","secrets","Math","random","toString","slice","extractSecrets","Object","entries","key","value","startsWith","push","getStyles","values","returnValue","defineProperties","enumerable","configurable","isInDocument","element","document","body","contains","extractMediaQueryValue","query","_","px","match","undefined","Number","getMediaQuery","includes","minWidth","maxWidth","minHeight","maxHeight","Boolean","join","breakpoints","extractUnistyleDependencies","dependencies","uni__dependencies"],"sourceRoot":"../../../../src","sources":["web/utils/unistyle.js"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,WAAW,QAAQ,mBAAmB;AAC5D,SAASC,aAAa,EAAEC,OAAO,QAAQ,OAAO;AAC9C,SAASC,cAAc,QAAQ,UAAU;AACzC,SAASC,WAAW,EAAEC,YAAY,QAAQ,UAAU;AACpD,OAAO,MAAMC,aAAa,GAAIC,MAAM,IAAK;EACrC,QAAQA,MAAM;IACV,KAAKR,WAAW,CAACS,IAAI;MACjB,OAAO,MAAM;IACjB,KAAKT,WAAW,CAACU,KAAK;IACtB;MACI,OAAO,OAAO;EACtB;AACJ,CAAC;AACD,OAAO,MAAMC,SAAS,GAAGA,CAACC,GAAG,EAAEC,OAAO,KAAKD,GAAG,CACzCE,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAChBC,KAAK,CAAC,cAAc,CAAC,CACrBC,GAAG,CAACC,CAAC,IAAIC,QAAQ,CAACD,CAAC,EAAE,EAAE,CAAC,CAAC,CACzBE,MAAM,CAACC,GAAG,IAAI,CAACC,KAAK,CAACD,GAAG,CAAC,CAAC,CAC1BE,MAAM,CAAC,CAACC,GAAG,EAAEC,KAAK,KAAK,GAAGD,GAAG,GAAGC,KAAK,GAAG,EAAE,OAAO,CAAC,CAClDC,MAAM,CAAC,GAAGZ,OAAO,GAAG,CAAC;AAC1B,OAAO,MAAMa,aAAa,GAAGA,CAACC,MAAM,EAAEC,OAAO,KAAK;EAC9C;EACAD,MAAM,CAAC,mBAAmBE,IAAI,CAACC,MAAM,CAAC,CAAC,CAACC,QAAQ,CAAC,EAAE,CAAC,CAACC,KAAK,C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,CAACxC,WAAW,CAAC,CAAC0D,QAAQ,CAACP,KAAK,CAAC,EAAE;IAC5C,OAAO,iBAAiBA,KAAK,GAAG;EACpC;EACA,IAAIlD,aAAa,CAACkD,KAAK,CAAC,EAAE;IACtB,MAAM;MAAEQ,QAAQ;MAAEC,QAAQ;MAAEC,SAAS;MAAEC;IAAU,CAAC,GAAG5D,OAAO,CAACiD,KAAK,CAAC;IACnE,OAAO,CACHQ,QAAQ,GAAG,eAAeA,QAAQ,KAAK,GAAGJ,SAAS,EACnDK,QAAQ,GAAG,eAAeA,QAAQ,KAAK,GAAGL,SAAS,EACnDM,SAAS,GAAG,gBAAgBA,SAAS,KAAK,GAAGN,SAAS,EACtDO,SAAS,GAAG,gBAAgBA,SAAS,KAAK,GAAGP,SAAS,CACzD,CAACrC,MAAM,CAAC6C,OAAO,CAAC,CAACC,IAAI,CAAC,OAAO,CAAC;EACnC;EACA,MAAML,QAAQ,GAAGxD,cAAc,CAAC8D,WAAW,IAAI7D,WAAW,CAACD,cAAc,CAAC8D,WAAW,EAAEd,KAAK,CAAC,GAAGhD,cAAc,CAAC8D,WAAW,CAACd,KAAK,CAAC,GAAGI,SAAS;EAC7I,OAAO,eAAeI,QAAQ,IAAI,CAAC,KAAK;AAC5C,CAAC;AACD,OAAO,MAAMO,2BAA2B,GAAI9B,KAAK,IAAK;EAClD,MAAM+B,YAAY,GAAG/D,WAAW,CAACgC,KAAK,EAAE,mBAAmB,CAAC,GAAGA,KAAK,CAACgC,iBAAiB,GAAG,EAAE;EAC3F,OAAOD,YAAY;AACvB,CAAC","ignoreList":[]}
2
- ist":[]}
1
+ {"version":3,"names":["ColorScheme","Orientation","isUnistylesMq","parseMq","UnistylesState","keyInObject","reduceObject","schemeToTheme","scheme","Dark","Light","hexToRGBA","hex","opacity","replace","split","map","x","parseInt","filter","num","isNaN","reduce","acc","color","concat","assignSecrets","object","secrets","Math","random","toString","slice","extractSecrets","Object","entries","key","value","startsWith","push","getStyles","values","returnValue","defineProperties","enumerable","configurable","isInDocument","element","document","body","contains","extractMediaQueryValue","query","_","px","match","undefined","Number","getMediaQuery","includes","minWidth","maxWidth","minHeight","maxHeight","Boolean","join","breakpoints","extractUnistyleDependencies","dependencies","uni__dependencies"],"sourceRoot":"../../../../src","sources":["web/utils/unistyle.ts"],"mappings":";;AACA,SAASA,WAAW,EAAEC,WAAW,QAAQ,mBAAmB;AAE5D,SAASC,aAAa,EAAEC,OAAO,QAAQ,OAAO;AAC9C,SAASC,cAAc,QAAQ,UAAU;AACzC,SAASC,WAAW,EAAEC,YAAY,QAAQ,UAAU;AAEpD,OAAO,MAAMC,aAAa,GAAIC,MAAmB,IAAa;EAC1D,QAAQA,MAAM;IACV,KAAKR,WAAW,CAACS,IAAI;MACjB,OAAO,MAAM;IACjB,KAAKT,WAAW,CAACU,KAAK;IACtB;MACI,OAAO,OAAO;EACtB;AACJ,CAAC;AAED,OAAO,MAAMC,SAAS,GAAGA,CAACC,GAAW,EAAEC,OAAe,KAAKD,GAAG,CACzDE,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAChBC,KAAK,CAAC,cAAc,CAAC,CACrBC,GAAG,CAACC,CAAC,IAAIC,QAAQ,CAACD,CAAC,EAAE,EAAE,CAAC,CAAC,CACzBE,MAAM,CAACC,GAAG,IAAI,CAACC,KAAK,CAACD,GAAG,CAAC,CAAC,CAC1BE,MAAM,CAAC,CAACC,GAAG,EAAEC,KAAK,KAAK,GAAGD,GAAG,GAAGC,KAAK,GAAG,EAAE,OAAO,CAAC,CAClDC,MAAM,CAAC,GAAGZ,OAAO,GAAG,CAAC;AAU1B,OAAO,MAAMa,aAAa,GAAGA,CAAIC,MAAS,EAAEC,OAAwB,KAAK;EACrE;EACAD,MAAM,CAAC,mBAAmBE,IAAI,CAACC,MAAM,CAAC,CAAC,CAACC,QAAQ,CAAC,EAAE,CAAC,CAACC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,GAAGJ,OAAO;EAE1E,OAAOD,MAAM;AACjB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EAAE;IAC3D,OAAO,iBAAiBA,KAAK,GAAG;EACpC;EAEA,IAAIlD,aAAa,CAACkD,KAAK,CAAC,EAAE;IACtB,MAAM;MAAEQ,QAAQ;MAAEC,QAAQ;MAAEC,SAAS;MAAEC;IAAU,CAAC,GAAG5D,OAAO,CAACiD,KAAK,CAAC;IAEnE,OAAO,CACHQ,QAAQ,GAAG,eAAeA,QAAQ,KAAK,GAAGJ,SAAS,EACnDK,QAAQ,GAAG,eAAeA,QAAQ,KAAK,GAAGL,SAAS,EACnDM,SAAS,GAAG,gBAAgBA,SAAS,KAAK,GAAGN,SAAS,EACtDO,SAAS,GAAG,gBAAgBA,SAAS,KAAK,GAAGP,SAAS,CACzD,CAACrC,MAAM,CAAC6C,OAAO,CAAC,CAACC,IAAI,CAAC,OAAO,CAAC;EACnC;EAEA,MAAML,QAAQ,GAAGxD,cAAc,CAAC8D,WAAW,IAAI7D,WAAW,CAACD,cAAc,CAAC8D,WAAW,EAAEd,KAAK,CAAC,GAAGhD,cAAc,CAAC8D,WAAW,CAACd,KAAK,CAAC,GAAGI,SAAS;EAE7I,OAAO,eAAeI,QAAQ,IAAI,CAAC,KAAK;AAC5C,CAAC;AAED,OAAO,MAAMO,2BAA2B,GAAI9B,KAAU,IAAK;EACvD,MAAM+B,YAAuC,GAAG/D,WAAW,CAACgC,KAAK,EAAE,mBAAmB,CAAC,GAAGA,KAAK,CAACgC,iBAAiB,GAAG,EAAE;EAEtH,OAAOD,YAAY;AACvB,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["web/variants/index.js"],"mappings":";;AAAA,cAAc,eAAe;AAC7B,cAAc,eAAe","ignoreList":[]}
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["web/variants/index.ts"],"mappings":";;AAAA,cAAc,eAAe;AAC7B,cAAc,eAAe","ignoreList":[]}
@@ -31,6 +31,7 @@ export const createUseVariants = (styles, setSelectedVariants) => {
31
31
  enumerable: false,
32
32
  configurable: true
33
33
  })));
34
+
34
35
  // Add __uni__variants to static styles
35
36
  Object.keys(styleEntry).forEach(key => {
36
37
  if (!key.startsWith('__uni__secrets__')) {
@@ -50,4 +51,4 @@ export const createUseVariants = (styles, setSelectedVariants) => {
50
51
  value: useVariants
51
52
  });
52
53
  };
53
- //# sourceMappingURL=useVariants.js.mapp
54
+ //# sourceMappingURL=useVariants.js.map
@@ -1,2 +1 @@
1
- {"version":3,"names":["useMemo","useRef","useState","equal","keyInObject","reduceObject","getVariants","createUseVariants","styles","setSelectedVariants","useVariants","selectedVariants","selectedVariantStylesMap","Map","lastSelectedVariantsRef","variantsChanged","current","combinedVariantStyles","result","forEach","key","value","set","styleEntry","selectedVariantStyles","get","Object","defineProperties","enumerable","configurable","keys","startsWith","secret","undefined","defineProperty"],"sourceRoot":"../../../../src","sources":["web/variants/useVariants.js"],"mappings":";;AAAA,SAASA,OAAO,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AACjD,SAASC,KAAK,EAAEC,WAAW,EAAEC,YAAY,QAAQ,UAAU;AAC3D,SAASC,WAAW,QAAQ,eAAe;AAC3C,OAAO,MAAMC,iBAAiB,GAAGA,CAACC,MAAM,EAAEC,mBAAmB,KAAK;EAC9D,MAAMC,WAAW,GAAIC,gBAAgB,IAAK;IACtC,MAAM,CAACC,wBAAwB,CAAC,GAAGV,QAAQ,CAAC,MAAM,IAAIW,GAAG,CAAC,CAAC,CAAC;IAC5D,MAAMC,uBAAuB,GAAGb,MAAM,CAAC,CAAC;IACxC;IACA,MAAMc,eAAe,GAAG,CAACZ,KAAK,CAACW,uBAAuB,CAACE,OAAO,EAAEL,gBAAgB,CAAC;IACjF,IAAII,eAAe,EAAE;MACjBD,uBAAuB,CAACE,OAAO,GAAGL,gBAAgB;MAClDF,mBAAmB,CAACE,gBAAgB,CAAC;IACzC;IACA,MAAMM,qBAAqB,GAAGjB,OAAO,CAAC,MAAM;MACxC,MAAMkB,MAAM,GAAGZ,W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CAAC","ignoreList":[]}
2
- []}
1
+ {"version":3,"names":["useMemo","useRef","useState","equal","keyInObject","reduceObject","getVariants","createUseVariants","styles","setSelectedVariants","useVariants","selectedVariants","selectedVariantStylesMap","Map","lastSelectedVariantsRef","variantsChanged","current","combinedVariantStyles","result","forEach","key","value","set","styleEntry","selectedVariantStyles","get","Object","defineProperties","enumerable","configurable","keys","startsWith","secret","undefined","defineProperty"],"sourceRoot":"../../../../src","sources":["web/variants/useVariants.ts"],"mappings":";;AAAA,SAASA,OAAO,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAEjD,SAASC,KAAK,EAAEC,WAAW,EAAEC,YAAY,QAAQ,UAAU;AAC3D,SAASC,WAAW,QAAQ,eAAe;AAE3C,OAAO,MAAMC,iBAAiB,GAAGA,CAACC,MAAyC,EAAEC,mBAA4D,KAAK;EAC1I,MAAMC,WAAW,GAAIC,gBAAqC,IAAK;IAC3D,MAAM,CAACC,wBAAwB,CAAC,GAAGV,QAAQ,CAAC,MAAM,IAAIW,GAAG,CAA8B,CAAC,CAAC;IACzF,MAAMC,uBAAuB,GAAGb,MAAM,CAAsB,CAAC;IAC7D;IACA,MAAMc,eAAe,GAAG,CAACZ,KAAK,CAACW,uBAAuB,CAACE,OAAO,EAAEL,gBAAgB,CAAC;IAEjF,IAAII,eAAe,EAAE;MACjBD,uBAAuB,CAACE,OAAO,GAAGL,gBAAgB;MAClDF,mBAAmB,CAACE,gBAAgB,CAAC;IACzC;IAEA,MAAMM,qBAAqB,GAAGjB,OAAO,CAAC,MAAM;MACxC,MAAMkB,MAAM,GAAGZ,WAAW,CAACE,MAAM,EAAEG,gBAAgB,CAAC;MAEpDO,MAAM,CAACC,OAAO,CAAC,CAAC,CAACC,GAAG,EAAEC,KAAK,CAAC,KAAK;QAC7BT,wBAAwB,CAACU,GAAG,CAACF,GAAG,EAAEC,KAAK,CAAC;MAC5C,CAAC,CAAC;MAEF,OAAOH,MAAM;IACjB,CAAC,EAAE,CAACJ,uBAAuB,CAACE,OAAO,CAAC,CAAC;IAErCC,qBAAqB,CAACE,OAAO,CAAC,CAAC,CAACC,GAAG,CAAC,KAAK;MACrC,MAAMG,UAAU,GAAGf,MAAM,CAACY,GAAG,CAAC;MAE9B,IAAI,CAACG,UAAU,EAAE;QACb;MACJ;MAEA,MAAMC,qBAAqB,GAAGZ,wBAAwB,CAACa,GAAG,CAACL,GAAG,CAAC;MAE/DM,MAAM,CAACC,gBAAgB,CAACJ,UAAU,EAAElB,YAAY,CAACmB,qBAAqB,IAAI,CAAC,CAAC,EAAEH,KAAK,KAAK;QACpFA,KAAK;QACLO,UAAU,EAAE,KAAK;QACjBC,YAAY,EAAE;MAClB,CAAC,CAAC,CAAC,CAAC;;MAEJ;MACAH,MAAM,CAACI,IAAI,CAACP,UAAU,CAAC,CAACJ,OAAO,CAACC,GAAG,IAAI;QACnC,IAAI,CAACA,GAAG,CAACW,UAAU,CAAC,kBAAkB,CAAC,EAAE;UACrC;QACJ;QAEA,MAAMC,MAAM,GAAG5B,WAAW,CAACmB,UAAU,EAAEH,GAAG,CAAC,GAAGG,UAAU,CAACH,GAAG,CAAC,GAAGa,SAAS;QAEzE,IAAI,CAACD,MAAM,EAAE;UACT;QACJ;QAEAN,MAAM,CAACQ,cAAc,CAACF,MAAM,EAAE,iBAAiB,EAAE;UAC7CX,KAAK,EAAEV;QACX,CAAC,CAAC;MACN,CAAC,CAAC;IACN,CAAC,CAAC;EACN,CAAC;EAEDe,MAAM,CAACQ,cAAc,CAAC1B,MAAM,EAAE,aAAa,EAAE;IACzCa,KAAK,EAAEX;EACX,CAAC,CAAC;AACN,CAAC","ignoreList":[]}
@@ -16,7 +16,8 @@ export declare enum UnistyleDependency {
16
16
  PixelRatio = 10,
17
17
  FontScale = 11,
18
18
  StatusBar = 12,
19
- NavigationBar = 13
19
+ NavigationBar = 13,
20
+ Ime = 14
20
21
  }
21
22
  export interface UnistylesNativeMiniRuntime {
22
23
  readonly colorScheme: ColorScheme;
@@ -53,6 +54,8 @@ export interface NativePlatform extends HybridObject<{
53
54
  setImmersiveMode(isEnabled: boolean): void;
54
55
  getMiniRuntime(): UnistylesNativeMiniRuntime;
55
56
  registerPlatformListener(callback: (dependencies: Array<UnistyleDependency>) => void): void;
57
+ registerImeListener(callback: () => void): void;
58
+ unregisterPlatformListeners(): void;
56
59
  }
57
60
  export {};
58
61
  //# sourceMappingURL=NativePlatform.nitro.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NativePlatform.nitro.d.ts","sourceRoot":"","sources":["../../../../../src/specs/NativePlatform/NativePlatform.nitro.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAA;AAEvD,KAAK,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,aAAa,CAAA;AACnD,KAAK,WAAW,GAAG,UAAU,GAAG,WAAW,CAAA;AAE3C,oBAAY,kBAAkB;IAC1B,KAAK,IAAI;IACT,SAAS,IAAI;IACb,cAAc,IAAI;IAClB,WAAW,IAAI;IACf,QAAQ,IAAI;IACZ,WAAW,IAAI;IACf,UAAU,IAAI;IACd,WAAW,IAAI;IACf,mBAAmB,IAAI;IACvB,MAAM,IAAI;IACV,UAAU,KAAK;IACf,SAAS,KAAK;IACd,SAAS,KAAK;IACd,aAAa,KAAK;CACrB;AAED,MAAM,WAAW,0BAA0B;IACvC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAA;I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IAAI,MAAM,CAAC;IACvB,aAAa,IAAI,MAAM,CAAC;IACxB,cAAc,IAAI,WAAW,CAAC;IAC9B,sBAAsB,IAAI,MAAM,CAAC;IACjC,mBAAmB,IAAI,UAAU,CAAC;IAClC,sBAAsB,IAAI,UAAU,CAAC;IACrC,0BAA0B,IAAI,UAAU,CAAC;IACzC,sBAAsB,IAAI,OAAO,CAAC;IAElC,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAChD,+BAA+B,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACtD,sBAAsB,CAAC,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAAC;IACjD,kBAAkB,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAAC;IAC5C,2BAA2B,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAClD,gBAAgB,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI,CAAC;IAG3C,cAAc,IAAI,0BAA0B,CAAC;IAC7C,wBAAwB,CAAC,QAAQ,EAAE,CAAC,YAAY,EAAE,KAAK,CAAC,kBAAkB,CAAC,KAAK,IAAI,GAAG,IAAI,CAAC;IAC5F,mBAAmB,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC;IAChD,2BAA2B,IAAI,IAAI,CAAA;CACtC"}
@@ -8,28 +8,28 @@ type ExtractTransformArray<T> = T extends object ? {
8
8
  type ExtractBreakpoints<T> = T extends object ? keyof T extends BreakpointsOrMediaQueries ? T[keyof T] : T extends Array<ToDeepUnistyles<TransformStyles>> ? Array<ExtractTransformArray<T[number]>> : {
9
9
  [K in keyof T]: ExtractBreakpoints<T[K]>;
10
10
  } : T;
11
- type ParseNestedObject<T> = T extends (...args: infer A) => infer R ? (...args: A) => ParseNestedObject<R> : T extends object ? T extends {
11
+ type ParseNestedObject<T, ShouldFlatten> = T extends (...args: infer A) => infer R ? (...args: A) => ParseNestedObject<R, false> : T extends object ? T extends {
12
12
  variants: infer R;
13
13
  compoundVariants: infer C;
14
- } ? ParseVariants<FlattenVariants<R>> & FlattenCompoundVariants<C> & ParseNestedObject<Omit<T, 'variants' | 'compoundVariants'>> : T extends {
14
+ } ? (ParseVariants<FlattenVariants<R, false>> & FlattenCompoundVariants<C, false> & ParseNestedObject<Omit<T, 'variants' | 'compoundVariants'>, false>) extends never ? ParseVariants<FlattenVariants<R, true>> & FlattenCompoundVariants<C, true> & ParseNestedObject<Omit<T, 'variants' | 'compoundVariants'>, false> : ParseVariants<FlattenVariants<R, false>> & FlattenCompoundVariants<C, false> & ParseNestedObject<Omit<T, 'variants' | 'compoundVariants'>, false> : T extends {
15
15
  variants: infer R;
16
- } ? ParseVariants<FlattenVariants<R>> & ParseNestedObject<Omit<T, 'variants'>> : T extends {
16
+ } ? (ParseVariants<FlattenVariants<R, false>> & ParseNestedObject<Omit<T, 'variants'>, false>) extends never ? ParseVariants<FlattenVariants<R, true>> & ParseNestedObject<Omit<T, 'variants'>, false> : ParseVariants<FlattenVariants<R, false>> & ParseNestedObject<Omit<T, 'variants'>, false> : T extends {
17
17
  compoundVariants: object;
18
- } ? ParseNestedObject<Omit<T, 'compoundVariants'>> : {
19
- [K in keyof T as K extends '_web' ? never : K]: T[K] extends object ? T[K] extends OpaqueColorValue ? ColorValue : ExtractBreakpoints<T[K]> : T[K];
18
+ } ? ParseNestedObject<Omit<T, 'compoundVariants'>, false> : {
19
+ [K in keyof T as K extends '_web' ? never : K]: T[K] extends object ? T[K] extends OpaqueColorValue ? ColorValue : ExtractBreakpoints<T[K]> : T[K] extends string ? ShouldFlatten extends true ? string : T[K] : T[K];
20
20
  } : T;
21
- type FlattenVariants<T> = T extends object ? {
21
+ type FlattenVariants<T, ShouldFlatten> = T extends object ? {
22
22
  [K in keyof T]: T[K] extends object ? {
23
- [key in keyof T[K]]: T[K][key] extends object ? ParseNestedObject<T[K][key]> : never;
23
+ [key in keyof T[K]]: T[K][key] extends object ? ParseNestedObject<T[K][key], ShouldFlatten> : never;
24
24
  } : never;
25
25
  } : never;
26
- type FlattenCompoundVariants<T> = T extends Array<infer _> ? FlattenCompoundVariants<T[number]> : T extends {
26
+ type FlattenCompoundVariants<T, ShouldFlatten> = T extends Array<infer _> ? FlattenCompoundVariants<T[number], ShouldFlatten> : T extends {
27
27
  styles: infer S;
28
- } ? ParseNestedObject<S> : never;
29
- type ParseVariants<T> = T extends object ? T[keyof T] extends object ? UnionToIntersection<ParseVariants<T[keyof T]>> : T : T;
28
+ } ? ParseNestedObject<S, ShouldFlatten> : never;
29
+ type ParseVariants<T> = T extends object ? T[keyof T] extends object ? UnionToIntersection<ParseVariants<T[keyof T]>> extends never ? ParseVariants<T[keyof T]> : UnionToIntersection<ParseVariants<T[keyof T]>> : T : T;
30
30
  type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never;
31
31
  type ParseStyleKeys<T> = T extends object ? {
32
- [K in keyof T]: ParseNestedObject<T[K]>;
32
+ [K in keyof T]: ParseNestedObject<T[K], false>;
33
33
  } : never;
34
34
  export type ReactNativeStyleSheet<T> = ParseStyleKeys<SafeReturnType<T>>;
35
35
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../../../src/types/breakpoints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAChE,OAAO,KAAK,EAAE,yBAAyB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAC9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAA;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAE9C,KAAK,qBAAqB,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GAC1C;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GAC5C,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eAAe,CAAC,CAAA;AAEzE,cAAM,8BAA8B;IAEhC,IAAI,SAA4B;IAChC,MAAM,SAAQ;IACd,MAAM,gBAAa;IACnB,QAAQ,eAAkC;IAC1C,OAAO,aAAW;IAGlB,OAAO,CAAC,UAAU,CAA0D;IAC5E,OAAO,CAAC,aAAa,CAAwD;IAE7E,GAAG,QAAS,GAAG,WAAW,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,cAAc,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,UAAU,KAAK,CAAC,GAAG,CAAC,UAmGlG;IAED,MAAM,aAAW;CACpB;AAED,eAAO,MAAM,uBAAuB,gCAAuC,CAAA"}
1
+ {"version":3,"file":"shadowRegistry.d.ts","sourceRoot":"","sources":["../../../../src/web/shadowRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAK/C,KAAK,KAAK,GAAG,eAAe,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,eAAe,CAAC,CAAA;AAEzE,cAAM,8BAA8B;IAEhC,IAAI,SAA4B;IAChC,MAAM,SAAQ;IACd,MAAM,gBAAa;IACnB,QAAQ,eAAkC;IAC1C,OAAO,aAAW;IAGlB,OAAO,CAAC,UAAU,CAA0D;IAC5E,OAAO,CAAC,aAAa,CAAwD;IAE7E,GAAG,QAAS,GAAG,WAAW,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,cAAc,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,UAAU,KAAK,CAAC,GAAG,CAAC,UAgGlG;IAED,MAAM,aAAW;CACpB;AAED,eAAO,MAAM,uBAAuB,gCAAuC,CAAA"}
@@ -0,0 +1,48 @@
1
+ ///
2
+ /// JFunc_void.hpp
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2024 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ #pragma once
9
+
10
+ #include <fbjni/fbjni.h>
11
+ #include <functional>
12
+
13
+ #include <functional>
14
+
15
+ namespace margelo::nitro::unistyles {
16
+
17
+ using namespace facebook;
18
+
19
+ /**
20
+ * C++ representation of the callback Func_void.
21
+ * This is a Kotlin `() -> Unit`, backed by a `std::function<...>`.
22
+ */
23
+ struct JFunc_void final: public jni::HybridClass<JFunc_void> {
24
+ public:
25
+ static jni::local_ref<JFunc_void::javaobject> fromCpp(const std::function<void()>& func) {
26
+ return JFunc_void::newObjectCxxArgs(func);
27
+ }
28
+
29
+ public:
30
+ void call() {
31
+ return _func();
32
+ }
33
+
34
+ public:
35
+ static auto constexpr kJavaDescriptor = "Lcom/margelo/nitro/unistyles/Func_void;";
36
+ static void registerNatives() {
37
+ registerHybrid({makeNativeMethod("call", JFunc_void::call)});
38
+ }
39
+
40
+ private:
41
+ explicit JFunc_void(const std::function<void()>& func): _func(func) { }
42
+
43
+ private:
44
+ friend HybridBase;
45
+ std::function<void()> _func;
46
+ };
47
+
48
+ } // namespace margelo::nitro::unistyles
@@ -36,6 +36,7 @@ namespace margelo::nitro::unistyles { enum class UnistyleDependency; }
36
36
  #include "UnistyleDependency.hpp"
37
37
  #include "JFunc_void_std__vector_UnistyleDependency_.hpp"
38
38
  #include "JUnistyleDependency.hpp"
39
+ #include "JFunc_void.hpp"
39
40
 
40
41
  namespace margelo::nitro::unistyles {
41
42
 
@@ -141,5 +142,13 @@ namespace margelo::nitro::unistyles {
141
142
  static const auto method = _javaPart->getClass()->getMethod<void(jni::alias_ref<JFunc_void_std__vector_UnistyleDependency_::javaobject> /* callback */)>("registerPlatformListener");
142
143
  method(_javaPart, JFunc_void_std__vector_UnistyleDependency_::fromCpp(callback));
143
144
  }
145
+ void JHybridNativePlatformSpec::registerImeListener(const std::function<void()>& callback) {
146
+ static const auto method = _javaPart->getClass()->getMethod<void(jni::alias_ref<JFunc_void::javaobject> /* callback */)>("registerImeListener");
147
+ method(_javaPart, JFunc_void::fromCpp(callback));
148
+ }
149
+ void JHybridNativePlatformSpec::unregisterPlatformListeners() {
150
+ static const auto method = _javaPart->getClass()->getMethod<void()>("unregisterPlatformListeners");
151
+ method(_javaPart);
152
+ }
144
153
 
145
154
  } // namespace margelo::nitro::unistyles
@@ -63,6 +63,8 @@ namespace margelo::nitro::unistyles {
63
63
  void setImmersiveMode(bool isEnabled) override;
64
64
  UnistylesNativeMiniRuntime getMiniRuntime() override;
65
65
  void registerPlatformListener(const std::function<void(const std::vector<UnistyleDependency>& /* dependencies */)>& callback) override;
66
+ void registerImeListener(const std::function<void()>& callback) override;
67
+ void unregisterPlatformListeners() override;
66
68
 
67
69
  private:
68
70
  friend HybridBase;
@@ -54,6 +54,7 @@ namespace margelo::nitro::unistyles {
54
54
  static const auto fieldFONTSCALE = clazz->getStaticField<JUnistyleDependency>("FONTSCALE");
55
55
  static const auto fieldSTATUSBAR = clazz->getStaticField<JUnistyleDependency>("STATUSBAR");
56
56
  static const auto fieldNAVIGATIONBAR = clazz->getStaticField<JUnistyleDependency>("NAVIGATIONBAR");
57
+ static const auto fieldIME = clazz->getStaticField<JUnistyleDependency>("IME");
57
58
 
58
59
  switch (value) {
59
60
  case UnistyleDependency::THEME:
@@ -84,6 +85,8 @@ namespace margelo::nitro::unistyles {
84
85
  return clazz->getStaticFieldValue(fieldSTATUSBAR);
85
86
  case UnistyleDependency::NAVIGATIONBAR:
86
87
  return clazz->getStaticFieldValue(fieldNAVIGATIONBAR);
88
+ case UnistyleDependency::IME:
89
+ return clazz->getStaticFieldValue(fieldIME);
87
90
  default:
88
91
  std::string stringValue = std::to_string(static_cast<int>(value));
89
92
  throw std::invalid_argument("Invalid enum value (" + stringValue + "!");
@@ -0,0 +1,45 @@
1
+ ///
2
+ /// Func_void.kt
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2024 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ package com.margelo.nitro.unistyles
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.jni.HybridData
12
+ import com.facebook.proguard.annotations.DoNotStrip
13
+ import dalvik.annotation.optimization.FastNative
14
+
15
+ /**
16
+ * Represents the JavaScript callback `() => void`.
17
+ * This is implemented in C++, via a `std::function<...>`.
18
+ */
19
+ @DoNotStrip
20
+ @Keep
21
+ @Suppress("RedundantSuppression", "ConvertSecondaryConstructorToPrimary", "RedundantUnitReturnType", "KotlinJniMissingFunction", "ClassName", "unused")
22
+ class Func_void {
23
+ @DoNotStrip
24
+ @Keep
25
+ private val mHybridData: HybridData
26
+
27
+ @DoNotStrip
28
+ @Keep
29
+ private constructor(hybridData: HybridData) {
30
+ mHybridData = hybridData
31
+ }
32
+
33
+ /**
34
+ * Converts this function to a Kotlin Lambda.
35
+ * This exists purely as syntactic sugar, and has minimal runtime overhead.
36
+ */
37
+ fun toLambda(): () -> Unit = this::call
38
+
39
+ /**
40
+ * Call the given JS callback.
41
+ * @throws Throwable if the JS function itself throws an error, or if the JS function/runtime has already been deleted.
42
+ */
43
+ @FastNative
44
+ external fun call(): Unit
45
+ }
@@ -119,6 +119,21 @@ abstract class HybridNativePlatformSpec: HybridObject() {
119
119
  val __result = registerPlatformListener(callback.toLambda())
120
120
  return __result
121
121
  }
122
+
123
+ @DoNotStrip
124
+ @Keep
125
+ abstract fun registerImeListener(callback: () -> Unit): Unit
126
+
127
+ @DoNotStrip
128
+ @Keep
129
+ private fun registerImeListener(callback: Func_void): Unit {
130
+ val __result = registerImeListener(callback.toLambda())
131
+ return __result
132
+ }
133
+
134
+ @DoNotStrip
135
+ @Keep
136
+ abstract fun unregisterPlatformListeners(): Unit
122
137
 
123
138
  private external fun initHybrid(): HybridData
124
139
 
@@ -29,5 +29,6 @@ enum class UnistyleDependency {
29
29
  PIXELRATIO,
30
30
  FONTSCALE,
31
31
  STATUSBAR,
32
- NAVIGATIONBAR
32
+ NAVIGATIONBAR,
33
+ IME
33
34
  }
@@ -13,6 +13,7 @@
13
13
 
14
14
  #include "JHybridNativePlatformSpec.hpp"
15
15
  #include "JFunc_void_std__vector_UnistyleDependency_.hpp"
16
+ #include "JFunc_void.hpp"
16
17
 
17
18
  namespace margelo::nitro::unistyles {
18
19
 
@@ -25,6 +26,7 @@ int initialize(JavaVM* vm) {
25
26
  // Register native JNI methods
26
27
  margelo::nitro::unistyles::JHybridNativePlatformSpec::registerNatives();
27
28
  margelo::nitro::unistyles::JFunc_void_std__vector_UnistyleDependency_::registerNatives();
29
+ margelo::nitro::unistyles::JFunc_void::registerNatives();
28
30
 
29
31
  // Register Nitro Hybrid Objects
30
32
 
@@ -65,7 +65,7 @@ namespace margelo::nitro::unistyles::bridge::swift {
65
65
  private:
66
66
  std::function<void(const std::vector<UnistyleDependency>& /* dependencies */)> _function;
67
67
  };
68
- inline Func_void_std__vector_UnistyleDependency_ create_Func_void_std__vector_UnistyleDependency_(void* _Nonnull closureHolder, void(* _Nonnull call)(void* _Nonnull /* closureHolder */, std::vector<UnistyleDependency>), void(* _Nonnull destroy)(void* _Nonnull)) {
68
+ inline Func_void_std__vector_UnistyleDependency_ create_Func_void_std__vector_UnistyleDependency_(void* NONNULL closureHolder, void(* NONNULL call)(void* NONNULL /* closureHolder */, std::vector<UnistyleDependency>), void(* NONNULL destroy)(void* NONNULL)) {
69
69
  std::shared_ptr<void> sharedClosureHolder(closureHolder, destroy);
70
70
  return Func_void_std__vector_UnistyleDependency_([sharedClosureHolder, call](const std::vector<UnistyleDependency>& dependencies) -> void {
71
71
  call(sharedClosureHolder.get(), dependencies);
@@ -75,6 +75,34 @@ namespace margelo::nitro::unistyles::bridge::swift {
75
75
  return std::make_shared<Func_void_std__vector_UnistyleDependency__Wrapper>(value);
76
76
  }
77
77
 
78
+ // pragma MARK: std::function<void()>
79
+ /**
80
+ * Specialized version of `std::function<void()>`.
81
+ */
82
+ using Func_void = std::function<void()>;
83
+ /**
84
+ * Wrapper class for a `std::function<void()>`, this can be used from Swift.
85
+ */
86
+ class Func_void_Wrapper final {
87
+ public:
88
+ explicit Func_void_Wrapper(const std::function<void()>& func): _function(func) {}
89
+ explicit Func_void_Wrapper(std::function<void()>&& func): _function(std::move(func)) {}
90
+ inline void call() const {
91
+ _function();
92
+ }
93
+ private:
94
+ std::function<void()> _function;
95
+ };
96
+ inline Func_void create_Func_void(void* _Nonnull closureHolder, void(* _Nonnull call)(void* _Nonnull /* closureHolder */), void(* _Nonnull destroy)(void* _Nonnull)) {
97
+ std::shared_ptr<void> sharedClosureHolder(closureHolder, destroy);
98
+ return Func_void([sharedClosureHolder, call]() -> void {
99
+ call(sharedClosureHolder.get());
100
+ });
101
+ }
102
+ inline std::shared_ptr<Func_void_Wrapper> share_Func_void(const Func_void& value) {
103
+ return std::make_shared<Func_void_Wrapper>(value);
104
+ }
105
+
78
106
  // pragma MARK: std::shared_ptr<margelo::nitro::unistyles::HybridNativePlatformSpec>
79
107
  /**
80
108
  * Specialized version of `std::shared_ptr<margelo::nitro::unistyles::HybridNativePlatformSpec>`.
@@ -143,6 +143,12 @@ namespace margelo::nitro::unistyles {
143
143
  inline void registerPlatformListener(const std::function<void(const std::vector<UnistyleDependency>& /* dependencies */)>& callback) override {
144
144
  _swiftPart.registerPlatformListener(callback);
145
145
  }
146
+ inline void registerImeListener(const std::function<void()>& callback) override {
147
+ _swiftPart.registerImeListener(callback);
148
+ }
149
+ inline void unregisterPlatformListeners() override {
150
+ _swiftPart.unregisterPlatformListeners();
151
+ }
146
152
 
147
153
  private:
148
154
  Unistyles::HybridNativePlatformSpecCxx _swiftPart;
@@ -50,4 +50,6 @@ public protocol HybridNativePlatformSpec: AnyObject, HybridObjectSpec {
50
50
  func setImmersiveMode(isEnabled: Bool) throws -> Void
51
51
  func getMiniRuntime() throws -> UnistylesNativeMiniRuntime
52
52
  func registerPlatformListener(callback: @escaping ((_ dependencies: [UnistyleDependency]) -> Void)) throws -> Void
53
+ func registerImeListener(callback: @escaping (() -> Void)) throws -> Void
54
+ func unregisterPlatformListeners() throws -> Void
53
55
  }
@@ -306,4 +306,31 @@ public class HybridNativePlatformSpecCxx {
306
306
  fatalError("Swift errors can currently not be propagated to C++! See https://github.com/swiftlang/swift/issues/75290 (Error: \(__message))")
307
307
  }
308
308
  }
309
+
310
+ @inline(__always)
311
+ public func registerImeListener(callback: bridge.Func_void) -> Void {
312
+ do {
313
+ try self.__implementation.registerImeListener(callback: { () -> (() -> Void) in
314
+ let __sharedClosure = bridge.share_Func_void(callback)
315
+ return { () -> Void in
316
+ __sharedClosure.pointee.call()
317
+ }
318
+ }())
319
+ return
320
+ } catch {
321
+ let __message = "\(error.localizedDescription)"
322
+ fatalError("Swift errors can currently not be propagated to C++! See https://github.com/swiftlang/swift/issues/75290 (Error: \(__message))")
323
+ }
324
+ }
325
+
326
+ @inline(__always)
327
+ public func unregisterPlatformListeners() -> Void {
328
+ do {
329
+ try self.__implementation.unregisterPlatformListeners()
330
+ return
331
+ } catch {
332
+ let __message = "\(error.localizedDescription)"
333
+ fatalError("Swift errors can currently not be propagated to C++! See https://github.com/swiftlang/swift/issues/75290 (Error: \(__message))")
334
+ }
335
+ }
309
336
  }
@@ -45,6 +45,8 @@ public extension UnistyleDependency {
45
45
  self = .statusbar
46
46
  case "NavigationBar":
47
47
  self = .navigationbar
48
+ case "Ime":
49
+ self = .ime
48
50
  default:
49
51
  return nil
50
52
  }
@@ -83,6 +85,8 @@ public extension UnistyleDependency {
83
85
  return "StatusBar"
84
86
  case .navigationbar:
85
87
  return "NavigationBar"
88
+ case .ime:
89
+ return "Ime"
86
90
  }
87
91
  }
88
92
  }
@@ -32,6 +32,8 @@ namespace margelo::nitro::unistyles {
32
32
  prototype.registerHybridMethod("setImmersiveMode", &HybridNativePlatformSpec::setImmersiveMode);
33
33
  prototype.registerHybridMethod("getMiniRuntime", &HybridNativePlatformSpec::getMiniRuntime);
34
34
  prototype.registerHybridMethod("registerPlatformListener", &HybridNativePlatformSpec::registerPlatformListener);
35
+ prototype.registerHybridMethod("registerImeListener", &HybridNativePlatformSpec::registerImeListener);
36
+ prototype.registerHybridMethod("unregisterPlatformListeners", &HybridNativePlatformSpec::unregisterPlatformListeners);
35
37
  });
36
38
  }
37
39
 
@@ -85,6 +85,8 @@ namespace margelo::nitro::unistyles {
85
85
  virtual void setImmersiveMode(bool isEnabled) = 0;
86
86
  virtual UnistylesNativeMiniRuntime getMiniRuntime() = 0;
87
87
  virtual void registerPlatformListener(const std::function<void(const std::vector<UnistyleDependency>& /* dependencies */)>& callback) = 0;
88
+ virtual void registerImeListener(const std::function<void()>& callback) = 0;
89
+ virtual void unregisterPlatformListeners() = 0;
88
90
 
89
91
  protected:
90
92
  // Hybrid Setup