@imposium-hub/components 2.5.6-1 → 2.5.6

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.
Files changed (113) hide show
  1. package/dist/cjs/components/app-wrapper/AppWrapper_BACKUP_73190.d.ts +27 -0
  2. package/dist/cjs/components/app-wrapper/AppWrapper_BACKUP_73190.js +243 -0
  3. package/dist/cjs/components/app-wrapper/AppWrapper_BACKUP_73190.js.map +1 -0
  4. package/dist/cjs/components/app-wrapper/AppWrapper_BASE_73190.d.ts +28 -0
  5. package/dist/cjs/components/app-wrapper/AppWrapper_BASE_73190.js +255 -0
  6. package/dist/cjs/components/app-wrapper/AppWrapper_BASE_73190.js.map +1 -0
  7. package/dist/cjs/components/app-wrapper/AppWrapper_LOCAL_73190.d.ts +27 -0
  8. package/dist/cjs/components/app-wrapper/AppWrapper_LOCAL_73190.js +243 -0
  9. package/dist/cjs/components/app-wrapper/AppWrapper_LOCAL_73190.js.map +1 -0
  10. package/dist/cjs/components/app-wrapper/AppWrapper_REMOTE_73190.d.ts +28 -0
  11. package/dist/cjs/components/app-wrapper/AppWrapper_REMOTE_73190.js +251 -0
  12. package/dist/cjs/components/app-wrapper/AppWrapper_REMOTE_73190.js.map +1 -0
  13. package/dist/cjs/components/color-field/ColorField.d.ts +0 -1
  14. package/dist/cjs/components/color-field/ColorField.js +1 -13
  15. package/dist/cjs/components/color-field/ColorField.js.map +1 -1
  16. package/dist/cjs/components/data-table/Paginator.js +41 -7
  17. package/dist/cjs/components/data-table/Paginator.js.map +1 -1
  18. package/dist/cjs/components/error-message-preview/ErrorMessagePreview.d.ts +15 -0
  19. package/dist/cjs/components/error-message-preview/ErrorMessagePreview.js +91 -0
  20. package/dist/cjs/components/error-message-preview/ErrorMessagePreview.js.map +1 -0
  21. package/dist/cjs/components/header/Header_BACKUP_73021.d.ts +33 -0
  22. package/dist/cjs/components/header/Header_BACKUP_73021.js +393 -0
  23. package/dist/cjs/components/header/Header_BACKUP_73021.js.map +1 -0
  24. package/dist/cjs/components/header/Header_BASE_73021.d.ts +29 -0
  25. package/dist/cjs/components/header/Header_BASE_73021.js +376 -0
  26. package/dist/cjs/components/header/Header_BASE_73021.js.map +1 -0
  27. package/dist/cjs/components/header/Header_LOCAL_73021.d.ts +33 -0
  28. package/dist/cjs/components/header/Header_LOCAL_73021.js +382 -0
  29. package/dist/cjs/components/header/Header_LOCAL_73021.js.map +1 -0
  30. package/dist/cjs/components/header/Header_REMOTE_73021.d.ts +30 -0
  31. package/dist/cjs/components/header/Header_REMOTE_73021.js +386 -0
  32. package/dist/cjs/components/header/Header_REMOTE_73021.js.map +1 -0
  33. package/dist/cjs/components/publish-wizard/PublishWizard.js.map +1 -1
  34. package/dist/cjs/components/story-previewer/StoryPreviewer.js +14 -10
  35. package/dist/cjs/components/story-previewer/StoryPreviewer.js.map +1 -1
  36. package/dist/cjs/redux/actions/publish.js +0 -1
  37. package/dist/cjs/redux/actions/publish.js.map +1 -1
  38. package/dist/esm/components/app-wrapper/AppWrapper_BACKUP_73190.d.ts +27 -0
  39. package/dist/esm/components/app-wrapper/AppWrapper_BACKUP_73190.js +194 -0
  40. package/dist/esm/components/app-wrapper/AppWrapper_BACKUP_73190.js.map +1 -0
  41. package/dist/esm/components/app-wrapper/AppWrapper_BASE_73190.d.ts +28 -0
  42. package/dist/esm/components/app-wrapper/AppWrapper_BASE_73190.js +208 -0
  43. package/dist/esm/components/app-wrapper/AppWrapper_BASE_73190.js.map +1 -0
  44. package/dist/esm/components/app-wrapper/AppWrapper_LOCAL_73190.d.ts +27 -0
  45. package/dist/esm/components/app-wrapper/AppWrapper_LOCAL_73190.js +194 -0
  46. package/dist/esm/components/app-wrapper/AppWrapper_LOCAL_73190.js.map +1 -0
  47. package/dist/esm/components/app-wrapper/AppWrapper_REMOTE_73190.d.ts +28 -0
  48. package/dist/esm/components/app-wrapper/AppWrapper_REMOTE_73190.js +204 -0
  49. package/dist/esm/components/app-wrapper/AppWrapper_REMOTE_73190.js.map +1 -0
  50. package/dist/esm/components/color-field/ColorField.d.ts +0 -1
  51. package/dist/esm/components/color-field/ColorField.js +1 -13
  52. package/dist/esm/components/color-field/ColorField.js.map +1 -1
  53. package/dist/esm/components/data-table/Paginator.js +64 -44
  54. package/dist/esm/components/data-table/Paginator.js.map +1 -1
  55. package/dist/esm/components/error-message-preview/ErrorMessagePreview.d.ts +15 -0
  56. package/dist/esm/components/error-message-preview/ErrorMessagePreview.js +35 -0
  57. package/dist/esm/components/error-message-preview/ErrorMessagePreview.js.map +1 -0
  58. package/dist/esm/components/header/Header_BACKUP_73021.d.ts +33 -0
  59. package/dist/esm/components/header/Header_BACKUP_73021.js +336 -0
  60. package/dist/esm/components/header/Header_BACKUP_73021.js.map +1 -0
  61. package/dist/esm/components/header/Header_BASE_73021.d.ts +29 -0
  62. package/dist/esm/components/header/Header_BASE_73021.js +322 -0
  63. package/dist/esm/components/header/Header_BASE_73021.js.map +1 -0
  64. package/dist/esm/components/header/Header_LOCAL_73021.d.ts +33 -0
  65. package/dist/esm/components/header/Header_LOCAL_73021.js +328 -0
  66. package/dist/esm/components/header/Header_LOCAL_73021.js.map +1 -0
  67. package/dist/esm/components/header/Header_REMOTE_73021.d.ts +30 -0
  68. package/dist/esm/components/header/Header_REMOTE_73021.js +329 -0
  69. package/dist/esm/components/header/Header_REMOTE_73021.js.map +1 -0
  70. package/dist/esm/components/publish-wizard/PublishWizard.js.map +1 -1
  71. package/dist/esm/components/story-previewer/StoryPreviewer.js +14 -10
  72. package/dist/esm/components/story-previewer/StoryPreviewer.js.map +1 -1
  73. package/dist/esm/redux/actions/publish.js +0 -1
  74. package/dist/esm/redux/actions/publish.js.map +1 -1
  75. package/dist/styles.css +0 -3
  76. package/dist/styles.less +4 -9
  77. package/less/components/assets.less +4 -9
  78. package/package.json +1 -1
  79. package/src/components/color-field/ColorField.tsx +2 -13
  80. package/src/components/data-table/Paginator.tsx +125 -93
  81. package/src/components/publish-wizard/PublishWizard.tsx +1 -2
  82. package/src/components/story-previewer/StoryPreviewer.tsx +16 -14
  83. package/src/redux/actions/publish.ts +1 -1
  84. package/dist/cjs/components/assets/AssetsTableAssetIdFilter.d.ts +0 -2
  85. package/dist/cjs/components/assets/AssetsTableAssetIdFilter.js +0 -94
  86. package/dist/cjs/components/assets/AssetsTableAssetIdFilter.js.map +0 -1
  87. package/dist/cjs/components/assets/AssetsTableNameFilter copy.d.ts +0 -2
  88. package/dist/cjs/components/assets/AssetsTableNameFilter copy.js +0 -94
  89. package/dist/cjs/components/assets/AssetsTableNameFilter copy.js.map +0 -1
  90. package/dist/cjs/components/confirm-modal/ConfirmModal.d.ts +0 -8
  91. package/dist/cjs/components/confirm-modal/ConfirmModal.js +0 -39
  92. package/dist/cjs/components/confirm-modal/ConfirmModal.js.map +0 -1
  93. package/dist/cjs/redux/actions/notifications.d.ts +0 -8
  94. package/dist/cjs/redux/actions/notifications.js +0 -56
  95. package/dist/cjs/redux/actions/notifications.js.map +0 -1
  96. package/dist/cjs/redux/reducers/notifications.d.ts +0 -8
  97. package/dist/cjs/redux/reducers/notifications.js +0 -45
  98. package/dist/cjs/redux/reducers/notifications.js.map +0 -1
  99. package/dist/esm/components/assets/AssetsTableAssetIdFilter.d.ts +0 -2
  100. package/dist/esm/components/assets/AssetsTableAssetIdFilter.js +0 -20
  101. package/dist/esm/components/assets/AssetsTableAssetIdFilter.js.map +0 -1
  102. package/dist/esm/components/assets/AssetsTableNameFilter copy.d.ts +0 -2
  103. package/dist/esm/components/assets/AssetsTableNameFilter copy.js +0 -20
  104. package/dist/esm/components/assets/AssetsTableNameFilter copy.js.map +0 -1
  105. package/dist/esm/components/confirm-modal/ConfirmModal.d.ts +0 -8
  106. package/dist/esm/components/confirm-modal/ConfirmModal.js +0 -29
  107. package/dist/esm/components/confirm-modal/ConfirmModal.js.map +0 -1
  108. package/dist/esm/redux/actions/notifications.d.ts +0 -8
  109. package/dist/esm/redux/actions/notifications.js +0 -47
  110. package/dist/esm/redux/actions/notifications.js.map +0 -1
  111. package/dist/esm/redux/reducers/notifications.d.ts +0 -8
  112. package/dist/esm/redux/reducers/notifications.js +0 -14
  113. package/dist/esm/redux/reducers/notifications.js.map +0 -1
@@ -1,39 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ConfirmModal = void 0;
7
- var react_1 = __importDefault(require("react"));
8
- var react_dom_1 = __importDefault(require("react-dom"));
9
- var react_hotkeys_hook_1 = require("react-hotkeys-hook");
10
- var Modal_1 = __importDefault(require("../modal/Modal"));
11
- var Button_1 = __importDefault(require("../button/Button"));
12
- var copy_1 = require("../../constants/copy");
13
- var Section_1 = __importDefault(require("../section/Section"));
14
- var ConfirmModal = function (_a) {
15
- var onClose = _a.onClose, isOpen = _a.isOpen, onYes = _a.onYes, onNo = _a.onNo, storyName = _a.storyName;
16
- (0, react_hotkeys_hook_1.useHotkeys)('enter', onYes, { enableOnFormTags: true });
17
- var yes = copy_1.confirm.yes, no = copy_1.confirm.no, cancel = copy_1.confirm.cancel, title = copy_1.confirm.title;
18
- var modal = (react_1.default.createElement(Modal_1.default, { onRequestClose: onClose, wrapperStyle: {
19
- left: '0px',
20
- width: '100%',
21
- }, style: {
22
- width: '400px',
23
- height: '13%',
24
- top: 'calc(50% - 150px)',
25
- left: 'calc((100% - 400px) / 2)'
26
- }, isOpen: isOpen },
27
- react_1.default.createElement(Section_1.default, { title: title.replace('[story]', storyName) },
28
- react_1.default.createElement("div", { className: 'confirm-modal' },
29
- react_1.default.createElement("div", { className: 'confirm-buttons' },
30
- react_1.default.createElement(Button_1.default, { onClick: onClose, size: 'large', color: 'default' }, cancel),
31
- react_1.default.createElement(Button_1.default, { onClick: onNo, size: 'large', color: 'default' }, no),
32
- react_1.default.createElement(Button_1.default, { onClick: onYes, size: 'large', style: 'bold', color: 'primary' }, yes))))));
33
- var PortalContextComponent = function () {
34
- return react_dom_1.default.createPortal(modal, document.querySelector('#react-root'));
35
- };
36
- return react_1.default.createElement(PortalContextComponent, null);
37
- };
38
- exports.ConfirmModal = ConfirmModal;
39
- //# sourceMappingURL=ConfirmModal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ConfirmModal.js","sourceRoot":"","sources":["../../../../src/components/confirm-modal/ConfirmModal.tsx"],"names":[],"mappings":";;;;;;AAAA,gDAA0B;AAC1B,wDAAiC;AACjC,yDAAgD;AAChD,yDAAmC;AACnC,4DAAsC;AACtC,6CAAuD;AACvD,+DAAyC;AAClC,IAAM,YAAY,GAAG,UAAC,EAA2C;QAAzC,OAAO,aAAA,EAAE,MAAM,YAAA,EAAE,KAAK,WAAA,EAAE,IAAI,UAAA,EAAE,SAAS,eAAA;IAClE,IAAA,+BAAU,EAAC,OAAO,EAAE,KAAK,EAAE,EAAE,gBAAgB,EAAE,IAAI,EAAE,CAAC,CAAC;IAC/C,IAAA,GAAG,GAAwB,cAAI,IAA5B,EAAE,EAAE,GAAoB,cAAI,GAAxB,EAAE,MAAM,GAAY,cAAI,OAAhB,EAAE,KAAK,GAAK,cAAI,MAAT,CAAU;IAExC,IAAM,KAAK,GAAG,CACV,8BAAC,eAAK,IACF,cAAc,EAAE,OAAO,EACvB,YAAY,EAAE;YACV,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,MAAM;SAChB,EACD,KAAK,EAAE;YACH,KAAK,EAAE,OAAO;YACd,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,mBAAmB;YACxB,IAAI,EAAE,0BAA0B;SACnC,EACD,MAAM,EAAE,MAAM;QACd,8BAAC,iBAAO,IAAC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC;YAC/C,uCAAK,SAAS,EAAC,eAAe;gBAC1B,uCAAK,SAAS,EAAC,iBAAiB;oBAC5B,8BAAC,gBAAM,IACH,OAAO,EAAE,OAAO,EAChB,IAAI,EAAC,OAAO,EACZ,KAAK,EAAC,SAAS,IACd,MAAM,CACF;oBACT,8BAAC,gBAAM,IACH,OAAO,EAAE,IAAI,EACb,IAAI,EAAC,OAAO,EACZ,KAAK,EAAC,SAAS,IACd,EAAE,CACE;oBACT,8BAAC,gBAAM,IACH,OAAO,EAAE,KAAK,EACd,IAAI,EAAC,OAAO,EACZ,KAAK,EAAC,MAAM,EACZ,KAAK,EAAC,SAAS,IACd,GAAG,CACC,CACP,CACJ,CACA,CACN,CACX,CAAC;IAEF,IAAM,sBAAsB,GAAG;QAC3B,OAAA,mBAAQ,CAAC,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;IAAnE,CAAmE,CAAC;IAExE,OAAO,8BAAC,sBAAsB,OAAG,CAAC;AACtC,CAAC,CAAC;AAlDW,QAAA,YAAY,gBAkDvB"}
@@ -1,8 +0,0 @@
1
- declare const notifications: any;
2
- export declare const log: (text: any, type: any, button?: any) => any;
3
- export declare const clear: () => any;
4
- export declare const logNotification: (text: any, button?: any) => any;
5
- export declare const logError: (text: any, button?: any) => any;
6
- export declare const logWarning: (text: any, button?: any) => any;
7
- export declare const clearNotifications: () => any;
8
- export default notifications;
@@ -1,56 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.clearNotifications = exports.logWarning = exports.logError = exports.logNotification = exports.clear = exports.log = void 0;
4
- var api_1 = require("../../constants/api");
5
- var Util_1 = require("../../Util");
6
- var notifications = {
7
- LOG: 'notifications/LOG',
8
- CLEAR: 'notifications/LOG'
9
- };
10
- var log = function (text, type, button) {
11
- var time = (0, Util_1.getNotificationTime)();
12
- return function (dispatch) {
13
- dispatch({
14
- type: notifications.LOG,
15
- notification: {
16
- time: time,
17
- text: text,
18
- type: type,
19
- button: button
20
- }
21
- });
22
- };
23
- };
24
- exports.log = log;
25
- var clear = function () {
26
- return function (dispatch) {
27
- dispatch({ type: notifications.CLEAR });
28
- };
29
- };
30
- exports.clear = clear;
31
- var logNotification = function (text, button) {
32
- return function (dispatch) {
33
- dispatch((0, exports.log)(text, api_1.NOTIFICATION_TYPES.INFO, button));
34
- };
35
- };
36
- exports.logNotification = logNotification;
37
- var logError = function (text, button) {
38
- return function (dispatch) {
39
- dispatch((0, exports.log)(text, api_1.NOTIFICATION_TYPES.ERROR, button));
40
- };
41
- };
42
- exports.logError = logError;
43
- var logWarning = function (text, button) {
44
- return function (dispatch) {
45
- dispatch((0, exports.log)(text, api_1.NOTIFICATION_TYPES.WARNING, button));
46
- };
47
- };
48
- exports.logWarning = logWarning;
49
- var clearNotifications = function () {
50
- return function (dispatch) {
51
- dispatch((0, exports.clear)());
52
- };
53
- };
54
- exports.clearNotifications = clearNotifications;
55
- exports.default = notifications;
56
- //# sourceMappingURL=notifications.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../../../src/redux/actions/notifications.ts"],"names":[],"mappings":";;;AAAA,2CAAyD;AACzD,mCAAiD;AAEjD,IAAM,aAAa,GAAQ;IACvB,GAAG,EAAE,mBAAmB;IACxB,KAAK,EAAE,mBAAmB;CAC7B,CAAC;AAEK,IAAM,GAAG,GAAG,UAAC,IAAI,EAAE,IAAI,EAAE,MAAO;IACnC,IAAM,IAAI,GAAG,IAAA,0BAAmB,GAAE,CAAC;IAEnC,OAAO,UAAC,QAAQ;QACZ,QAAQ,CAAC;YACL,IAAI,EAAE,aAAa,CAAC,GAAG;YACvB,YAAY,EAAE;gBACV,IAAI,MAAA;gBACJ,IAAI,MAAA;gBACJ,IAAI,MAAA;gBACJ,MAAM,QAAA;aACT;SACJ,CAAC,CAAC;IACP,CAAC,CAAC;AACN,CAAC,CAAC;AAdW,QAAA,GAAG,OAcd;AAEK,IAAM,KAAK,GAAG;IACjB,OAAO,UAAC,QAAQ;QACZ,QAAQ,CAAC,EAAE,IAAI,EAAE,aAAa,CAAC,KAAK,EAAE,CAAC,CAAC;IAC5C,CAAC,CAAC;AACN,CAAC,CAAC;AAJW,QAAA,KAAK,SAIhB;AAEK,IAAM,eAAe,GAAG,UAAC,IAAI,EAAE,MAAO;IACzC,OAAO,UAAC,QAAQ;QACZ,QAAQ,CAAC,IAAA,WAAG,EAAC,IAAI,EAAE,wBAAkB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;IACzD,CAAC,CAAC;AACN,CAAC,CAAC;AAJW,QAAA,eAAe,mBAI1B;AAEK,IAAM,QAAQ,GAAG,UAAC,IAAI,EAAE,MAAO;IAClC,OAAO,UAAC,QAAQ;QACZ,QAAQ,CAAC,IAAA,WAAG,EAAC,IAAI,EAAE,wBAAkB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;IAC1D,CAAC,CAAC;AACN,CAAC,CAAC;AAJW,QAAA,QAAQ,YAInB;AAEK,IAAM,UAAU,GAAG,UAAC,IAAI,EAAE,MAAO;IACpC,OAAO,UAAC,QAAQ;QACZ,QAAQ,CAAC,IAAA,WAAG,EAAC,IAAI,EAAE,wBAAkB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;IAC5D,CAAC,CAAC;AACN,CAAC,CAAC;AAJW,QAAA,UAAU,cAIrB;AAEK,IAAM,kBAAkB,GAAG;IAC9B,OAAO,UAAC,QAAQ;QACZ,QAAQ,CAAC,IAAA,aAAK,GAAE,CAAC,CAAC;IACtB,CAAC,CAAC;AACN,CAAC,CAAC;AAJW,QAAA,kBAAkB,sBAI7B;AAEF,kBAAe,aAAa,CAAC"}
@@ -1,8 +0,0 @@
1
- export interface INotification {
2
- time: string;
3
- text: string;
4
- type: string;
5
- button?: string;
6
- }
7
- declare const notifications: (state: INotification[], action: any) => any;
8
- export default notifications;
@@ -1,45 +0,0 @@
1
- "use strict";
2
- var __read = (this && this.__read) || function (o, n) {
3
- var m = typeof Symbol === "function" && o[Symbol.iterator];
4
- if (!m) return o;
5
- var i = m.call(o), r, ar = [], e;
6
- try {
7
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
8
- }
9
- catch (error) { e = { error: error }; }
10
- finally {
11
- try {
12
- if (r && !r.done && (m = i["return"])) m.call(i);
13
- }
14
- finally { if (e) throw e.error; }
15
- }
16
- return ar;
17
- };
18
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
19
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
20
- if (ar || !(i in from)) {
21
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
22
- ar[i] = from[i];
23
- }
24
- }
25
- return to.concat(ar || Array.prototype.slice.call(from));
26
- };
27
- var __importDefault = (this && this.__importDefault) || function (mod) {
28
- return (mod && mod.__esModule) ? mod : { "default": mod };
29
- };
30
- Object.defineProperty(exports, "__esModule", { value: true });
31
- var notifications_1 = __importDefault(require("../actions/notifications"));
32
- var initialState = [];
33
- var notifications = function (state, action) {
34
- if (state === void 0) { state = initialState; }
35
- switch (action.type) {
36
- case notifications_1.default.LOG:
37
- return __spreadArray([action.notification], __read(state), false);
38
- case notifications_1.default.CLEAR:
39
- return [];
40
- default:
41
- return state;
42
- }
43
- };
44
- exports.default = notifications;
45
- //# sourceMappingURL=notifications.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../../../src/redux/reducers/notifications.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2EAA+C;AAS/C,IAAM,YAAY,GAAoB,EAAE,CAAC;AAEzC,IAAM,aAAa,GAAG,UAAC,KAAoB,EAAE,MAAM;IAA5B,sBAAA,EAAA,oBAAoB;IACvC,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QAClB,KAAK,uBAAO,CAAC,GAAG;YACZ,sBAAQ,MAAM,CAAC,YAAY,UAAK,KAAK,UAAE;QAC3C,KAAK,uBAAO,CAAC,KAAK;YACd,OAAO,EAAE,CAAC;QACd;YACI,OAAO,KAAK,CAAC;IACrB,CAAC;AACL,CAAC,CAAC;AAEF,kBAAe,aAAa,CAAC"}
@@ -1,2 +0,0 @@
1
- declare const AssetsTableAssetIdFilterMemoized: any;
2
- export default AssetsTableAssetIdFilterMemoized;
@@ -1,20 +0,0 @@
1
- import * as React from 'react';
2
- import TextField from '../text-field/TextField';
3
- import { updateFilters } from '../../redux/actions/asset-filters';
4
- import { connect } from 'react-redux';
5
- import { bindActionCreators } from 'redux';
6
- class AssetsTableAssetIdFilter extends React.PureComponent {
7
- render = () => {
8
- const { assetFilters } = this.props;
9
- return (React.createElement(TextField, { className: 'asset-id', submittable: true, submittableType: 'search', value: assetFilters.id, doSubmit: (n) => this.props.updateFilters({ id: n }) }));
10
- };
11
- }
12
- const mapDispatchToProps = (dispatch) => {
13
- return bindActionCreators({ updateFilters }, dispatch);
14
- };
15
- const mapStateToProps = (state) => {
16
- return { assetFilters: state.assetFilters };
17
- };
18
- const AssetsTableAssetIdFilterMemoized = connect(mapStateToProps, mapDispatchToProps)(React.memo(AssetsTableAssetIdFilter));
19
- export default AssetsTableAssetIdFilterMemoized;
20
- //# sourceMappingURL=AssetsTableAssetIdFilter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AssetsTableAssetIdFilter.js","sourceRoot":"","sources":["../../../../src/components/assets/AssetsTableAssetIdFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAO3C,MAAM,wBAAyB,SAAQ,KAAK,CAAC,aAA6C;IAC/E,MAAM,GAAG,GAAgB,EAAE;QAC9B,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAEpC,OAAO,CACH,oBAAC,SAAS,IACN,SAAS,EAAC,UAAU,EACpB,WAAW,QACX,eAAe,EAAC,QAAQ,EACxB,KAAK,EAAE,YAAY,CAAC,EAAE,EACtB,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,GACtD,CACL,CAAC;IACN,CAAC,CAAC;CACL;AAED,MAAM,kBAAkB,GAAG,CAAC,QAAQ,EAAO,EAAE;IACzC,OAAO,kBAAkB,CAAC,EAAE,aAAa,EAAE,EAAE,QAAQ,CAAC,CAAC;AAC3D,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,KAAK,EAAO,EAAE;IACnC,OAAO,EAAE,YAAY,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC;AAChD,CAAC,CAAC;AAEF,MAAM,gCAAgC,GAAG,OAAO,CAC5C,eAAe,EACf,kBAAkB,CACrB,CAAC,KAAK,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC,CAAC;AACxC,eAAe,gCAAgC,CAAC"}
@@ -1,2 +0,0 @@
1
- declare const AssetsTableNameFilterMemoized: any;
2
- export default AssetsTableNameFilterMemoized;
@@ -1,20 +0,0 @@
1
- import * as React from 'react';
2
- import TextField from '../text-field/TextField';
3
- import { updateFilters } from '../../redux/actions/asset-filters';
4
- import { connect } from 'react-redux';
5
- import { bindActionCreators } from 'redux';
6
- class AssetsTableNameFilter extends React.PureComponent {
7
- render = () => {
8
- const { assetFilters } = this.props;
9
- return (React.createElement(TextField, { className: 'asset-name', submittable: true, submittableType: 'search', value: assetFilters.name, doSubmit: (n) => this.props.updateFilters({ name: n }) }));
10
- };
11
- }
12
- const mapDispatchToProps = (dispatch) => {
13
- return bindActionCreators({ updateFilters }, dispatch);
14
- };
15
- const mapStateToProps = (state) => {
16
- return { assetFilters: state.assetFilters };
17
- };
18
- const AssetsTableNameFilterMemoized = connect(mapStateToProps, mapDispatchToProps)(React.memo(AssetsTableNameFilter));
19
- export default AssetsTableNameFilterMemoized;
20
- //# sourceMappingURL=AssetsTableNameFilter%20copy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AssetsTableNameFilter copy.js","sourceRoot":"","sources":["../../../../src/components/assets/AssetsTableNameFilter copy.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAO3C,MAAM,qBAAsB,SAAQ,KAAK,CAAC,aAA0C;IACzE,MAAM,GAAG,GAAgB,EAAE;QAC9B,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAEpC,OAAO,CACH,oBAAC,SAAS,IACN,SAAS,EAAC,YAAY,EACtB,WAAW,QACX,eAAe,EAAC,QAAQ,EACxB,KAAK,EAAE,YAAY,CAAC,IAAI,EACxB,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,GACxD,CACL,CAAC;IACN,CAAC,CAAC;CACL;AAED,MAAM,kBAAkB,GAAG,CAAC,QAAQ,EAAO,EAAE;IACzC,OAAO,kBAAkB,CAAC,EAAE,aAAa,EAAE,EAAE,QAAQ,CAAC,CAAC;AAC3D,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,KAAK,EAAO,EAAE;IACnC,OAAO,EAAE,YAAY,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC;AAChD,CAAC,CAAC;AAEF,MAAM,6BAA6B,GAAG,OAAO,CACzC,eAAe,EACf,kBAAkB,CACrB,CAAC,KAAK,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC;AACrC,eAAe,6BAA6B,CAAC"}
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- export declare const ConfirmModal: ({ onClose, isOpen, onYes, onNo, storyName }: {
3
- onClose: any;
4
- isOpen: any;
5
- onYes: any;
6
- onNo: any;
7
- storyName: any;
8
- }) => React.JSX.Element;
@@ -1,29 +0,0 @@
1
- import React from 'react';
2
- import ReactDOM from 'react-dom';
3
- import { useHotkeys } from 'react-hotkeys-hook';
4
- import Modal from '../modal/Modal';
5
- import Button from '../button/Button';
6
- import { confirm as copy } from '../../constants/copy';
7
- import Section from '../section/Section';
8
- export const ConfirmModal = ({ onClose, isOpen, onYes, onNo, storyName }) => {
9
- useHotkeys('enter', onYes, { enableOnFormTags: true });
10
- const { yes, no, cancel, title } = copy;
11
- const modal = (React.createElement(Modal, { onRequestClose: onClose, wrapperStyle: {
12
- left: '0px',
13
- width: '100%',
14
- }, style: {
15
- width: '400px',
16
- height: '13%',
17
- top: 'calc(50% - 150px)',
18
- left: 'calc((100% - 400px) / 2)'
19
- }, isOpen: isOpen },
20
- React.createElement(Section, { title: title.replace('[story]', storyName) },
21
- React.createElement("div", { className: 'confirm-modal' },
22
- React.createElement("div", { className: 'confirm-buttons' },
23
- React.createElement(Button, { onClick: onClose, size: 'large', color: 'default' }, cancel),
24
- React.createElement(Button, { onClick: onNo, size: 'large', color: 'default' }, no),
25
- React.createElement(Button, { onClick: onYes, size: 'large', style: 'bold', color: 'primary' }, yes))))));
26
- const PortalContextComponent = () => ReactDOM.createPortal(modal, document.querySelector('#react-root'));
27
- return React.createElement(PortalContextComponent, null);
28
- };
29
- //# sourceMappingURL=ConfirmModal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ConfirmModal.js","sourceRoot":"","sources":["../../../../src/components/confirm-modal/ConfirmModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,QAAQ,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,O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C,CACP,CACJ,CACA,CACN,CACX,CAAC;IAEF,MAAM,sBAAsB,GAAG,GAAG,EAAE,CAChC,QAAQ,CAAC,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC;IAExE,OAAO,oBAAC,sBAAsB,OAAG,CAAC;AACtC,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- declare const notifications: any;
2
- export declare const log: (text: any, type: any, button?: any) => any;
3
- export declare const clear: () => any;
4
- export declare const logNotification: (text: any, button?: any) => any;
5
- export declare const logError: (text: any, button?: any) => any;
6
- export declare const logWarning: (text: any, button?: any) => any;
7
- export declare const clearNotifications: () => any;
8
- export default notifications;
@@ -1,47 +0,0 @@
1
- import { NOTIFICATION_TYPES } from '../../constants/api';
2
- import { getNotificationTime } from '../../Util';
3
- const notifications = {
4
- LOG: 'notifications/LOG',
5
- CLEAR: 'notifications/LOG'
6
- };
7
- export const log = (text, type, button) => {
8
- const time = getNotificationTime();
9
- return (dispatch) => {
10
- dispatch({
11
- type: notifications.LOG,
12
- notification: {
13
- time,
14
- text,
15
- type,
16
- button
17
- }
18
- });
19
- };
20
- };
21
- export const clear = () => {
22
- return (dispatch) => {
23
- dispatch({ type: notifications.CLEAR });
24
- };
25
- };
26
- export const logNotification = (text, button) => {
27
- return (dispatch) => {
28
- dispatch(log(text, NOTIFICATION_TYPES.INFO, button));
29
- };
30
- };
31
- export const logError = (text, button) => {
32
- return (dispatch) => {
33
- dispatch(log(text, NOTIFICATION_TYPES.ERROR, button));
34
- };
35
- };
36
- export const logWarning = (text, button) => {
37
- return (dispatch) => {
38
- dispatch(log(text, NOTIFICATION_TYPES.WARNING, button));
39
- };
40
- };
41
- export const clearNotifications = () => {
42
- return (dispatch) => {
43
- dispatch(clear());
44
- };
45
- };
46
- export default notifications;
47
- //# sourceMappingURL=notifications.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../../../src/redux/actions/notifications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AC,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,IAAI,EAAE,MAAO,EAAO,EAAE;IAC7C,OAAO,CAAC,QAAQ,EAAE,EAAE;QAChB,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,kBAAkB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;IAC5D,CAAC,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAQ,EAAE;IACxC,OAAO,CAAC,QAAQ,EAAE,EAAE;QAChB,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC;IACtB,CAAC,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,8 +0,0 @@
1
- export interface INotification {
2
- time: string;
3
- text: string;
4
- type: string;
5
- button?: string;
6
- }
7
- declare const notifications: (state: INotification[], action: any) => any;
8
- export default notifications;
@@ -1,14 +0,0 @@
1
- import actions from '../actions/notifications';
2
- const initialState = [];
3
- const notifications = (state = initialState, action) => {
4
- switch (action.type) {
5
- case actions.LOG:
6
- return [action.notification, ...state];
7
- case actions.CLEAR:
8
- return [];
9
- default:
10
- return state;
11
- }
12
- };
13
- export default notifications;
14
- //# sourceMappingURL=notifications.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../../../src/redux/reducers/notifications.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,0BAA0B,CAAC;AAS/C,MAAM,YAAY,GAAoB,EAAE,CAAC;AAEzC,MAAM,aAAa,GAAG,CAAC,KAAK,GAAG,YAAY,EAAE,MAAM,EAAO,EAAE;IACxD,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QAClB,KAAK,OAAO,CAAC,GAAG;YACZ,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,GAAG,KAAK,CAAC,CAAC;QAC3C,KAAK,OAAO,CAAC,KAAK;YACd,OAAO,EAAE,CAAC;QACd;YACI,OAAO,KAAK,CAAC;IACrB,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}