@sima-land/ui-nucleons 45.0.0-alpha.42 → 45.0.0-alpha.43
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.
|
@@ -35,7 +35,7 @@ function useBreakpoint(query) {
|
|
|
35
35
|
const { matchMedia } = (0, react_1.useContext)(context_1.MatchMediaContext);
|
|
36
36
|
const [, setRegistry] = (0, react_1.useState)(null);
|
|
37
37
|
const registryFromContext = (0, react_1.useContext)(Context);
|
|
38
|
-
const [matches, setMatches] = (0, react_1.useState)(matchMedia(utils_1.BreakpointQuery.toMediaQuery(query)).matches);
|
|
38
|
+
const [matches, setMatches] = (0, react_1.useState)((0, helpers_1.isBrowser)() ? matchMedia(utils_1.BreakpointQuery.toMediaQuery(query)).matches : false);
|
|
39
39
|
(0, __1.useIsomorphicLayoutEffect)(() => {
|
|
40
40
|
let registry;
|
|
41
41
|
if (registryFromContext) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hooks/use-breakpoint/index.tsx"],"names":[],"mappings":";;AAeA,gDAUC;AAOD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hooks/use-breakpoint/index.tsx"],"names":[],"mappings":";;AAeA,gDAUC;AAOD,sCAkCC;;AAlED,iCAAuE;AACvE,0BAA+C;AAC/C,2CAA0C;AAE1C,mCAA0D;AAC1D,2CAAkD;AAElD,MAAM,OAAO,GAAG,IAAA,qBAAa,EAAkB,IAAI,CAAC,CAAC;AAErD;;;;;GAKG;AACH,SAAgB,kBAAkB,CAAC,EAAE,QAAQ,EAA2B;IACtE,MAAM,CAAC,YAAY,EAAE,WAAW,CAAC,GAAG,IAAA,gBAAQ,EAAkB,IAAI,CAAC,CAAC;IAEpE,MAAM,EAAE,UAAU,EAAE,GAAG,IAAA,kBAAU,EAAC,2BAAiB,CAAC,CAAC;IAErD,IAAA,6BAAyB,EAAC,GAAG,EAAE;QA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AC,OAAO,CAAC,CAAC;QACxB,CAAC,CAAC,CAAC;QAEH,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAEjC,OAAO,YAAY,CAAC,WAAW,CAAC;IAClC,CAAC,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC;IAE1B,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sima-land/ui-nucleons",
|
|
3
3
|
"type": "commonjs",
|
|
4
|
-
"version": "45.0.0-alpha.
|
|
4
|
+
"version": "45.0.0-alpha.43",
|
|
5
5
|
"repository": "ssh://git@github.com:sima-land/ui-nucleons.git",
|
|
6
6
|
"author": "www.sima-land.ru team",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"build:package": "cd build && npm pkg delete scripts.prepare && cd ..",
|
|
19
19
|
"type-check": "tsc -p . --noEmit",
|
|
20
20
|
"lint": "npm run lint:scripts && npm run lint:styles",
|
|
21
|
-
"lint:scripts": "eslint ./src/**/*.{js,jsx,ts,tsx}",
|
|
21
|
+
"lint:scripts": "eslint './src/**/*.{js,jsx,ts,tsx}'",
|
|
22
22
|
"lint:styles": "stylelint 'src/**/*.{css,scss}'",
|
|
23
23
|
"test": "BROWSERSLIST_ENV=\"test\" npx jest",
|
|
24
24
|
"test:coverage": "jest --clearCache && BROWSERSLIST_ENV=\"test\" npx jest --coverage",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@babel/preset-env": "^7.16.11",
|
|
43
43
|
"@babel/preset-react": "^7.16.7",
|
|
44
44
|
"@babel/preset-typescript": "^7.16.7",
|
|
45
|
-
"@playwright/test": "1.
|
|
45
|
+
"@playwright/test": "^1.56.1",
|
|
46
46
|
"@sima-land/linters": "^5.0.0",
|
|
47
47
|
"@testing-library/react": "^14.0.0",
|
|
48
48
|
"@testing-library/user-event": "^14.4.3",
|