@uploadcare/file-uploader 1.25.0-alpha.3 → 1.25.0-alpha.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 (75) hide show
  1. package/dist/abstract/loadFileUploaderFrom.js +4 -79
  2. package/dist/env.js +4 -33
  3. package/dist/index.css +5 -2664
  4. package/dist/index.d.ts +925 -928
  5. package/dist/index.js +6 -13630
  6. package/dist/index.layered.css +4 -2720
  7. package/dist/index.ssr.js +33 -29
  8. package/dist/locales/file-uploader/ar.js +4 -165
  9. package/dist/locales/file-uploader/az.js +4 -157
  10. package/dist/locales/file-uploader/ca.js +4 -159
  11. package/dist/locales/file-uploader/cs.js +4 -161
  12. package/dist/locales/file-uploader/da.js +4 -157
  13. package/dist/locales/file-uploader/de.js +4 -157
  14. package/dist/locales/file-uploader/el.js +4 -157
  15. package/dist/locales/file-uploader/en.js +4 -157
  16. package/dist/locales/file-uploader/es.js +4 -159
  17. package/dist/locales/file-uploader/et.js +4 -157
  18. package/dist/locales/file-uploader/fi.js +4 -157
  19. package/dist/locales/file-uploader/fr.js +4 -159
  20. package/dist/locales/file-uploader/he.js +4 -159
  21. package/dist/locales/file-uploader/hy.js +4 -157
  22. package/dist/locales/file-uploader/is.js +4 -157
  23. package/dist/locales/file-uploader/it.js +4 -159
  24. package/dist/locales/file-uploader/ja.js +4 -157
  25. package/dist/locales/file-uploader/ka.js +4 -157
  26. package/dist/locales/file-uploader/kk.js +4 -157
  27. package/dist/locales/file-uploader/ko.js +4 -157
  28. package/dist/locales/file-uploader/lv.js +4 -159
  29. package/dist/locales/file-uploader/nb.js +4 -157
  30. package/dist/locales/file-uploader/nl.js +4 -157
  31. package/dist/locales/file-uploader/pl.js +4 -161
  32. package/dist/locales/file-uploader/pt.js +4 -159
  33. package/dist/locales/file-uploader/ro.js +4 -159
  34. package/dist/locales/file-uploader/ru.js +4 -161
  35. package/dist/locales/file-uploader/sk.js +4 -161
  36. package/dist/locales/file-uploader/sr.js +4 -159
  37. package/dist/locales/file-uploader/sv.js +4 -157
  38. package/dist/locales/file-uploader/tr.js +4 -157
  39. package/dist/locales/file-uploader/uk.js +4 -161
  40. package/dist/locales/file-uploader/vi.js +4 -157
  41. package/dist/locales/file-uploader/zh-TW.js +4 -157
  42. package/dist/locales/file-uploader/zh.js +4 -157
  43. package/package.json +19 -18
  44. package/types/jsx.d.ts +75 -48
  45. package/web/file-uploader.iife.min.d.ts +927 -930
  46. package/web/file-uploader.iife.min.js +6 -31
  47. package/web/file-uploader.iife.min.js.LEGAL.txt +71 -0
  48. package/web/file-uploader.min.d.ts +927 -930
  49. package/web/file-uploader.min.js +5 -29
  50. package/web/file-uploader.min.js.LEGAL.txt +71 -0
  51. package/web/uc-basic.layered.min.css +4 -23
  52. package/web/uc-basic.min.css +4 -23
  53. package/web/uc-cloud-image-editor.layered.min.css +4 -23
  54. package/web/uc-cloud-image-editor.min.css +4 -23
  55. package/web/uc-cloud-image-editor.min.d.ts +489 -495
  56. package/web/uc-cloud-image-editor.min.js +5 -29
  57. package/web/uc-cloud-image-editor.min.js.LEGAL.txt +70 -0
  58. package/web/uc-file-uploader-inline.layered.min.css +4 -23
  59. package/web/uc-file-uploader-inline.min.css +4 -23
  60. package/web/uc-file-uploader-inline.min.d.ts +927 -930
  61. package/web/uc-file-uploader-inline.min.js +5 -29
  62. package/web/uc-file-uploader-inline.min.js.LEGAL.txt +71 -0
  63. package/web/uc-file-uploader-minimal.layered.min.css +4 -23
  64. package/web/uc-file-uploader-minimal.min.css +4 -23
  65. package/web/uc-file-uploader-minimal.min.d.ts +927 -930
  66. package/web/uc-file-uploader-minimal.min.js +5 -29
  67. package/web/uc-file-uploader-minimal.min.js.LEGAL.txt +71 -0
  68. package/web/uc-file-uploader-regular.layered.min.css +4 -23
  69. package/web/uc-file-uploader-regular.min.css +4 -23
  70. package/web/uc-file-uploader-regular.min.d.ts +927 -930
  71. package/web/uc-file-uploader-regular.min.js +5 -29
  72. package/web/uc-file-uploader-regular.min.js.LEGAL.txt +71 -0
  73. package/web/uc-img.min.d.ts +28 -38
  74. package/web/uc-img.min.js +5 -25
  75. package/web/uc-img.min.js.LEGAL.txt +24 -0
@@ -1,82 +1,7 @@
1
1
  /**
2
2
  * @license
3
- * MIT License
4
- *
5
- * Copyright (c) 2025 Uploadcare (hello@uploadcare.com). All rights reserved.
6
- *
7
- * Permission is hereby granted, free of charge, to any person obtaining a copy
8
- * of this software and associated documentation files (the "Software"), to deal
9
- * in the Software without restriction, including without limitation the rights
10
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- * copies of the Software, and to permit persons to whom the Software is
12
- * furnished to do so, subject to the following conditions:
13
- *
14
- * The above copyright notice and this permission notice shall be included in all
15
- * copies or substantial portions of the Software.
16
- *
17
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
- * SOFTWARE.
24
- *
3
+ * Package: @uploadcare/file-uploader@1.25.0-alpha.6 (MIT)
4
+ * License: https://github.com/uploadcare/file-uploader/blob/main/LICENSE
5
+ * Built: 2025-12-12T00:37:30.012Z
25
6
  */
26
-
27
- // src/abstract/defineComponents.ts
28
- var EXCLUDE_COMPONENTS = ["UploaderBlock", "ActivityBlock", "Block", "SolutionBlock"];
29
- function defineComponents(blockExports) {
30
- for (const blockName in blockExports) {
31
- if (EXCLUDE_COMPONENTS.includes(blockName)) {
32
- continue;
33
- }
34
- let tagName = [...blockName].reduce((name, char) => {
35
- if (char.toUpperCase() === char) {
36
- char = `-${char.toLowerCase()}`;
37
- }
38
- name += char;
39
- return name;
40
- }, "");
41
- if (tagName.startsWith("-")) {
42
- tagName = tagName.replace("-", "");
43
- }
44
- if (!tagName.startsWith("uc-")) {
45
- tagName = `uc-${tagName}`;
46
- }
47
- if (blockExports[blockName].reg) {
48
- blockExports[blockName].reg(tagName);
49
- }
50
- }
51
- }
52
-
53
- // src/abstract/loadFileUploaderFrom.ts
54
- var UC_WINDOW_KEY = "UC";
55
- function loadFileUploaderFrom(url, register = false) {
56
- return new Promise((resolve, reject) => {
57
- if (typeof document !== "object") {
58
- resolve(null);
59
- return;
60
- }
61
- if (typeof window === "object" && window[UC_WINDOW_KEY]) {
62
- resolve(window[UC_WINDOW_KEY]);
63
- return;
64
- }
65
- const script = document.createElement("script");
66
- script.async = true;
67
- script.src = url;
68
- script.onerror = () => {
69
- reject();
70
- };
71
- script.onload = () => {
72
- const blocks = window[UC_WINDOW_KEY];
73
- register && defineComponents(blocks);
74
- resolve(blocks);
75
- };
76
- document.head.appendChild(script);
77
- });
78
- }
79
- export {
80
- UC_WINDOW_KEY,
81
- loadFileUploaderFrom
82
- };
7
+ var l=["UploaderBlock","ActivityBlock","Block","SolutionBlock"];function c(t){for(let n in t){if(l.includes(n))continue;let e=[...n].reduce((i,o)=>(o.toUpperCase()===o&&(o=`-${o.toLowerCase()}`),i+=o,i),"");e.startsWith("-")&&(e=e.replace("-","")),e.startsWith("uc-")||(e=`uc-${e}`),t[n].reg&&t[n].reg(e);}}var r="UC";function a(t,n=false){return new Promise((e,i)=>{if(typeof document!="object"){e(null);return}if(typeof window=="object"&&window[r]){e(window[r]);return}let o=document.createElement("script");o.async=true,o.src=t,o.onerror=()=>{i();},o.onload=()=>{let d=window[r];n&&c(d),e(d);},document.head.appendChild(o);})}export{r as UC_WINDOW_KEY,a as loadFileUploaderFrom};
package/dist/env.js CHANGED
@@ -1,36 +1,7 @@
1
1
  /**
2
2
  * @license
3
- * MIT License
4
- *
5
- * Copyright (c) 2025 Uploadcare (hello@uploadcare.com). All rights reserved.
6
- *
7
- * Permission is hereby granted, free of charge, to any person obtaining a copy
8
- * of this software and associated documentation files (the "Software"), to deal
9
- * in the Software without restriction, including without limitation the rights
10
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- * copies of the Software, and to permit persons to whom the Software is
12
- * furnished to do so, subject to the following conditions:
13
- *
14
- * The above copyright notice and this permission notice shall be included in all
15
- * copies or substantial portions of the Software.
16
- *
17
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
- * SOFTWARE.
24
- *
3
+ * Package: @uploadcare/file-uploader@1.25.0-alpha.6 (MIT)
4
+ * License: https://github.com/uploadcare/file-uploader/blob/main/LICENSE
5
+ * Built: 2025-12-12T00:37:30.012Z
25
6
  */
26
-
27
- // package.json
28
- var version = "1.25.0-alpha.3";
29
-
30
- // src/env.ts
31
- var PACKAGE_NAME = "blocks";
32
- var PACKAGE_VERSION = version;
33
- export {
34
- PACKAGE_NAME,
35
- PACKAGE_VERSION
36
- };
7
+ var s="1.25.0-alpha.6";var l="blocks",p=s;export{l as PACKAGE_NAME,p as PACKAGE_VERSION};