@iblai/web-utils 1.6.10 → 1.7.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/data-layer/src/features/monetization/types.d.ts +1 -0
- package/dist/data-layer/src/features/periodic-agents/api-slice.d.ts +2655 -0
- package/dist/data-layer/src/index.d.ts +1 -0
- package/dist/index.d.ts +10 -4
- package/dist/index.esm.js +20 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +21 -7
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/web-utils/src/features/apple-restriction/__tests__/slice.test.d.ts +1 -0
- package/dist/web-utils/src/features/apple-restriction/slice.d.ts +7 -0
- package/dist/web-utils/src/features/index.d.ts +1 -0
- package/dist/web-utils/src/features/subscription/slice.d.ts +1 -2
- package/dist/web-utils/src/types/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4009,9 +4009,8 @@ function formatProdErrorMessage(code) {
|
|
|
4009
4009
|
const SUBSCRIPTION_USER_CAPABILITIES = {
|
|
4010
4010
|
FREE_TRIAL: "FREE_TRIAL"};
|
|
4011
4011
|
|
|
4012
|
-
const initialState$
|
|
4012
|
+
const initialState$8 = {
|
|
4013
4013
|
openPricingModal: false,
|
|
4014
|
-
openAppleRestrictionModal: false,
|
|
4015
4014
|
freeTrialUsageOptions: {
|
|
4016
4015
|
count: 0,
|
|
4017
4016
|
limitReached: false,
|
|
@@ -4032,14 +4031,11 @@ const initialState$7 = {
|
|
|
4032
4031
|
};
|
|
4033
4032
|
const subscriptionSlice = createSlice({
|
|
4034
4033
|
name: "subscription",
|
|
4035
|
-
initialState: initialState$
|
|
4034
|
+
initialState: initialState$8,
|
|
4036
4035
|
reducers: {
|
|
4037
4036
|
setOpenPricingModal(state, action) {
|
|
4038
4037
|
state.openPricingModal = action.payload;
|
|
4039
4038
|
},
|
|
4040
|
-
setOpenAppleRestrictionModal(state, action) {
|
|
4041
|
-
state.openAppleRestrictionModal = action.payload;
|
|
4042
|
-
},
|
|
4043
4039
|
setFreeTrialUsageOptions(state, action) {
|
|
4044
4040
|
state.freeTrialUsageOptions = action.payload;
|
|
4045
4041
|
},
|
|
@@ -4054,9 +4050,24 @@ const subscriptionSlice = createSlice({
|
|
|
4054
4050
|
},
|
|
4055
4051
|
},
|
|
4056
4052
|
});
|
|
4057
|
-
const { setOpenPricingModal,
|
|
4053
|
+
const { setOpenPricingModal, setFreeTrialUsageOptions, setPricingModalData, setSubscriptionStatus, setError402Detected, } = subscriptionSlice.actions;
|
|
4058
4054
|
const subscriptionReducer = subscriptionSlice.reducer;
|
|
4059
4055
|
|
|
4056
|
+
const initialState$7 = {
|
|
4057
|
+
openAppleRestrictionModal: false,
|
|
4058
|
+
};
|
|
4059
|
+
const appleRestrictionSlice = createSlice({
|
|
4060
|
+
name: "appleRestriction",
|
|
4061
|
+
initialState: initialState$7,
|
|
4062
|
+
reducers: {
|
|
4063
|
+
setOpenAppleRestrictionModal(state, action) {
|
|
4064
|
+
state.openAppleRestrictionModal = action.payload;
|
|
4065
|
+
},
|
|
4066
|
+
},
|
|
4067
|
+
});
|
|
4068
|
+
const { setOpenAppleRestrictionModal } = appleRestrictionSlice.actions;
|
|
4069
|
+
const appleRestrictionReducer = appleRestrictionSlice.reducer;
|
|
4070
|
+
|
|
4060
4071
|
const initialState$6 = {
|
|
4061
4072
|
topBannerOptions: {
|
|
4062
4073
|
bannerText: "",
|
|
@@ -9859,6 +9870,7 @@ function TenantProvider({ children, fallback, onAuthSuccess, onAuthFailure, curr
|
|
|
9859
9870
|
is_advertising: !!((_d = tenantMetadata === null || tenantMetadata === void 0 ? void 0 : tenantMetadata.metadata) === null || _d === void 0 ? void 0 : _d.is_advertising),
|
|
9860
9871
|
is_enterprise: tenant.is_enterprise,
|
|
9861
9872
|
show_paywall: tenant.show_paywall,
|
|
9873
|
+
enable_monetization: tenant.enable_monetization,
|
|
9862
9874
|
});
|
|
9863
9875
|
const rbacPermissions = await loadPlatformPermissions(tenant.key);
|
|
9864
9876
|
onLoadPlatformPermissions === null || onLoadPlatformPermissions === void 0 ? void 0 : onLoadPlatformPermissions(rbacPermissions);
|
|
@@ -17913,6 +17925,8 @@ exports.addMessage = addMessage;
|
|
|
17913
17925
|
exports.addProtocolToUrl = addProtocolToUrl;
|
|
17914
17926
|
exports.advancedTabs = advancedTabs;
|
|
17915
17927
|
exports.advancedTabsProperties = advancedTabsProperties;
|
|
17928
|
+
exports.appleRestrictionReducer = appleRestrictionReducer;
|
|
17929
|
+
exports.appleRestrictionSlice = appleRestrictionSlice;
|
|
17916
17930
|
exports.chatActions = chatActions;
|
|
17917
17931
|
exports.chatInputSlice = chatInputSlice;
|
|
17918
17932
|
exports.chatInputSliceActions = chatInputSliceActions;
|