@imposium-hub/components 2.5.6-0 → 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 (94) 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/data-table/Paginator.js +41 -7
  14. package/dist/cjs/components/data-table/Paginator.js.map +1 -1
  15. package/dist/cjs/components/error-message-preview/ErrorMessagePreview.d.ts +15 -0
  16. package/dist/cjs/components/error-message-preview/ErrorMessagePreview.js +91 -0
  17. package/dist/cjs/components/error-message-preview/ErrorMessagePreview.js.map +1 -0
  18. package/dist/cjs/components/header/Header_BACKUP_73021.d.ts +33 -0
  19. package/dist/cjs/components/header/Header_BACKUP_73021.js +393 -0
  20. package/dist/cjs/components/header/Header_BACKUP_73021.js.map +1 -0
  21. package/dist/cjs/components/header/Header_BASE_73021.d.ts +29 -0
  22. package/dist/cjs/components/header/Header_BASE_73021.js +376 -0
  23. package/dist/cjs/components/header/Header_BASE_73021.js.map +1 -0
  24. package/dist/cjs/components/header/Header_LOCAL_73021.d.ts +33 -0
  25. package/dist/cjs/components/header/Header_LOCAL_73021.js +382 -0
  26. package/dist/cjs/components/header/Header_LOCAL_73021.js.map +1 -0
  27. package/dist/cjs/components/header/Header_REMOTE_73021.d.ts +30 -0
  28. package/dist/cjs/components/header/Header_REMOTE_73021.js +386 -0
  29. package/dist/cjs/components/header/Header_REMOTE_73021.js.map +1 -0
  30. package/dist/cjs/components/publish-wizard/PublishWizard.js.map +1 -1
  31. package/dist/cjs/components/story-previewer/StoryPreviewer.js +14 -10
  32. package/dist/cjs/components/story-previewer/StoryPreviewer.js.map +1 -1
  33. package/dist/cjs/redux/actions/publish.js +0 -1
  34. package/dist/cjs/redux/actions/publish.js.map +1 -1
  35. package/dist/esm/components/app-wrapper/AppWrapper_BACKUP_73190.d.ts +27 -0
  36. package/dist/esm/components/app-wrapper/AppWrapper_BACKUP_73190.js +194 -0
  37. package/dist/esm/components/app-wrapper/AppWrapper_BACKUP_73190.js.map +1 -0
  38. package/dist/esm/components/app-wrapper/AppWrapper_BASE_73190.d.ts +28 -0
  39. package/dist/esm/components/app-wrapper/AppWrapper_BASE_73190.js +208 -0
  40. package/dist/esm/components/app-wrapper/AppWrapper_BASE_73190.js.map +1 -0
  41. package/dist/esm/components/app-wrapper/AppWrapper_LOCAL_73190.d.ts +27 -0
  42. package/dist/esm/components/app-wrapper/AppWrapper_LOCAL_73190.js +194 -0
  43. package/dist/esm/components/app-wrapper/AppWrapper_LOCAL_73190.js.map +1 -0
  44. package/dist/esm/components/app-wrapper/AppWrapper_REMOTE_73190.d.ts +28 -0
  45. package/dist/esm/components/app-wrapper/AppWrapper_REMOTE_73190.js +204 -0
  46. package/dist/esm/components/app-wrapper/AppWrapper_REMOTE_73190.js.map +1 -0
  47. package/dist/esm/components/data-table/Paginator.js +64 -44
  48. package/dist/esm/components/data-table/Paginator.js.map +1 -1
  49. package/dist/esm/components/error-message-preview/ErrorMessagePreview.d.ts +15 -0
  50. package/dist/esm/components/error-message-preview/ErrorMessagePreview.js +35 -0
  51. package/dist/esm/components/error-message-preview/ErrorMessagePreview.js.map +1 -0
  52. package/dist/esm/components/header/Header_BACKUP_73021.d.ts +33 -0
  53. package/dist/esm/components/header/Header_BACKUP_73021.js +336 -0
  54. package/dist/esm/components/header/Header_BACKUP_73021.js.map +1 -0
  55. package/dist/esm/components/header/Header_BASE_73021.d.ts +29 -0
  56. package/dist/esm/components/header/Header_BASE_73021.js +322 -0
  57. package/dist/esm/components/header/Header_BASE_73021.js.map +1 -0
  58. package/dist/esm/components/header/Header_LOCAL_73021.d.ts +33 -0
  59. package/dist/esm/components/header/Header_LOCAL_73021.js +328 -0
  60. package/dist/esm/components/header/Header_LOCAL_73021.js.map +1 -0
  61. package/dist/esm/components/header/Header_REMOTE_73021.d.ts +30 -0
  62. package/dist/esm/components/header/Header_REMOTE_73021.js +329 -0
  63. package/dist/esm/components/header/Header_REMOTE_73021.js.map +1 -0
  64. package/dist/esm/components/publish-wizard/PublishWizard.js.map +1 -1
  65. package/dist/esm/components/story-previewer/StoryPreviewer.js +14 -10
  66. package/dist/esm/components/story-previewer/StoryPreviewer.js.map +1 -1
  67. package/dist/esm/redux/actions/publish.js +0 -1
  68. package/dist/esm/redux/actions/publish.js.map +1 -1
  69. package/dist/styles.css +0 -3
  70. package/dist/styles.less +4 -9
  71. package/less/components/assets.less +4 -9
  72. package/package.json +1 -1
  73. package/src/components/data-table/Paginator.tsx +125 -93
  74. package/src/components/publish-wizard/PublishWizard.tsx +1 -2
  75. package/src/components/story-previewer/StoryPreviewer.tsx +16 -14
  76. package/src/redux/actions/publish.ts +1 -1
  77. package/dist/cjs/components/confirm-modal/ConfirmModal.d.ts +0 -8
  78. package/dist/cjs/components/confirm-modal/ConfirmModal.js +0 -39
  79. package/dist/cjs/components/confirm-modal/ConfirmModal.js.map +0 -1
  80. package/dist/cjs/redux/actions/notifications.d.ts +0 -8
  81. package/dist/cjs/redux/actions/notifications.js +0 -56
  82. package/dist/cjs/redux/actions/notifications.js.map +0 -1
  83. package/dist/cjs/redux/reducers/notifications.d.ts +0 -8
  84. package/dist/cjs/redux/reducers/notifications.js +0 -45
  85. package/dist/cjs/redux/reducers/notifications.js.map +0 -1
  86. package/dist/esm/components/confirm-modal/ConfirmModal.d.ts +0 -8
  87. package/dist/esm/components/confirm-modal/ConfirmModal.js +0 -29
  88. package/dist/esm/components/confirm-modal/ConfirmModal.js.map +0 -1
  89. package/dist/esm/redux/actions/notifications.d.ts +0 -8
  90. package/dist/esm/redux/actions/notifications.js +0 -47
  91. package/dist/esm/redux/actions/notifications.js.map +0 -1
  92. package/dist/esm/redux/reducers/notifications.d.ts +0 -8
  93. package/dist/esm/redux/reducers/notifications.js +0 -14
  94. package/dist/esm/redux/reducers/notifications.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"publish.js","sourceRoot":"","sources":["../../../../src/redux/actions/publish.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,sBAAsB,CAAC;AAG7C,MAAM,OAAO,GAAQ;IACjB,oBAAoB,EAAE,8BAA8B;IACpD,qBAAqB,EAAE,+BAA+B;CACzD,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,GAAiB,EAAE,OAAe,EAAO,EAAE;IAC7E,OAAO,CAAC,QAAQ,EAAE,EAAE;QAChB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACnC,GAAG,CAAC,cAAc,CAAC,OAAO,CAAC;iBACtB,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE;gBAChB,IAAI,SAAS,EAAE,CAAC;oBACZ,IAAI,SAAS,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;wBAChC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;oBAC5B,CAAC;oBAED,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,qBAAqB,EAAE,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,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAAC;IACrD,CAAC,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
package/dist/styles.css CHANGED
@@ -501,9 +501,6 @@ body a {
501
501
  .asset-details .rta .rta__autocomplete {
502
502
  left: 105px !important;
503
503
  }
504
- .tags-column .form-field .form-field-buttons {
505
- z-index: auto;
506
- }
507
504
  .tags-column .rta .rta__autocomplete {
508
505
  width: 173px;
509
506
  z-index: 1001;
package/dist/styles.less CHANGED
@@ -567,15 +567,10 @@ body{
567
567
  }
568
568
  }
569
569
 
570
- .tags-column {
571
- .form-field .form-field-buttons {
572
- z-index: auto;
573
- }
574
- .rta .rta__autocomplete {
575
- width: 173px;
576
- z-index: 1001;
577
- }
578
- }
570
+ .tags-column .rta .rta__autocomplete {
571
+ width: 173px;
572
+ z-index: 1001;
573
+ }
579
574
 
580
575
  .asset-details .rta .rta__autocomplete {
581
576
  width: 362px;
@@ -321,15 +321,10 @@
321
321
  }
322
322
  }
323
323
 
324
- .tags-column {
325
- .form-field .form-field-buttons {
326
- z-index: auto;
327
- }
328
- .rta .rta__autocomplete {
329
- width: 173px;
330
- z-index: 1001;
331
- }
332
- }
324
+ .tags-column .rta .rta__autocomplete {
325
+ width: 173px;
326
+ z-index: 1001;
327
+ }
333
328
 
334
329
  .asset-details .rta .rta__autocomplete {
335
330
  width: 362px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imposium-hub/components",
3
- "version": "2.5.6-0",
3
+ "version": "2.5.6",
4
4
  "description": "React & Typescript component / asset library for Imposium front-ends",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -26,102 +26,134 @@ const Paginator: React.FC<any> = ({
26
26
  setPageSize,
27
27
  itemsPerPage,
28
28
  onItemsPerPage
29
- }) => (
30
- <section className='ip-table-pagination'>
31
- <span>
32
- <Button
33
- style='subtle'
34
- size='small'
35
- tooltip='Go to first page'
36
- disabled={!canPreviousPage}
37
- onClick={() => gotoPage(1, pageSize)}>
38
- {ICON_ANGLE_DOUBLE_LEFT}
39
- </Button>
40
- <Button
41
- style='subtle'
42
- size='small'
43
- tooltip='Go to previous page'
44
- disabled={!canPreviousPage}
45
- onClick={() => previousPage()}>
46
- {ICON_ANGLE_LEFT}
47
- </Button>
48
- <Button
49
- style='subtle'
50
- size='small'
51
- tooltip='Go to next page'
52
- disabled={!canNextPage}
53
- onClick={() => nextPage()}>
54
- {ICON_ANGLE_RIGHT}
55
- </Button>
56
- <Button
57
- style='subtle'
58
- size='small'
59
- tooltip='Go to last page'
60
- disabled={!canNextPage}
61
- onClick={() => gotoPage(pageCount, pageSize)}>
62
- {ICON_ANGLE_DOUBLE_RIGHT}
63
- </Button>
64
- &nbsp;&nbsp;
29
+ }) => {
30
+ const [getPageIndex, setPageIndex] = React.useState<number>(pageIndex);
31
+ const [getItemsPerPage, setItemsPerPage] = React.useState<number>(itemsPerPage);
32
+
33
+ const onItemsPerPageBlur = () => {
34
+ onItemsPerPage(getItemsPerPage);
35
+ };
36
+
37
+ const onGoToPageBlur = () => {
38
+ gotoPage(getPageIndex, pageSize);
39
+ };
40
+
41
+ const onItemsPerPageKeyDown = (e) => {
42
+ if (e.key === 'Enter') {
43
+ onItemsPerPage(getItemsPerPage);
44
+ }
45
+ };
46
+
47
+ const onGoToPageKeyDown = (e) => {
48
+ if (e.key === 'Enter') {
49
+ gotoPage(getPageIndex, pageSize);
50
+ }
51
+ };
52
+
53
+ return (
54
+ <section className='ip-table-pagination'>
65
55
  <span>
66
- {copy.table.page}&nbsp;&nbsp;
67
- <strong>
68
- {pageIndex} of {pageCount}
69
- </strong>
56
+ <Button
57
+ style='subtle'
58
+ size='small'
59
+ tooltip='Go to first page'
60
+ disabled={!canPreviousPage}
61
+ onClick={() => gotoPage(1, pageSize)}>
62
+ {ICON_ANGLE_DOUBLE_LEFT}
63
+ </Button>
64
+ <Button
65
+ style='subtle'
66
+ size='small'
67
+ tooltip='Go to previous page'
68
+ disabled={!canPreviousPage}
69
+ onClick={() => previousPage()}>
70
+ {ICON_ANGLE_LEFT}
71
+ </Button>
72
+ <Button
73
+ style='subtle'
74
+ size='small'
75
+ tooltip='Go to next page'
76
+ disabled={!canNextPage}
77
+ onClick={() => nextPage()}>
78
+ {ICON_ANGLE_RIGHT}
79
+ </Button>
80
+ <Button
81
+ style='subtle'
82
+ size='small'
83
+ tooltip='Go to last page'
84
+ disabled={!canNextPage}
85
+ onClick={() => gotoPage(pageCount, pageSize)}>
86
+ {ICON_ANGLE_DOUBLE_RIGHT}
87
+ </Button>
70
88
  &nbsp;&nbsp;
89
+ <span>
90
+ {copy.table.page}&nbsp;&nbsp;
91
+ <strong>
92
+ {getPageIndex} of {pageCount}
93
+ </strong>
94
+ &nbsp;&nbsp;
95
+ </span>
96
+ <span>
97
+ {copy.table.goToPage}&nbsp;&nbsp;
98
+ <input
99
+ className='paginator-input'
100
+ type='number'
101
+ placeholder={getPageIndex.toString()}
102
+ onChange={(e) => {
103
+ const input = e.target.value;
104
+ const inputNum = Number(input);
105
+ let next: number;
106
+
107
+ clearTimeout(textInputTimeout);
108
+
109
+ if (!input || inputNum < 1 || inputNum > pageCount) {
110
+ return;
111
+ }
112
+
113
+ if (inputNum >= 1 && inputNum <= pageCount) {
114
+ next = inputNum;
115
+ }
116
+
117
+ textInputTimeout = window.setTimeout(() => setPageIndex(next), 300);
118
+ }}
119
+ onBlur={() => onGoToPageBlur()}
120
+ onKeyDown={(e) => onGoToPageKeyDown(e)}
121
+ />
122
+ </span>
123
+ &nbsp;&nbsp;
124
+ <span>
125
+ {copy.table.itemsPerPage}&nbsp;&nbsp;
126
+ <input
127
+ className='paginator-input'
128
+ type='number'
129
+ placeholder={getItemsPerPage.toString()}
130
+ min={1}
131
+ onChange={(e) => {
132
+ const input = e.target.value;
133
+ const inputNum = Number(input);
134
+
135
+ clearTimeout(textInputTimeout);
136
+
137
+ if (!input || inputNum < 1) {
138
+ return;
139
+ }
140
+
141
+ textInputTimeout = window.setTimeout(
142
+ () => setItemsPerPage(inputNum),
143
+ 300
144
+ );
145
+ }}
146
+ onBlur={() => onItemsPerPageBlur()}
147
+ onKeyDown={(e) => onItemsPerPageKeyDown(e)}
148
+ />
149
+ </span>
71
150
  </span>
72
- <span>
73
- {copy.table.goToPage}&nbsp;&nbsp;
74
- <input
75
- className='paginator-input'
76
- type='number'
77
- placeholder={pageIndex}
78
- onChange={(e) => {
79
- const input = e.target.value;
80
- const inputNum = Number(input);
81
- let next: number;
82
-
83
- clearTimeout(textInputTimeout);
84
-
85
- if (!input || inputNum < 1 || inputNum > pageCount) {
86
- return;
87
- }
88
-
89
- if (inputNum >= 1 && inputNum <= pageCount) {
90
- next = inputNum;
91
- }
92
-
93
- textInputTimeout = window.setTimeout(() => gotoPage(next, pageSize), 300);
94
- }}
95
- />
96
- </span>
97
- &nbsp;&nbsp;
98
- <span>
99
- {copy.table.itemsPerPage}&nbsp;&nbsp;
100
- <input
101
- className='paginator-input'
102
- type='number'
103
- placeholder={itemsPerPage}
104
- min={1}
105
- onChange={(e) => {
106
- const input = e.target.value;
107
- const inputNum = Number(input);
108
-
109
- clearTimeout(textInputTimeout);
110
-
111
- if (!input || inputNum < 1) {
112
- return;
113
- }
114
-
115
- textInputTimeout = window.setTimeout(() => onItemsPerPage(inputNum), 300);
116
- }}
117
- />
118
- </span>
119
- </span>
120
151
 
121
- <span className='total-assets'>
122
- {copy.table.total}&nbsp;&nbsp;<strong>{totalItems || 0}</strong>
123
- </span>
124
- </section>
125
- );
152
+ <span className='total-assets'>
153
+ {copy.table.total}&nbsp;&nbsp;<strong>{totalItems || 0}</strong>
154
+ </span>
155
+ </section>
156
+ );
157
+ };
126
158
 
127
159
  export default Paginator;
@@ -29,6 +29,7 @@ interface IPublishWizardProps {
29
29
  creativeManagerBaseUrl?: string;
30
30
  story: any;
31
31
  project: any;
32
+ editor: any;
32
33
  updateScene(d): void;
33
34
  editStory(s): void;
34
35
  checkStoryForErrors(): any;
@@ -121,10 +122,8 @@ class PublishWizard extends React.PureComponent<IPublishWizardProps, IPublishWiz
121
122
  const {
122
123
  publishData: { unpublished_changes }
123
124
  } = props;
124
-
125
125
  const screenIndex =
126
126
  unpublished_changes === undefined || unpublished_changes === true ? 0 : 1;
127
-
128
127
  this.state = {
129
128
  compositions: [],
130
129
  afterEffects: [],
@@ -65,7 +65,7 @@ class StoryPreviewer extends React.PureComponent<IStoryPreviewerProps, IStoryPre
65
65
 
66
66
  private evtHandlers: any;
67
67
 
68
- private TIMEOUT: number = 120000;
68
+ private TIMEOUT: string = '02:00';
69
69
 
70
70
  private maxPlaybackRate = 3;
71
71
 
@@ -210,8 +210,20 @@ class StoryPreviewer extends React.PureComponent<IStoryPreviewerProps, IStoryPre
210
210
  });
211
211
  }
212
212
 
213
+ if (this.props.notifications) {
214
+ if (this.props.notifications[0]) {
215
+ if (this.props.notifications[0]['type'] === 'error') {
216
+ this.setState({ isTimeOut: true });
217
+ }
218
+
219
+ if (this.props.notifications[0]['type'] === 'info') {
220
+ this.setState({ isTimeOut: false });
221
+ }
222
+ }
223
+ }
224
+
213
225
  if (prevState.timeElapsed !== this.state.timeElapsed) {
214
- if (this.state.timeElapsed >= this.TIMEOUT && !this.state.experience) {
226
+ if (formattedTime(this.state.timeElapsed) === this.TIMEOUT && !this.state.experience) {
215
227
  const { onError, api } = this.props;
216
228
  const { experienceId } = this.state;
217
229
 
@@ -558,24 +570,14 @@ class StoryPreviewer extends React.PureComponent<IStoryPreviewerProps, IStoryPre
558
570
  }
559
571
  })
560
572
  .catch((e) => {
573
+ this.resetState();
561
574
  if (onError) {
562
575
  if (e.error) {
563
576
  onError(copy.runExpError.replace('[error]', e.error));
564
- this.resetState(
565
- true,
566
- () => {
567
- this.setState({
568
- isTimeOut: true,
569
- errorMsg: e.error
570
- });
571
- },
572
- experienceId
573
- );
574
577
  } else {
575
578
  onError(
576
579
  copy.runExpIdError.replace('[expId]', experienceId)
577
580
  );
578
- this.resetState();
579
581
  }
580
582
  }
581
583
  });
@@ -680,7 +682,7 @@ class StoryPreviewer extends React.PureComponent<IStoryPreviewerProps, IStoryPre
680
682
  {copy.time}&nbsp;{formattedTime(timeElapsed)}
681
683
  </p>
682
684
  <br />
683
- {errorMsg ? <p>{`${copy.runExpError.replace('[error]', errorMsg)}`}</p> : ''}
685
+ <p>{`${copy.runExpError.replace('[error]', errorMsg)}`}</p>
684
686
  </div>
685
687
  );
686
688
  } else if (experience && activeOutput) {
@@ -17,7 +17,7 @@ export const getStoryPublishStatus = (api: IImposiumAPI, storyId: string): any =
17
17
  }
18
18
 
19
19
  dispatch({ type: publish.UPDATE_PUBLISH_STATUS, data: resStatus });
20
- resolve(resStatus);
20
+
21
21
  if (resStatus.publishing) {
22
22
  const jobId = resStatus.job_id;
23
23
  api.pollJob(jobId)
@@ -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,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,GA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,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,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,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,MAAM,MAAM,kBAAkB,CAAC;AACtC,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,OAAO,MAAM,oBAAoB,CAAC;AACzC,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE;IACxE,UAAU,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,gBAAgB,EAAE,IAAI,EAAE,CAAC,CAAC;IACvD,MAAM,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IAExC,MAAM,KAAK,GAAG,CACV,oBAAC,KAAK,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,oBAAC,OAAO,IAAC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC;YAC/C,6BAAK,SAAS,EAAC,eAAe;gBAC1B,6BAAK,SAAS,EAAC,iBAAiB;oBAC5B,oBAAC,MAAM,IACH,OAAO,EAAE,OAAO,EAChB,IAAI,EAAC,OAAO,EACZ,KAAK,EAAC,SAAS,IACd,MAAM,CACF;oBACT,oBAAC,MAAM,IACH,OAAO,EAAE,IAAI,EACb,IAAI,EAAC,OAAO,EACZ,KAAK,EAAC,SAAS,IACd,EAAE,CACE;oBACT,oBAAC,MAAM,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,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;