@blaze-cms/admin 0.133.0-alpha.2 → 0.133.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 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.133.0-alpha.2](https://github.com/thebyte9/blaze/compare/v0.133.0-alpha.1...v0.133.0-alpha.2) (2023-09-06)
6
+ # [0.133.0-core-styles.1](https://github.com/thebyte9/blaze/compare/v0.133.0-core-styles.0...v0.133.0-core-styles.1) (2023-09-13)
7
7
 
8
8
  **Note:** Version bump only for package @blaze-cms/admin
9
9
 
@@ -11,17 +11,12 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
11
 
12
12
 
13
13
 
14
- # [0.133.0-alpha.1](https://github.com/thebyte9/blaze/compare/v0.133.0-alpha.0...v0.133.0-alpha.1) (2023-09-05)
15
-
16
- **Note:** Version bump only for package @blaze-cms/admin
17
-
18
-
14
+ # [0.133.0-core-styles.0](https://github.com/thebyte9/blaze/compare/v0.132.0...v0.133.0-core-styles.0) (2023-09-08)
19
15
 
20
16
 
17
+ ### Bug Fixes
21
18
 
22
- # [0.133.0-alpha.0](https://github.com/thebyte9/blaze/compare/v0.132.0...v0.133.0-alpha.0) (2023-08-25)
23
-
24
- **Note:** Version bump only for package @blaze-cms/admin
19
+ * revert to template modal ([#3823](https://github.com/thebyte9/blaze/issues/3823)) ([7263ad5](https://github.com/thebyte9/blaze/commit/7263ad57cde4ab21a8b44b446444cd5ea40bc959))
25
20
 
26
21
 
27
22
 
@@ -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 _modal = _interopRequireDefault(require("@blaze-react/modal"));
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(_modal["default"], {
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","_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
+ {"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,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import Modal from '@blaze-react/modal';
3
+ import { ModalAdapter as Modal } from '@blaze-cms/admin-ui-utils';
4
4
  const RevertToTemplate = ({
5
5
  id,
6
6
  onClose,
@@ -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-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"}
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.133.0-alpha.2",
3
+ "version": "0.133.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": "^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.132.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.133.0-alpha.2",
38
- "@blaze-cms/plugin-google-maps-ui": "^0.132.0",
39
- "@blaze-cms/plugin-gtm-ui": "^0.132.0",
40
- "@blaze-cms/plugin-media-ui": "^0.132.0",
41
- "@blaze-cms/plugin-page-builder-ui": "^0.132.0",
42
- "@blaze-cms/react-form-builder": "^0.132.0",
43
- "@blaze-cms/setup-ui": "^0.131.0",
31
+ "@blaze-cms/admin-ui-utils": "0.133.0-core-styles.0",
32
+ "@blaze-cms/core-errors-ui": "0.133.0-core-styles.0",
33
+ "@blaze-cms/core-ui": "0.133.0-core-styles.0",
34
+ "@blaze-cms/plugin-admin-core-ui": "0.133.0-core-styles.0",
35
+ "@blaze-cms/plugin-auth-local-ui": "0.133.0-core-styles.0",
36
+ "@blaze-cms/plugin-auth-ui": "0.133.0-core-styles.0",
37
+ "@blaze-cms/plugin-data-ui": "0.133.0-core-styles.1",
38
+ "@blaze-cms/plugin-google-maps-ui": "0.133.0-core-styles.0",
39
+ "@blaze-cms/plugin-gtm-ui": "0.133.0-core-styles.0",
40
+ "@blaze-cms/plugin-media-ui": "0.133.0-core-styles.0",
41
+ "@blaze-cms/plugin-page-builder-ui": "0.133.0-core-styles.1",
42
+ "@blaze-cms/react-form-builder": "0.133.0-core-styles.0",
43
+ "@blaze-cms/setup-ui": "0.133.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": "39cd6858ba7996fe86b54eedba2c958952e63e40"
69
+ "gitHead": "f62f0ace97610ce01ad49e0f6c7aa5e7a7de03a9"
70
70
  }
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import Modal from '@blaze-react/modal';
3
+ import { ModalAdapter as Modal } from '@blaze-cms/admin-ui-utils';
4
4
 
5
5
  const RevertToTemplate = ({ id, onClose, revertToTemplate }) => {
6
6
  const alertActions = [