@rocapine/react-native-onboarding 1.59.2 → 1.61.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/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/infra/navigation/expoRouterAdapter.js +1 -1
- package/dist/infra/navigation/expoRouterAdapter.js.map +1 -1
- package/dist/infra/provider/OnboardingProvider.d.ts +12 -1
- package/dist/infra/provider/OnboardingProvider.d.ts.map +1 -1
- package/dist/infra/provider/OnboardingProvider.js +15 -1
- package/dist/infra/provider/OnboardingProvider.js.map +1 -1
- package/dist/products/adapters/expoIap.d.ts +4 -0
- package/dist/products/adapters/expoIap.d.ts.map +1 -0
- package/dist/products/adapters/expoIap.js +95 -0
- package/dist/products/adapters/expoIap.js.map +1 -0
- package/dist/products/adapters/revenueCat.d.ts +7 -0
- package/dist/products/adapters/revenueCat.d.ts.map +1 -0
- package/dist/products/adapters/revenueCat.js +116 -0
- package/dist/products/adapters/revenueCat.js.map +1 -0
- package/dist/products/adapters/stub.d.ts +8 -0
- package/dist/products/adapters/stub.d.ts.map +1 -0
- package/dist/products/adapters/stub.js +21 -0
- package/dist/products/adapters/stub.js.map +1 -0
- package/dist/products/derive.d.ts +19 -0
- package/dist/products/derive.d.ts.map +1 -0
- package/dist/products/derive.js +79 -0
- package/dist/products/derive.js.map +1 -0
- package/dist/products/duration.d.ts +3 -0
- package/dist/products/duration.d.ts.map +1 -0
- package/dist/products/duration.js +25 -0
- package/dist/products/duration.js.map +1 -0
- package/dist/products/index.d.ts +9 -0
- package/dist/products/index.d.ts.map +1 -0
- package/dist/products/index.js +20 -0
- package/dist/products/index.js.map +1 -0
- package/dist/products/toVariables.d.ts +18 -0
- package/dist/products/toVariables.d.ts.map +1 -0
- package/dist/products/toVariables.js +52 -0
- package/dist/products/toVariables.js.map +1 -0
- package/dist/products/types.d.ts +96 -0
- package/dist/products/types.d.ts.map +1 -0
- package/dist/products/types.js +3 -0
- package/dist/products/types.js.map +1 -0
- package/dist/products/useProducts.d.ts +12 -0
- package/dist/products/useProducts.d.ts.map +1 -0
- package/dist/products/useProducts.js +90 -0
- package/dist/products/useProducts.js.map +1 -0
- package/dist/{steps/ComposableScreen → screens}/elements/AnimatedTextElement.d.ts +1 -24
- package/dist/screens/elements/AnimatedTextElement.d.ts.map +1 -0
- package/dist/screens/elements/AnimatedTextElement.js.map +1 -0
- package/dist/{steps/ComposableScreen → screens}/elements/BaseBoxProps.d.ts +2 -25
- package/dist/screens/elements/BaseBoxProps.d.ts.map +1 -0
- package/dist/{steps/ComposableScreen → screens}/elements/BaseBoxProps.js +1 -1
- package/dist/screens/elements/BaseBoxProps.js.map +1 -0
- package/dist/{steps/ComposableScreen → screens}/elements/ButtonElement.d.ts +8 -123
- package/dist/screens/elements/ButtonElement.d.ts.map +1 -0
- package/dist/{steps/ComposableScreen → screens}/elements/ButtonElement.js +2 -2
- package/dist/screens/elements/ButtonElement.js.map +1 -0
- package/dist/{steps/ComposableScreen → screens}/elements/CarouselElement.d.ts +1 -24
- package/dist/screens/elements/CarouselElement.d.ts.map +1 -0
- package/dist/screens/elements/CarouselElement.js.map +1 -0
- package/dist/{steps/ComposableScreen → screens}/elements/CheckboxGroupElement.d.ts +2 -25
- package/dist/screens/elements/CheckboxGroupElement.d.ts.map +1 -0
- package/dist/{steps/ComposableScreen → screens}/elements/CheckboxGroupElement.js +1 -1
- package/dist/screens/elements/CheckboxGroupElement.js.map +1 -0
- package/dist/{steps/ComposableScreen → screens}/elements/DatePickerElement.d.ts +1 -24
- package/dist/screens/elements/DatePickerElement.d.ts.map +1 -0
- package/dist/screens/elements/DatePickerElement.js.map +1 -0
- package/dist/{steps/ComposableScreen → screens}/elements/DrawingPadElement.d.ts +1 -24
- package/dist/screens/elements/DrawingPadElement.d.ts.map +1 -0
- package/dist/screens/elements/DrawingPadElement.js.map +1 -0
- package/dist/{steps/ComposableScreen → screens}/elements/IconElement.d.ts +1 -24
- package/dist/screens/elements/IconElement.d.ts.map +1 -0
- package/dist/screens/elements/IconElement.js.map +1 -0
- package/dist/{steps/ComposableScreen → screens}/elements/ImageElement.d.ts +1 -24
- package/dist/screens/elements/ImageElement.d.ts.map +1 -0
- package/dist/screens/elements/ImageElement.js.map +1 -0
- package/dist/{steps/ComposableScreen → screens}/elements/InputElement.d.ts +1 -24
- package/dist/screens/elements/InputElement.d.ts.map +1 -0
- package/dist/screens/elements/InputElement.js.map +1 -0
- package/dist/{steps/ComposableScreen → screens}/elements/KeyboardAvoidingViewElement.d.ts +1 -24
- package/dist/screens/elements/KeyboardAvoidingViewElement.d.ts.map +1 -0
- package/dist/screens/elements/KeyboardAvoidingViewElement.js.map +1 -0
- package/dist/{steps/ComposableScreen → screens}/elements/LottieElement.d.ts +1 -24
- package/dist/screens/elements/LottieElement.d.ts.map +1 -0
- package/dist/screens/elements/LottieElement.js.map +1 -0
- package/dist/{steps/ComposableScreen → screens}/elements/ProgressIndicatorElement.d.ts +1 -24
- package/dist/screens/elements/ProgressIndicatorElement.d.ts.map +1 -0
- package/dist/screens/elements/ProgressIndicatorElement.js.map +1 -0
- package/dist/{steps/ComposableScreen → screens}/elements/ProgressiveBlurImageElement.d.ts +1 -24
- package/dist/screens/elements/ProgressiveBlurImageElement.d.ts.map +1 -0
- package/dist/screens/elements/ProgressiveBlurImageElement.js.map +1 -0
- package/dist/{steps/ComposableScreen → screens}/elements/RadioGroupElement.d.ts +2 -25
- package/dist/screens/elements/RadioGroupElement.d.ts.map +1 -0
- package/dist/{steps/ComposableScreen → screens}/elements/RadioGroupElement.js +1 -1
- package/dist/screens/elements/RadioGroupElement.js.map +1 -0
- package/dist/{steps/ComposableScreen → screens}/elements/RichTextElement.d.ts +1 -24
- package/dist/screens/elements/RichTextElement.d.ts.map +1 -0
- package/dist/screens/elements/RichTextElement.js.map +1 -0
- package/dist/{steps/ComposableScreen → screens}/elements/RiveElement.d.ts +1 -24
- package/dist/screens/elements/RiveElement.d.ts.map +1 -0
- package/dist/screens/elements/RiveElement.js.map +1 -0
- package/dist/{steps/ComposableScreen → screens}/elements/SafeAreaViewElement.d.ts +1 -24
- package/dist/screens/elements/SafeAreaViewElement.d.ts.map +1 -0
- package/dist/screens/elements/SafeAreaViewElement.js.map +1 -0
- package/dist/{steps/ComposableScreen → screens}/elements/ScrollViewElement.d.ts +1 -24
- package/dist/screens/elements/ScrollViewElement.d.ts.map +1 -0
- package/dist/screens/elements/ScrollViewElement.js.map +1 -0
- package/dist/{steps/ComposableScreen → screens}/elements/SliderElement.d.ts +1 -24
- package/dist/screens/elements/SliderElement.d.ts.map +1 -0
- package/dist/screens/elements/SliderElement.js.map +1 -0
- package/dist/{steps/ComposableScreen → screens}/elements/StackElement.d.ts +1 -24
- package/dist/screens/elements/StackElement.d.ts.map +1 -0
- package/dist/screens/elements/StackElement.js.map +1 -0
- package/dist/{steps/ComposableScreen → screens}/elements/TextElement.d.ts +1 -24
- package/dist/screens/elements/TextElement.d.ts.map +1 -0
- package/dist/screens/elements/TextElement.js.map +1 -0
- package/dist/{steps/ComposableScreen → screens}/elements/TypewriterTextElement.d.ts +1 -24
- package/dist/screens/elements/TypewriterTextElement.d.ts.map +1 -0
- package/dist/screens/elements/TypewriterTextElement.js.map +1 -0
- package/dist/{steps/ComposableScreen → screens}/elements/VideoElement.d.ts +1 -24
- package/dist/screens/elements/VideoElement.d.ts.map +1 -0
- package/dist/screens/elements/VideoElement.js.map +1 -0
- package/dist/{steps/ComposableScreen → screens}/elements/WheelPickerElement.d.ts +1 -24
- package/dist/screens/elements/WheelPickerElement.d.ts.map +1 -0
- package/dist/screens/elements/WheelPickerElement.js.map +1 -0
- package/dist/{steps/ComposableScreen → screens}/elements/ZStackElement.d.ts +1 -24
- package/dist/screens/elements/ZStackElement.d.ts.map +1 -0
- package/dist/screens/elements/ZStackElement.js.map +1 -0
- package/dist/screens/types.d.ts +242 -0
- package/dist/screens/types.d.ts.map +1 -0
- package/dist/screens/types.js +272 -0
- package/dist/screens/types.js.map +1 -0
- package/dist/steps/Carousel/types.d.ts +1 -1
- package/dist/steps/Commitment/types.d.ts +1 -1
- package/dist/steps/ComposableScreen/types.d.ts +5 -236
- package/dist/steps/ComposableScreen/types.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/types.js +23 -262
- package/dist/steps/ComposableScreen/types.js.map +1 -1
- package/dist/steps/Loader/types.d.ts +1 -1
- package/dist/steps/MediaContent/types.d.ts +1 -1
- package/dist/steps/Picker/types.d.ts +1 -1
- package/dist/steps/Question/types.d.ts +1 -1
- package/dist/steps/Ratings/types.d.ts +1 -1
- package/dist/steps/common.types.d.ts +23 -30
- package/dist/steps/common.types.d.ts.map +1 -1
- package/dist/steps/common.types.js +18 -3
- package/dist/steps/common.types.js.map +1 -1
- package/package.json +3 -3
- package/src/__tests__/productAdapters.test.ts +58 -0
- package/src/__tests__/productDerive.test.ts +111 -0
- package/src/__tests__/productVariables.test.ts +109 -0
- package/src/__tests__/screenTypesBackCompat.test.ts +58 -0
- package/src/index.ts +2 -0
- package/src/infra/navigation/expoRouterAdapter.ts +1 -1
- package/src/infra/provider/OnboardingProvider.tsx +29 -0
- package/src/products/adapters/expoIap.ts +93 -0
- package/src/products/adapters/revenueCat.ts +108 -0
- package/src/products/adapters/stub.ts +20 -0
- package/src/products/derive.ts +93 -0
- package/src/products/duration.ts +21 -0
- package/src/products/index.ts +19 -0
- package/src/products/toVariables.ts +54 -0
- package/src/products/types.ts +88 -0
- package/src/products/useProducts.ts +106 -0
- package/src/{steps/ComposableScreen → screens}/elements/BaseBoxProps.ts +1 -1
- package/src/{steps/ComposableScreen → screens}/elements/ButtonElement.ts +2 -2
- package/src/{steps/ComposableScreen → screens}/elements/CheckboxGroupElement.ts +1 -1
- package/src/{steps/ComposableScreen → screens}/elements/RadioGroupElement.ts +1 -1
- package/src/screens/types.ts +535 -0
- package/src/steps/ComposableScreen/types.ts +9 -528
- package/src/steps/common.types.ts +50 -6
- package/dist/steps/ComposableScreen/elements/AnimatedTextElement.d.ts.map +0 -1
- package/dist/steps/ComposableScreen/elements/AnimatedTextElement.js.map +0 -1
- package/dist/steps/ComposableScreen/elements/BaseBoxProps.d.ts.map +0 -1
- package/dist/steps/ComposableScreen/elements/BaseBoxProps.js.map +0 -1
- package/dist/steps/ComposableScreen/elements/ButtonElement.d.ts.map +0 -1
- package/dist/steps/ComposableScreen/elements/ButtonElement.js.map +0 -1
- package/dist/steps/ComposableScreen/elements/CarouselElement.d.ts.map +0 -1
- package/dist/steps/ComposableScreen/elements/CarouselElement.js.map +0 -1
- package/dist/steps/ComposableScreen/elements/CheckboxGroupElement.d.ts.map +0 -1
- package/dist/steps/ComposableScreen/elements/CheckboxGroupElement.js.map +0 -1
- package/dist/steps/ComposableScreen/elements/DatePickerElement.d.ts.map +0 -1
- package/dist/steps/ComposableScreen/elements/DatePickerElement.js.map +0 -1
- package/dist/steps/ComposableScreen/elements/DrawingPadElement.d.ts.map +0 -1
- package/dist/steps/ComposableScreen/elements/DrawingPadElement.js.map +0 -1
- package/dist/steps/ComposableScreen/elements/IconElement.d.ts.map +0 -1
- package/dist/steps/ComposableScreen/elements/IconElement.js.map +0 -1
- package/dist/steps/ComposableScreen/elements/ImageElement.d.ts.map +0 -1
- package/dist/steps/ComposableScreen/elements/ImageElement.js.map +0 -1
- package/dist/steps/ComposableScreen/elements/InputElement.d.ts.map +0 -1
- package/dist/steps/ComposableScreen/elements/InputElement.js.map +0 -1
- package/dist/steps/ComposableScreen/elements/KeyboardAvoidingViewElement.d.ts.map +0 -1
- package/dist/steps/ComposableScreen/elements/KeyboardAvoidingViewElement.js.map +0 -1
- package/dist/steps/ComposableScreen/elements/LottieElement.d.ts.map +0 -1
- package/dist/steps/ComposableScreen/elements/LottieElement.js.map +0 -1
- package/dist/steps/ComposableScreen/elements/ProgressIndicatorElement.d.ts.map +0 -1
- package/dist/steps/ComposableScreen/elements/ProgressIndicatorElement.js.map +0 -1
- package/dist/steps/ComposableScreen/elements/ProgressiveBlurImageElement.d.ts.map +0 -1
- package/dist/steps/ComposableScreen/elements/ProgressiveBlurImageElement.js.map +0 -1
- package/dist/steps/ComposableScreen/elements/RadioGroupElement.d.ts.map +0 -1
- package/dist/steps/ComposableScreen/elements/RadioGroupElement.js.map +0 -1
- package/dist/steps/ComposableScreen/elements/RichTextElement.d.ts.map +0 -1
- package/dist/steps/ComposableScreen/elements/RichTextElement.js.map +0 -1
- package/dist/steps/ComposableScreen/elements/RiveElement.d.ts.map +0 -1
- package/dist/steps/ComposableScreen/elements/RiveElement.js.map +0 -1
- package/dist/steps/ComposableScreen/elements/SafeAreaViewElement.d.ts.map +0 -1
- package/dist/steps/ComposableScreen/elements/SafeAreaViewElement.js.map +0 -1
- package/dist/steps/ComposableScreen/elements/ScrollViewElement.d.ts.map +0 -1
- package/dist/steps/ComposableScreen/elements/ScrollViewElement.js.map +0 -1
- package/dist/steps/ComposableScreen/elements/SliderElement.d.ts.map +0 -1
- package/dist/steps/ComposableScreen/elements/SliderElement.js.map +0 -1
- package/dist/steps/ComposableScreen/elements/StackElement.d.ts.map +0 -1
- package/dist/steps/ComposableScreen/elements/StackElement.js.map +0 -1
- package/dist/steps/ComposableScreen/elements/TextElement.d.ts.map +0 -1
- package/dist/steps/ComposableScreen/elements/TextElement.js.map +0 -1
- package/dist/steps/ComposableScreen/elements/TypewriterTextElement.d.ts.map +0 -1
- package/dist/steps/ComposableScreen/elements/TypewriterTextElement.js.map +0 -1
- package/dist/steps/ComposableScreen/elements/VideoElement.d.ts.map +0 -1
- package/dist/steps/ComposableScreen/elements/VideoElement.js.map +0 -1
- package/dist/steps/ComposableScreen/elements/WheelPickerElement.d.ts.map +0 -1
- package/dist/steps/ComposableScreen/elements/WheelPickerElement.js.map +0 -1
- package/dist/steps/ComposableScreen/elements/ZStackElement.d.ts.map +0 -1
- package/dist/steps/ComposableScreen/elements/ZStackElement.js.map +0 -1
- /package/dist/{steps/ComposableScreen → screens}/elements/AnimatedTextElement.js +0 -0
- /package/dist/{steps/ComposableScreen → screens}/elements/CarouselElement.js +0 -0
- /package/dist/{steps/ComposableScreen → screens}/elements/DatePickerElement.js +0 -0
- /package/dist/{steps/ComposableScreen → screens}/elements/DrawingPadElement.js +0 -0
- /package/dist/{steps/ComposableScreen → screens}/elements/IconElement.js +0 -0
- /package/dist/{steps/ComposableScreen → screens}/elements/ImageElement.js +0 -0
- /package/dist/{steps/ComposableScreen → screens}/elements/InputElement.js +0 -0
- /package/dist/{steps/ComposableScreen → screens}/elements/KeyboardAvoidingViewElement.js +0 -0
- /package/dist/{steps/ComposableScreen → screens}/elements/LottieElement.js +0 -0
- /package/dist/{steps/ComposableScreen → screens}/elements/ProgressIndicatorElement.js +0 -0
- /package/dist/{steps/ComposableScreen → screens}/elements/ProgressiveBlurImageElement.js +0 -0
- /package/dist/{steps/ComposableScreen → screens}/elements/RichTextElement.js +0 -0
- /package/dist/{steps/ComposableScreen → screens}/elements/RiveElement.js +0 -0
- /package/dist/{steps/ComposableScreen → screens}/elements/SafeAreaViewElement.js +0 -0
- /package/dist/{steps/ComposableScreen → screens}/elements/ScrollViewElement.js +0 -0
- /package/dist/{steps/ComposableScreen → screens}/elements/SliderElement.js +0 -0
- /package/dist/{steps/ComposableScreen → screens}/elements/StackElement.js +0 -0
- /package/dist/{steps/ComposableScreen → screens}/elements/TextElement.js +0 -0
- /package/dist/{steps/ComposableScreen → screens}/elements/TypewriterTextElement.js +0 -0
- /package/dist/{steps/ComposableScreen → screens}/elements/VideoElement.js +0 -0
- /package/dist/{steps/ComposableScreen → screens}/elements/WheelPickerElement.js +0 -0
- /package/dist/{steps/ComposableScreen → screens}/elements/ZStackElement.js +0 -0
- /package/src/{steps/ComposableScreen → screens}/elements/AnimatedTextElement.ts +0 -0
- /package/src/{steps/ComposableScreen → screens}/elements/CarouselElement.ts +0 -0
- /package/src/{steps/ComposableScreen → screens}/elements/DatePickerElement.ts +0 -0
- /package/src/{steps/ComposableScreen → screens}/elements/DrawingPadElement.ts +0 -0
- /package/src/{steps/ComposableScreen → screens}/elements/IconElement.ts +0 -0
- /package/src/{steps/ComposableScreen → screens}/elements/ImageElement.ts +0 -0
- /package/src/{steps/ComposableScreen → screens}/elements/InputElement.ts +0 -0
- /package/src/{steps/ComposableScreen → screens}/elements/KeyboardAvoidingViewElement.ts +0 -0
- /package/src/{steps/ComposableScreen → screens}/elements/LottieElement.ts +0 -0
- /package/src/{steps/ComposableScreen → screens}/elements/ProgressIndicatorElement.ts +0 -0
- /package/src/{steps/ComposableScreen → screens}/elements/ProgressiveBlurImageElement.ts +0 -0
- /package/src/{steps/ComposableScreen → screens}/elements/RichTextElement.ts +0 -0
- /package/src/{steps/ComposableScreen → screens}/elements/RiveElement.ts +0 -0
- /package/src/{steps/ComposableScreen → screens}/elements/SafeAreaViewElement.ts +0 -0
- /package/src/{steps/ComposableScreen → screens}/elements/ScrollViewElement.ts +0 -0
- /package/src/{steps/ComposableScreen → screens}/elements/SliderElement.ts +0 -0
- /package/src/{steps/ComposableScreen → screens}/elements/StackElement.ts +0 -0
- /package/src/{steps/ComposableScreen → screens}/elements/TextElement.ts +0 -0
- /package/src/{steps/ComposableScreen → screens}/elements/TypewriterTextElement.ts +0 -0
- /package/src/{steps/ComposableScreen → screens}/elements/VideoElement.ts +0 -0
- /package/src/{steps/ComposableScreen → screens}/elements/WheelPickerElement.ts +0 -0
- /package/src/{steps/ComposableScreen → screens}/elements/ZStackElement.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"duration.js","sourceRoot":"","sources":["../../src/products/duration.ts"],"names":[],"mappings":";;;AAAA,kFAAkF;AAClF,8EAA8E;AAC9E,+EAA+E;AAC/E,MAAM,UAAU,GAAG,iDAAiD,CAAC;AAErE,MAAM,QAAQ,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAW,CAAC;AAEpE,iFAAiF;AAC1E,MAAM,gBAAgB,GAAG,CAAC,GAA8B,EAAiB,EAAE;IAChF,IAAI,CAAC,GAAG;QAAE,OAAO,IAAI,CAAC;IACtB,MAAM,CAAC,GAAG,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC/B,IAAI,CAAC,CAAC;QAAE,OAAO,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC;IAC1B,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC;QAAE,OAAO,IAAI,CAAC;IACvC,OAAO,CACL,MAAM,CAAC,CAAC,aAAD,CAAC,cAAD,CAAC,GAAI,CAAC,CAAC,GAAG,QAAQ,CAAC,IAAI;QAC9B,MAAM,CAAC,EAAE,aAAF,EAAE,cAAF,EAAE,GAAI,CAAC,CAAC,GAAG,QAAQ,CAAC,KAAK;QAChC,MAAM,CAAC,CAAC,aAAD,CAAC,cAAD,CAAC,GAAI,CAAC,CAAC,GAAG,QAAQ,CAAC,IAAI;QAC9B,MAAM,CAAC,CAAC,aAAD,CAAC,cAAD,CAAC,GAAI,CAAC,CAAC,GAAG,QAAQ,CAAC,GAAG,CAC9B,CAAC;AACJ,CAAC,CAAC;AAZW,QAAA,gBAAgB,oBAY3B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type { ProductRef, ProductPeriod, ResolvedProduct, DerivedProductFields, ProductWithDerived, PurchaseResult, RestoreResult, ProductProvider, ProductStatus, ProductRuntime, } from "./types";
|
|
2
|
+
export { parseIsoDuration } from "./duration";
|
|
3
|
+
export { formatCurrency, deriveProductFields, deriveAll } from "./derive";
|
|
4
|
+
export { productVariables } from "./toVariables";
|
|
5
|
+
export { useProducts } from "./useProducts";
|
|
6
|
+
export { stubProductProvider } from "./adapters/stub";
|
|
7
|
+
export { revenueCatProductProvider } from "./adapters/revenueCat";
|
|
8
|
+
export { expoIapProductProvider } from "./adapters/expoIap";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/products/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,UAAU,EACV,aAAa,EACb,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,eAAe,EACf,aAAa,EACb,cAAc,GACf,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.expoIapProductProvider = exports.revenueCatProductProvider = exports.stubProductProvider = exports.useProducts = exports.productVariables = exports.deriveAll = exports.deriveProductFields = exports.formatCurrency = exports.parseIsoDuration = void 0;
|
|
4
|
+
var duration_1 = require("./duration");
|
|
5
|
+
Object.defineProperty(exports, "parseIsoDuration", { enumerable: true, get: function () { return duration_1.parseIsoDuration; } });
|
|
6
|
+
var derive_1 = require("./derive");
|
|
7
|
+
Object.defineProperty(exports, "formatCurrency", { enumerable: true, get: function () { return derive_1.formatCurrency; } });
|
|
8
|
+
Object.defineProperty(exports, "deriveProductFields", { enumerable: true, get: function () { return derive_1.deriveProductFields; } });
|
|
9
|
+
Object.defineProperty(exports, "deriveAll", { enumerable: true, get: function () { return derive_1.deriveAll; } });
|
|
10
|
+
var toVariables_1 = require("./toVariables");
|
|
11
|
+
Object.defineProperty(exports, "productVariables", { enumerable: true, get: function () { return toVariables_1.productVariables; } });
|
|
12
|
+
var useProducts_1 = require("./useProducts");
|
|
13
|
+
Object.defineProperty(exports, "useProducts", { enumerable: true, get: function () { return useProducts_1.useProducts; } });
|
|
14
|
+
var stub_1 = require("./adapters/stub");
|
|
15
|
+
Object.defineProperty(exports, "stubProductProvider", { enumerable: true, get: function () { return stub_1.stubProductProvider; } });
|
|
16
|
+
var revenueCat_1 = require("./adapters/revenueCat");
|
|
17
|
+
Object.defineProperty(exports, "revenueCatProductProvider", { enumerable: true, get: function () { return revenueCat_1.revenueCatProductProvider; } });
|
|
18
|
+
var expoIap_1 = require("./adapters/expoIap");
|
|
19
|
+
Object.defineProperty(exports, "expoIapProductProvider", { enumerable: true, get: function () { return expoIap_1.expoIapProductProvider; } });
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/products/index.ts"],"names":[],"mappings":";;;AAYA,uCAA8C;AAArC,4GAAA,gBAAgB,OAAA;AACzB,mCAA0E;AAAjE,wGAAA,cAAc,OAAA;AAAE,6GAAA,mBAAmB,OAAA;AAAE,mGAAA,SAAS,OAAA;AACvD,6CAAiD;AAAxC,+GAAA,gBAAgB,OAAA;AACzB,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,wCAAsD;AAA7C,2GAAA,mBAAmB,OAAA;AAC5B,oDAAkE;AAAzD,uHAAA,yBAAyB,OAAA;AAClC,8CAA4D;AAAnD,iHAAA,sBAAsB,OAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ComposableVariableEntry } from "../steps/ComposableScreen/types";
|
|
2
|
+
import type { ProductRuntime } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* Resolved products → the variable bag, as FLAT DOTTED KEYS
|
|
5
|
+
* (`product.yearly.pricePerWeek`). `interpolate()` resolves `{{key}}` with a
|
|
6
|
+
* flat `variables[key]` lookup and `evaluateCondition` reads `flatVariables`
|
|
7
|
+
* the same way, so this needs no engine change.
|
|
8
|
+
*
|
|
9
|
+
* Optional fields are OMITTED when absent rather than emitted empty: a missing
|
|
10
|
+
* key interpolates to "" anyway, but `evaluateCondition`'s `is_empty`/
|
|
11
|
+
* `is_not_empty` treat an empty string identically to a missing key, so that
|
|
12
|
+
* pair doesn't actually depend on this. It's `is_null`/`is_not_null` that do —
|
|
13
|
+
* they only treat null/undefined as null, so an emitted `""` would read as
|
|
14
|
+
* "not null" — so omitting is what makes
|
|
15
|
+
* `renderWhen: { "product.x.savingsPct": { is_not_null: true } }` behave.
|
|
16
|
+
*/
|
|
17
|
+
export declare const productVariables: (runtime: Pick<ProductRuntime, "products" | "status" | "error" | "purchasing">) => Record<string, ComposableVariableEntry>;
|
|
18
|
+
//# sourceMappingURL=toVariables.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toVariables.d.ts","sourceRoot":"","sources":["../../src/products/toVariables.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB,GAC3B,SAAS,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,YAAY,CAAC,KAC5E,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAkCxC,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.productVariables = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Resolved products → the variable bag, as FLAT DOTTED KEYS
|
|
6
|
+
* (`product.yearly.pricePerWeek`). `interpolate()` resolves `{{key}}` with a
|
|
7
|
+
* flat `variables[key]` lookup and `evaluateCondition` reads `flatVariables`
|
|
8
|
+
* the same way, so this needs no engine change.
|
|
9
|
+
*
|
|
10
|
+
* Optional fields are OMITTED when absent rather than emitted empty: a missing
|
|
11
|
+
* key interpolates to "" anyway, but `evaluateCondition`'s `is_empty`/
|
|
12
|
+
* `is_not_empty` treat an empty string identically to a missing key, so that
|
|
13
|
+
* pair doesn't actually depend on this. It's `is_null`/`is_not_null` that do —
|
|
14
|
+
* they only treat null/undefined as null, so an emitted `""` would read as
|
|
15
|
+
* "not null" — so omitting is what makes
|
|
16
|
+
* `renderWhen: { "product.x.savingsPct": { is_not_null: true } }` behave.
|
|
17
|
+
*/
|
|
18
|
+
const productVariables = (runtime) => {
|
|
19
|
+
var _a, _b;
|
|
20
|
+
const out = {};
|
|
21
|
+
const put = (key, value) => {
|
|
22
|
+
if (value === undefined || value === null)
|
|
23
|
+
return;
|
|
24
|
+
out[key] = { value: String(value) };
|
|
25
|
+
};
|
|
26
|
+
for (const [key, p] of Object.entries(runtime.products)) {
|
|
27
|
+
const b = `product.${key}`;
|
|
28
|
+
put(`${b}.productId`, p.productId);
|
|
29
|
+
put(`${b}.title`, p.title);
|
|
30
|
+
put(`${b}.description`, p.description);
|
|
31
|
+
put(`${b}.price`, p.price);
|
|
32
|
+
put(`${b}.priceAmount`, p.priceAmount);
|
|
33
|
+
put(`${b}.currencyCode`, p.currencyCode);
|
|
34
|
+
put(`${b}.period`, p.period);
|
|
35
|
+
put(`${b}.periodCount`, p.periodCount);
|
|
36
|
+
put(`${b}.pricePerWeek`, p.pricePerWeek);
|
|
37
|
+
put(`${b}.pricePerWeekAmount`, p.pricePerWeekAmount);
|
|
38
|
+
put(`${b}.pricePerMonth`, p.pricePerMonth);
|
|
39
|
+
put(`${b}.pricePerMonthAmount`, p.pricePerMonthAmount);
|
|
40
|
+
put(`${b}.pricePerYear`, p.pricePerYear);
|
|
41
|
+
put(`${b}.pricePerYearAmount`, p.pricePerYearAmount);
|
|
42
|
+
put(`${b}.savingsPct`, p.savingsPct);
|
|
43
|
+
put(`${b}.trialDays`, p.trialDays);
|
|
44
|
+
put(`${b}.introPrice`, (_a = p.introOffer) === null || _a === void 0 ? void 0 : _a.price);
|
|
45
|
+
}
|
|
46
|
+
out["products.loaded"] = { value: runtime.status === "ready" ? "true" : "false" };
|
|
47
|
+
out["products.purchasing"] = { value: runtime.purchasing ? "true" : "false" };
|
|
48
|
+
out["products.error"] = { value: (_b = runtime.error) !== null && _b !== void 0 ? _b : "" };
|
|
49
|
+
return out;
|
|
50
|
+
};
|
|
51
|
+
exports.productVariables = productVariables;
|
|
52
|
+
//# sourceMappingURL=toVariables.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toVariables.js","sourceRoot":"","sources":["../../src/products/toVariables.ts"],"names":[],"mappings":";;;AAGA;;;;;;;;;;;;;GAaG;AACI,MAAM,gBAAgB,GAAG,CAC9B,OAA6E,EACpC,EAAE;;IAC3C,MAAM,GAAG,GAA4C,EAAE,CAAC;IAExD,MAAM,GAAG,GAAG,CAAC,GAAW,EAAE,KAAyC,EAAE,EAAE;QACrE,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI;YAAE,OAAO;QAClD,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;IACtC,CAAC,CAAC;IAEF,KAAK,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;QACxD,MAAM,CAAC,GAAG,WAAW,GAAG,EAAE,CAAC;QAC3B,GAAG,CAAC,GAAG,CAAC,YAAY,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC;QACnC,GAAG,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CA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,KAAK,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IAClF,GAAG,CAAC,qBAAqB,CAAC,GAAG,EAAE,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IAC9E,GAAG,CAAC,gBAAgB,CAAC,GAAG,EAAE,KAAK,EAAE,MAAA,OAAO,CAAC,KAAK,mCAAI,EAAE,EAAE,CAAC;IAEvD,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AApCW,QAAA,gBAAgB,oBAoC3B"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/** A product slot declared by the author: a stable key plus per-store ids. */
|
|
2
|
+
export type ProductRef = {
|
|
3
|
+
/** Author-chosen slot name used in variables, e.g. "yearly" → product.yearly.price */
|
|
4
|
+
key: string;
|
|
5
|
+
/** App Store product identifier. */
|
|
6
|
+
ios?: string;
|
|
7
|
+
/** Play product identifier. `productId:basePlanId` — RevenueCat's convention. */
|
|
8
|
+
android?: string;
|
|
9
|
+
/** Another slot's key; savingsPct is computed against it. */
|
|
10
|
+
compareTo?: string;
|
|
11
|
+
};
|
|
12
|
+
export type ProductPeriod = "week" | "month" | "year" | "lifetime";
|
|
13
|
+
/** A product as the store reports it. Prices here are authoritative. */
|
|
14
|
+
export type ResolvedProduct = {
|
|
15
|
+
key: string;
|
|
16
|
+
/** The identifier resolved for THIS platform. */
|
|
17
|
+
productId: string;
|
|
18
|
+
store: "app_store" | "play_store";
|
|
19
|
+
title: string;
|
|
20
|
+
description: string;
|
|
21
|
+
/** Store-localized, pre-formatted, e.g. "$59.99". Display this. */
|
|
22
|
+
price: string;
|
|
23
|
+
priceAmount: number;
|
|
24
|
+
currencyCode: string;
|
|
25
|
+
period: ProductPeriod | null;
|
|
26
|
+
periodCount: number;
|
|
27
|
+
/** ISO-8601 duration, e.g. "P1Y". null for non-subscriptions. */
|
|
28
|
+
periodIso: string | null;
|
|
29
|
+
introOffer?: {
|
|
30
|
+
price: string;
|
|
31
|
+
priceAmount: number;
|
|
32
|
+
period: ProductPeriod;
|
|
33
|
+
periodCount: number;
|
|
34
|
+
cycles: number;
|
|
35
|
+
};
|
|
36
|
+
trial?: {
|
|
37
|
+
period: ProductPeriod;
|
|
38
|
+
periodCount: number;
|
|
39
|
+
days: number;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Computed by the SDK, never by an adapter — so every provider produces
|
|
44
|
+
* identical semantics and formatting.
|
|
45
|
+
*/
|
|
46
|
+
export type DerivedProductFields = {
|
|
47
|
+
pricePerWeek?: string;
|
|
48
|
+
pricePerWeekAmount?: number;
|
|
49
|
+
pricePerMonth?: string;
|
|
50
|
+
pricePerMonthAmount?: number;
|
|
51
|
+
pricePerYear?: string;
|
|
52
|
+
pricePerYearAmount?: number;
|
|
53
|
+
/** Whole percent cheaper than `compareTo`, normalized per day. Absent if not cheaper. */
|
|
54
|
+
savingsPct?: number;
|
|
55
|
+
trialDays?: number;
|
|
56
|
+
};
|
|
57
|
+
export type ProductWithDerived = ResolvedProduct & DerivedProductFields;
|
|
58
|
+
export type PurchaseResult = {
|
|
59
|
+
status: "purchased";
|
|
60
|
+
productKey: string;
|
|
61
|
+
entitlements?: string[];
|
|
62
|
+
} | {
|
|
63
|
+
status: "cancelled";
|
|
64
|
+
} | {
|
|
65
|
+
status: "pending";
|
|
66
|
+
} | {
|
|
67
|
+
status: "error";
|
|
68
|
+
error: Error;
|
|
69
|
+
};
|
|
70
|
+
export type RestoreResult = {
|
|
71
|
+
status: "restored";
|
|
72
|
+
entitlements: string[];
|
|
73
|
+
} | {
|
|
74
|
+
status: "nothing_to_restore";
|
|
75
|
+
} | {
|
|
76
|
+
status: "error";
|
|
77
|
+
error: Error;
|
|
78
|
+
};
|
|
79
|
+
/** The vendor seam. Implement this to back paywalls with any billing SDK. */
|
|
80
|
+
export interface ProductProvider {
|
|
81
|
+
getProducts(refs: ProductRef[]): Promise<ResolvedProduct[]>;
|
|
82
|
+
purchase(product: ResolvedProduct): Promise<PurchaseResult>;
|
|
83
|
+
restore(): Promise<RestoreResult>;
|
|
84
|
+
}
|
|
85
|
+
export type ProductStatus = "idle" | "loading" | "ready" | "error";
|
|
86
|
+
/** What a host puts on ScreenHost.products; what press actions dispatch through. */
|
|
87
|
+
export type ProductRuntime = {
|
|
88
|
+
products: Record<string, ProductWithDerived>;
|
|
89
|
+
status: ProductStatus;
|
|
90
|
+
error?: string;
|
|
91
|
+
/** In-flight purchase guard, surfaced as the `products.purchasing` variable. */
|
|
92
|
+
purchasing: boolean;
|
|
93
|
+
purchase: (key: string) => Promise<PurchaseResult>;
|
|
94
|
+
restore: () => Promise<RestoreResult>;
|
|
95
|
+
};
|
|
96
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/products/types.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,MAAM,MAAM,UAAU,GAAG;IACvB,sFAAsF;IACtF,GAAG,EAAE,MAAM,CAAC;IACZ,oCAAoC;IACpC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,iFAAiF;IACjF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,CAAC;AAEnE,wEAAwE;AACxE,MAAM,MAAM,eAAe,GAAG;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,iDAAiD;IACjD,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,WAAW,GAAG,YAAY,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,mEAAmE;IACnE,KAAK,EAAE,MAAM,CAAC;IACd,WA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C;AAEtC,MAAM,MAAM,aAAa,GACrB;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAA;CAAE,GAC9C;IAAE,MAAM,EAAE,oBAAoB,CAAA;CAAE,GAChC;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,CAAC;AAEtC,6EAA6E;AAC7E,MAAM,WAAW,eAAe;IAC9B,WAAW,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC;IAC5D,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAC5D,OAAO,IAAI,OAAO,CAAC,aAAa,CAAC,CAAC;CACnC;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,CAAC;AAEnE,oFAAoF;AACpF,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IAC7C,MAAM,EAAE,aAAa,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gFAAgF;IAChF,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC;IACnD,OAAO,EAAE,MAAM,OAAO,CAAC,aAAa,CAAC,CAAC;CACvC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/products/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ProductProvider, ProductRef, ProductRuntime } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Resolves `refs` through `provider` once per (refs, provider) pair and exposes
|
|
4
|
+
* a referentially stable ProductRuntime.
|
|
5
|
+
*
|
|
6
|
+
* Stability matters: this object lands in RenderContext's dependency array, so
|
|
7
|
+
* an identity change on every render would re-render every memoized element on
|
|
8
|
+
* every variable write — undoing the Phase 1 memoization work. It is memoized on
|
|
9
|
+
* its actual contents, and purchase/restore are useCallback-stable.
|
|
10
|
+
*/
|
|
11
|
+
export declare const useProducts: (refs: ProductRef[] | undefined, provider: ProductProvider | undefined, locale?: string) => ProductRuntime;
|
|
12
|
+
//# sourceMappingURL=useProducts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useProducts.d.ts","sourceRoot":"","sources":["../../src/products/useProducts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EACf,UAAU,EACV,cAAc,EAKf,MAAM,SAAS,CAAC;AAIjB;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,GACtB,MAAM,UAAU,EAAE,GAAG,SAAS,EAC9B,UAAU,eAAe,GAAG,SAAS,EACrC,SAAS,MAAM,KACd,cA8EF,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useProducts = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const derive_1 = require("./derive");
|
|
6
|
+
const EMPTY_PRODUCTS = {};
|
|
7
|
+
/**
|
|
8
|
+
* Resolves `refs` through `provider` once per (refs, provider) pair and exposes
|
|
9
|
+
* a referentially stable ProductRuntime.
|
|
10
|
+
*
|
|
11
|
+
* Stability matters: this object lands in RenderContext's dependency array, so
|
|
12
|
+
* an identity change on every render would re-render every memoized element on
|
|
13
|
+
* every variable write — undoing the Phase 1 memoization work. It is memoized on
|
|
14
|
+
* its actual contents, and purchase/restore are useCallback-stable.
|
|
15
|
+
*/
|
|
16
|
+
const useProducts = (refs, provider, locale) => {
|
|
17
|
+
const [products, setProducts] = (0, react_1.useState)(EMPTY_PRODUCTS);
|
|
18
|
+
const [status, setStatus] = (0, react_1.useState)("idle");
|
|
19
|
+
const [error, setError] = (0, react_1.useState)(undefined);
|
|
20
|
+
const [purchasing, setPurchasing] = (0, react_1.useState)(false);
|
|
21
|
+
// Refs so the callbacks below never need to be re-created.
|
|
22
|
+
const productsRef = (0, react_1.useRef)(products);
|
|
23
|
+
productsRef.current = products;
|
|
24
|
+
const providerRef = (0, react_1.useRef)(provider);
|
|
25
|
+
providerRef.current = provider;
|
|
26
|
+
// Key the effect on the refs' identity CONTENT, not the array identity — a
|
|
27
|
+
// host passing an inline array literal would otherwise refetch every render.
|
|
28
|
+
const refsKey = (0, react_1.useMemo)(() => (refs !== null && refs !== void 0 ? refs : []).map((r) => { var _a, _b, _c; return `${r.key}|${(_a = r.ios) !== null && _a !== void 0 ? _a : ""}|${(_b = r.android) !== null && _b !== void 0 ? _b : ""}|${(_c = r.compareTo) !== null && _c !== void 0 ? _c : ""}`; }).join(","), [refs]);
|
|
29
|
+
const refsRef = (0, react_1.useRef)(refs);
|
|
30
|
+
refsRef.current = refs;
|
|
31
|
+
(0, react_1.useEffect)(() => {
|
|
32
|
+
const current = refsRef.current;
|
|
33
|
+
const prov = providerRef.current;
|
|
34
|
+
if (!prov || !current || current.length === 0) {
|
|
35
|
+
setStatus("idle");
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
let cancelled = false;
|
|
39
|
+
setStatus("loading");
|
|
40
|
+
setError(undefined);
|
|
41
|
+
prov
|
|
42
|
+
.getProducts(current)
|
|
43
|
+
.then((resolved) => {
|
|
44
|
+
if (cancelled)
|
|
45
|
+
return;
|
|
46
|
+
setProducts((0, derive_1.deriveAll)(resolved, current, locale));
|
|
47
|
+
setStatus("ready");
|
|
48
|
+
})
|
|
49
|
+
.catch((e) => {
|
|
50
|
+
if (cancelled)
|
|
51
|
+
return;
|
|
52
|
+
setError(e instanceof Error ? e.message : String(e));
|
|
53
|
+
setStatus("error");
|
|
54
|
+
});
|
|
55
|
+
return () => {
|
|
56
|
+
cancelled = true;
|
|
57
|
+
};
|
|
58
|
+
}, [refsKey, locale]);
|
|
59
|
+
const purchase = (0, react_1.useCallback)(async (key) => {
|
|
60
|
+
const prov = providerRef.current;
|
|
61
|
+
const product = productsRef.current[key];
|
|
62
|
+
if (!prov || !product) {
|
|
63
|
+
return { status: "error", error: new Error(`No resolved product for key "${key}"`) };
|
|
64
|
+
}
|
|
65
|
+
setPurchasing(true);
|
|
66
|
+
try {
|
|
67
|
+
return await prov.purchase(product);
|
|
68
|
+
}
|
|
69
|
+
catch (e) {
|
|
70
|
+
return { status: "error", error: e instanceof Error ? e : new Error(String(e)) };
|
|
71
|
+
}
|
|
72
|
+
finally {
|
|
73
|
+
setPurchasing(false);
|
|
74
|
+
}
|
|
75
|
+
}, []);
|
|
76
|
+
const restore = (0, react_1.useCallback)(async () => {
|
|
77
|
+
const prov = providerRef.current;
|
|
78
|
+
if (!prov)
|
|
79
|
+
return { status: "error", error: new Error("No ProductProvider") };
|
|
80
|
+
try {
|
|
81
|
+
return await prov.restore();
|
|
82
|
+
}
|
|
83
|
+
catch (e) {
|
|
84
|
+
return { status: "error", error: e instanceof Error ? e : new Error(String(e)) };
|
|
85
|
+
}
|
|
86
|
+
}, []);
|
|
87
|
+
return (0, react_1.useMemo)(() => ({ products, status, error, purchasing, purchase, restore }), [products, status, error, purchasing, purchase, restore]);
|
|
88
|
+
};
|
|
89
|
+
exports.useProducts = useProducts;
|
|
90
|
+
//# sourceMappingURL=useProducts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useProducts.js","sourceRoot":"","sources":["../../src/products/useProducts.ts"],"names":[],"mappings":";;;AAAA,iCAA0E;AAC1E,qCAAqC;AAWrC,MAAM,cAAc,GAAuC,EAAE,CAAC;AAE9D;;;;;;;;GAQG;AACI,MAAM,WAAW,GAAG,CACzB,IAA8B,EAC9B,QAAqC,EACrC,MAAe,EACC,EAAE;IAClB,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,IAAA,gBAAQ,EAAqC,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,CACzD,CAAC;AACJ,CAAC,CAAC;AAlFW,QAAA,WAAW,eAkFtB"}
|
|
@@ -288,30 +288,7 @@ export declare const AnimatedTextElementPropsSchema: z.ZodObject<{
|
|
|
288
288
|
degrees: z.ZodOptional<z.ZodNumber>;
|
|
289
289
|
}, z.core.$strip>>;
|
|
290
290
|
}, z.core.$strip>>;
|
|
291
|
-
onPress: z.ZodOptional<z.ZodArray<z.
|
|
292
|
-
type: z.ZodLiteral<"custom">;
|
|
293
|
-
function: z.ZodString;
|
|
294
|
-
variables: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
295
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
296
|
-
type: z.ZodLiteral<"setVariable">;
|
|
297
|
-
name: z.ZodString;
|
|
298
|
-
value: z.ZodString;
|
|
299
|
-
label: z.ZodOptional<z.ZodString>;
|
|
300
|
-
valueMode: z.ZodOptional<z.ZodEnum<{
|
|
301
|
-
literal: "literal";
|
|
302
|
-
expression: "expression";
|
|
303
|
-
}>>;
|
|
304
|
-
kind: z.ZodOptional<z.ZodEnum<{
|
|
305
|
-
string: "string";
|
|
306
|
-
int: "int";
|
|
307
|
-
float: "float";
|
|
308
|
-
}>>;
|
|
309
|
-
arrayOp: z.ZodOptional<z.ZodEnum<{
|
|
310
|
-
append: "append";
|
|
311
|
-
remove: "remove";
|
|
312
|
-
toggle: "toggle";
|
|
313
|
-
}>>;
|
|
314
|
-
}, z.core.$strip>]>>>;
|
|
291
|
+
onPress: z.ZodOptional<z.ZodArray<z.ZodType<import("./ButtonElement").ButtonAction, unknown, z.core.$ZodTypeInternals<import("./ButtonElement").ButtonAction, unknown>>>>;
|
|
315
292
|
from: z.ZodOptional<z.ZodNumber>;
|
|
316
293
|
to: z.ZodNumber;
|
|
317
294
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnimatedTextElement.d.ts","sourceRoot":"","sources":["../../../src/screens/elements/AnimatedTextElement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AAQ,EAAE;IACjC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,SAAS,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE;IAClD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,SAAS,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE;IACzD,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { type ButtonAction } from "../../common.types";
|
|
2
|
+
import { type ButtonAction } from "../../steps/common.types";
|
|
3
3
|
export type GradientStop = {
|
|
4
4
|
color: string;
|
|
5
5
|
position?: number;
|
|
@@ -468,29 +468,6 @@ export declare const BaseBoxPropsSchema: z.ZodObject<{
|
|
|
468
468
|
degrees: z.ZodOptional<z.ZodNumber>;
|
|
469
469
|
}, z.core.$strip>>;
|
|
470
470
|
}, z.core.$strip>>;
|
|
471
|
-
onPress: z.ZodOptional<z.ZodArray<z.
|
|
472
|
-
type: z.ZodLiteral<"custom">;
|
|
473
|
-
function: z.ZodString;
|
|
474
|
-
variables: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
475
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
476
|
-
type: z.ZodLiteral<"setVariable">;
|
|
477
|
-
name: z.ZodString;
|
|
478
|
-
value: z.ZodString;
|
|
479
|
-
label: z.ZodOptional<z.ZodString>;
|
|
480
|
-
valueMode: z.ZodOptional<z.ZodEnum<{
|
|
481
|
-
literal: "literal";
|
|
482
|
-
expression: "expression";
|
|
483
|
-
}>>;
|
|
484
|
-
kind: z.ZodOptional<z.ZodEnum<{
|
|
485
|
-
string: "string";
|
|
486
|
-
int: "int";
|
|
487
|
-
float: "float";
|
|
488
|
-
}>>;
|
|
489
|
-
arrayOp: z.ZodOptional<z.ZodEnum<{
|
|
490
|
-
append: "append";
|
|
491
|
-
remove: "remove";
|
|
492
|
-
toggle: "toggle";
|
|
493
|
-
}>>;
|
|
494
|
-
}, z.core.$strip>]>>>;
|
|
471
|
+
onPress: z.ZodOptional<z.ZodArray<z.ZodType<ButtonAction, unknown, z.core.$ZodTypeInternals<ButtonAction, unknown>>>>;
|
|
495
472
|
}, z.core.$strip>;
|
|
496
473
|
//# sourceMappingURL=BaseBoxProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseBoxProps.d.ts","sourceRoot":"","sources":["../../../src/screens/elements/BaseBoxProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,YAAY,EAAsB,MAAM,0BAA0B,CAAC;AAEjF,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,YAAY,GACpB,KAAK,GACL,QAAQ,GACR,MAAM,GACN,OAAO,GACP,SAAS,GACT,UAAU,GACV,YAAY,GACZ,aAAa,CAAC;AAElB,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,YAAY,CAAC;IACnB,EAAE,EAAE,YAAY,CAAC;IACjB,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,QAAQ,CAAC;IAEf,MAAM,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CA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eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiC7B,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BaseBoxPropsSchema = exports.EnteringPresetSchema = exports.SpringConfigSchema = exports.AnimationEasingSchema = exports.ShadowOffsetSchema = exports.GradientBackgroundSchema = exports.GradientEdgeSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const common_types_1 = require("../../common.types");
|
|
5
|
+
const common_types_1 = require("../../steps/common.types");
|
|
6
6
|
exports.GradientEdgeSchema = zod_1.z.enum(["top", "bottom", "left", "right", "topLeft", "topRight", "bottomLeft", "bottomRight"]);
|
|
7
7
|
const GradientStopSchema = zod_1.z.object({
|
|
8
8
|
color: zod_1.z.string(),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseBoxProps.js","sourceRoot":"","sources":["../../../src/screens/elements/BaseBoxProps.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,2DAAiF;AAmCpE,QAAA,kBAAkB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC;AAEjI,MAAM,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IAClC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,QAAQ,EAAE,OAAC,CAAC,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