@techstuff-dev/foundation-api-utils 1.37.0 → 1.39.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/@types/lib/store/index.d.ts +3 -3
- package/dist/index.esm.js +2 -13
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -13
- package/dist/index.js.map +1 -1
- package/package.json +5 -6
|
@@ -61,10 +61,10 @@ declare const makeNativeStore: () => import("@reduxjs/toolkit").EnhancedStore<an
|
|
|
61
61
|
declare const makeWebStore: () => import("@reduxjs/toolkit").EnhancedStore<any, import("redux").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
|
62
62
|
dispatch: ThunkDispatch<any, undefined, import("redux").UnknownAction>;
|
|
63
63
|
}>, ...any[]]>>;
|
|
64
|
-
export declare const nativeStore:
|
|
64
|
+
export declare const nativeStore: import("@reduxjs/toolkit").EnhancedStore<any, import("redux").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
|
65
65
|
dispatch: ThunkDispatch<any, undefined, import("redux").UnknownAction>;
|
|
66
|
-
}>, ...any[]]
|
|
67
|
-
export declare const webStore:
|
|
66
|
+
}>, ...any[]]>> | undefined;
|
|
67
|
+
export declare const webStore: import("@reduxjs/toolkit").EnhancedStore<any, import("redux").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
|
68
68
|
dispatch: ThunkDispatch<any, undefined, import("redux").UnknownAction>;
|
|
69
69
|
}>, ...any[]]>> | undefined;
|
|
70
70
|
export type AppStoreNative = ReturnType<typeof makeNativeStore>;
|
package/dist/index.esm.js
CHANGED
|
@@ -1456,17 +1456,6 @@ var storageBlackList = [];
|
|
|
1456
1456
|
// are needed for each request to prevent cross-request state pollution.
|
|
1457
1457
|
var makeNativeStore = function () {
|
|
1458
1458
|
var customEnhancers = [];
|
|
1459
|
-
// Make sure compilation stops in next.js web app.
|
|
1460
|
-
if (!isWeb && process.env.NODE_ENV === 'development') {
|
|
1461
|
-
var Reactotron = require('reactotron-react-native').default;
|
|
1462
|
-
var reactotronRedux = require('reactotron-redux').reactotronRedux;
|
|
1463
|
-
var reactotron = Reactotron.configure({ name: 'nrgAtHome' })
|
|
1464
|
-
.useReactNative()
|
|
1465
|
-
.use(reactotronRedux())
|
|
1466
|
-
.connect();
|
|
1467
|
-
// Add reactotron to the native DEV store.
|
|
1468
|
-
customEnhancers.push(reactotron.createEnhancer());
|
|
1469
|
-
}
|
|
1470
1459
|
var Platform = require('react-native').Platform;
|
|
1471
1460
|
var reducer;
|
|
1472
1461
|
var FLUSH;
|
|
@@ -1567,8 +1556,8 @@ var makeWebStore = function () {
|
|
|
1567
1556
|
},
|
|
1568
1557
|
});
|
|
1569
1558
|
};
|
|
1570
|
-
var nativeStore = !isWeb
|
|
1571
|
-
var webStore = isWeb
|
|
1559
|
+
var nativeStore = !isWeb ? makeNativeStore() : undefined;
|
|
1560
|
+
var webStore = isWeb ? makeWebStore() : undefined;
|
|
1572
1561
|
|
|
1573
1562
|
export { addToCart, authApi, authSlice, cartSlice, contentApi, emptyCart, formatAuthSession, formatChallengeDays, formatChallenges, formatConfig, formatFaqs, formatFedaratedSession, formatGuests, formatLongform, formatMediaItem, formatPages, formatPress, formatPromos, formatSchedule, formatSeasons, formatSecondsToISO8601Duration, formatSectionItems, formatSectionPanels, formatSections, formatSeries, formatSettings, formatShortform, formatSocialAuthSession, formatTaxonomies, formatUserPayload, formatVideos, formatWorkout, getUserSession, isAuthenticated, isVerifying, logout, nativeStore, ordersApi, paymentApi, removeFromCart, removePromoCode, resetCreating, resetTaxRate, selectAccessToken, selectCartCount, selectCartItems, selectCartItemsIds, selectCartNetTotal, selectCartStatus, selectCartTaxAmount, selectCartTaxRate, selectCartTotal, selectCurrentUser, selectCurrentUserRefreshToken, selectCurrentUserSub, selectMediaInCart, selectPromoCode, selectRefreshToken, selectSubscription, selectSubscriptionPrice, selectUserSubscriptionStatus, selectUserTokens, setCredentials, setPromoCode, setTaxRate, toggleCart, updateCart, updateSubscription, useAppDispatch, useAppSelector, useAppStore, useForgottenPasswordMutation, useGetUserInfoQuery, useLazyGetUserInfoQuery, useLazyVerifyUserAttributesQuery, useLazyVerifyUserQuery, useLazyVerifyUserResendQuery, useLoggedIn, useRegisterMutation, useResetPasswordAuthMutation, useResetPasswordMutation, useUpdateUserInfoMutation, useUpdateUserMutation, useVerifyUserAttributesQuery, useVerifyUserQuery, useVerifyUserResendQuery, webStore };
|
|
1574
1563
|
//# sourceMappingURL=index.esm.js.map
|