@gravity-ui/page-constructor 6.0.0-beta.10 → 6.0.0-beta.11
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.
|
@@ -31,7 +31,7 @@ const AddBlock = ({ onAdd, className }) => {
|
|
|
31
31
|
return (_jsxs("div", { className: b(null, className), ref: ref, children: [_jsx("button", { className: b('button'), type: "button", onClick: () => {
|
|
32
32
|
setIsOpened(!isOpened);
|
|
33
33
|
setSearch('');
|
|
34
|
-
}, children: _jsx(Plus, { className: b('icon') }) }), isOpened && (_jsxs(Popup, { anchorRef: ref, open: isOpened, placement: "top", offset: { mainAxis: 0, crossAxis: 24 }, onOutsideClick: () => setIsOpened(false), children: [_jsx("div", { className: b('search'), children: _jsx(TextInput, { placeholder: "search", type: "text", value: search, size: "l", onUpdate: (value) => setSearch(value) }) }), _jsx("div", { className: b('blocks'), children: blocks.map((blockName) => {
|
|
34
|
+
}, children: _jsx(Plus, { className: b('icon') }) }), isOpened && (_jsxs(Popup, { anchorRef: ref, open: isOpened, placement: "top", className: b('popup'), offset: { mainAxis: 0, crossAxis: 24 }, onOutsideClick: () => setIsOpened(false), children: [_jsx("div", { className: b('search'), children: _jsx(TextInput, { placeholder: "search", type: "text", value: search, size: "l", onUpdate: (value) => setSearch(value) }) }), _jsx("div", { className: b('blocks'), children: blocks.map((blockName) => {
|
|
35
35
|
var _a;
|
|
36
36
|
const blockData = editorBlocksData === null || editorBlocksData === void 0 ? void 0 : editorBlocksData[blockName];
|
|
37
37
|
if (!blockData) {
|
|
@@ -14,7 +14,7 @@ unpredictable css rules order in build */
|
|
|
14
14
|
display: flex;
|
|
15
15
|
align-items: center;
|
|
16
16
|
}
|
|
17
|
-
.pc-control-panel__radio-button .g-radio-
|
|
17
|
+
.pc-control-panel__radio-button .g-segmented-radio-group__option {
|
|
18
18
|
display: flex;
|
|
19
19
|
align-items: center;
|
|
20
20
|
}
|
|
@@ -32,7 +32,7 @@ const AddBlock = ({ onAdd, className }) => {
|
|
|
32
32
|
return (_jsxs("div", { className: b(null, className), ref: ref, children: [_jsx("button", { className: b('button'), type: "button", onClick: () => {
|
|
33
33
|
setIsOpened(!isOpened);
|
|
34
34
|
setSearch('');
|
|
35
|
-
}, children: _jsx(Plus, { className: b('icon') }) }), isOpened && (_jsxs(Popup, { anchorRef: ref, open: isOpened, placement: "top", offset: { mainAxis: 0, crossAxis: 24 }, onOutsideClick: () => setIsOpened(false), children: [_jsx("div", { className: b('search'), children: _jsx(TextInput, { placeholder: "search", type: "text", value: search, size: "l", onUpdate: (value) => setSearch(value) }) }), _jsx("div", { className: b('blocks'), children: blocks.map((blockName) => {
|
|
35
|
+
}, children: _jsx(Plus, { className: b('icon') }) }), isOpened && (_jsxs(Popup, { anchorRef: ref, open: isOpened, placement: "top", className: b('popup'), offset: { mainAxis: 0, crossAxis: 24 }, onOutsideClick: () => setIsOpened(false), children: [_jsx("div", { className: b('search'), children: _jsx(TextInput, { placeholder: "search", type: "text", value: search, size: "l", onUpdate: (value) => setSearch(value) }) }), _jsx("div", { className: b('blocks'), children: blocks.map((blockName) => {
|
|
36
36
|
var _a;
|
|
37
37
|
const blockData = editorBlocksData === null || editorBlocksData === void 0 ? void 0 : editorBlocksData[blockName];
|
|
38
38
|
if (!blockData) {
|
|
@@ -14,7 +14,7 @@ unpredictable css rules order in build */
|
|
|
14
14
|
display: flex;
|
|
15
15
|
align-items: center;
|
|
16
16
|
}
|
|
17
|
-
.pc-control-panel__radio-button .g-radio-
|
|
17
|
+
.pc-control-panel__radio-button .g-segmented-radio-group__option {
|
|
18
18
|
display: flex;
|
|
19
19
|
align-items: center;
|
|
20
20
|
}
|
package/package.json
CHANGED
|
@@ -1,23 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravity-ui/page-constructor",
|
|
3
|
-
"version": "6.0.0-beta.
|
|
3
|
+
"version": "6.0.0-beta.11",
|
|
4
4
|
"description": "Gravity UI Page Constructor",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"type": "commonjs",
|
|
7
6
|
"repository": {
|
|
8
7
|
"type": "git",
|
|
9
8
|
"url": "https://github.com/gravity-ui/page-constructor"
|
|
10
9
|
},
|
|
11
10
|
"exports": {
|
|
12
11
|
".": {
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
},
|
|
17
|
-
"require": {
|
|
18
|
-
"types": "./build/cjs/index.d.ts",
|
|
19
|
-
"default": "./build/cjs/index.js"
|
|
20
|
-
}
|
|
12
|
+
"types": "./build/esm/index.d.ts",
|
|
13
|
+
"require": "./build/cjs/index.js",
|
|
14
|
+
"import": "./build/esm/index.js"
|
|
21
15
|
},
|
|
22
16
|
"./editor": {
|
|
23
17
|
"types": "./build/esm/editor/index.d.ts",
|
|
@@ -35,7 +29,7 @@
|
|
|
35
29
|
},
|
|
36
30
|
"main": "./build/cjs/index.js",
|
|
37
31
|
"module": "./build/esm/index.js",
|
|
38
|
-
"types": "./build/
|
|
32
|
+
"types": "./build/esm/index.d.ts",
|
|
39
33
|
"typesVersions": {
|
|
40
34
|
"*": {
|
|
41
35
|
"index.d.ts": [
|