@blaze-cms/admin 0.135.0-core-styles.1 → 0.135.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.
- package/CHANGELOG.md +3 -6
- package/lib/components/RevertToTemplate/RevertToTemplate.js +2 -2
- package/lib/components/RevertToTemplate/RevertToTemplate.js.map +1 -1
- package/lib-es/components/RevertToTemplate/RevertToTemplate.js +1 -1
- package/lib-es/components/RevertToTemplate/RevertToTemplate.js.map +1 -1
- package/package.json +15 -15
- package/src/components/RevertToTemplate/RevertToTemplate.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
# [0.135.0
|
|
6
|
+
# [0.135.0](https://github.com/thebyte9/blaze/compare/v0.135.0-alpha.0...v0.135.0) (2023-11-21)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
9
9
|
|
|
@@ -11,12 +11,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
# [0.135.0-
|
|
14
|
+
# [0.135.0-alpha.0](https://github.com/thebyte9/blaze/compare/v0.134.0...v0.135.0-alpha.0) (2023-11-21)
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
### Bug Fixes
|
|
18
|
-
|
|
19
|
-
* revert to template modal ([#3823](https://github.com/thebyte9/blaze/issues/3823)) ([7263ad5](https://github.com/thebyte9/blaze/commit/7263ad57cde4ab21a8b44b446444cd5ea40bc959))
|
|
16
|
+
**Note:** Version bump only for package @blaze-cms/admin
|
|
20
17
|
|
|
21
18
|
|
|
22
19
|
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports["default"] = void 0;
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
var
|
|
11
|
+
var _modal = _interopRequireDefault(require("@blaze-react/modal"));
|
|
12
12
|
var RevertToTemplate = function RevertToTemplate(_ref) {
|
|
13
13
|
var id = _ref.id,
|
|
14
14
|
onClose = _ref.onClose,
|
|
@@ -22,7 +22,7 @@ var RevertToTemplate = function RevertToTemplate(_ref) {
|
|
|
22
22
|
modifiers: ['small'],
|
|
23
23
|
textButton: 'Revert'
|
|
24
24
|
}];
|
|
25
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
25
|
+
return /*#__PURE__*/_react["default"].createElement(_modal["default"], {
|
|
26
26
|
actions: alertActions,
|
|
27
27
|
onClose: onClose,
|
|
28
28
|
isAlert: true
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RevertToTemplate.js","names":["_react","_interopRequireDefault","require","_propTypes","
|
|
1
|
+
{"version":3,"file":"RevertToTemplate.js","names":["_react","_interopRequireDefault","require","_propTypes","_modal","RevertToTemplate","_ref","id","onClose","revertToTemplate","alertActions","callback","event","stopPropagation","modifiers","textButton","createElement","actions","isAlert","propTypes","PropTypes","func","isRequired","string","_default","exports"],"sources":["../../../src/components/RevertToTemplate/RevertToTemplate.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Modal from '@blaze-react/modal';\n\nconst RevertToTemplate = ({ id, onClose, revertToTemplate }) => {\n const alertActions = [\n {\n callback: event => {\n event.stopPropagation();\n revertToTemplate(id);\n onClose();\n },\n modifiers: ['small'],\n textButton: 'Revert'\n }\n ];\n return (\n <Modal actions={alertActions} onClose={onClose} isAlert>\n <p>\n By performing this action it will revert to template and overwrite all data and settings of\n this element.\n </p>\n </Modal>\n );\n};\n\nRevertToTemplate.propTypes = {\n onClose: PropTypes.func.isRequired,\n revertToTemplate: PropTypes.func.isRequired,\n id: PropTypes.string.isRequired\n};\n\nexport default RevertToTemplate;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,MAAA,GAAAH,sBAAA,CAAAC,OAAA;AAEA,IAAMG,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAAC,IAAA,EAA0C;EAAA,IAApCC,EAAE,GAAAD,IAAA,CAAFC,EAAE;IAAEC,OAAO,GAAAF,IAAA,CAAPE,OAAO;IAAEC,gBAAgB,GAAAH,IAAA,CAAhBG,gBAAgB;EACvD,IAAMC,YAAY,GAAG,CACnB;IACEC,QAAQ,EAAE,SAAAA,SAAAC,KAAK,EAAI;MACjBA,KAAK,CAACC,eAAe,CAAC,CAAC;MACvBJ,gBAAgB,CAACF,EAAE,CAAC;MACpBC,OAAO,CAAC,CAAC;IACX,CAAC;IACDM,SAAS,EAAE,CAAC,OAAO,CAAC;IACpBC,UAAU,EAAE;EACd,CAAC,CACF;EACD,oBACEf,MAAA,YAAAgB,aAAA,CAACZ,MAAA,WAAK;IAACa,OAAO,EAAEP,YAAa;IAACF,OAAO,EAAEA,OAAQ;IAACU,OAAO;EAAA,gBACrDlB,MAAA,YAAAgB,aAAA,YAAG,2GAGA,CACE,CAAC;AAEZ,CAAC;AAEDX,gBAAgB,CAACc,SAAS,GAAG;EAC3BX,OAAO,EAAEY,qBAAS,CAACC,IAAI,CAACC,UAAU;EAClCb,gBAAgB,EAAEW,qBAAS,CAACC,IAAI,CAACC,UAAU;EAC3Cf,EAAE,EAAEa,qBAAS,CAACG,MAAM,CAACD;AACvB,CAAC;AAAC,IAAAE,QAAA,GAEanB,gBAAgB;AAAAoB,OAAA,cAAAD,QAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RevertToTemplate.js","names":["React","PropTypes","
|
|
1
|
+
{"version":3,"file":"RevertToTemplate.js","names":["React","PropTypes","Modal","RevertToTemplate","id","onClose","revertToTemplate","alertActions","callback","event","stopPropagation","modifiers","textButton","createElement","actions","isAlert","propTypes","func","isRequired","string"],"sources":["../../../src/components/RevertToTemplate/RevertToTemplate.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Modal from '@blaze-react/modal';\n\nconst RevertToTemplate = ({ id, onClose, revertToTemplate }) => {\n const alertActions = [\n {\n callback: event => {\n event.stopPropagation();\n revertToTemplate(id);\n onClose();\n },\n modifiers: ['small'],\n textButton: 'Revert'\n }\n ];\n return (\n <Modal actions={alertActions} onClose={onClose} isAlert>\n <p>\n By performing this action it will revert to template and overwrite all data and settings of\n this element.\n </p>\n </Modal>\n );\n};\n\nRevertToTemplate.propTypes = {\n onClose: PropTypes.func.isRequired,\n revertToTemplate: PropTypes.func.isRequired,\n id: PropTypes.string.isRequired\n};\n\nexport default RevertToTemplate;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,KAAK,MAAM,oBAAoB;AAEtC,MAAMC,gBAAgB,GAAGA,CAAC;EAAEC,EAAE;EAAEC,OAAO;EAAEC;AAAiB,CAAC,KAAK;EAC9D,MAAMC,YAAY,GAAG,CACnB;IACEC,QAAQ,EAAEC,KAAK,IAAI;MACjBA,KAAK,CAACC,eAAe,CAAC,CAAC;MACvBJ,gBAAgB,CAACF,EAAE,CAAC;MACpBC,OAAO,CAAC,CAAC;IACX,CAAC;IACDM,SAAS,EAAE,CAAC,OAAO,CAAC;IACpBC,UAAU,EAAE;EACd,CAAC,CACF;EACD,oBACEZ,KAAA,CAAAa,aAAA,CAACX,KAAK;IAACY,OAAO,EAAEP,YAAa;IAACF,OAAO,EAAEA,OAAQ;IAACU,OAAO;EAAA,gBACrDf,KAAA,CAAAa,aAAA,YAAG,2GAGA,CACE,CAAC;AAEZ,CAAC;AAEDV,gBAAgB,CAACa,SAAS,GAAG;EAC3BX,OAAO,EAAEJ,SAAS,CAACgB,IAAI,CAACC,UAAU;EAClCZ,gBAAgB,EAAEL,SAAS,CAACgB,IAAI,CAACC,UAAU;EAC3Cd,EAAE,EAAEH,SAAS,CAACkB,MAAM,CAACD;AACvB,CAAC;AAED,eAAef,gBAAgB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blaze-cms/admin",
|
|
3
|
-
"version": "0.135.0
|
|
3
|
+
"version": "0.135.0",
|
|
4
4
|
"description": "Blaze example project",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib-es/index.js",
|
|
@@ -28,19 +28,19 @@
|
|
|
28
28
|
"license": "GPL-3.0",
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@apollo/client": "3.5.x",
|
|
31
|
-
"@blaze-cms/admin-ui-utils": "0.
|
|
32
|
-
"@blaze-cms/core-errors-ui": "0.
|
|
33
|
-
"@blaze-cms/core-ui": "0.
|
|
34
|
-
"@blaze-cms/plugin-admin-core-ui": "0.
|
|
35
|
-
"@blaze-cms/plugin-auth-local-ui": "0.
|
|
36
|
-
"@blaze-cms/plugin-auth-ui": "0.
|
|
37
|
-
"@blaze-cms/plugin-data-ui": "0.135.0
|
|
38
|
-
"@blaze-cms/plugin-google-maps-ui": "0.
|
|
39
|
-
"@blaze-cms/plugin-gtm-ui": "0.
|
|
40
|
-
"@blaze-cms/plugin-media-ui": "0.
|
|
41
|
-
"@blaze-cms/plugin-page-builder-ui": "0.
|
|
42
|
-
"@blaze-cms/react-form-builder": "0.
|
|
43
|
-
"@blaze-cms/setup-ui": "0.
|
|
31
|
+
"@blaze-cms/admin-ui-utils": "^0.132.0",
|
|
32
|
+
"@blaze-cms/core-errors-ui": "^0.131.0",
|
|
33
|
+
"@blaze-cms/core-ui": "^0.131.0",
|
|
34
|
+
"@blaze-cms/plugin-admin-core-ui": "^0.134.0",
|
|
35
|
+
"@blaze-cms/plugin-auth-local-ui": "^0.131.0",
|
|
36
|
+
"@blaze-cms/plugin-auth-ui": "^0.132.0",
|
|
37
|
+
"@blaze-cms/plugin-data-ui": "^0.135.0",
|
|
38
|
+
"@blaze-cms/plugin-google-maps-ui": "^0.134.0",
|
|
39
|
+
"@blaze-cms/plugin-gtm-ui": "^0.134.0",
|
|
40
|
+
"@blaze-cms/plugin-media-ui": "^0.134.0",
|
|
41
|
+
"@blaze-cms/plugin-page-builder-ui": "^0.134.0",
|
|
42
|
+
"@blaze-cms/react-form-builder": "^0.134.0",
|
|
43
|
+
"@blaze-cms/setup-ui": "^0.131.0",
|
|
44
44
|
"@blaze-react/alert": "0.5.19",
|
|
45
45
|
"@blaze-react/modal": "0.5.19",
|
|
46
46
|
"@blaze-react/toaster": "0.5.17",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"lib/*",
|
|
67
67
|
"lib-es/*"
|
|
68
68
|
],
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "37423f2681b9ec2a1b949f2f3e09094c9920a6c8"
|
|
70
70
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import
|
|
3
|
+
import Modal from '@blaze-react/modal';
|
|
4
4
|
|
|
5
5
|
const RevertToTemplate = ({ id, onClose, revertToTemplate }) => {
|
|
6
6
|
const alertActions = [
|