react-native-revnix 1.4.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 (84) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +766 -0
  3. package/dist/blocks/background.d.ts +101 -0
  4. package/dist/blocks/background.js +165 -0
  5. package/dist/blocks/color.d.ts +88 -0
  6. package/dist/blocks/color.js +329 -0
  7. package/dist/blocks/locale.d.ts +42 -0
  8. package/dist/blocks/locale.js +263 -0
  9. package/dist/blocks/selection.d.ts +49 -0
  10. package/dist/blocks/selection.js +109 -0
  11. package/dist/blocks/style.d.ts +93 -0
  12. package/dist/blocks/style.js +365 -0
  13. package/dist/blocks/tags.d.ts +12 -0
  14. package/dist/blocks/tags.js +121 -0
  15. package/dist/blocks/types.d.ts +301 -0
  16. package/dist/blocks/types.js +44 -0
  17. package/dist/client.d.ts +402 -0
  18. package/dist/client.js +1653 -0
  19. package/dist/device.d.ts +29 -0
  20. package/dist/device.js +137 -0
  21. package/dist/errors.d.ts +39 -0
  22. package/dist/errors.js +68 -0
  23. package/dist/esm/blocks/background.js +160 -0
  24. package/dist/esm/blocks/color.js +318 -0
  25. package/dist/esm/blocks/locale.js +255 -0
  26. package/dist/esm/blocks/selection.js +100 -0
  27. package/dist/esm/blocks/style.js +356 -0
  28. package/dist/esm/blocks/tags.js +117 -0
  29. package/dist/esm/blocks/types.js +40 -0
  30. package/dist/esm/client.js +1649 -0
  31. package/dist/esm/device.js +130 -0
  32. package/dist/esm/errors.js +59 -0
  33. package/dist/esm/iap.js +101 -0
  34. package/dist/esm/implicit.js +63 -0
  35. package/dist/esm/index.js +29 -0
  36. package/dist/esm/package.json +1 -0
  37. package/dist/esm/storage.js +78 -0
  38. package/dist/esm/types.js +4 -0
  39. package/dist/esm/ui/RevnixBlockPaywall.js +706 -0
  40. package/dist/esm/ui/RevnixPaywall.js +890 -0
  41. package/dist/esm/ui/index.js +6 -0
  42. package/dist/esm/version.js +4 -0
  43. package/dist/iap.d.ts +20 -0
  44. package/dist/iap.js +104 -0
  45. package/dist/implicit.d.ts +69 -0
  46. package/dist/implicit.js +67 -0
  47. package/dist/index.d.ts +18 -0
  48. package/dist/index.js +50 -0
  49. package/dist/storage.d.ts +14 -0
  50. package/dist/storage.js +85 -0
  51. package/dist/types.d.ts +463 -0
  52. package/dist/types.js +5 -0
  53. package/dist/ui/RevnixBlockPaywall.d.ts +96 -0
  54. package/dist/ui/RevnixBlockPaywall.js +742 -0
  55. package/dist/ui/RevnixPaywall.d.ts +148 -0
  56. package/dist/ui/RevnixPaywall.js +927 -0
  57. package/dist/ui/index.d.ts +7 -0
  58. package/dist/ui/index.js +25 -0
  59. package/dist/version.d.ts +1 -0
  60. package/dist/version.js +7 -0
  61. package/package.json +79 -0
  62. package/src/blocks/background.ts +232 -0
  63. package/src/blocks/color.ts +352 -0
  64. package/src/blocks/locale.ts +271 -0
  65. package/src/blocks/paywall-background-wire.json +12 -0
  66. package/src/blocks/paywall-selection-wire.json +149 -0
  67. package/src/blocks/selection.ts +161 -0
  68. package/src/blocks/style.ts +411 -0
  69. package/src/blocks/tags.ts +125 -0
  70. package/src/blocks/types.ts +352 -0
  71. package/src/client.ts +1993 -0
  72. package/src/device.ts +146 -0
  73. package/src/errors.ts +69 -0
  74. package/src/iap.ts +137 -0
  75. package/src/implicit.ts +129 -0
  76. package/src/index.ts +82 -0
  77. package/src/storage.ts +92 -0
  78. package/src/types.ts +528 -0
  79. package/src/ui/RevnixBlockPaywall.tsx +1423 -0
  80. package/src/ui/RevnixPaywall.tsx +1542 -0
  81. package/src/ui/index.ts +43 -0
  82. package/src/version.ts +4 -0
  83. package/ui.d.ts +1 -0
  84. package/ui.js +5 -0
@@ -0,0 +1,43 @@
1
+ export {
2
+ RevnixPaywall,
3
+ DEFAULT_PAYWALL_THEME,
4
+ LIGHT_PAYWALL_THEME,
5
+ type RevnixPaywallPackage,
6
+ type RevnixPaywallProps,
7
+ type RevnixPaywallTheme,
8
+ } from "./RevnixPaywall.js";
9
+ export {
10
+ RevnixBlockPaywall,
11
+ type RevnixBlockPaywallProps,
12
+ type RevnixBlurComponent,
13
+ type RevnixBlurProps,
14
+ type RevnixGradientComponent,
15
+ type RevnixGradientProps,
16
+ } from "./RevnixBlockPaywall.js";
17
+ export {
18
+ DESIGN_CANVAS,
19
+ type BlockStyle,
20
+ type PaywallBlock,
21
+ type PaywallBlockDoc,
22
+ } from "../blocks/types.js";
23
+ export {
24
+ backgroundBaseColor,
25
+ backgroundLayers,
26
+ coverPlacement,
27
+ type BackgroundFit,
28
+ type BackgroundImage,
29
+ type BackgroundLayers,
30
+ type BackgroundOverlay,
31
+ type PaywallBackground,
32
+ type PaywallBackgroundSpec,
33
+ } from "../blocks/background.js";
34
+ export {
35
+ detectLocale,
36
+ linkLabels,
37
+ localeChain,
38
+ localizeBlockDoc,
39
+ normalizeLocale,
40
+ setLocale,
41
+ } from "../blocks/locale.js";
42
+ export { minorUnitsForCurrency, resolveTags } from "../blocks/tags.js";
43
+ export type { FontFamilyMap, FontMapping } from "../blocks/style.js";
package/src/version.ts ADDED
@@ -0,0 +1,4 @@
1
+ // L3: the single source of the SDK version inside src/. Must match
2
+ // package.json "version" — version.test.ts fails the build when they drift
3
+ // (they had: client.ts said 0.7.0 while the package shipped 0.9.0).
4
+ export const SDK_VERSION = "1.4.0";
package/ui.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./dist/ui/index";
package/ui.js ADDED
@@ -0,0 +1,5 @@
1
+ // Subpath entry: require("revnix-react/ui"). Kept at the package root
2
+ // so every resolver (Metro, Node, TS "node" moduleResolution) finds it
3
+ // without an "exports" map. UI pulls in react/react-native peers — keep it
4
+ // out of the core index so pure-JS consumers never load them.
5
+ module.exports = require("./dist/ui/index.js");