@uploadcare/file-uploader 1.24.5 → 1.24.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.
- package/dist/env.js +1 -1
- package/dist/index.css +6 -0
- package/dist/index.js +16 -7
- package/dist/index.layered.css +6 -0
- package/dist/index.ssr.js +10 -4
- package/package.json +2 -2
- package/web/file-uploader.iife.min.js +1 -1
- package/web/file-uploader.min.js +1 -1
- package/web/uc-basic.layered.min.css +1 -1
- package/web/uc-basic.min.css +1 -1
- package/web/uc-cloud-image-editor.min.js +1 -1
- package/web/uc-file-uploader-inline.layered.min.css +1 -1
- package/web/uc-file-uploader-inline.min.css +1 -1
- package/web/uc-file-uploader-inline.min.js +1 -1
- package/web/uc-file-uploader-minimal.layered.min.css +1 -1
- package/web/uc-file-uploader-minimal.min.css +1 -1
- package/web/uc-file-uploader-minimal.min.js +1 -1
- package/web/uc-file-uploader-regular.layered.min.css +1 -1
- package/web/uc-file-uploader-regular.min.css +1 -1
- package/web/uc-file-uploader-regular.min.js +1 -1
- package/web/uc-img.min.js +1 -1
package/dist/env.js
CHANGED
package/dist/index.css
CHANGED
|
@@ -54,6 +54,12 @@ uc-activity-header:not(#\#) > * {
|
|
|
54
54
|
display: flex;
|
|
55
55
|
align-items: center;
|
|
56
56
|
}
|
|
57
|
+
uc-activity-header:not(#\#) > div > uc-icon {
|
|
58
|
+
width: auto;
|
|
59
|
+
}
|
|
60
|
+
uc-activity-header:not(#\#) > div {
|
|
61
|
+
gap: var(--uc-padding);
|
|
62
|
+
}
|
|
57
63
|
|
|
58
64
|
/* src/blocks/CameraSource/camera-source.css */
|
|
59
65
|
uc-camera-source:not(#\#) {
|
package/dist/index.js
CHANGED
|
@@ -506,7 +506,7 @@ var config = {
|
|
|
506
506
|
secureSignature: "",
|
|
507
507
|
secureExpire: "",
|
|
508
508
|
secureDeliveryProxy: "",
|
|
509
|
-
retryThrottledRequestMaxTimes:
|
|
509
|
+
retryThrottledRequestMaxTimes: 3,
|
|
510
510
|
retryNetworkErrorMaxTimes: 3,
|
|
511
511
|
multipartMinFileSize: 26214400,
|
|
512
512
|
multipartChunkSize: 5242880,
|
|
@@ -1217,7 +1217,7 @@ import { TelemetryAPIService } from "@uploadcare/quality-insights";
|
|
|
1217
1217
|
import { Queue as Queue2 } from "@uploadcare/upload-client";
|
|
1218
1218
|
|
|
1219
1219
|
// package.json
|
|
1220
|
-
var version = "1.24.
|
|
1220
|
+
var version = "1.24.6";
|
|
1221
1221
|
|
|
1222
1222
|
// src/env.ts
|
|
1223
1223
|
var PACKAGE_NAME = "blocks";
|
|
@@ -5068,6 +5068,7 @@ CameraSource.template = /* HTML */
|
|
|
5068
5068
|
type="button"
|
|
5069
5069
|
class="uc-switch uc-mini-btn"
|
|
5070
5070
|
set="onclick: onClickTab; @hidden: tabCameraHidden"
|
|
5071
|
+
data-testid="tab-photo"
|
|
5071
5072
|
>
|
|
5072
5073
|
<uc-icon name="camera"></uc-icon>
|
|
5073
5074
|
</button>
|
|
@@ -5076,6 +5077,7 @@ CameraSource.template = /* HTML */
|
|
|
5076
5077
|
type="button"
|
|
5077
5078
|
class="uc-switch uc-mini-btn"
|
|
5078
5079
|
set="onclick: onClickTab; @hidden: tabVideoHidden"
|
|
5080
|
+
data-testid="tab-video"
|
|
5079
5081
|
>
|
|
5080
5082
|
<uc-icon name="video-camera"></uc-icon>
|
|
5081
5083
|
</button>
|
|
@@ -5084,6 +5086,7 @@ CameraSource.template = /* HTML */
|
|
|
5084
5086
|
<button
|
|
5085
5087
|
class="uc-secondary-btn uc-recording-timer"
|
|
5086
5088
|
set="@hidden:timerHidden; onclick: onToggleRecording"
|
|
5089
|
+
data-testid="recording-timer"
|
|
5087
5090
|
>
|
|
5088
5091
|
<uc-icon set="@name: currentTimelineIcon"></uc-icon>
|
|
5089
5092
|
<span ref="timer"> 00:00 </span>
|
|
@@ -5094,7 +5097,7 @@ CameraSource.template = /* HTML */
|
|
|
5094
5097
|
class="uc-camera-actions uc-camera-action"
|
|
5095
5098
|
set="@hidden: cameraActionsHidden"
|
|
5096
5099
|
>
|
|
5097
|
-
<button type="button" class="uc-secondary-btn" set="onclick: onRetake">
|
|
5100
|
+
<button type="button" class="uc-secondary-btn" set="onclick: onRetake" data-testid="retake">
|
|
5098
5101
|
Retake
|
|
5099
5102
|
</button>
|
|
5100
5103
|
<button
|
|
@@ -5120,6 +5123,7 @@ CameraSource.template = /* HTML */
|
|
|
5120
5123
|
<button
|
|
5121
5124
|
class="uc-mini-btn uc-btn-microphone"
|
|
5122
5125
|
set="onclick: onToggleAudio; @hidden: audioToggleMicrophoneHidden;"
|
|
5126
|
+
data-testid="toggle-microphone"
|
|
5123
5127
|
>
|
|
5124
5128
|
<uc-icon set="@name:toggleMicrophoneIcon"></uc-icon>
|
|
5125
5129
|
</button>
|
|
@@ -5127,6 +5131,7 @@ CameraSource.template = /* HTML */
|
|
|
5127
5131
|
<uc-select
|
|
5128
5132
|
class="uc-audio-select"
|
|
5129
5133
|
set="$.options: audioSelectOptions; onchange: onAudioSelectChange; @hidden: audioSelectHidden; @disabled: audioSelectDisabled"
|
|
5134
|
+
data-testid="audio-select"
|
|
5130
5135
|
>
|
|
5131
5136
|
</uc-select>
|
|
5132
5137
|
</div>
|
|
@@ -7775,8 +7780,8 @@ EditorToolbar.template = /* HTML */
|
|
|
7775
7780
|
<div class="uc-list-aspect-ratio" ref="list-el"></div>
|
|
7776
7781
|
</div>
|
|
7777
7782
|
<div class="uc-controls-row">
|
|
7778
|
-
<uc-btn-ui theme="secondary" set="onclick: on.cancelSlider" l10n="@text:cancel"> </uc-btn-ui>
|
|
7779
|
-
<uc-btn-ui theme="primary" set="onclick: on.applySlider" l10n="@text:apply"> </uc-btn-ui>
|
|
7783
|
+
<uc-btn-ui theme="secondary" set="onclick: on.cancelSlider; title-prop:cancel" l10n="@text:cancel"> </uc-btn-ui>
|
|
7784
|
+
<uc-btn-ui theme="primary" set="onclick: on.applySlider; title-prop:apply" l10n="@text:apply"> </uc-btn-ui>
|
|
7780
7785
|
</div>
|
|
7781
7786
|
</uc-presence-toggle>
|
|
7782
7787
|
</div>
|
|
@@ -9693,11 +9698,14 @@ var FileItem = class _FileItem extends FileItemConfig {
|
|
|
9693
9698
|
} else if (!isFinished && externalUrl && source && Object.values(ExternalUploadSource).includes(source)) {
|
|
9694
9699
|
hint = this.l10n("waiting-for", { source: this.l10n(`src-type-${source}`) });
|
|
9695
9700
|
}
|
|
9701
|
+
const uploadProgress = entry.getValue("uploadProgress");
|
|
9702
|
+
const progressValue = uploadProgress === 100 ? 100 : isQueuedForValidation || isValidationPending ? 0 : uploadProgress;
|
|
9703
|
+
const progressVisible = isUploading || isQueuedForUploading || isQueuedForValidation || isValidationPending;
|
|
9696
9704
|
this.set$({
|
|
9697
9705
|
hint,
|
|
9698
9706
|
errorText,
|
|
9699
|
-
progressVisible
|
|
9700
|
-
progressValue
|
|
9707
|
+
progressVisible,
|
|
9708
|
+
progressValue,
|
|
9701
9709
|
ariaLabelStatusFile: fileName && this.l10n("a11y-file-item-status", {
|
|
9702
9710
|
fileName,
|
|
9703
9711
|
status: this.l10n(state?.description?.toLocaleLowerCase() ?? "").toLocaleLowerCase()
|
|
@@ -9955,6 +9963,7 @@ var FileItem = class _FileItem extends FileItemConfig {
|
|
|
9955
9963
|
l10n="@title:file-item-edit-button;@aria-label:file-item-edit-button"
|
|
9956
9964
|
class="uc-edit-btn uc-mini-btn"
|
|
9957
9965
|
set="onclick: onEdit; @hidden: !isEditable"
|
|
9966
|
+
data-testid="edit"
|
|
9958
9967
|
>
|
|
9959
9968
|
<uc-icon name="edit-file"></uc-icon>
|
|
9960
9969
|
</button>
|
package/dist/index.layered.css
CHANGED
package/dist/index.ssr.js
CHANGED
|
@@ -110,6 +110,7 @@ export const CameraSource = class {
|
|
|
110
110
|
type="button"
|
|
111
111
|
class="uc-switch uc-mini-btn"
|
|
112
112
|
set="onclick: onClickTab; @hidden: tabCameraHidden"
|
|
113
|
+
data-testid="tab-photo"
|
|
113
114
|
>
|
|
114
115
|
<uc-icon name="camera"></uc-icon>
|
|
115
116
|
</button>
|
|
@@ -118,6 +119,7 @@ export const CameraSource = class {
|
|
|
118
119
|
type="button"
|
|
119
120
|
class="uc-switch uc-mini-btn"
|
|
120
121
|
set="onclick: onClickTab; @hidden: tabVideoHidden"
|
|
122
|
+
data-testid="tab-video"
|
|
121
123
|
>
|
|
122
124
|
<uc-icon name="video-camera"></uc-icon>
|
|
123
125
|
</button>
|
|
@@ -126,6 +128,7 @@ export const CameraSource = class {
|
|
|
126
128
|
<button
|
|
127
129
|
class="uc-secondary-btn uc-recording-timer"
|
|
128
130
|
set="@hidden:timerHidden; onclick: onToggleRecording"
|
|
131
|
+
data-testid="recording-timer"
|
|
129
132
|
>
|
|
130
133
|
<uc-icon set="@name: currentTimelineIcon"></uc-icon>
|
|
131
134
|
<span ref="timer"> 00:00 </span>
|
|
@@ -136,7 +139,7 @@ export const CameraSource = class {
|
|
|
136
139
|
class="uc-camera-actions uc-camera-action"
|
|
137
140
|
set="@hidden: cameraActionsHidden"
|
|
138
141
|
>
|
|
139
|
-
<button type="button" class="uc-secondary-btn" set="onclick: onRetake">
|
|
142
|
+
<button type="button" class="uc-secondary-btn" set="onclick: onRetake" data-testid="retake">
|
|
140
143
|
Retake
|
|
141
144
|
</button>
|
|
142
145
|
<button
|
|
@@ -162,6 +165,7 @@ export const CameraSource = class {
|
|
|
162
165
|
<button
|
|
163
166
|
class="uc-mini-btn uc-btn-microphone"
|
|
164
167
|
set="onclick: onToggleAudio; @hidden: audioToggleMicrophoneHidden;"
|
|
168
|
+
data-testid="toggle-microphone"
|
|
165
169
|
>
|
|
166
170
|
<uc-icon set="@name:toggleMicrophoneIcon"></uc-icon>
|
|
167
171
|
</button>
|
|
@@ -169,6 +173,7 @@ export const CameraSource = class {
|
|
|
169
173
|
<uc-select
|
|
170
174
|
class="uc-audio-select"
|
|
171
175
|
set="$.options: audioSelectOptions; onchange: onAudioSelectChange; @hidden: audioSelectHidden; @disabled: audioSelectDisabled"
|
|
176
|
+
data-testid="audio-select"
|
|
172
177
|
>
|
|
173
178
|
</uc-select>
|
|
174
179
|
</div>
|
|
@@ -808,8 +813,8 @@ export const EditorToolbar = class {
|
|
|
808
813
|
<div class="uc-list-aspect-ratio" ref="list-el"></div>
|
|
809
814
|
</div>
|
|
810
815
|
<div class="uc-controls-row">
|
|
811
|
-
<uc-btn-ui theme="secondary" set="onclick: on.cancelSlider" l10n="@text:cancel"> </uc-btn-ui>
|
|
812
|
-
<uc-btn-ui theme="primary" set="onclick: on.applySlider" l10n="@text:apply"> </uc-btn-ui>
|
|
816
|
+
<uc-btn-ui theme="secondary" set="onclick: on.cancelSlider; title-prop:cancel" l10n="@text:cancel"> </uc-btn-ui>
|
|
817
|
+
<uc-btn-ui theme="primary" set="onclick: on.applySlider; title-prop:apply" l10n="@text:apply"> </uc-btn-ui>
|
|
813
818
|
</div>
|
|
814
819
|
</uc-presence-toggle>
|
|
815
820
|
</div>
|
|
@@ -926,6 +931,7 @@ export const FileItem = class {
|
|
|
926
931
|
l10n="@title:file-item-edit-button;@aria-label:file-item-edit-button"
|
|
927
932
|
class="uc-edit-btn uc-mini-btn"
|
|
928
933
|
set="onclick: onEdit; @hidden: !isEditable"
|
|
934
|
+
data-testid="edit"
|
|
929
935
|
>
|
|
930
936
|
<uc-icon name="edit-file"></uc-icon>
|
|
931
937
|
</button>
|
|
@@ -1132,7 +1138,7 @@ export const ModalEvents = {
|
|
|
1132
1138
|
DESTROY: "modal:destroy",
|
|
1133
1139
|
};
|
|
1134
1140
|
export const PACKAGE_NAME = `blocks`;
|
|
1135
|
-
export const PACKAGE_VERSION = `1.24.
|
|
1141
|
+
export const PACKAGE_VERSION = `1.24.6`;
|
|
1136
1142
|
export const PresenceToggle = class {
|
|
1137
1143
|
static template = `<slot></slot> `;
|
|
1138
1144
|
static reg = () => {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uploadcare/file-uploader",
|
|
3
|
-
"version": "1.24.
|
|
3
|
+
"version": "1.24.6",
|
|
4
4
|
"description": "Building blocks for Uploadcare products integration",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web components",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"test:publint": "publint",
|
|
83
83
|
"test:specs": "vitest run --project specs",
|
|
84
84
|
"test:e2e": "vitest run --coverage --project e2e",
|
|
85
|
-
"test:e2e:dev": "vitest --browser.headless=false",
|
|
85
|
+
"test:e2e:dev": "vitest --coverage --browser.headless=false",
|
|
86
86
|
"test:locales": "tsx ./scripts/test-locales.ts",
|
|
87
87
|
"release": "shipjs prepare",
|
|
88
88
|
"build:lib": "npm run clean:web && npm run clean:dist && tsx ./scripts/build.ts",
|