@blaze-cms/admin 0.134.0 → 0.135.0-core-styles.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 +19 -0
- 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,6 +3,25 @@
|
|
|
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-core-styles.1](https://github.com/thebyte9/blaze/compare/v0.135.0-core-styles.0...v0.135.0-core-styles.1) (2023-11-07)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @blaze-cms/admin
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [0.135.0-core-styles.0](https://github.com/thebyte9/blaze/compare/v0.134.0...v0.135.0-core-styles.0) (2023-11-03)
|
|
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))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [0.134.0](https://github.com/thebyte9/blaze/compare/v0.134.0-alpha.0...v0.134.0) (2023-10-31)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
@@ -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 _adminUiUtils = require("@blaze-cms/admin-ui-utils");
|
|
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(_adminUiUtils.ModalAdapter, {
|
|
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","_adminUiUtils","RevertToTemplate","_ref","id","onClose","revertToTemplate","alertActions","callback","event","stopPropagation","modifiers","textButton","createElement","ModalAdapter","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 { ModalAdapter as Modal } from '@blaze-cms/admin-ui-utils';\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,aAAA,GAAAF,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,aAAA,CAAAa,YAAK;IAACC,OAAO,EAAER,YAAa;IAACF,OAAO,EAAEA,OAAQ;IAACW,OAAO;EAAA,gBACrDnB,MAAA,YAAAgB,aAAA,YAAG,2GAGA,CACE,CAAC;AAEZ,CAAC;AAEDX,gBAAgB,CAACe,SAAS,GAAG;EAC3BZ,OAAO,EAAEa,qBAAS,CAACC,IAAI,CAACC,UAAU;EAClCd,gBAAgB,EAAEY,qBAAS,CAACC,IAAI,CAACC,UAAU;EAC3ChB,EAAE,EAAEc,qBAAS,CAACG,MAAM,CAACD;AACvB,CAAC;AAAC,IAAAE,QAAA,GAEapB,gBAAgB;AAAAqB,OAAA,cAAAD,QAAA"}
|
|
@@ -1 +1 @@
|
|
|
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-
|
|
1
|
+
{"version":3,"file":"RevertToTemplate.js","names":["React","PropTypes","ModalAdapter","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 { ModalAdapter as Modal } from '@blaze-cms/admin-ui-utils';\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,SAASC,YAAY,IAAIC,KAAK,QAAQ,2BAA2B;AAEjE,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,oBACEb,KAAA,CAAAc,aAAA,CAACX,KAAK;IAACY,OAAO,EAAEP,YAAa;IAACF,OAAO,EAAEA,OAAQ;IAACU,OAAO;EAAA,gBACrDhB,KAAA,CAAAc,aAAA,YAAG,2GAGA,CACE,CAAC;AAEZ,CAAC;AAEDV,gBAAgB,CAACa,SAAS,GAAG;EAC3BX,OAAO,EAAEL,SAAS,CAACiB,IAAI,CAACC,UAAU;EAClCZ,gBAAgB,EAAEN,SAAS,CAACiB,IAAI,CAACC,UAAU;EAC3Cd,EAAE,EAAEJ,SAAS,CAACmB,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.
|
|
3
|
+
"version": "0.135.0-core-styles.1",
|
|
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": "
|
|
32
|
-
"@blaze-cms/core-errors-ui": "
|
|
33
|
-
"@blaze-cms/core-ui": "
|
|
34
|
-
"@blaze-cms/plugin-admin-core-ui": "
|
|
35
|
-
"@blaze-cms/plugin-auth-local-ui": "
|
|
36
|
-
"@blaze-cms/plugin-auth-ui": "
|
|
37
|
-
"@blaze-cms/plugin-data-ui": "
|
|
38
|
-
"@blaze-cms/plugin-google-maps-ui": "
|
|
39
|
-
"@blaze-cms/plugin-gtm-ui": "
|
|
40
|
-
"@blaze-cms/plugin-media-ui": "
|
|
41
|
-
"@blaze-cms/plugin-page-builder-ui": "
|
|
42
|
-
"@blaze-cms/react-form-builder": "
|
|
43
|
-
"@blaze-cms/setup-ui": "
|
|
31
|
+
"@blaze-cms/admin-ui-utils": "0.135.0-core-styles.0",
|
|
32
|
+
"@blaze-cms/core-errors-ui": "0.135.0-core-styles.0",
|
|
33
|
+
"@blaze-cms/core-ui": "0.135.0-core-styles.0",
|
|
34
|
+
"@blaze-cms/plugin-admin-core-ui": "0.135.0-core-styles.1",
|
|
35
|
+
"@blaze-cms/plugin-auth-local-ui": "0.135.0-core-styles.1",
|
|
36
|
+
"@blaze-cms/plugin-auth-ui": "0.135.0-core-styles.1",
|
|
37
|
+
"@blaze-cms/plugin-data-ui": "0.135.0-core-styles.0",
|
|
38
|
+
"@blaze-cms/plugin-google-maps-ui": "0.135.0-core-styles.0",
|
|
39
|
+
"@blaze-cms/plugin-gtm-ui": "0.135.0-core-styles.0",
|
|
40
|
+
"@blaze-cms/plugin-media-ui": "0.135.0-core-styles.0",
|
|
41
|
+
"@blaze-cms/plugin-page-builder-ui": "0.135.0-core-styles.1",
|
|
42
|
+
"@blaze-cms/react-form-builder": "0.135.0-core-styles.0",
|
|
43
|
+
"@blaze-cms/setup-ui": "0.135.0-core-styles.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": "2549e54555d711db57e1133f6262d215dd972da9"
|
|
70
70
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import Modal from '@blaze-
|
|
3
|
+
import { ModalAdapter as Modal } from '@blaze-cms/admin-ui-utils';
|
|
4
4
|
|
|
5
5
|
const RevertToTemplate = ({ id, onClose, revertToTemplate }) => {
|
|
6
6
|
const alertActions = [
|