@pelcro/react-pelcro-js 3.20.2 → 3.20.3-beta.1
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.cjs.js +11 -4
- package/dist/index.esm.js +11 -4
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -13946,8 +13946,8 @@ function SelectModalWithHook(props) {
|
|
|
13946
13946
|
}
|
|
13947
13947
|
SelectModalWithHook.viewId = "plan-select";
|
|
13948
13948
|
class SelectModal extends React.Component {
|
|
13949
|
-
constructor(
|
|
13950
|
-
super(
|
|
13949
|
+
constructor(_props) {
|
|
13950
|
+
super(_props);
|
|
13951
13951
|
_defineProperty$3(this, "componentDidMount", () => {
|
|
13952
13952
|
if (this.props.product) {
|
|
13953
13953
|
const {
|
|
@@ -14006,6 +14006,13 @@ class SelectModal extends React.Component {
|
|
|
14006
14006
|
user: (_window$Pelcro6 = window.Pelcro) === null || _window$Pelcro6 === void 0 ? void 0 : (_window$Pelcro6$user = _window$Pelcro6.user) === null || _window$Pelcro6$user === void 0 ? void 0 : _window$Pelcro6$user.read(),
|
|
14007
14007
|
uiVersion: (_window$Pelcro7 = window.Pelcro) === null || _window$Pelcro7 === void 0 ? void 0 : (_window$Pelcro7$uiSet = _window$Pelcro7.uiSettings) === null || _window$Pelcro7$uiSet === void 0 ? void 0 : _window$Pelcro7$uiSet.uiVersion,
|
|
14008
14008
|
environment: (_window$Pelcro8 = window.Pelcro) === null || _window$Pelcro8 === void 0 ? void 0 : _window$Pelcro8.environment,
|
|
14009
|
+
matchingEntitlementsProps: props.matchingEntitlements,
|
|
14010
|
+
productListState: this.state.productList,
|
|
14011
|
+
methods: {
|
|
14012
|
+
productsWithMatchedTaggedFirst: productsWithMatchedTaggedFirst(),
|
|
14013
|
+
pelcroSDKProductsListMethod: window.Pelcro.product.list(),
|
|
14014
|
+
pelcroSDKGetByEntitlements: props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(props.matchingEntitlements) : null
|
|
14015
|
+
},
|
|
14009
14016
|
userCurrency: userCurrency,
|
|
14010
14017
|
userCountry: userCountry,
|
|
14011
14018
|
userLanguage: userLanguage,
|
|
@@ -14222,10 +14229,10 @@ class SelectModal extends React.Component {
|
|
|
14222
14229
|
this.state = {
|
|
14223
14230
|
product: {},
|
|
14224
14231
|
plan: {},
|
|
14225
|
-
isGift:
|
|
14232
|
+
isGift: _props.isGift,
|
|
14226
14233
|
disabled: true,
|
|
14227
14234
|
mode: "product",
|
|
14228
|
-
productList:
|
|
14235
|
+
productList: _props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(_props.matchingEntitlements) : window.Pelcro.product.list()
|
|
14229
14236
|
};
|
|
14230
14237
|
this.product = this.props.product || window.Pelcro.paywall.getProduct();
|
|
14231
14238
|
this.locale = this.props.t;
|
package/dist/index.esm.js
CHANGED
|
@@ -13916,8 +13916,8 @@ function SelectModalWithHook(props) {
|
|
|
13916
13916
|
}
|
|
13917
13917
|
SelectModalWithHook.viewId = "plan-select";
|
|
13918
13918
|
class SelectModal extends Component {
|
|
13919
|
-
constructor(
|
|
13920
|
-
super(
|
|
13919
|
+
constructor(_props) {
|
|
13920
|
+
super(_props);
|
|
13921
13921
|
_defineProperty$3(this, "componentDidMount", () => {
|
|
13922
13922
|
if (this.props.product) {
|
|
13923
13923
|
const {
|
|
@@ -13976,6 +13976,13 @@ class SelectModal extends Component {
|
|
|
13976
13976
|
user: (_window$Pelcro6 = window.Pelcro) === null || _window$Pelcro6 === void 0 ? void 0 : (_window$Pelcro6$user = _window$Pelcro6.user) === null || _window$Pelcro6$user === void 0 ? void 0 : _window$Pelcro6$user.read(),
|
|
13977
13977
|
uiVersion: (_window$Pelcro7 = window.Pelcro) === null || _window$Pelcro7 === void 0 ? void 0 : (_window$Pelcro7$uiSet = _window$Pelcro7.uiSettings) === null || _window$Pelcro7$uiSet === void 0 ? void 0 : _window$Pelcro7$uiSet.uiVersion,
|
|
13978
13978
|
environment: (_window$Pelcro8 = window.Pelcro) === null || _window$Pelcro8 === void 0 ? void 0 : _window$Pelcro8.environment,
|
|
13979
|
+
matchingEntitlementsProps: props.matchingEntitlements,
|
|
13980
|
+
productListState: this.state.productList,
|
|
13981
|
+
methods: {
|
|
13982
|
+
productsWithMatchedTaggedFirst: productsWithMatchedTaggedFirst(),
|
|
13983
|
+
pelcroSDKProductsListMethod: window.Pelcro.product.list(),
|
|
13984
|
+
pelcroSDKGetByEntitlements: props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(props.matchingEntitlements) : null
|
|
13985
|
+
},
|
|
13979
13986
|
userCurrency: userCurrency,
|
|
13980
13987
|
userCountry: userCountry,
|
|
13981
13988
|
userLanguage: userLanguage,
|
|
@@ -14192,10 +14199,10 @@ class SelectModal extends Component {
|
|
|
14192
14199
|
this.state = {
|
|
14193
14200
|
product: {},
|
|
14194
14201
|
plan: {},
|
|
14195
|
-
isGift:
|
|
14202
|
+
isGift: _props.isGift,
|
|
14196
14203
|
disabled: true,
|
|
14197
14204
|
mode: "product",
|
|
14198
|
-
productList:
|
|
14205
|
+
productList: _props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(_props.matchingEntitlements) : window.Pelcro.product.list()
|
|
14199
14206
|
};
|
|
14200
14207
|
this.product = this.props.product || window.Pelcro.paywall.getProduct();
|
|
14201
14208
|
this.locale = this.props.t;
|