@imposium-hub/components 2.5.10-2 → 2.5.10-20
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/dist/cjs/components/app-wrapper/AppWrapper.js +5 -2
- package/dist/cjs/components/app-wrapper/AppWrapper.js.map +1 -1
- package/dist/cjs/components/assets/AssetsTableAssetIdCell.js +0 -2
- package/dist/cjs/components/assets/AssetsTableAssetIdCell.js.map +1 -1
- package/dist/cjs/components/assets/AssetsTableAssetIdFilter.js.map +1 -1
- package/dist/cjs/components/assets/StoryTableNameFilter.d.ts +2 -0
- package/dist/cjs/components/assets/{AssetsTableAssetIdFilter copy.js → StoryTableNameFilter.js} +12 -12
- package/dist/cjs/components/assets/StoryTableNameFilter.js.map +1 -0
- package/dist/cjs/components/confirm-modal/ConfirmModal.d.ts +9 -9
- package/dist/cjs/components/confirm-modal/ConfirmModal.js +101 -12
- package/dist/cjs/components/confirm-modal/ConfirmModal.js.map +1 -1
- package/dist/cjs/components/data-table/Paginator.js +7 -41
- package/dist/cjs/components/data-table/Paginator.js.map +1 -1
- package/dist/cjs/components/story-previewer/StoryPreviewer.js +2 -1
- package/dist/cjs/components/story-previewer/StoryPreviewer.js.map +1 -1
- package/dist/cjs/constants/copy.js +2 -2
- package/dist/cjs/constants/copy.js.map +1 -1
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/redux/actions/asset-filters copy.d.ts +4 -0
- package/dist/cjs/redux/actions/asset-filters copy.js +18 -0
- package/dist/cjs/redux/actions/asset-filters copy.js.map +1 -0
- package/dist/cjs/redux/actions/asset-list.js +33 -42
- package/dist/cjs/redux/actions/asset-list.js.map +1 -1
- package/dist/cjs/redux/actions/story-filter.d.ts +4 -0
- package/dist/cjs/redux/actions/story-filter.js +18 -0
- package/dist/cjs/redux/actions/story-filter.js.map +1 -0
- package/dist/cjs/redux/actions/story-filters.d.ts +4 -0
- package/dist/cjs/redux/actions/story-filters.js +18 -0
- package/dist/cjs/redux/actions/story-filters.js.map +1 -0
- package/dist/cjs/redux/reducers/asset-filters copy.d.ts +2 -0
- package/dist/cjs/redux/reducers/asset-filters copy.js +39 -0
- package/dist/cjs/redux/reducers/asset-filters copy.js.map +1 -0
- package/dist/cjs/redux/reducers/story-filter.d.ts +2 -0
- package/dist/cjs/redux/reducers/story-filter.js +33 -0
- package/dist/cjs/redux/reducers/story-filter.js.map +1 -0
- package/dist/cjs/redux/reducers/story-filters.d.ts +2 -0
- package/dist/cjs/redux/reducers/story-filters.js +33 -0
- package/dist/cjs/redux/reducers/story-filters.js.map +1 -0
- package/dist/cjs/services/API.d.ts +3 -0
- package/dist/cjs/services/API.js +9 -0
- package/dist/cjs/services/API.js.map +1 -1
- package/dist/esm/components/app-wrapper/AppWrapper.js +5 -2
- package/dist/esm/components/app-wrapper/AppWrapper.js.map +1 -1
- package/dist/esm/components/assets/AssetsTableAssetIdCell.js +0 -2
- package/dist/esm/components/assets/AssetsTableAssetIdCell.js.map +1 -1
- package/dist/esm/components/assets/AssetsTableAssetIdFilter.js.map +1 -1
- package/dist/esm/components/assets/StoryTableNameFilter.d.ts +2 -0
- package/dist/esm/components/assets/StoryTableNameFilter.js +20 -0
- package/dist/esm/components/assets/StoryTableNameFilter.js.map +1 -0
- package/dist/esm/components/confirm-modal/ConfirmModal.d.ts +9 -9
- package/dist/esm/components/confirm-modal/ConfirmModal.js +53 -11
- package/dist/esm/components/confirm-modal/ConfirmModal.js.map +1 -1
- package/dist/esm/components/data-table/Paginator.js +44 -64
- package/dist/esm/components/data-table/Paginator.js.map +1 -1
- package/dist/esm/components/story-previewer/StoryPreviewer.js +2 -1
- package/dist/esm/components/story-previewer/StoryPreviewer.js.map +1 -1
- package/dist/esm/constants/copy.js +2 -2
- package/dist/esm/constants/copy.js.map +1 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/redux/actions/asset-filters copy.d.ts +4 -0
- package/dist/esm/redux/actions/asset-filters copy.js +13 -0
- package/dist/esm/redux/actions/asset-filters copy.js.map +1 -0
- package/dist/esm/redux/actions/asset-list.js +33 -42
- package/dist/esm/redux/actions/asset-list.js.map +1 -1
- package/dist/esm/redux/actions/story-filter.d.ts +4 -0
- package/dist/esm/redux/actions/story-filter.js +13 -0
- package/dist/esm/redux/actions/story-filter.js.map +1 -0
- package/dist/esm/redux/actions/story-filters.d.ts +4 -0
- package/dist/esm/redux/actions/story-filters.js +13 -0
- package/dist/esm/redux/actions/story-filters.js.map +1 -0
- package/dist/esm/redux/reducers/asset-filters copy.d.ts +2 -0
- package/dist/esm/redux/reducers/asset-filters copy.js +22 -0
- package/dist/esm/redux/reducers/asset-filters copy.js.map +1 -0
- package/dist/esm/redux/reducers/story-filter.d.ts +2 -0
- package/dist/esm/redux/reducers/story-filter.js +16 -0
- package/dist/esm/redux/reducers/story-filter.js.map +1 -0
- package/dist/esm/redux/reducers/story-filters.d.ts +2 -0
- package/dist/esm/redux/reducers/story-filters.js +16 -0
- package/dist/esm/redux/reducers/story-filters.js.map +1 -0
- package/dist/esm/services/API.d.ts +3 -0
- package/dist/esm/services/API.js +9 -0
- package/dist/esm/services/API.js.map +1 -1
- package/package.json +1 -1
- package/src/components/app-wrapper/AppWrapper.tsx +3 -4
- package/src/components/confirm-modal/ConfirmModal.tsx +75 -20
- package/src/components/data-table/Paginator.tsx +93 -125
- package/src/components/story-previewer/StoryPreviewer.tsx +2 -3
- package/src/constants/copy.ts +2 -2
- package/src/index.ts +3 -2
- package/src/redux/actions/asset-list.ts +36 -44
- package/src/services/API.ts +15 -0
- package/dist/cjs/components/assets/AssetsTableAssetIdFilter copy.d.ts +0 -2
- package/dist/cjs/components/assets/AssetsTableAssetIdFilter copy.js.map +0 -1
- package/dist/cjs/redux/actions/notifications.d.ts +0 -8
- package/dist/cjs/redux/actions/notifications.js +0 -56
- package/dist/cjs/redux/actions/notifications.js.map +0 -1
- package/dist/cjs/redux/reducers/notifications.d.ts +0 -8
- package/dist/cjs/redux/reducers/notifications.js +0 -45
- package/dist/cjs/redux/reducers/notifications.js.map +0 -1
- package/dist/esm/components/assets/AssetsTableAssetIdFilter copy.d.ts +0 -2
- package/dist/esm/components/assets/AssetsTableAssetIdFilter copy.js +0 -20
- package/dist/esm/components/assets/AssetsTableAssetIdFilter copy.js.map +0 -1
- package/dist/esm/redux/actions/notifications.d.ts +0 -8
- package/dist/esm/redux/actions/notifications.js +0 -47
- package/dist/esm/redux/actions/notifications.js.map +0 -1
- package/dist/esm/redux/reducers/notifications.d.ts +0 -8
- package/dist/esm/redux/reducers/notifications.js +0 -14
- package/dist/esm/redux/reducers/notifications.js.map +0 -1
|
@@ -26,134 +26,102 @@ const Paginator: React.FC<any> = ({
|
|
|
26
26
|
setPageSize,
|
|
27
27
|
itemsPerPage,
|
|
28
28
|
onItemsPerPage
|
|
29
|
-
}) =>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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
|
+
|
|
55
65
|
<span>
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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>
|
|
88
|
-
|
|
89
|
-
<span>
|
|
90
|
-
{copy.table.page}
|
|
91
|
-
<strong>
|
|
92
|
-
{getPageIndex} of {pageCount}
|
|
93
|
-
</strong>
|
|
94
|
-
|
|
95
|
-
</span>
|
|
96
|
-
<span>
|
|
97
|
-
{copy.table.goToPage}
|
|
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>
|
|
66
|
+
{copy.table.page}
|
|
67
|
+
<strong>
|
|
68
|
+
{pageIndex} of {pageCount}
|
|
69
|
+
</strong>
|
|
123
70
|
|
|
124
|
-
<span>
|
|
125
|
-
{copy.table.itemsPerPage}
|
|
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>
|
|
150
71
|
</span>
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
72
|
+
<span>
|
|
73
|
+
{copy.table.goToPage}
|
|
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
|
+
|
|
98
|
+
<span>
|
|
99
|
+
{copy.table.itemsPerPage}
|
|
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
|
+
/>
|
|
154
118
|
</span>
|
|
155
|
-
</
|
|
156
|
-
|
|
157
|
-
|
|
119
|
+
</span>
|
|
120
|
+
|
|
121
|
+
<span className='total-assets'>
|
|
122
|
+
{copy.table.total} <strong>{totalItems || 0}</strong>
|
|
123
|
+
</span>
|
|
124
|
+
</section>
|
|
125
|
+
);
|
|
158
126
|
|
|
159
127
|
export default Paginator;
|
|
@@ -137,15 +137,14 @@ class StoryPreviewer extends React.PureComponent<IStoryPreviewerProps, IStoryPre
|
|
|
137
137
|
const { variables } = this.props;
|
|
138
138
|
const inventoryOverrides = this.props.editor?.inventoryOverrides;
|
|
139
139
|
const newInv = {};
|
|
140
|
-
|
|
141
140
|
for (const i in variables) {
|
|
142
141
|
if (variables.hasOwnProperty(i)) {
|
|
143
142
|
const override = inventoryOverrides ? inventoryOverrides[i] : null;
|
|
144
143
|
const inv = variables[i];
|
|
145
|
-
newInv[inv.id] =
|
|
144
|
+
newInv[inv.id] =
|
|
145
|
+
override !== null ? override : this.getVariableValue(inv.previewItem);
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
|
-
|
|
149
148
|
return newInv;
|
|
150
149
|
}
|
|
151
150
|
|
package/src/constants/copy.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -158,7 +158,7 @@ import ContextMenuItem from './components/context-menu/ContextMenuItem';
|
|
|
158
158
|
import ContextMenuTrigger from './components/context-menu/ContextMenuTrigger';
|
|
159
159
|
import CopyPropIdButton from './components/copy-prop-id-button/CopyPropIdButton';
|
|
160
160
|
import Submenu from './components/context-menu/SubMenu';
|
|
161
|
-
import { ConfirmModal } from './components/confirm-modal/ConfirmModal';
|
|
161
|
+
import { ConfirmModal, IConfirmModalProps } from './components/confirm-modal/ConfirmModal';
|
|
162
162
|
|
|
163
163
|
export {
|
|
164
164
|
AppWrapper,
|
|
@@ -313,5 +313,6 @@ export {
|
|
|
313
313
|
ContextMenuTrigger,
|
|
314
314
|
Submenu,
|
|
315
315
|
CopyPropIdButton,
|
|
316
|
-
ConfirmModal
|
|
316
|
+
ConfirmModal,
|
|
317
|
+
IConfirmModalProps
|
|
317
318
|
};
|
|
@@ -78,22 +78,18 @@ export const getAssets = (api: IImposiumAPI, storyId: string): any => {
|
|
|
78
78
|
|
|
79
79
|
export const deleteAssets = (api: IImposiumAPI, ids: string[], storyId: string): any => {
|
|
80
80
|
return (dispatch) => {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
});
|
|
94
|
-
} else {
|
|
95
|
-
return Promise.resolve(false);
|
|
96
|
-
}
|
|
81
|
+
return new Promise<boolean>((resolve, reject) => {
|
|
82
|
+
dispatch(toggleLoading(true));
|
|
83
|
+
api.deleteAssets(ids)
|
|
84
|
+
.then(() => {
|
|
85
|
+
dispatch(getAssets(api, storyId));
|
|
86
|
+
resolve(true);
|
|
87
|
+
})
|
|
88
|
+
.catch((errors: Error[]) => {
|
|
89
|
+
dispatch(toggleLoading(false));
|
|
90
|
+
reject(false);
|
|
91
|
+
});
|
|
92
|
+
});
|
|
97
93
|
};
|
|
98
94
|
};
|
|
99
95
|
|
|
@@ -194,20 +190,18 @@ export const deleteAssetTags = (api: IImposiumAPI, id: string): any => {
|
|
|
194
190
|
|
|
195
191
|
export const deleteAssetsTags = (api: IImposiumAPI, ids: string[], storyId: string): any => {
|
|
196
192
|
return (dispatch) => {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
});
|
|
210
|
-
}
|
|
193
|
+
return new Promise<void>((resolve, reject) => {
|
|
194
|
+
dispatch(toggleLoading(true));
|
|
195
|
+
api.deleteAssetsTags(ids)
|
|
196
|
+
.then(() => {
|
|
197
|
+
dispatch(getAssets(api, storyId));
|
|
198
|
+
resolve();
|
|
199
|
+
})
|
|
200
|
+
.catch((errors: Error[]) => {
|
|
201
|
+
dispatch(toggleLoading(false));
|
|
202
|
+
reject();
|
|
203
|
+
});
|
|
204
|
+
});
|
|
211
205
|
};
|
|
212
206
|
};
|
|
213
207
|
|
|
@@ -245,20 +239,18 @@ export const updateAssetStory = (api: IImposiumAPI, id: string, storyId: string)
|
|
|
245
239
|
|
|
246
240
|
export const decoupleAssets = (api: IImposiumAPI, ids: string[], storyId: string): any => {
|
|
247
241
|
return (dispatch) => {
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
});
|
|
261
|
-
}
|
|
242
|
+
return new Promise<void>((resolve, reject) => {
|
|
243
|
+
dispatch(toggleLoading(true));
|
|
244
|
+
api.decoupleAssets(ids)
|
|
245
|
+
.then(() => {
|
|
246
|
+
dispatch(getAssets(api, storyId));
|
|
247
|
+
resolve();
|
|
248
|
+
})
|
|
249
|
+
.catch((errors: Error[]) => {
|
|
250
|
+
dispatch(toggleLoading(false));
|
|
251
|
+
reject();
|
|
252
|
+
});
|
|
253
|
+
});
|
|
262
254
|
};
|
|
263
255
|
};
|
|
264
256
|
|
package/src/services/API.ts
CHANGED
|
@@ -153,6 +153,9 @@ interface ITTSOptions {
|
|
|
153
153
|
voice: string;
|
|
154
154
|
service: string;
|
|
155
155
|
model?: string;
|
|
156
|
+
speed?: string;
|
|
157
|
+
pause_silences?: boolean;
|
|
158
|
+
minimum_silence_length?: number;
|
|
156
159
|
}
|
|
157
160
|
|
|
158
161
|
interface ICancelTokenCache {
|
|
@@ -1607,6 +1610,18 @@ export default class API {
|
|
|
1607
1610
|
url += `&model=${options.model}`;
|
|
1608
1611
|
}
|
|
1609
1612
|
|
|
1613
|
+
if (options.speed) {
|
|
1614
|
+
url += `&speed=${options.speed}`;
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
if (options.pause_silences) {
|
|
1618
|
+
url += `&pause_silences=${options.pause_silences}`;
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
if (options.minimum_silence_length) {
|
|
1622
|
+
url += `&minimum_silence_length=${options.minimum_silence_length}`;
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1610
1625
|
return this.doRequest({
|
|
1611
1626
|
url,
|
|
1612
1627
|
method: 'GET',
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AssetsTableAssetIdFilter copy.js","sourceRoot":"","sources":["../../../../src/components/assets/AssetsTableAssetIdFilter copy.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+B;AAC/B,sEAAgD;AAChD,mEAAkE;AAClE,2CAAsC;AACtC,+BAA2C;AAO3C;IAAuC,4CAAmD;IAA1F;;QACW,YAAM,GAAG;YACJ,IAAA,YAAY,GAAK,KAAI,CAAC,KAAK,aAAf,CAAgB;YAEpC,OAAO,CACH,oBAAC,mBAAS,IACN,SAAS,EAAC,UAAU,EACpB,WAAW,QACX,eAAe,EAAC,QAAQ,EACxB,KAAK,EAAE,YAAY,CAAC,EAAE,EACtB,QAAQ,EAAE,UAAC,CAAC,IAAK,OAAA,KAAI,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAnC,CAAmC,GACtD,CACL,CAAC;QACN,CAAC,CAAC;;IACN,CAAC;IAAD,+BAAC;AAAD,CAAC,AAdD,CAAuC,KAAK,CAAC,aAAa,GAczD;AAED,IAAM,kBAAkB,GAAG,UAAC,QAAQ;IAChC,OAAO,IAAA,0BAAkB,EAAC,EAAE,aAAa,+BAAA,EAAE,EAAE,QAAQ,CAAC,CAAC;AAC3D,CAAC,CAAC;AAEF,IAAM,eAAe,GAAG,UAAC,KAAK;IAC1B,OAAO,EAAE,YAAY,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC;AAChD,CAAC,CAAC;AAEF,IAAM,gCAAgC,GAAG,IAAA,qBAAO,EAC5C,eAAe,EACf,kBAAkB,CACrB,CAAC,KAAK,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC,CAAC;AACxC,kBAAe,gCAAgC,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,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,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,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%20copy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AssetsTableAssetIdFilter copy.js","sourceRoot":"","sources":["../../../../src/components/assets/AssetsTableAssetIdFilter 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,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,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.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,aAAa,GAAQ;IACvB,GAAG,EAAE,mBAAmB;IACxB,KAAK,EAAE,mBAAmB;CAC7B,CAAC;AAEF,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,MAAO,EAAO,EAAE;IAC5C,MAAM,IAAI,GAAG,mBAAmB,EAAE,CAAC;IAEnC,OAAO,CAAC,QAAQ,EAAE,EAAE;QAChB,QAAQ,CAAC;YACL,IAAI,EAAE,aAAa,CAAC,GAAG;YACvB,YAAY,EAAE;gBACV,IAAI;gBACJ,IAAI;gBACJ,IAAI;gBACJ,MAAM;aACT;SACJ,CAAC,CAAC;IACP,CAAC,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,GAAQ,EAAE;IAC3B,OAAO,CAAC,QAAQ,EAAE,EAAE;QAChB,QAAQ,CAAC,EAAE,IAAI,EAAE,aAAa,CAAC,KAAK,EAAE,CAAC,CAAC;IAC5C,CAAC,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,IAAI,EAAE,MAAO,EAAO,EAAE;IAClD,OAAO,CAAC,QAAQ,EAAE,EAAE;QAChB,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,kBAAkB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;IACzD,CAAC,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,MAAO,EAAO,EAAE;IAC3C,OAAO,CAAC,QAAQ,EAAE,EAAE;QAChB,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,kBAAkB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;IAC1D,CAAC,CAAC;AACN,CAAC,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"}
|