@semcore/modal 4.40.0 → 4.41.0-prerelease.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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
+
## [4.41.0] - 2024-07-13
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Version minor update due to children dependencies update (`@semcore/animation` [2.29.0 ~> 2.30.0], `@semcore/flex-box` [5.29.0 ~> 5.30.0], `@semcore/icon` [4.41.0 ~> 4.42.0], `@semcore/utils` [4.30.0 ~> 4.31.0], `@semcore/core` [2.27.0 ~> 2.28.0]).
|
|
10
|
+
|
|
5
11
|
## [4.40.0] - 2024-07-05
|
|
6
12
|
|
|
7
13
|
### Changed
|
package/lib/cjs/Modal.js
CHANGED
|
@@ -34,15 +34,15 @@ var _useFocusLock = require("@semcore/utils/lib/use/useFocusLock");
|
|
|
34
34
|
var _ThemeProvider = require("@semcore/utils/lib/ThemeProvider");
|
|
35
35
|
var _useColorResolver = require("@semcore/utils/lib/use/useColorResolver");
|
|
36
36
|
/*__reshadow-styles__:"./style/modal.shadow.css"*/
|
|
37
|
-
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".
|
|
38
|
-
"__SWindow": "
|
|
39
|
-
"_ghost": "
|
|
40
|
-
"__SClose": "
|
|
41
|
-
"_keyboardFocused": "
|
|
42
|
-
"__SOverlay": "
|
|
43
|
-
"__STitle": "
|
|
44
|
-
"_color": "
|
|
45
|
-
"--color": "--
|
|
37
|
+
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SWindow_1orvf_gg_{position:relative;border-radius:var(--intergalactic-modal-rounded, 12px);background:var(--intergalactic-bg-primary-neutral, #ffffff);box-sizing:border-box;margin:auto;padding:var(--intergalactic-spacing-10x, 40px);box-shadow:var(--intergalactic-box-shadow-modal, 0px 3px 8px 0px rgba(25, 27, 35, 0.2));color:var(--intergalactic-text-primary, #191b23)}.___SWindow_1orvf_gg_:focus{outline:0}.___SWindow_1orvf_gg_ .___STitle_1orvf_gg_{color:var(--intergalactic-text-primary, #191b23);font-size:var(--intergalactic-fs-500, 24px);line-height:var(--intergalactic-lh-500, 117%);font-weight:var(--intergalactic-semi-bold, 600);margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SWindow_1orvf_gg_ .___STitle_1orvf_gg_.__color_1orvf_gg_{color:var(--color_1orvf)}.___SWindow_1orvf_gg_.__ghost_1orvf_gg_{background:0 0;padding:0;box-shadow:none}.___SOverlay_1orvf_gg_{position:fixed;top:0;bottom:0;left:0;right:0;margin:0;display:flex;justify-content:center;align-items:center;padding:var(--intergalactic-spacing-10x, 40px);background:var(--intergalactic-overlay-primary, rgba(25, 27, 35, 0.7));overflow:auto;z-index:var(--intergalactic-z-index-modal, 600);-webkit-overflow-scrolling:touch}.___SOverlay_1orvf_gg_ .___SOverlay_1orvf_gg_{background:var(--intergalactic-overlay-secondary, rgba(25, 27, 35, 0.4))}.___SClose_1orvf_gg_{display:inline-flex;position:absolute;right:0;top:0;padding:var(--intergalactic-spacing-3x, 12px);color:var(--intergalactic-icon-secondary-neutral, #a9abb6);cursor:pointer;z-index:1;border:0;background:0 0;outline:0}@media (hover:hover){.___SClose_1orvf_gg_:hover{color:var(--intergalactic-icon-secondary-neutral-hover-active, #878992)}}.___SClose_1orvf_gg_.__ghost_1orvf_gg_{color:var(--intergalactic-icon-primary-invert, #ffffff);border-radius:4px}@media (hover:hover){.___SClose_1orvf_gg_.__ghost_1orvf_gg_:hover{background-color:var(--intergalactic-control-tertiary-invert-active, rgba(255, 255, 255, 0.3))}}.___SClose_1orvf_gg_.__keyboardFocused_1orvf_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}@media (max-width:767px){.___SWindow_1orvf_gg_{min-width:60%}.___SOverlay_1orvf_gg_{padding:var(--intergalactic-spacing-3x, 12px)}}" /*__inner_css_end__*/, "1orvf_gg_") /*__reshadow_css_end__*/, {
|
|
38
|
+
"__SWindow": "___SWindow_1orvf_gg_",
|
|
39
|
+
"_ghost": "__ghost_1orvf_gg_",
|
|
40
|
+
"__SClose": "___SClose_1orvf_gg_",
|
|
41
|
+
"_keyboardFocused": "__keyboardFocused_1orvf_gg_",
|
|
42
|
+
"__SOverlay": "___SOverlay_1orvf_gg_",
|
|
43
|
+
"__STitle": "___STitle_1orvf_gg_",
|
|
44
|
+
"_color": "__color_1orvf_gg_",
|
|
45
|
+
"--color": "--color_1orvf"
|
|
46
46
|
});
|
|
47
47
|
var ModalRoot = /*#__PURE__*/function (_Component) {
|
|
48
48
|
(0, _inherits2["default"])(ModalRoot, _Component);
|
package/lib/cjs/modal.vo-test.js
CHANGED
|
@@ -4,11 +4,10 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/regeneratorRuntime"));
|
|
5
5
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
6
6
|
var _playwright = require("@semcore/testing-utils/playwright");
|
|
7
|
-
var _playwright2 = require("@guidepup/playwright");
|
|
8
7
|
var _e2eStand = require("@semcore/testing-utils/e2e-stand");
|
|
9
8
|
var _promises = require("fs/promises");
|
|
10
9
|
var _voReporter = require("@semcore/testing-utils/vo-reporter");
|
|
11
|
-
(0,
|
|
10
|
+
(0, _playwright.voiceOverTest)('Users can interact with Modal via VoiceOver', /*#__PURE__*/function () {
|
|
12
11
|
var _ref2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/(0, _regeneratorRuntime2["default"])().mark(function _callee(_ref) {
|
|
13
12
|
var page, pureVoiceOver, standPath, reportPath, htmlContent, _yield$makeVoiceOverR, voiceOver, getReport, report;
|
|
14
13
|
return (0, _regeneratorRuntime2["default"])().wrap(function _callee$(_context) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.vo-test.js","names":["_playwright","require","
|
|
1
|
+
{"version":3,"file":"modal.vo-test.js","names":["_playwright","require","_e2eStand","_promises","_voReporter","test","_ref2","_asyncToGenerator2","_regeneratorRuntime2","mark","_callee","_ref","page","pureVoiceOver","standPath","reportPath","htmlContent","_yield$makeVoiceOverR","voiceOver","getReport","report","wrap","_callee$","_context","prev","next","e2eStandToHtml","sent","setContent","makeVoiceOverReporter","interact","t0","expect","itemText","t1","toBe","act","t2","lastSpokenPhrase","t3","toContain","t4","t5","t6","t7","t8","t9","getReportHeader","t10","t11","t12","writeFile","stop","_x","apply","arguments"],"sources":["../../src/modal.vo-test.ts"],"sourcesContent":["import { expect, voiceOverTest as test } from '@semcore/testing-utils/playwright';\n\nimport { e2eStandToHtml } from '@semcore/testing-utils/e2e-stand';\nimport { writeFile } from 'fs/promises';\nimport { getReportHeader, makeVoiceOverReporter } from '@semcore/testing-utils/vo-reporter';\n\ntest('Users can interact with Modal via VoiceOver', async ({ page, voiceOver: pureVoiceOver }) => {\n const standPath = 'website/docs/components/modal/examples/basic_modal_window_usage.tsx';\n const reportPath = 'website/docs/components/modal/modal-a11y-report.md';\n const htmlContent = await e2eStandToHtml(standPath, 'en');\n\n await page.setContent(htmlContent);\n const { voiceOver, getReport } = await makeVoiceOverReporter(pureVoiceOver);\n await voiceOver.interact();\n\n expect(await voiceOver.itemText()).toBe('Open modal button');\n await voiceOver.act();\n expect(await voiceOver.lastSpokenPhrase()).toContain(\n 'Do you want to save your changes? web dialog with 5 items Close button',\n );\n await voiceOver.next();\n expect(await voiceOver.itemText()).toBe('Do you want to save your changes? heading level 2');\n await voiceOver.next();\n await voiceOver.next();\n expect(await voiceOver.itemText()).toBe('Save changes button');\n await voiceOver.act();\n expect(await voiceOver.itemText()).toBe('Open modal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oB,EAAA,EAAApB,QAAA,CAAAqB,EAAA,EAAET,IAAI,CAAC,qBAAqB;UAAAZ,QAAA,CAAAE,IAAA;UAAA,OACvDP,SAAS,CAACkB,GAAG,EAAE;QAAA;UAAAb,QAAA,CAAAsB,EAAA,GACrBb,kBAAM;UAAAT,QAAA,CAAAE,IAAA;UAAA,OAAOP,SAAS,CAACe,QAAQ,EAAE;QAAA;UAAAV,QAAA,CAAAuB,EAAA,GAAAvB,QAAA,CAAAI,IAAA;UAAA,IAAAJ,QAAA,CAAAsB,EAAA,EAAAtB,QAAA,CAAAuB,EAAA,EAAEX,IAAI,CAAC,mBAAmB;UAAAZ,QAAA,CAAAE,IAAA;UAAA,OAErC,IAAAsB,2BAAe,GAAE;QAAA;UAAAxB,QAAA,CAAAyB,GAAA,GAAAzB,QAAA,CAAAI,IAAA;UAAAJ,QAAA,CAAA0B,GAAA,GAAA1B,QAAA,CAAAyB,GAAA,GAAI,MAAM;UAAAzB,QAAA,CAAAE,IAAA;UAAA,OAAUN,SAAS,CAACL,SAAS,CAAC;QAAA;UAAAS,QAAA,CAAA2B,GAAA,GAAA3B,QAAA,CAAAI,IAAA;UAAzEP,MAAM,GAAAG,QAAA,CAAA0B,GAAA,GAAA1B,QAAA,CAAA2B,GAAA;UAAA3B,QAAA,CAAAE,IAAA;UAAA,OAEN,IAAA0B,mBAAS,EAACpC,UAAU,EAAEK,MAAM,CAAC;QAAA;QAAA;UAAA,OAAAG,QAAA,CAAA6B,IAAA;MAAA;IAAA,GAAA1C,OAAA;EAAA,CACpC;EAAA,iBAAA2C,EAAA;IAAA,OAAA/C,KAAA,CAAAgD,KAAA,OAAAC,SAAA;EAAA;AAAA,IAAC"}
|
package/lib/es6/Modal.js
CHANGED
|
@@ -23,15 +23,15 @@ import usePreventScroll from '@semcore/utils/lib/use/usePreventScroll';
|
|
|
23
23
|
import { isAdvanceMode } from '@semcore/utils/lib/findComponent';
|
|
24
24
|
import keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';
|
|
25
25
|
/*__reshadow-styles__:"./style/modal.shadow.css"*/
|
|
26
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
27
|
-
"__SWindow": "
|
|
28
|
-
"_ghost": "
|
|
29
|
-
"__SClose": "
|
|
30
|
-
"_keyboardFocused": "
|
|
31
|
-
"__SOverlay": "
|
|
32
|
-
"__STitle": "
|
|
33
|
-
"_color": "
|
|
34
|
-
"--color": "--
|
|
26
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SWindow_1orvf_gg_{position:relative;border-radius:var(--intergalactic-modal-rounded, 12px);background:var(--intergalactic-bg-primary-neutral, #ffffff);box-sizing:border-box;margin:auto;padding:var(--intergalactic-spacing-10x, 40px);box-shadow:var(--intergalactic-box-shadow-modal, 0px 3px 8px 0px rgba(25, 27, 35, 0.2));color:var(--intergalactic-text-primary, #191b23)}.___SWindow_1orvf_gg_:focus{outline:0}.___SWindow_1orvf_gg_ .___STitle_1orvf_gg_{color:var(--intergalactic-text-primary, #191b23);font-size:var(--intergalactic-fs-500, 24px);line-height:var(--intergalactic-lh-500, 117%);font-weight:var(--intergalactic-semi-bold, 600);margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SWindow_1orvf_gg_ .___STitle_1orvf_gg_.__color_1orvf_gg_{color:var(--color_1orvf)}.___SWindow_1orvf_gg_.__ghost_1orvf_gg_{background:0 0;padding:0;box-shadow:none}.___SOverlay_1orvf_gg_{position:fixed;top:0;bottom:0;left:0;right:0;margin:0;display:flex;justify-content:center;align-items:center;padding:var(--intergalactic-spacing-10x, 40px);background:var(--intergalactic-overlay-primary, rgba(25, 27, 35, 0.7));overflow:auto;z-index:var(--intergalactic-z-index-modal, 600);-webkit-overflow-scrolling:touch}.___SOverlay_1orvf_gg_ .___SOverlay_1orvf_gg_{background:var(--intergalactic-overlay-secondary, rgba(25, 27, 35, 0.4))}.___SClose_1orvf_gg_{display:inline-flex;position:absolute;right:0;top:0;padding:var(--intergalactic-spacing-3x, 12px);color:var(--intergalactic-icon-secondary-neutral, #a9abb6);cursor:pointer;z-index:1;border:0;background:0 0;outline:0}@media (hover:hover){.___SClose_1orvf_gg_:hover{color:var(--intergalactic-icon-secondary-neutral-hover-active, #878992)}}.___SClose_1orvf_gg_.__ghost_1orvf_gg_{color:var(--intergalactic-icon-primary-invert, #ffffff);border-radius:4px}@media (hover:hover){.___SClose_1orvf_gg_.__ghost_1orvf_gg_:hover{background-color:var(--intergalactic-control-tertiary-invert-active, rgba(255, 255, 255, 0.3))}}.___SClose_1orvf_gg_.__keyboardFocused_1orvf_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}@media (max-width:767px){.___SWindow_1orvf_gg_{min-width:60%}.___SOverlay_1orvf_gg_{padding:var(--intergalactic-spacing-3x, 12px)}}" /*__inner_css_end__*/, "1orvf_gg_") /*__reshadow_css_end__*/, {
|
|
27
|
+
"__SWindow": "___SWindow_1orvf_gg_",
|
|
28
|
+
"_ghost": "__ghost_1orvf_gg_",
|
|
29
|
+
"__SClose": "___SClose_1orvf_gg_",
|
|
30
|
+
"_keyboardFocused": "__keyboardFocused_1orvf_gg_",
|
|
31
|
+
"__SOverlay": "___SOverlay_1orvf_gg_",
|
|
32
|
+
"__STitle": "___STitle_1orvf_gg_",
|
|
33
|
+
"_color": "__color_1orvf_gg_",
|
|
34
|
+
"--color": "--color_1orvf"
|
|
35
35
|
});
|
|
36
36
|
import { localizedMessages } from './translations/__intergalactic-dynamic-locales';
|
|
37
37
|
import i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';
|
package/lib/es6/modal.vo-test.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _regeneratorRuntime from "@babel/runtime/helpers/regeneratorRuntime";
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
|
-
import { expect } from '@semcore/testing-utils/playwright';
|
|
4
|
-
import { voiceOverTest as test } from '@guidepup/playwright';
|
|
3
|
+
import { expect, voiceOverTest as test } from '@semcore/testing-utils/playwright';
|
|
5
4
|
import { e2eStandToHtml } from '@semcore/testing-utils/e2e-stand';
|
|
6
5
|
import { writeFile } from 'fs/promises';
|
|
7
6
|
import { getReportHeader, makeVoiceOverReporter } from '@semcore/testing-utils/vo-reporter';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.vo-test.js","names":["expect","voiceOverTest","test","e2eStandToHtml","writeFile","getReportHeader","makeVoiceOverReporter","_ref2","_asyncToGenerator","_regeneratorRuntime","mark","_callee","_ref","page","pureVoiceOver","standPath","reportPath","htmlContent","_yield$makeVoiceOverR","voiceOver","getReport","report","wrap","_callee$","_context","prev","next","sent","setContent","interact","t0","itemText","t1","toBe","act","t2","lastSpokenPhrase","t3","toContain","t4","t5","t6","t7","t8","t9","t10","t11","t12","stop","_x","apply","arguments"],"sources":["../../src/modal.vo-test.ts"],"sourcesContent":["import { expect
|
|
1
|
+
{"version":3,"file":"modal.vo-test.js","names":["expect","voiceOverTest","test","e2eStandToHtml","writeFile","getReportHeader","makeVoiceOverReporter","_ref2","_asyncToGenerator","_regeneratorRuntime","mark","_callee","_ref","page","pureVoiceOver","standPath","reportPath","htmlContent","_yield$makeVoiceOverR","voiceOver","getReport","report","wrap","_callee$","_context","prev","next","sent","setContent","interact","t0","itemText","t1","toBe","act","t2","lastSpokenPhrase","t3","toContain","t4","t5","t6","t7","t8","t9","t10","t11","t12","stop","_x","apply","arguments"],"sources":["../../src/modal.vo-test.ts"],"sourcesContent":["import { expect, voiceOverTest as test } from '@semcore/testing-utils/playwright';\n\nimport { e2eStandToHtml } from '@semcore/testing-utils/e2e-stand';\nimport { writeFile } from 'fs/promises';\nimport { getReportHeader, makeVoiceOverReporter } from '@semcore/testing-utils/vo-reporter';\n\ntest('Users can interact with Modal via VoiceOver', async ({ page, voiceOver: pureVoiceOver }) => {\n const standPath = 'website/docs/components/modal/examples/basic_modal_window_usage.tsx';\n const reportPath = 'website/docs/components/modal/modal-a11y-report.md';\n const htmlContent = await e2eStandToHtml(standPath, 'en');\n\n await page.setContent(htmlContent);\n const { voiceOver, getReport } = await makeVoiceOverReporter(pureVoiceOver);\n await voiceOver.interact();\n\n expect(await voiceOver.itemText()).toBe('Open modal button');\n await voiceOver.act();\n expect(await voiceOver.lastSpokenPhrase()).toContain(\n 'Do you want to save your changes? web dialog with 5 items Close button',\n );\n await voiceOver.next();\n expect(await voiceOver.itemText()).toBe('Do you want to save your changes? heading level 2');\n await voiceOver.next();\n await voiceOver.next();\n expect(await voiceOver.itemText()).toBe('Save changes button');\n await voiceOver.act();\n expect(await voiceOver.itemText()).toBe('Open modal button');\n\n const report = (await getReportHeader()) + '\\n\\n' + (await getReport(standPath));\n\n await writeFile(reportPath, report);\n});\n"],"mappings":";;AAAA,SAASA,MAAM,EAAEC,aAAa,IAAIC,IAAI,QAAQ,mCAAmC;AAEjF,SAASC,cAAc,QAAQ,kCAAkC;AACjE,SAASC,SAAS,QAAQ,aAAa;AACvC,SAASC,eAAe,EAAEC,qBAAqB,QAAQ,oCAAoC;AAE3FJ,IAAI,CAAC,6CAA6C;EAAA,IAAAK,KAAA,GAAAC,iBAAA,eAAAC,mBAAA,GAAAC,IAAA,CAAE,SAAAC,QAAAC,IAAA;IAAA,IAAAC,IAAA,EAAAC,aAAA,EAAAC,SAAA,EAAAC,UAAA,EAAAC,WAAA,EAAAC,qBAAA,EAAAC,SAAA,EAAAC,SAAA,EAAAC,MAAA;IAAA,OAAAZ,mBAAA,GAAAa,IAAA,UAAAC,SAAAC,QAAA;MAAA,kBAAAA,QAAA,CAAAC,IAAA,GAAAD,QAAA,CAAAE,IAAA;QAAA;UAASb,IAAI,GAAAD,IAAA,CAAJC,IAAI,EAAaC,aAAa,GAAAF,IAAA,CAAxBO,SAAS;UACpEJ,SAAS,GAAG,qEAAqE;UACjFC,UAAU,GAAG,oDAAoD;UAA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QAAA,CAAAuB,GAAA;UAAAvB,QAAA,CAAAE,IAAA;UAAA,OAENtB,SAAS,CAACY,UAAU,EAAEK,MAAM,CAAC;QAAA;QAAA;UAAA,OAAAG,QAAA,CAAAwB,IAAA;MAAA;IAAA,GAAArC,OAAA;EAAA,CACpC;EAAA,iBAAAsC,EAAA;IAAA,OAAA1C,KAAA,CAAA2C,KAAA,OAAAC,SAAA;EAAA;AAAA,IAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/modal",
|
|
3
3
|
"description": "Semrush Modal Component",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.41.0-prerelease.1",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
"author": "UI-kit team <ui-kit-team@semrush.com>",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@semcore/animation": "2.
|
|
13
|
-
"@semcore/flex-box": "5.
|
|
14
|
-
"@semcore/icon": "4.
|
|
15
|
-
"@semcore/outside-click": "3.
|
|
16
|
-
"@semcore/portal": "3.
|
|
17
|
-
"@semcore/typography": "5.
|
|
18
|
-
"@semcore/utils": "4.
|
|
12
|
+
"@semcore/animation": "2.30.0-prerelease.1",
|
|
13
|
+
"@semcore/flex-box": "5.30.0-prerelease.1",
|
|
14
|
+
"@semcore/icon": "4.42.0-prerelease.1",
|
|
15
|
+
"@semcore/outside-click": "3.28.0-prerelease.1",
|
|
16
|
+
"@semcore/portal": "3.30.0-prerelease.1",
|
|
17
|
+
"@semcore/typography": "5.39.0-prerelease.1",
|
|
18
|
+
"@semcore/utils": "4.31.0-prerelease.1"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@semcore/core": "^2.
|
|
21
|
+
"@semcore/core": "^2.28.0-prerelease.1",
|
|
22
22
|
"react": "16.8 - 18",
|
|
23
23
|
"react-dom": "16.8 - 18"
|
|
24
24
|
},
|