@wix/bex-core 1.420.0 → 1.421.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.
|
@@ -9,8 +9,8 @@ const CollectionPageContextProvider = exports.CollectionPageContextProvider = co
|
|
|
9
9
|
const CollectionPageContextConsumer = exports.CollectionPageContextConsumer = context.Consumer;
|
|
10
10
|
const useCollectionPageContext = () => {
|
|
11
11
|
const value = (0, _react.useContext)(context);
|
|
12
|
-
if (process.env.NODE_ENV
|
|
13
|
-
|
|
12
|
+
if (process.env.NODE_ENV === 'development' && !value) {
|
|
13
|
+
console.warn('Wrap your component with InfiniteScrollPage or CollectionPage');
|
|
14
14
|
}
|
|
15
15
|
return value;
|
|
16
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","context","createContext","collectionPageContext","exports","CollectionPageContextProvider","Provider","CollectionPageContextConsumer","Consumer","useCollectionPageContext","value","useContext","process","env","NODE_ENV","
|
|
1
|
+
{"version":3,"names":["_react","require","context","createContext","collectionPageContext","exports","CollectionPageContextProvider","Provider","CollectionPageContextConsumer","Consumer","useCollectionPageContext","value","useContext","process","env","NODE_ENV","console","warn"],"sources":["../../../src/providers/CollectionPageContext.ts"],"sourcesContent":["import { CollectionPageState } from '../state';\nimport { createContext, useContext } from 'react';\n\nconst context = createContext<CollectionPageState | null>(null);\n\nexport const collectionPageContext = context;\nexport const CollectionPageContextProvider = context.Provider;\nexport const CollectionPageContextConsumer = context.Consumer;\n\nexport const useCollectionPageContext = () => {\n const value = useContext(context);\n\n if (process.env.NODE_ENV === 'development' && !value) {\n console.warn(\n 'Wrap your component with InfiniteScrollPage or CollectionPage',\n );\n }\n return value as CollectionPageState;\n};\n"],"mappings":";;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAEA,MAAMC,OAAO,gBAAG,IAAAC,oBAAa,EAA6B,IAAI,CAAC;AAExD,MAAMC,qBAAqB,GAAAC,OAAA,CAAAD,qBAAA,GAAGF,OAAO;AACrC,MAAMI,6BAA6B,GAAAD,OAAA,CAAAC,6BAAA,GAAGJ,OAAO,CAACK,QAAQ;AACtD,MAAMC,6BAA6B,GAAAH,OAAA,CAAAG,6BAAA,GAAGN,OAAO,CAACO,QAAQ;AAEtD,MAAMC,wBAAwB,GAAGA,CAAA,KAAM;EAC5C,MAAMC,KAAK,GAAG,IAAAC,iBAAU,EAACV,OAAO,CAAC;EAEjC,IAAIW,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,aAAa,IAAI,CAACJ,KAAK,EAAE;IACpDK,OAAO,CAACC,IAAI,CACV,+DACF,CAAC;EACH;EACA,OAAON,KAAK;AACd,CAAC;AAACN,OAAA,CAAAK,wBAAA,GAAAA,wBAAA"}
|
|
@@ -5,8 +5,8 @@ export const CollectionPageContextProvider = context.Provider;
|
|
|
5
5
|
export const CollectionPageContextConsumer = context.Consumer;
|
|
6
6
|
export const useCollectionPageContext = () => {
|
|
7
7
|
const value = useContext(context);
|
|
8
|
-
if (process.env.NODE_ENV
|
|
9
|
-
|
|
8
|
+
if (process.env.NODE_ENV === 'development' && !value) {
|
|
9
|
+
console.warn('Wrap your component with InfiniteScrollPage or CollectionPage');
|
|
10
10
|
}
|
|
11
11
|
return value;
|
|
12
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollectionPageContext.js","sourceRoot":"","sources":["../../../src/providers/CollectionPageContext.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAElD,MAAM,OAAO,GAAG,aAAa,CAA6B,IAAI,CAAC,CAAC;AAEhE,MAAM,CAAC,MAAM,qBAAqB,GAAG,OAAO,CAAC;AAC7C,MAAM,CAAC,MAAM,6BAA6B,GAAG,OAAO,CAAC,QAAQ,CAAC;AAC9D,MAAM,CAAC,MAAM,6BAA6B,GAAG,OAAO,CAAC,QAAQ,CAAC;AAE9D,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,EAAE;IAC3C,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;IAElC,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,
|
|
1
|
+
{"version":3,"file":"CollectionPageContext.js","sourceRoot":"","sources":["../../../src/providers/CollectionPageContext.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAElD,MAAM,OAAO,GAAG,aAAa,CAA6B,IAAI,CAAC,CAAC;AAEhE,MAAM,CAAC,MAAM,qBAAqB,GAAG,OAAO,CAAC;AAC7C,MAAM,CAAC,MAAM,6BAA6B,GAAG,OAAO,CAAC,QAAQ,CAAC;AAC9D,MAAM,CAAC,MAAM,6BAA6B,GAAG,OAAO,CAAC,QAAQ,CAAC;AAE9D,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,EAAE;IAC3C,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;IAElC,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,IAAI,CAAC,KAAK,EAAE;QACpD,OAAO,CAAC,IAAI,CACV,+DAA+D,CAChE,CAAC;KACH;IACD,OAAO,KAA4B,CAAC;AACtC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/bex-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.421.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Kobi",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"exports"
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@wix/bex-utils": "1.
|
|
43
|
+
"@wix/bex-utils": "1.32.0",
|
|
44
44
|
"chance": "^1.0.0",
|
|
45
45
|
"events": "^3.0.0",
|
|
46
46
|
"formstate": "^2.1.0",
|
|
@@ -157,5 +157,5 @@
|
|
|
157
157
|
"wallaby": {
|
|
158
158
|
"autoDetect": true
|
|
159
159
|
},
|
|
160
|
-
"falconPackageHash": "
|
|
160
|
+
"falconPackageHash": "c5e0039ef0774591e4ced71e636441553da097583072f697656d3b38"
|
|
161
161
|
}
|