@webiny/app-admin-rmwc 0.0.0-unstable.9e825fd5fb → 0.0.0-unstable.aa00eecd97

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.
@@ -41,6 +41,7 @@ var DialogContainer = function DialogContainer() {
41
41
  }, title && /*#__PURE__*/_react.default.createElement(_Dialog.DialogTitle, null, title), /*#__PURE__*/_react.default.createElement(_Dialog.DialogContent, null, message), /*#__PURE__*/_react.default.createElement(_Dialog.DialogActions, null, actions.cancel && /*#__PURE__*/_react.default.createElement(_Dialog.DialogAccept, {
42
42
  onClick: actions.cancel.onClick
43
43
  }, actions.cancel.label), actions.accept && /*#__PURE__*/_react.default.createElement(_Button.ButtonPrimary, {
44
+ "data-testid": "confirmationdialog-confirm-action",
44
45
  onClick: function onClick() {
45
46
  actions.accept.onClick();
46
47
  hideDialog();
@@ -1 +1 @@
1
- {"version":3,"names":["DialogContainer","ui","useUi","message","dataTestId","title","actions","cancel","accept","label","style","hideDialog","useCallback","setState","dialog","onClick"],"sources":["Dialog.tsx"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport { get } from \"lodash\";\nimport { useUi } from \"@webiny/app/hooks/useUi\";\nimport { Dialog, DialogAccept, DialogTitle, DialogActions, DialogContent } from \"@webiny/ui/Dialog\";\nimport { ButtonPrimary } from \"@webiny/ui/Button\";\n\nexport const DialogContainer: React.FC = () => {\n const ui = useUi();\n const message: React.ReactNode = get(ui, \"dialog.message\");\n const {\n dataTestId,\n title,\n actions = { cancel: null, accept: { label: \"OK\" } },\n style\n } = get(ui, \"dialog.options\", {});\n\n const hideDialog = useCallback(() => {\n ui.setState(ui => ({ ...ui, dialog: null }));\n }, [ui]);\n\n return (\n <Dialog open={!!message} onClose={hideDialog} data-testid={dataTestId} style={style}>\n {title && <DialogTitle>{title}</DialogTitle>}\n <DialogContent>{message}</DialogContent>\n <DialogActions>\n {actions.cancel && (\n <DialogAccept onClick={actions.cancel.onClick}>\n {actions.cancel.label}\n </DialogAccept>\n )}\n {actions.accept && (\n <ButtonPrimary\n onClick={() => {\n actions.accept.onClick();\n hideDialog();\n }}\n >\n {actions.accept.label}\n </ButtonPrimary>\n )}\n </DialogActions>\n </Dialog>\n );\n};\n"],"mappings":";;;;;;;;;;AAAA;AAEA;AACA;AACA;AAEO,IAAMA,eAAyB,GAAG,SAA5BA,eAAyB,GAAS;EAC3C,IAAMC,EAAE,GAAG,IAAAC,YAAK,GAAE;EAClB,IAAMC,OAAwB,GAAG,mBAAIF,EAAE,EAAE,gBAAgB,CAAC;EAC1D,YAKI,mBAAIA,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;IAJ7BG,UAAU,SAAVA,UAAU;IACVC,KAAK,SAALA,KAAK;IAAA,sBACLC,OAAO;IAAPA,OAAO,8BAAG;MAAEC,MAAM,EAAE,IAAI;MAAEC,MAAM,EAAE;QAAEC,KAAK,EAAE;MAAK;IAAE,CAAC;IACnDC,KAAK,SAALA,KAAK;EAGT,IAAMC,UAAU,GAAG,IAAAC,kBAAW,EAAC,YAAM;IACjCX,EAAE,CAACY,QAAQ,CAAC,UAAAZ,EAAE;MAAA,mEAAUA,EAAE;QAAEa,MAAM,EAAE;MAAI;IAAA,CAAG,CAAC;EAChD,CAAC,EAAE,CAACb,EAAE,CAAC,CAAC;EAER,oBACI,6BAAC,cAAM;IAAC,IAAI,EAAE,CAAC,CAACE,OAAQ;IAAC,OAAO,EAAEQ,UAAW;IAAC,eAAaP,UAAW;IAAC,KAAK,EAAEM;EAAM,GAC/EL,KAAK,iBAAI,6BAAC,mBAAW,QAAEA,KAAK,CAAe,eAC5C,6BAAC,qBAAa,QAAEF,OAAO,CAAiB,eACxC,6BAAC,qBAAa,QACTG,OAAO,CAACC,MAAM,iBACX,6BAAC,oBAAY;IAAC,OAAO,EAAED,OAAO,CAACC,MAAM,CAACQ;EAAQ,GACzCT,OAAO,CAACC,MAAM,CAACE,KAAK,CAE5B,EACAH,OAAO,CAACE,MAAM,iBACX,6BAAC,qBAAa;IACV,OAAO,EAAE,mBAAM;MACXF,OAAO,CAACE,MAAM,CAACO,OAAO,EAAE;MACxBJ,UAAU,EAAE;IAChB;EAAE,GAEDL,OAAO,CAACE,MAAM,CAACC,KAAK,CAE5B,CACW,CACX;AAEjB,CAAC;AAAC"}
1
+ {"version":3,"names":["DialogContainer","ui","useUi","message","dataTestId","title","actions","cancel","accept","label","style","hideDialog","useCallback","setState","dialog","onClick"],"sources":["Dialog.tsx"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport { get } from \"lodash\";\nimport { useUi } from \"@webiny/app/hooks/useUi\";\nimport { Dialog, DialogAccept, DialogTitle, DialogActions, DialogContent } from \"@webiny/ui/Dialog\";\nimport { ButtonPrimary } from \"@webiny/ui/Button\";\n\nexport const DialogContainer: React.FC = () => {\n const ui = useUi();\n const message: React.ReactNode = get(ui, \"dialog.message\");\n const {\n dataTestId,\n title,\n actions = { cancel: null, accept: { label: \"OK\" } },\n style\n } = get(ui, \"dialog.options\", {});\n\n const hideDialog = useCallback(() => {\n ui.setState(ui => ({ ...ui, dialog: null }));\n }, [ui]);\n\n return (\n <Dialog open={!!message} onClose={hideDialog} data-testid={dataTestId} style={style}>\n {title && <DialogTitle>{title}</DialogTitle>}\n <DialogContent>{message}</DialogContent>\n <DialogActions>\n {actions.cancel && (\n <DialogAccept onClick={actions.cancel.onClick}>\n {actions.cancel.label}\n </DialogAccept>\n )}\n {actions.accept && (\n <ButtonPrimary\n data-testid={\"confirmationdialog-confirm-action\"}\n onClick={() => {\n actions.accept.onClick();\n hideDialog();\n }}\n >\n {actions.accept.label}\n </ButtonPrimary>\n )}\n </DialogActions>\n </Dialog>\n );\n};\n"],"mappings":";;;;;;;;;;AAAA;AAEA;AACA;AACA;AAEO,IAAMA,eAAyB,GAAG,SAA5BA,eAAyB,GAAS;EAC3C,IAAMC,EAAE,GAAG,IAAAC,YAAK,GAAE;EAClB,IAAMC,OAAwB,GAAG,mBAAIF,EAAE,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"0.0.0-unstable.aa00eecd97",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,13 +14,13 @@
14
14
  "@rmwc/base": "7.0.3",
15
15
  "@rmwc/provider": "7.0.3",
16
16
  "@types/react": "17.0.39",
17
- "@webiny/app": "0.0.0-unstable.9e825fd5fb",
18
- "@webiny/app-admin": "0.0.0-unstable.9e825fd5fb",
19
- "@webiny/app-plugin-admin-welcome-screen": "0.0.0-unstable.9e825fd5fb",
20
- "@webiny/app-security": "0.0.0-unstable.9e825fd5fb",
21
- "@webiny/plugins": "0.0.0-unstable.9e825fd5fb",
22
- "@webiny/react-router": "0.0.0-unstable.9e825fd5fb",
23
- "@webiny/ui": "0.0.0-unstable.9e825fd5fb",
17
+ "@webiny/app": "0.0.0-unstable.aa00eecd97",
18
+ "@webiny/app-admin": "0.0.0-unstable.aa00eecd97",
19
+ "@webiny/app-plugin-admin-welcome-screen": "0.0.0-unstable.aa00eecd97",
20
+ "@webiny/app-security": "0.0.0-unstable.aa00eecd97",
21
+ "@webiny/plugins": "0.0.0-unstable.aa00eecd97",
22
+ "@webiny/react-router": "0.0.0-unstable.aa00eecd97",
23
+ "@webiny/ui": "0.0.0-unstable.aa00eecd97",
24
24
  "classnames": "2.3.2",
25
25
  "emotion": "10.0.27",
26
26
  "lodash": "4.17.21",
@@ -31,18 +31,18 @@
31
31
  "store": "2.0.12"
32
32
  },
33
33
  "devDependencies": {
34
- "@babel/cli": "^7.19.3",
35
- "@babel/core": "^7.19.3",
36
- "@babel/preset-env": "^7.19.4",
37
- "@babel/preset-react": "^7.0.0",
38
- "@babel/preset-typescript": "^7.18.6",
39
- "@types/react-helmet": "^6.1.5",
40
- "@webiny/cli": "^0.0.0-unstable.9e825fd5fb",
41
- "@webiny/project-utils": "^0.0.0-unstable.9e825fd5fb",
42
- "babel-plugin-emotion": "^9.2.8",
43
- "babel-plugin-named-asset-import": "^1.0.0-next.3e165448",
44
- "rimraf": "^3.0.2",
45
- "ttypescript": "^1.5.12",
34
+ "@babel/cli": "7.20.7",
35
+ "@babel/core": "7.20.12",
36
+ "@babel/preset-env": "7.20.2",
37
+ "@babel/preset-react": "7.18.6",
38
+ "@babel/preset-typescript": "7.18.6",
39
+ "@types/react-helmet": "6.1.6",
40
+ "@webiny/cli": "0.0.0-unstable.aa00eecd97",
41
+ "@webiny/project-utils": "0.0.0-unstable.aa00eecd97",
42
+ "babel-plugin-emotion": "9.2.11",
43
+ "babel-plugin-named-asset-import": "1.0.0-next.fb6e6f70",
44
+ "rimraf": "3.0.2",
45
+ "ttypescript": "1.5.15",
46
46
  "typescript": "4.7.4"
47
47
  },
48
48
  "publishConfig": {
@@ -58,5 +58,5 @@
58
58
  "removeViewBox": false
59
59
  }
60
60
  },
61
- "gitHead": "9e825fd5fb3c021691acbaee6c5fd925f5f5de4d"
61
+ "gitHead": "aa00eecd97d16da9bdb0581f33d491487ce43ce9"
62
62
  }