@imposium-hub/components 2.15.0-0 → 2.15.0-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.
- package/dist/cjs/components/app-wrapper/AppWrapper.d.ts +6 -0
- package/dist/cjs/components/app-wrapper/AppWrapper.js +7 -3
- package/dist/cjs/components/app-wrapper/AppWrapper.js.map +1 -1
- package/dist/cjs/components/assets/AssetsUploadMenu.js +5 -5
- package/dist/cjs/components/context-menu/AnimateComponent.d.ts +1 -0
- package/dist/cjs/components/context-menu/AnimateComponent.js.map +1 -1
- package/dist/cjs/components/context-menu/ContextMenu.d.ts +1 -0
- package/dist/cjs/components/context-menu/ContextMenu.js +6 -6
- package/dist/cjs/components/context-menu/ContextMenu.js.map +1 -1
- package/dist/cjs/components/context-menu/ContextMenuItem.d.ts +1 -0
- package/dist/cjs/components/context-menu/ContextMenuItem.js.map +1 -1
- package/dist/cjs/components/context-menu/ContextMenuTrigger.d.ts +1 -0
- package/dist/cjs/components/context-menu/ContextMenuTrigger.js.map +1 -1
- package/dist/cjs/components/context-menu/SubMenu.d.ts +1 -0
- package/dist/cjs/components/context-menu/SubMenu.js.map +1 -1
- package/dist/cjs/components/number-field/NumberField.d.ts +2 -1
- package/dist/cjs/components/number-field/NumberField.js +18 -17
- package/dist/cjs/components/number-field/NumberField.js.map +1 -1
- package/dist/cjs/components/portal/Portal.d.ts +1 -0
- package/dist/cjs/components/portal/Portal.js.map +1 -1
- package/dist/cjs/components/publish-wizard/PublishWizard.d.ts +1 -1
- package/dist/cjs/components/publish-wizard/PublishWizard.js.map +1 -1
- package/dist/cjs/components/story-previewer/StoryPreviewer.js +15 -2
- package/dist/cjs/components/story-previewer/StoryPreviewer.js.map +1 -1
- package/dist/cjs/components/tabs/Tabs.d.ts +12 -4
- package/dist/cjs/components/tabs/Tabs.js +21 -3
- package/dist/cjs/components/tabs/Tabs.js.map +1 -1
- package/dist/cjs/components/tabs/Tabs.stories.d.ts +1 -3
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/index.js +36 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/utils/routing.d.ts +4 -2
- package/dist/cjs/utils/routing.js +8 -4
- package/dist/cjs/utils/routing.js.map +1 -1
- package/dist/esm/components/app-wrapper/AppWrapper.d.ts +6 -0
- package/dist/esm/components/app-wrapper/AppWrapper.js +8 -4
- package/dist/esm/components/app-wrapper/AppWrapper.js.map +1 -1
- package/dist/esm/components/assets/AssetsUploadMenu.js +5 -5
- package/dist/esm/components/context-menu/AnimateComponent.d.ts +1 -0
- package/dist/esm/components/context-menu/AnimateComponent.js.map +1 -1
- package/dist/esm/components/context-menu/ContextMenu.d.ts +1 -0
- package/dist/esm/components/context-menu/ContextMenu.js +2 -1
- package/dist/esm/components/context-menu/ContextMenu.js.map +1 -1
- package/dist/esm/components/context-menu/ContextMenuItem.d.ts +1 -0
- package/dist/esm/components/context-menu/ContextMenuItem.js.map +1 -1
- package/dist/esm/components/context-menu/ContextMenuTrigger.d.ts +1 -0
- package/dist/esm/components/context-menu/ContextMenuTrigger.js.map +1 -1
- package/dist/esm/components/context-menu/SubMenu.d.ts +1 -0
- package/dist/esm/components/context-menu/SubMenu.js.map +1 -1
- package/dist/esm/components/number-field/NumberField.d.ts +2 -1
- package/dist/esm/components/number-field/NumberField.js +15 -17
- package/dist/esm/components/number-field/NumberField.js.map +1 -1
- package/dist/esm/components/portal/Portal.d.ts +1 -0
- package/dist/esm/components/portal/Portal.js.map +1 -1
- package/dist/esm/components/publish-wizard/PublishWizard.d.ts +1 -1
- package/dist/esm/components/publish-wizard/PublishWizard.js.map +1 -1
- package/dist/esm/components/story-previewer/StoryPreviewer.js +14 -2
- package/dist/esm/components/story-previewer/StoryPreviewer.js.map +1 -1
- package/dist/esm/components/tabs/Tabs.d.ts +12 -4
- package/dist/esm/components/tabs/Tabs.js +11 -4
- package/dist/esm/components/tabs/Tabs.js.map +1 -1
- package/dist/esm/components/tabs/Tabs.stories.d.ts +1 -3
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/utils/routing.d.ts +4 -2
- package/dist/esm/utils/routing.js +6 -3
- package/dist/esm/utils/routing.js.map +1 -1
- package/dist/styles.css +3 -3
- package/dist/styles.less +64 -63
- package/less/components/assets.less +6 -5
- package/less/components/auth-gate.less +1 -1
- package/less/components/data-table.less +2 -2
- package/less/components/determinate-loader.less +2 -2
- package/less/components/font-preview.less +1 -1
- package/less/components/form-field.less +5 -5
- package/less/components/header.less +30 -30
- package/less/components/modal.less +2 -2
- package/less/components/player.less +2 -2
- package/less/components/section.less +2 -2
- package/less/components/static-composition-editor.less +4 -4
- package/less/components/story-previewer.less +4 -4
- package/less/components/tabs.less +3 -3
- package/package.json +8 -8
- package/src/components/app-wrapper/AppWrapper.tsx +17 -4
- package/src/components/assets/AssetsUploadMenu.tsx +5 -5
- package/src/components/context-menu/AnimateComponent.tsx +1 -0
- package/src/components/context-menu/ContextMenu.tsx +15 -13
- package/src/components/context-menu/ContextMenuItem.tsx +1 -0
- package/src/components/context-menu/ContextMenuTrigger.tsx +1 -0
- package/src/components/context-menu/SubMenu.tsx +1 -0
- package/src/components/number-field/NumberField.tsx +21 -18
- package/src/components/portal/Portal.tsx +1 -0
- package/src/components/publish-wizard/PublishWizard.tsx +1 -1
- package/src/components/story-previewer/StoryPreviewer.tsx +21 -8
- package/src/components/tabs/Tabs.tsx +25 -8
- package/src/index.ts +2 -1
- package/src/utils/routing.ts +10 -6
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
|
|
54
54
|
input,
|
|
55
55
|
textarea {
|
|
56
|
-
.inputMixin;
|
|
56
|
+
.inputMixin();
|
|
57
57
|
padding: 4px;
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
select {
|
|
65
|
-
.inputMixin;
|
|
65
|
+
.inputMixin();
|
|
66
66
|
padding: 4px 15px 4px 4px;
|
|
67
67
|
}
|
|
68
68
|
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
.checkbox-field {
|
|
146
146
|
|
|
147
147
|
.checkbox {
|
|
148
|
-
.inputMixin;
|
|
148
|
+
.inputMixin();
|
|
149
149
|
display: flex;
|
|
150
150
|
border: 1px solid @backgroundLight;
|
|
151
151
|
border-radius: 2px;
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
|
|
190
190
|
.button-group {
|
|
191
191
|
|
|
192
|
-
.inputMixin;
|
|
192
|
+
.inputMixin();
|
|
193
193
|
|
|
194
194
|
&:hover {
|
|
195
195
|
background: @inputBackground;
|
|
@@ -286,7 +286,7 @@
|
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
.checkbox {
|
|
289
|
-
.inputMixin;
|
|
289
|
+
.inputMixin();
|
|
290
290
|
line-height: 10px;
|
|
291
291
|
border: 1px solid @backgroundLight;
|
|
292
292
|
border-radius: 2px;
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
.anchor {
|
|
75
|
-
.font-style;
|
|
75
|
+
.font-style();
|
|
76
76
|
cursor: pointer;
|
|
77
77
|
font-size: @fontSizeDefault;
|
|
78
78
|
text-decoration: none;
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
.circle-style {
|
|
90
|
-
.no-select;
|
|
90
|
+
.no-select();
|
|
91
91
|
border-radius: 50%;
|
|
92
92
|
width: 28px;
|
|
93
93
|
height: 28px;
|
|
@@ -105,12 +105,12 @@
|
|
|
105
105
|
cursor: pointer;
|
|
106
106
|
outline: none;
|
|
107
107
|
box-sizing: border-box;
|
|
108
|
-
.no-select;
|
|
109
|
-
.font-style;
|
|
108
|
+
.no-select();
|
|
109
|
+
.font-style();
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
.faux-select {
|
|
113
|
-
.btn-reset;
|
|
113
|
+
.btn-reset();
|
|
114
114
|
display: flex;
|
|
115
115
|
align-items: center;
|
|
116
116
|
font-size: 14px;
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
.imposium-header {
|
|
131
|
-
.flex-row;
|
|
131
|
+
.flex-row();
|
|
132
132
|
z-index: 100000;
|
|
133
133
|
position: absolute;
|
|
134
134
|
top: 0px;
|
|
@@ -141,17 +141,17 @@
|
|
|
141
141
|
line-height: 1.5;
|
|
142
142
|
|
|
143
143
|
.inner-content {
|
|
144
|
-
.flex-row;
|
|
144
|
+
.flex-row();
|
|
145
145
|
width: 100%;
|
|
146
146
|
max-width: @defaultMaxWidth;
|
|
147
147
|
justify-content: space-between;
|
|
148
148
|
margin: 0px 15px;
|
|
149
149
|
|
|
150
150
|
.inner-left {
|
|
151
|
-
.flex-row;
|
|
151
|
+
.flex-row();
|
|
152
152
|
|
|
153
153
|
.title {
|
|
154
|
-
.flex-row;
|
|
154
|
+
.flex-row();
|
|
155
155
|
margin-right: 20px;
|
|
156
156
|
text-decoration: none;
|
|
157
157
|
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
.heading {
|
|
177
|
-
.font-style;
|
|
177
|
+
.font-style();
|
|
178
178
|
margin: 0;
|
|
179
179
|
font-size: 20px;
|
|
180
180
|
font-weight: normal;
|
|
@@ -182,12 +182,12 @@
|
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
.btn-toggle-services {
|
|
185
|
-
.faux-select;
|
|
185
|
+
.faux-select();
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
.inner-right {
|
|
190
|
-
.flex-row;
|
|
190
|
+
.flex-row();
|
|
191
191
|
|
|
192
192
|
a{
|
|
193
193
|
border:none;
|
|
@@ -204,22 +204,22 @@
|
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
.btn-help {
|
|
207
|
-
.circle-style;
|
|
207
|
+
.circle-style();
|
|
208
208
|
margin-left: 15px;
|
|
209
209
|
font-size:28px;
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
.btn-toggle-orgs {
|
|
213
|
-
.btn-reset;
|
|
214
|
-
.circle-style;
|
|
213
|
+
.btn-reset();
|
|
214
|
+
.circle-style();
|
|
215
215
|
margin-left: 15px;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
.btn-toggle-story {
|
|
219
|
-
.faux-select;
|
|
219
|
+
.faux-select();
|
|
220
220
|
|
|
221
221
|
.story-name {
|
|
222
|
-
.ellipsis;
|
|
222
|
+
.ellipsis();
|
|
223
223
|
text-transform: none;
|
|
224
224
|
font-size: 17px;
|
|
225
225
|
max-width: 220px;
|
|
@@ -227,7 +227,7 @@
|
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
.btn-logout {
|
|
230
|
-
.btn-reset;
|
|
230
|
+
.btn-reset();
|
|
231
231
|
padding: 10px 0px;
|
|
232
232
|
font-size: 14px;
|
|
233
233
|
}
|
|
@@ -248,7 +248,7 @@
|
|
|
248
248
|
box-sizing: border-box;
|
|
249
249
|
|
|
250
250
|
.service-menu-heading {
|
|
251
|
-
.secondary-font-style;
|
|
251
|
+
.secondary-font-style();
|
|
252
252
|
font-size: @fontSizeDefault;
|
|
253
253
|
text-transform: uppercase;
|
|
254
254
|
color: #b1b1b1;
|
|
@@ -273,7 +273,7 @@
|
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
a {
|
|
276
|
-
.anchor;
|
|
276
|
+
.anchor();
|
|
277
277
|
display: flex;
|
|
278
278
|
align-items: center;
|
|
279
279
|
color: white;
|
|
@@ -334,14 +334,14 @@
|
|
|
334
334
|
color: white
|
|
335
335
|
}
|
|
336
336
|
.orgs-menu-active-org {
|
|
337
|
-
.font-style;
|
|
338
|
-
.flex-row;
|
|
337
|
+
.font-style();
|
|
338
|
+
.flex-row();
|
|
339
339
|
padding: 10px;
|
|
340
340
|
border-bottom: 1px solid @defaultBorderColor;
|
|
341
341
|
background-color: @defaultBorderColor;
|
|
342
342
|
|
|
343
343
|
.active-first-char {
|
|
344
|
-
.circle-style;
|
|
344
|
+
.circle-style();
|
|
345
345
|
width: 40px;
|
|
346
346
|
height: 40px;
|
|
347
347
|
font-size: 18px;
|
|
@@ -353,7 +353,7 @@
|
|
|
353
353
|
color: white;
|
|
354
354
|
}
|
|
355
355
|
.menu-item, .react-select__option {
|
|
356
|
-
.btn-reset;
|
|
356
|
+
.btn-reset();
|
|
357
357
|
width: 100%;
|
|
358
358
|
padding: 10px;
|
|
359
359
|
font-size: 12px;
|
|
@@ -363,12 +363,12 @@
|
|
|
363
363
|
background-color: #494949
|
|
364
364
|
}
|
|
365
365
|
.inactive-first-char {
|
|
366
|
-
.circle-style;
|
|
366
|
+
.circle-style();
|
|
367
367
|
margin-right: 10px;
|
|
368
368
|
}
|
|
369
369
|
|
|
370
370
|
&.inactive-org-button {
|
|
371
|
-
.flex-row;
|
|
371
|
+
.flex-row();
|
|
372
372
|
box-sizing: border-box;
|
|
373
373
|
padding: 10px;
|
|
374
374
|
}
|
|
@@ -379,13 +379,13 @@
|
|
|
379
379
|
}
|
|
380
380
|
|
|
381
381
|
.orgs-menu-footer {
|
|
382
|
-
.flex-row;
|
|
382
|
+
.flex-row();
|
|
383
383
|
justify-content: space-between;
|
|
384
384
|
border-top: 1px solid @defaultBorderColor;
|
|
385
385
|
|
|
386
386
|
.email {
|
|
387
|
-
.secondary-font-style;
|
|
388
|
-
.ellipsis;
|
|
387
|
+
.secondary-font-style();
|
|
388
|
+
.ellipsis();
|
|
389
389
|
color: #b1b1b1;
|
|
390
390
|
font-size: 12px;
|
|
391
391
|
text-transform: lowercase;
|
|
@@ -393,7 +393,7 @@
|
|
|
393
393
|
}
|
|
394
394
|
|
|
395
395
|
.btn-logout {
|
|
396
|
-
.btn-reset;
|
|
396
|
+
.btn-reset();
|
|
397
397
|
font-size: 12px;
|
|
398
398
|
padding: 10px 15px;
|
|
399
399
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@headerPadding:2px;
|
|
7
7
|
|
|
8
8
|
.section{
|
|
9
|
-
.layer;
|
|
9
|
+
.layer();
|
|
10
10
|
|
|
11
11
|
.section-header{
|
|
12
12
|
background:lighten(@backgroundLight, 10%);
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.section-content{
|
|
68
|
-
.layer;
|
|
68
|
+
.layer();
|
|
69
69
|
top:@sectionHeaderHeight;
|
|
70
70
|
height:calc(100% - @sectionHeaderHeight);
|
|
71
71
|
padding:@sectionPadding;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
.static-composition-editor{
|
|
5
5
|
|
|
6
|
-
.layer;
|
|
6
|
+
.layer();
|
|
7
7
|
|
|
8
8
|
.composition-config{
|
|
9
9
|
position: absolute;
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.composition-preview{
|
|
21
|
-
.layer;
|
|
21
|
+
.layer();
|
|
22
22
|
left:@compConfigWidth;
|
|
23
23
|
width:calc(100% - @compConfigWidth);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.static-composition-renderer{
|
|
28
|
-
.layer;
|
|
28
|
+
.layer();
|
|
29
29
|
font-family:'Arial';
|
|
30
30
|
border:2px solid @backgroundLight;
|
|
31
31
|
}
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
|
|
38
38
|
.composition-text-layer{
|
|
39
39
|
will-change:transform;
|
|
40
|
-
.layer;
|
|
40
|
+
.layer();
|
|
41
41
|
|
|
42
42
|
.inner-text{
|
|
43
43
|
display: inline-block;
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
|
|
161
161
|
.story-viewer{
|
|
162
162
|
|
|
163
|
-
.layer;
|
|
163
|
+
.layer();
|
|
164
164
|
|
|
165
165
|
background:@backgroundDark;
|
|
166
166
|
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
.log{
|
|
179
|
-
.layer;
|
|
179
|
+
.layer();
|
|
180
180
|
overflow-y: scroll;
|
|
181
181
|
padding:10px;
|
|
182
182
|
box-sizing:border-box;
|
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
width:calc(100% - @storyViewerVarWidth);
|
|
217
217
|
|
|
218
218
|
.content-header{
|
|
219
|
-
.layer;
|
|
219
|
+
.layer();
|
|
220
220
|
box-sizing: border-box;
|
|
221
221
|
padding-top:4px;
|
|
222
222
|
padding-left:4px;
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
}
|
|
253
253
|
|
|
254
254
|
.content-wrapper{
|
|
255
|
-
.layer;
|
|
255
|
+
.layer();
|
|
256
256
|
background-color: rgb(35,35,35);
|
|
257
257
|
top:@storyViewerHeaderHeight;
|
|
258
258
|
height:calc(100% - @storyViewerHeaderHeight);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
@tabWidth:80px;
|
|
4
4
|
|
|
5
5
|
.tabs{
|
|
6
|
-
.layer;
|
|
6
|
+
.layer();
|
|
7
7
|
.tab-header{
|
|
8
8
|
white-space: nowrap;
|
|
9
9
|
position: absolute;
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
}
|
|
50
50
|
.tab-content{
|
|
51
51
|
overflow-y: auto;
|
|
52
|
-
.layer;
|
|
52
|
+
.layer();
|
|
53
53
|
top:@tabHeight;
|
|
54
54
|
height:calc(100% - @tabHeight);
|
|
55
55
|
|
|
56
56
|
.tab-content-wrapper{
|
|
57
|
-
.layer;
|
|
57
|
+
.layer();
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imposium-hub/components",
|
|
3
|
-
"version": "2.15.0-
|
|
3
|
+
"version": "2.15.0-1",
|
|
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",
|
|
@@ -66,13 +66,13 @@
|
|
|
66
66
|
"axios": "^1.9.0",
|
|
67
67
|
"hotkeys-js": "^3.6.12",
|
|
68
68
|
"localforage": "^1.7.3",
|
|
69
|
-
"react": "^
|
|
69
|
+
"react": "^18.0.0",
|
|
70
70
|
"react-dnd": "^16.0.1",
|
|
71
71
|
"react-dnd-html5-backend": "^16.0.1",
|
|
72
|
-
"react-dom": "^
|
|
72
|
+
"react-dom": "^18.0.0",
|
|
73
73
|
"react-dropzone": "^10.1.6",
|
|
74
74
|
"react-redux": "^5.0.7",
|
|
75
|
-
"react-resize-detector": "^
|
|
75
|
+
"react-resize-detector": "^12.0.0",
|
|
76
76
|
"react-router": "^3.2.6",
|
|
77
77
|
"react-spinners": "^0.6.1",
|
|
78
78
|
"react-table": "^7.7.0",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"@storybook/testing-library": "^0.2.1",
|
|
102
102
|
"@types/hoist-non-react-statics": "^3.3.1",
|
|
103
103
|
"@types/offscreencanvas": "^2019.6.4",
|
|
104
|
-
"@types/react": "^
|
|
104
|
+
"@types/react": "^18.0.0",
|
|
105
105
|
"@types/resize-observer-browser": "^0.1.5",
|
|
106
106
|
"@typescript-eslint/eslint-plugin": "^5.26.0",
|
|
107
107
|
"@typescript-eslint/parser": "^5.26.0",
|
|
@@ -120,13 +120,13 @@
|
|
|
120
120
|
"np": "^10.2.0",
|
|
121
121
|
"onchange": "^7.1.0",
|
|
122
122
|
"prettier": "^2.6.2",
|
|
123
|
-
"react": "^
|
|
123
|
+
"react": "^18.0.0",
|
|
124
124
|
"react-dnd": "^16.0.1",
|
|
125
125
|
"react-dnd-html5-backend": "^16.0.1",
|
|
126
|
-
"react-dom": "^
|
|
126
|
+
"react-dom": "^18.0.0",
|
|
127
127
|
"react-dropzone": "^10.1.6",
|
|
128
128
|
"react-redux": "^5.0.7",
|
|
129
|
-
"react-resize-detector": "^
|
|
129
|
+
"react-resize-detector": "^12.0.0",
|
|
130
130
|
"react-router": "^3.2.6",
|
|
131
131
|
"react-spinners": "^0.6.1",
|
|
132
132
|
"react-table": "^7.7.0",
|
|
@@ -5,13 +5,18 @@ import { ConfirmModal } from '../confirm-modal/ConfirmModal';
|
|
|
5
5
|
import { IImposiumAPI } from '../../services/API';
|
|
6
6
|
import { ICrmApi } from '../../services/CrmApi';
|
|
7
7
|
import { useAuth0 } from '@auth0/auth0-react';
|
|
8
|
-
import { replaceRoute } from '../../utils/routing';
|
|
8
|
+
import { configureHistory, replaceRoute } from '../../utils/routing';
|
|
9
9
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
10
10
|
import { faExclamationTriangle } from '@fortawesome/pro-light-svg-icons';
|
|
11
11
|
import { initPendo } from '../../utils/pendo';
|
|
12
12
|
import { TOKEN_TYPE, FlagsProvider } from '@innovid/feature-flags-react';
|
|
13
13
|
import { useMemo } from 'react';
|
|
14
14
|
|
|
15
|
+
export interface ICompatibleHistory {
|
|
16
|
+
push: (route: string) => void;
|
|
17
|
+
replace: (route: string) => void;
|
|
18
|
+
}
|
|
19
|
+
|
|
15
20
|
export interface IAppWrapperProps {
|
|
16
21
|
appLabel: string;
|
|
17
22
|
environment: string;
|
|
@@ -32,6 +37,8 @@ export interface IAppWrapperProps {
|
|
|
32
37
|
hideDocs?: boolean;
|
|
33
38
|
hideOrgPicker?: boolean;
|
|
34
39
|
growthBookId?: string;
|
|
40
|
+
history: ICompatibleHistory;
|
|
41
|
+
children?: React.ReactNode;
|
|
35
42
|
}
|
|
36
43
|
|
|
37
44
|
export const APP_WRAPPER_ERROR_STATES = {
|
|
@@ -62,13 +69,16 @@ export const AppWrapper: React.FC<IAppWrapperProps> = (props) => {
|
|
|
62
69
|
environment,
|
|
63
70
|
appLabel,
|
|
64
71
|
allowNoStories,
|
|
65
|
-
growthBookId
|
|
72
|
+
growthBookId,
|
|
73
|
+
history
|
|
66
74
|
} = props;
|
|
67
75
|
const { isAuthenticated, isLoading, getAccessTokenSilently, loginWithRedirect, logout, user } =
|
|
68
76
|
useAuth0();
|
|
69
77
|
const [errorState, setErrorState] = React.useState(null);
|
|
70
78
|
const [auth0Token, setAuth0Token] = React.useState(null);
|
|
71
79
|
|
|
80
|
+
configureHistory(history);
|
|
81
|
+
|
|
72
82
|
React.useEffect(() => {
|
|
73
83
|
void getAccessTokenSilently().then((token) => {
|
|
74
84
|
if (token) {
|
|
@@ -179,7 +189,10 @@ export const AppWrapper: React.FC<IAppWrapperProps> = (props) => {
|
|
|
179
189
|
onAuthenticated(organization_id, story_id);
|
|
180
190
|
|
|
181
191
|
if (!hideStoryPicker) {
|
|
182
|
-
|
|
192
|
+
const route = story_id
|
|
193
|
+
? `/${organization_id}/${story_id}`
|
|
194
|
+
: `/${organization_id}`;
|
|
195
|
+
replaceRoute(route);
|
|
183
196
|
} else {
|
|
184
197
|
replaceRoute(`/${organization_id}`);
|
|
185
198
|
}
|
|
@@ -275,7 +288,7 @@ export const AppWrapper: React.FC<IAppWrapperProps> = (props) => {
|
|
|
275
288
|
// If we're not loading, and we're not authenticated, call login, and cache story + org ID from URL if it's there
|
|
276
289
|
} else if (!isLoading && !isAuthenticated) {
|
|
277
290
|
void loginWithRedirect({
|
|
278
|
-
appState: { returnTo: window.location.
|
|
291
|
+
appState: { returnTo: window.location.pathname + window.location.search }
|
|
279
292
|
});
|
|
280
293
|
}
|
|
281
294
|
};
|
|
@@ -230,7 +230,7 @@ class AssetsUploadMenu extends React.PureComponent<IAssetsUploadMenuProps, IAsse
|
|
|
230
230
|
|
|
231
231
|
const delimiterSelector = tagByDelimiter && (
|
|
232
232
|
<SelectField
|
|
233
|
-
width='
|
|
233
|
+
width='10%'
|
|
234
234
|
options={DELIMITER_OPTIONS}
|
|
235
235
|
value={delimiter}
|
|
236
236
|
onChange={(c) => {
|
|
@@ -304,7 +304,7 @@ class AssetsUploadMenu extends React.PureComponent<IAssetsUploadMenuProps, IAsse
|
|
|
304
304
|
ref={this.menuRef}>
|
|
305
305
|
<div className='uploads-controls'>
|
|
306
306
|
<CheckboxField
|
|
307
|
-
width='
|
|
307
|
+
width='10%'
|
|
308
308
|
label={copy.uploads.autoTagDelimiter}
|
|
309
309
|
value={tagByDelimiter}
|
|
310
310
|
onChange={() =>
|
|
@@ -313,20 +313,20 @@ class AssetsUploadMenu extends React.PureComponent<IAssetsUploadMenuProps, IAsse
|
|
|
313
313
|
/>
|
|
314
314
|
{delimiterSelector}
|
|
315
315
|
<CheckboxField
|
|
316
|
-
width='
|
|
316
|
+
width='10%'
|
|
317
317
|
label={copy.uploads.manualTagging}
|
|
318
318
|
value={tagManually}
|
|
319
319
|
onChange={() => this.uploadsSetting({ tagManually: !tagManually })}
|
|
320
320
|
/>
|
|
321
321
|
<CheckboxField
|
|
322
|
-
width='
|
|
322
|
+
width='10%'
|
|
323
323
|
label={copy.uploads.autoTagFilname}
|
|
324
324
|
value={tagByFileName}
|
|
325
325
|
onChange={() => this.uploadsSetting({ tagByFileName: !tagByFileName })}
|
|
326
326
|
/>
|
|
327
327
|
{!fromCrM && (
|
|
328
328
|
<CheckboxField
|
|
329
|
-
width='
|
|
329
|
+
width='10%'
|
|
330
330
|
label={copy.uploads.assignToProjectInput}
|
|
331
331
|
info={copy.uploads.assignToProjectInfo}
|
|
332
332
|
value={!assignToStory}
|
|
@@ -14,20 +14,23 @@ interface IContextMenuProps {
|
|
|
14
14
|
preventHideOnScroll?: boolean;
|
|
15
15
|
preventHideOnResize?: boolean;
|
|
16
16
|
animation?: string;
|
|
17
|
+
children: React.ReactNode;
|
|
17
18
|
}
|
|
18
19
|
|
|
19
|
-
const ContextMenu: React.FC<IContextMenuProps> = ({
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
20
|
+
const ContextMenu: React.FC<IContextMenuProps> = (props: IContextMenuProps) => {
|
|
21
|
+
const {
|
|
22
|
+
id,
|
|
23
|
+
children,
|
|
24
|
+
appendTo,
|
|
25
|
+
hideOnLeave,
|
|
26
|
+
onMouseLeave,
|
|
27
|
+
onHide,
|
|
28
|
+
onShow,
|
|
29
|
+
preventHideOnScroll,
|
|
30
|
+
preventHideOnResize,
|
|
31
|
+
animation
|
|
32
|
+
} = props;
|
|
33
|
+
|
|
31
34
|
const contextMenuEl = useRef(null);
|
|
32
35
|
const [isVisible, setVisible] = useState(false);
|
|
33
36
|
const [top, setTop] = useState('');
|
|
@@ -172,7 +175,6 @@ const ContextMenu: React.FC<IContextMenuProps> = ({
|
|
|
172
175
|
};
|
|
173
176
|
|
|
174
177
|
export default ContextMenu;
|
|
175
|
-
|
|
176
178
|
ContextMenu.defaultProps = {
|
|
177
179
|
appendTo: null,
|
|
178
180
|
hideOnLeave: false,
|