@uploadcare/file-uploader 1.3.0-alpha.5 → 1.3.0-alpha.7
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/abstract/Block.d.ts.map +1 -1
- package/abstract/Block.js +5 -16
- package/package.json +2 -2
- package/web/file-uploader.iife.min.js +5 -4
- package/web/file-uploader.min.js +5 -4
- package/web/uc-cloud-image-editor.min.js +5 -4
- package/web/uc-file-uploader-inline.min.js +5 -4
- package/web/uc-file-uploader-minimal.min.js +4 -3
- package/web/uc-file-uploader-regular.min.js +5 -4
- package/web/uc-img.min.js +1 -0
package/abstract/Block.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Block.d.ts","sourceRoot":"","sources":["Block.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Block.d.ts","sourceRoot":"","sources":["Block.js"],"names":[],"mappings":"AAmBA;IACE,4BAA4B;IAC5B,2BADW,MAAM,GAAG,IAAI,CACS;IAEjC,uBAAuB;IACvB,mBADW,MAAM,EAAE,CACI;IAwTvB,6BAA6B;IAC7B,4CAQC;IA7QD,cAOC;IAzDD,iBAAiB;IACjB,kCAAuB;IAEvB,wDAAwD;IACxD,cADW,OAAO,oBAAoB,EAAE,YAAY,CAChC;IAEpB,UAAmB;IAEnB;;;;OAIG;IACH,8BAHW;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;KAAE,UAiB5C;IAED;;;;;OAKG;IACH,kBAIC;IAED;;;;OAIG;IACH,wBAJW,MAAM,YACN,MAAM,IAAI,QAKpB;IAIC,uDAAuD;IACvD,mBADW,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC;QAAE,MAAM,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC,CAAC,CACjB;IAMpC;;;;OAIG;IACH,WAJW,UAAU,CAAC,OAAO,6CAA6C,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,YACzF,UAAU,CAAC,OAAO,6CAA6C,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,YACzF,UAAU,CAAC,OAAO,6CAA6C,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,QASnG;IAED;;;OAGG;IACH,wBAHW,CAAC,KAAK,EAAE,KAAK,KAAK,OAAO,WAUnC;IAED;;;OAGG;IACH,oCAFW,GAAG,QASb;IAoED;;;OAGG;IACH,4BAEC;IAED;;;OAGG;IACH,kCAEC;IAED,yBAAyB;IACzB,iCAEC;IAsBD;;;;OAIG;IACH,qCAIC;IAED;;;;OAIG;IACH,iCAHa,OAAO,QAAQ,CA6B3B;IAED,iDAAiD;IACjD,yCA8BC;IA3BG,eAAe;IACf,mBAuBE;IAKN;;;;OAIG;IACH,eAJmD,CAAC,SAAvC,MAAO,OAAO,UAAU,EAAE,UAAW,OACvC,CAAC,YACD,CAAC,KAAK,EAAE,OAAO,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,IAAI,QAQ3D;IAED,8BAA8B;IAC9B,oBADY,OAAO,EAAE,QAYpB;CAYF;yBAzVqD,gBAAgB;qBAWjD,WAAW"}
|
package/abstract/Block.js
CHANGED
|
@@ -15,7 +15,6 @@ import { l10nProcessor } from './l10nProcessor.js';
|
|
|
15
15
|
import { sharedConfigKey } from './sharedConfigKey.js';
|
|
16
16
|
|
|
17
17
|
const TAG_PREFIX = 'uc-';
|
|
18
|
-
const CTX_NAME_FALLBACK_ATTR = 'ctx-name';
|
|
19
18
|
|
|
20
19
|
// @ts-ignore TODO: fix this
|
|
21
20
|
export class Block extends Symbiote {
|
|
@@ -137,27 +136,17 @@ export class Block extends Symbiote {
|
|
|
137
136
|
this.processInnerHtml = true;
|
|
138
137
|
}
|
|
139
138
|
if (this.requireCtxName) {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}),
|
|
145
|
-
waitForAttribute({
|
|
146
|
-
element: this,
|
|
147
|
-
attribute: CTX_NAME_FALLBACK_ATTR,
|
|
148
|
-
}),
|
|
149
|
-
]).then((result) => {
|
|
139
|
+
waitForAttribute({
|
|
140
|
+
element: this,
|
|
141
|
+
attribute: DICT.CTX_NAME_ATTR,
|
|
142
|
+
}).then((result) => {
|
|
150
143
|
if (result.success) {
|
|
151
|
-
if (result.attribute === CTX_NAME_FALLBACK_ATTR) {
|
|
152
|
-
const ctxName = result.value;
|
|
153
|
-
this.style.setProperty(DICT.CSS_CTX_PROP, `'${ctxName}'`);
|
|
154
|
-
}
|
|
155
144
|
// async wait for ctx attribute to be set, needed for Angular because it sets attributes after mount
|
|
156
145
|
// TODO: should be moved to the symbiote core
|
|
157
146
|
super.connectedCallback();
|
|
158
147
|
} else {
|
|
159
148
|
console.error(
|
|
160
|
-
`Attribute "${DICT.CTX_NAME_ATTR}"
|
|
149
|
+
`Attribute "${DICT.CTX_NAME_ATTR}" is required and it is not set.`,
|
|
161
150
|
);
|
|
162
151
|
}
|
|
163
152
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uploadcare/file-uploader",
|
|
3
|
-
"version": "1.3.0-alpha.
|
|
3
|
+
"version": "1.3.0-alpha.7",
|
|
4
4
|
"description": "Building blocks for Uploadcare products integration",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web components",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"MIT"
|
|
36
36
|
],
|
|
37
37
|
"type": "module",
|
|
38
|
-
"sideEffects": ["*.css"],
|
|
38
|
+
"sideEffects": ["*.css", "./symbiote.js"],
|
|
39
39
|
"module": "./index.js",
|
|
40
40
|
"exports": {
|
|
41
41
|
".": {
|