@corva/ui 3.16.0-9 → 3.16.0-rc.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.
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var o=function(){return window[Symbol.for("notificationToasts")]},i=function(){for(var o,i=arguments.length,t=new Array(i),n=0;n<i;n++)t[n]=arguments[n];(o=console).log.apply(o,["Notifications are not setup: "].concat(t))},t=function(t){return function(){var n,r=null===(n=o())||void 0===n?void 0:n[t];return r?r.apply(void 0,arguments):i.apply(void 0,arguments)}},n=t("createNotification"),r=t("removeNotification"),e=t("showErrorNotification"),a=t("showInfoNotification"),c=t("showNeutralNotification"),s=t("showSuccessNotification"),f=t("showWarningNotification");exports.createNotification=n,exports.removeNotification=r,exports.showErrorNotification=e,exports.showInfoNotification=a,exports.showNeutralNotification=c,exports.showSuccessNotification=s,exports.showWarningNotification=f;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var o=function(){return window[Symbol.for("notificationToasts")]},i=function(){for(var o,i=arguments.length,t=new Array(i),r=0;r<i;r++)t[r]=arguments[r];(o=console).log.apply(o,["Notifications are not setup: "].concat(t))},t=function(t){return function(){var r;if("showErrorNotification"===t&&"true"===process.env.REACT_APP_MUTE_ERROR_NOTIFICATIONS)return i.apply(void 0,arguments);var n=null===(r=o())||void 0===r?void 0:r[t];return n?n.apply(void 0,arguments):i.apply(void 0,arguments)}},r=t("createNotification"),n=t("removeNotification"),e=t("showErrorNotification"),a=t("showInfoNotification"),c=t("showNeutralNotification"),s=t("showSuccessNotification"),f=t("showWarningNotification");exports.createNotification=r,exports.removeNotification=n,exports.showErrorNotification=e,exports.showInfoNotification=a,exports.showNeutralNotification=c,exports.showSuccessNotification=s,exports.showWarningNotification=f;
2
2
  //# sourceMappingURL=notificationToasts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"notificationToasts.js","sources":["../../../src/utils/notificationToasts.js"],"sourcesContent":["const notificationToasts = () => window[Symbol.for('notificationToasts')];\n\nconst notifyToConsole = (...args) => {\n // eslint-disable-next-line no-console\n console.log('Notifications are not setup: ', ...args);\n};\n\nconst getHandler =\n handlerName =>\n (...args) => {\n const handler = notificationToasts()?.[handlerName];\n return handler ? handler(...args) : notifyToConsole(...args);\n };\n\nexport const createNotification = getHandler('createNotification');\nexport const removeNotification = getHandler('removeNotification');\nexport const showErrorNotification = getHandler('showErrorNotification');\nexport const showInfoNotification = getHandler('showInfoNotification');\nexport const showNeutralNotification = getHandler('showNeutralNotification');\nexport const showSuccessNotification = getHandler('showSuccessNotification');\nexport const showWarningNotification = getHandler('showWarningNotification');\n"],"names":["notificationToasts","window","Symbol","for","notifyToConsole","_console","_len","arguments","length","args","Array","_key","console","log","concat","getHandler","handlerName","_notificationToasts","handler","apply","createNotification","removeNotification","showErrorNotification","showInfoNotification","showNeutralNotification","showSuccessNotification","showWarningNotification"],"mappings":"oEAAA,IAAMA,EAAqB,WAAH,OAASC,OAAOC,OAAOC,IAAI,sBAAsB,EAEnEC,EAAkB,WAAa,IAAA,IAAAC,EAAAC,EAAAC,UAAAC,OAATC,EAAI,IAAAC,MAAAJ,GAAAK,EAAA,EAAAA,EAAAL,EAAAK,IAAJF,EAAIE,GAAAJ,UAAAI,IAE9BN,EAAAO,SAAQC,aAAI,iCAA+BC,OAAKL,GAClD,EAEMM,EACJ,SAAAC,GAAW,OACX,WAAa,IAAAC,EACLC,EAAU,QAAAlB,EAAAA,WAAA,IAAAiB,OAAA,EAAAA,EAAuBD,GACvC,OAAOE,EAAUA,EAAgBC,WAAA,EAAAZ,WAAGH,EAAwBe,WAAA,EAAAZ,WAC7D,EAEUa,EAAqBL,EAAW,sBAChCM,EAAqBN,EAAW,sBAChCO,EAAwBP,EAAW,yBACnCQ,EAAuBR,EAAW,wBAClCS,EAA0BT,EAAW,2BACrCU,EAA0BV,EAAW,2BACrCW,EAA0BX,EAAW"}
1
+ {"version":3,"file":"notificationToasts.js","sources":["../../../src/utils/notificationToasts.js"],"sourcesContent":["const notificationToasts = () => window[Symbol.for('notificationToasts')];\n\nconst notifyToConsole = (...args) => {\n // eslint-disable-next-line no-console\n console.log('Notifications are not setup: ', ...args);\n};\n\nconst getHandler =\n handlerName =>\n (...args) => {\n if (\n handlerName === 'showErrorNotification' &&\n process.env.REACT_APP_MUTE_ERROR_NOTIFICATIONS === 'true'\n ) {\n return notifyToConsole(...args);\n }\n\n const handler = notificationToasts()?.[handlerName];\n return handler ? handler(...args) : notifyToConsole(...args);\n };\n\nexport const createNotification = getHandler('createNotification');\nexport const removeNotification = getHandler('removeNotification');\nexport const showErrorNotification = getHandler('showErrorNotification');\nexport const showInfoNotification = getHandler('showInfoNotification');\nexport const showNeutralNotification = getHandler('showNeutralNotification');\nexport const showSuccessNotification = getHandler('showSuccessNotification');\nexport const showWarningNotification = getHandler('showWarningNotification');\n"],"names":["notificationToasts","window","Symbol","for","notifyToConsole","_console","_len","arguments","length","args","Array","_key","console","log","concat","getHandler","handlerName","_notificationToasts","process","env","REACT_APP_MUTE_ERROR_NOTIFICATIONS","apply","handler","createNotification","removeNotification","showErrorNotification","showInfoNotification","showNeutralNotification","showSuccessNotification","showWarningNotification"],"mappings":"oEAAA,IAAMA,EAAqB,WAAH,OAASC,OAAOC,OAAOC,IAAI,sBAAsB,EAEnEC,EAAkB,WAAa,IAAA,IAAAC,EAAAC,EAAAC,UAAAC,OAATC,EAAI,IAAAC,MAAAJ,GAAAK,EAAA,EAAAA,EAAAL,EAAAK,IAAJF,EAAIE,GAAAJ,UAAAI,IAE9BN,EAAAO,SAAQC,aAAI,iCAA+BC,OAAKL,GAClD,EAEMM,EACJ,SAAAC,GAAW,OACX,WAAa,IAAAC,EACX,GACkB,0BAAhBD,GACmD,SAAnDE,QAAQC,IAAIC,mCAEZ,OAAOhB,EAAwBiB,WAAA,EAAAd,WAGjC,IAAMe,EAAU,QAAAtB,EAAAA,WAAA,IAAAiB,OAAA,EAAAA,EAAuBD,GACvC,OAAOM,EAAUA,EAAgBD,WAAA,EAAAd,WAAGH,EAAwBiB,WAAA,EAAAd,WAC7D,EAEUgB,EAAqBR,EAAW,sBAChCS,EAAqBT,EAAW,sBAChCU,EAAwBV,EAAW,yBACnCW,EAAuBX,EAAW,wBAClCY,EAA0BZ,EAAW,2BACrCa,EAA0Bb,EAAW,2BACrCc,EAA0Bd,EAAW"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "3.16.0-9",
3
+ "version": "3.16.0-rc.1",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"
@@ -1 +1 @@
1
- {"version":3,"file":"notificationToasts.d.ts","sourceRoot":"","sources":["../../src/utils/notificationToasts.js"],"names":[],"mappings":"AASE,wDAGC;AAHD,wDAGC;AAHD,2DAGC;AAHD,0DAGC;AAHD,6DAGC;AAHD,6DAGC;AAHD,6DAGC"}
1
+ {"version":3,"file":"notificationToasts.d.ts","sourceRoot":"","sources":["../../src/utils/notificationToasts.js"],"names":[],"mappings":"AASE,wDAUC;AAVD,wDAUC;AAVD,2DAUC;AAVD,0DAUC;AAVD,6DAUC;AAVD,6DAUC;AAVD,6DAUC"}
@@ -1,2 +1,2 @@
1
- var o=function(){return window[Symbol.for("notificationToasts")]},i=function(){for(var o,i=arguments.length,t=new Array(i),n=0;n<i;n++)t[n]=arguments[n];(o=console).log.apply(o,["Notifications are not setup: "].concat(t))},t=function(t){return function(){var n,a=null===(n=o())||void 0===n?void 0:n[t];return a?a.apply(void 0,arguments):i.apply(void 0,arguments)}},n=t("createNotification"),a=t("removeNotification"),r=t("showErrorNotification"),c=t("showInfoNotification"),f=t("showNeutralNotification"),e=t("showSuccessNotification"),s=t("showWarningNotification");export{n as createNotification,a as removeNotification,r as showErrorNotification,c as showInfoNotification,f as showNeutralNotification,e as showSuccessNotification,s as showWarningNotification};
1
+ var o=function(){return window[Symbol.for("notificationToasts")]},i=function(){for(var o,i=arguments.length,t=new Array(i),n=0;n<i;n++)t[n]=arguments[n];(o=console).log.apply(o,["Notifications are not setup: "].concat(t))},t=function(t){return function(){var n;if("showErrorNotification"===t&&"true"===process.env.REACT_APP_MUTE_ERROR_NOTIFICATIONS)return i.apply(void 0,arguments);var r=null===(n=o())||void 0===n?void 0:n[t];return r?r.apply(void 0,arguments):i.apply(void 0,arguments)}},n=t("createNotification"),r=t("removeNotification"),a=t("showErrorNotification"),c=t("showInfoNotification"),e=t("showNeutralNotification"),f=t("showSuccessNotification"),s=t("showWarningNotification");export{n as createNotification,r as removeNotification,a as showErrorNotification,c as showInfoNotification,e as showNeutralNotification,f as showSuccessNotification,s as showWarningNotification};
2
2
  //# sourceMappingURL=notificationToasts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"notificationToasts.js","sources":["../../src/utils/notificationToasts.js"],"sourcesContent":["const notificationToasts = () => window[Symbol.for('notificationToasts')];\n\nconst notifyToConsole = (...args) => {\n // eslint-disable-next-line no-console\n console.log('Notifications are not setup: ', ...args);\n};\n\nconst getHandler =\n handlerName =>\n (...args) => {\n const handler = notificationToasts()?.[handlerName];\n return handler ? handler(...args) : notifyToConsole(...args);\n };\n\nexport const createNotification = getHandler('createNotification');\nexport const removeNotification = getHandler('removeNotification');\nexport const showErrorNotification = getHandler('showErrorNotification');\nexport const showInfoNotification = getHandler('showInfoNotification');\nexport const showNeutralNotification = getHandler('showNeutralNotification');\nexport const showSuccessNotification = getHandler('showSuccessNotification');\nexport const showWarningNotification = getHandler('showWarningNotification');\n"],"names":["notificationToasts","window","Symbol","for","notifyToConsole","_console","_len","arguments","length","args","Array","_key","console","log","concat","getHandler","handlerName","_notificationToasts","handler","apply","createNotification","removeNotification","showErrorNotification","showInfoNotification","showNeutralNotification","showSuccessNotification","showWarningNotification"],"mappings":"AAAA,IAAMA,EAAqB,WAAH,OAASC,OAAOC,OAAOC,IAAI,sBAAsB,EAEnEC,EAAkB,WAAa,IAAA,IAAAC,EAAAC,EAAAC,UAAAC,OAATC,EAAI,IAAAC,MAAAJ,GAAAK,EAAA,EAAAA,EAAAL,EAAAK,IAAJF,EAAIE,GAAAJ,UAAAI,IAE9BN,EAAAO,SAAQC,aAAI,iCAA+BC,OAAKL,GAClD,EAEMM,EACJ,SAAAC,GAAW,OACX,WAAa,IAAAC,EACLC,EAAU,QAAAlB,EAAAA,WAAA,IAAAiB,OAAA,EAAAA,EAAuBD,GACvC,OAAOE,EAAUA,EAAgBC,WAAA,EAAAZ,WAAGH,EAAwBe,WAAA,EAAAZ,WAC7D,EAEUa,EAAqBL,EAAW,sBAChCM,EAAqBN,EAAW,sBAChCO,EAAwBP,EAAW,yBACnCQ,EAAuBR,EAAW,wBAClCS,EAA0BT,EAAW,2BACrCU,EAA0BV,EAAW,2BACrCW,EAA0BX,EAAW"}
1
+ {"version":3,"file":"notificationToasts.js","sources":["../../src/utils/notificationToasts.js"],"sourcesContent":["const notificationToasts = () => window[Symbol.for('notificationToasts')];\n\nconst notifyToConsole = (...args) => {\n // eslint-disable-next-line no-console\n console.log('Notifications are not setup: ', ...args);\n};\n\nconst getHandler =\n handlerName =>\n (...args) => {\n if (\n handlerName === 'showErrorNotification' &&\n process.env.REACT_APP_MUTE_ERROR_NOTIFICATIONS === 'true'\n ) {\n return notifyToConsole(...args);\n }\n\n const handler = notificationToasts()?.[handlerName];\n return handler ? handler(...args) : notifyToConsole(...args);\n };\n\nexport const createNotification = getHandler('createNotification');\nexport const removeNotification = getHandler('removeNotification');\nexport const showErrorNotification = getHandler('showErrorNotification');\nexport const showInfoNotification = getHandler('showInfoNotification');\nexport const showNeutralNotification = getHandler('showNeutralNotification');\nexport const showSuccessNotification = getHandler('showSuccessNotification');\nexport const showWarningNotification = getHandler('showWarningNotification');\n"],"names":["notificationToasts","window","Symbol","for","notifyToConsole","_console","_len","arguments","length","args","Array","_key","console","log","concat","getHandler","handlerName","_notificationToasts","process","env","REACT_APP_MUTE_ERROR_NOTIFICATIONS","apply","handler","createNotification","removeNotification","showErrorNotification","showInfoNotification","showNeutralNotification","showSuccessNotification","showWarningNotification"],"mappings":"AAAA,IAAMA,EAAqB,WAAH,OAASC,OAAOC,OAAOC,IAAI,sBAAsB,EAEnEC,EAAkB,WAAa,IAAA,IAAAC,EAAAC,EAAAC,UAAAC,OAATC,EAAI,IAAAC,MAAAJ,GAAAK,EAAA,EAAAA,EAAAL,EAAAK,IAAJF,EAAIE,GAAAJ,UAAAI,IAE9BN,EAAAO,SAAQC,aAAI,iCAA+BC,OAAKL,GAClD,EAEMM,EACJ,SAAAC,GAAW,OACX,WAAa,IAAAC,EACX,GACkB,0BAAhBD,GACmD,SAAnDE,QAAQC,IAAIC,mCAEZ,OAAOhB,EAAwBiB,WAAA,EAAAd,WAGjC,IAAMe,EAAU,QAAAtB,EAAAA,WAAA,IAAAiB,OAAA,EAAAA,EAAuBD,GACvC,OAAOM,EAAUA,EAAgBD,WAAA,EAAAd,WAAGH,EAAwBiB,WAAA,EAAAd,WAC7D,EAEUgB,EAAqBR,EAAW,sBAChCS,EAAqBT,EAAW,sBAChCU,EAAwBV,EAAW,yBACnCW,EAAuBX,EAAW,wBAClCY,EAA0BZ,EAAW,2BACrCa,EAA0Bb,EAAW,2BACrCc,EAA0Bd,EAAW"}