@shopgate/engage 6.22.0 → 6.23.0-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/category/index.js +1 -1
- package/core/index.js +1 -1
- package/core/reducers/app.js +6 -0
- package/core/reducers/index.js +1 -0
- package/core/selectors/app.js +9 -0
- package/core/selectors/index.js +1 -0
- package/package.json +8 -7
package/category/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @module category */ // ACTIONS
|
|
2
|
-
export{default as fetchCategory}from'@shopgate/pwa-common-commerce/category/actions/fetchCategory';export{default as
|
|
2
|
+
export{default as fetchCategory}from'@shopgate/pwa-common-commerce/category/actions/fetchCategory';export{default as fetchCategoryOrRootCategories}from'@shopgate/pwa-common-commerce/category/actions/fetchCategoryOrRootCategories';export{default as fetchCategoryChildren}from'@shopgate/pwa-common-commerce/category/actions/fetchCategoryChildren';export{default as fetchCategoryProducts}from'@shopgate/pwa-common-commerce/category/actions/fetchCategoryProducts';export{default as fetchRootCategories}from'@shopgate/pwa-common-commerce/category/actions/fetchRootCategories';// CONSTANTS
|
|
3
3
|
export*from'@shopgate/pwa-common-commerce/category/constants/index';export*from'@shopgate/pwa-common-commerce/category/constants/Pipelines';export*from'@shopgate/pwa-common-commerce/category/constants/Portals';// SELECTORS
|
|
4
4
|
export*from'@shopgate/pwa-common-commerce/category/selectors';// STREAMS
|
|
5
5
|
export*from'@shopgate/pwa-common-commerce/category/streams';// HELPERS
|
package/core/index.js
CHANGED
|
@@ -43,4 +43,4 @@ export*from'@shopgate/pwa-common/selectors/modal';// --------------- HOOKS -----
|
|
|
43
43
|
export{useRoute}from"./hooks/useRoute";export{useTheme}from"./hooks/useTheme";export{useCurrentProduct}from"./hooks/useCurrentProduct";export{useNavigation}from"./hooks/useNavigation";export{usePageConfig}from"./hooks/usePageConfig";export{usePageSettings}from"./hooks/usePageSettings";export{useWidgetConfig}from"./hooks/useWidgetConfig";export{useWidgetSettings}from"./hooks/useWidgetSettings";export{useWidgetStyles}from"./hooks/useWidgetStyles";export*from"./hooks/html";// --------------- HOCs --------------- //
|
|
44
44
|
export{withTheme}from"./hocs/withTheme";export{withRoute}from"./hocs/withRoute";export{withCurrentProduct}from"./hocs/withCurrentProduct";export{withForwardedRef}from"./hocs/withForwardedRef";export{withNavigation}from"./hocs/withNavigation";export{withWidgetSettings}from"./hocs/withWidgetSettings";export{withWidgetStyles}from"./hocs/withWidgetStyles";export{withApp}from"./hocs/withApp";// --------------- CONFIG --------------- //
|
|
45
45
|
export{ThemeConfigResolver}from"./config/ThemeConfigResolver";export{isBeta}from"./config/isBeta";export{getThemeConfig}from"./config/getThemeConfig";export{getThemeSettings}from"./config/getThemeSettings";export{getThemeColors}from"./config/getThemeColors";export{getThemeAssets}from"./config/getThemeAssets";export{getPageConfig}from"./config/getPageConfig";export{getPageSettings}from"./config/getPageSettings";export{getWidgetConfig}from"./config/getWidgetConfig";export{getWidgetSettings}from"./config/getWidgetSettings";// -------------- HELPERS -------------- //
|
|
46
|
-
export{i18n}from"./helpers/i18n";export{updateLegacyNavigationBar}from"./helpers/updateLegacyNavigationBar";export{getFullImageSource}from"./helpers/getFullImageSource";export*from"./initialization";
|
|
46
|
+
export{i18n}from"./helpers/i18n";export{updateLegacyNavigationBar}from"./helpers/updateLegacyNavigationBar";export{getFullImageSource}from"./helpers/getFullImageSource";export*from"./initialization";export*from"./selectors";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{produce}from'immer';import{PWA_DID_APPEAR,PWA_DID_DISAPPEAR}from'@shopgate/pwa-common/constants/ActionTypes';var defaultState={webViewVisible:true};/**
|
|
2
|
+
* Stores app state
|
|
3
|
+
* @param {Object} [state={}] The current state.
|
|
4
|
+
* @param {Object} action The action object.
|
|
5
|
+
* @returns {Object} The new state.
|
|
6
|
+
*/export default function app(){var state=arguments.length>0&&arguments[0]!==undefined?arguments[0]:defaultState;var action=arguments.length>1?arguments[1]:undefined;/* eslint-disable no-param-reassign */var producer=produce(function(draft){switch(action.type){case PWA_DID_APPEAR:{draft.webViewVisible=true;break;}case PWA_DID_DISAPPEAR:{draft.webViewVisible=false;break;}default:break;}});/* eslint-enable no-param-reassign */return producer(state);}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{default as app}from"./app";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{createSelector}from'reselect';/**
|
|
2
|
+
* Retrieves the app state from the store.
|
|
3
|
+
* @param {Object} state The current application state.
|
|
4
|
+
* @return {Object} The locations state.
|
|
5
|
+
*/var getState=function getState(state){return state.app;};/**
|
|
6
|
+
* Checks if the app webview is currently visible
|
|
7
|
+
* @param {Object} state The application state.
|
|
8
|
+
* @returns {boolean}
|
|
9
|
+
*/export var getIsAppWebViewVisible=createSelector(getState,function(app){return app.webViewVisible;});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./app";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopgate/engage",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.23.0-beta.1",
|
|
4
4
|
"description": "Shopgate's ENGAGE library.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Shopgate <support@shopgate.com>",
|
|
@@ -15,16 +15,17 @@
|
|
|
15
15
|
"connect"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@shopgate/pwa-common": "6.
|
|
19
|
-
"@shopgate/pwa-common-commerce": "6.
|
|
20
|
-
"@shopgate/pwa-core": "6.
|
|
21
|
-
"@shopgate/pwa-ui-ios": "6.
|
|
22
|
-
"@shopgate/pwa-ui-material": "6.
|
|
23
|
-
"@shopgate/pwa-ui-shared": "6.
|
|
18
|
+
"@shopgate/pwa-common": "6.23.0-beta.1",
|
|
19
|
+
"@shopgate/pwa-common-commerce": "6.23.0-beta.1",
|
|
20
|
+
"@shopgate/pwa-core": "6.23.0-beta.1",
|
|
21
|
+
"@shopgate/pwa-ui-ios": "6.23.0-beta.1",
|
|
22
|
+
"@shopgate/pwa-ui-material": "6.23.0-beta.1",
|
|
23
|
+
"@shopgate/pwa-ui-shared": "6.23.0-beta.1",
|
|
24
24
|
"@virtuous/conductor": "~2.4.0",
|
|
25
25
|
"babel-plugin-transform-es3-member-expression-literals": "^6.8.0",
|
|
26
26
|
"babel-plugin-transform-es3-property-literals": "^6.8.0",
|
|
27
27
|
"color": "^3.1.2",
|
|
28
|
+
"immer": "^10.0.1",
|
|
28
29
|
"intersection-observer": "^0.6.0",
|
|
29
30
|
"lodash": "^4.17.11",
|
|
30
31
|
"react-helmet": "^5.1.3",
|