@masters-union/union-stack 0.3.1 → 0.3.3
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/README.md +119 -0
- package/dist/cdn/loader.v1.global.js +1 -1
- package/dist/cdn/loader.v1.global.js.map +1 -1
- package/dist/{chunk-JHANJOHS.js → chunk-NGCMFOZO.js} +3 -3
- package/dist/{chunk-JHANJOHS.js.map → chunk-NGCMFOZO.js.map} +1 -1
- package/dist/{chunk-FFNVWHSR.cjs → chunk-QNU6GP55.cjs} +3 -3
- package/dist/{chunk-FFNVWHSR.cjs.map → chunk-QNU6GP55.cjs.map} +1 -1
- package/dist/{client-C3JZYYpA.d.cts → client-I6TadQ-m.d.cts} +2 -1
- package/dist/{client-C3JZYYpA.d.ts → client-I6TadQ-m.d.ts} +2 -1
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/picker.cjs +1 -0
- package/dist/picker.cjs.map +1 -1
- package/dist/picker.d.cts +2 -2
- package/dist/picker.d.ts +2 -2
- package/dist/picker.js +1 -0
- package/dist/picker.js.map +1 -1
- package/dist/react.cjs +2 -2
- package/dist/react.d.cts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.js +1 -1
- package/package.json +1 -1
package/dist/picker.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { U as UnionStackClient, g as PickerOptions, P as PickResponse, h as PickerHandle } from './client-
|
|
2
|
-
export { i as PickerBranding, j as PickerTheme } from './client-
|
|
1
|
+
import { U as UnionStackClient, g as PickerOptions, P as PickResponse, h as PickerHandle } from './client-I6TadQ-m.cjs';
|
|
2
|
+
export { i as PickerBranding, j as PickerTheme } from './client-I6TadQ-m.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Single-shot file picker modal. Built imperatively (no framework) so it can
|
package/dist/picker.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { U as UnionStackClient, g as PickerOptions, P as PickResponse, h as PickerHandle } from './client-
|
|
2
|
-
export { i as PickerBranding, j as PickerTheme } from './client-
|
|
1
|
+
import { U as UnionStackClient, g as PickerOptions, P as PickResponse, h as PickerHandle } from './client-I6TadQ-m.js';
|
|
2
|
+
export { i as PickerBranding, j as PickerTheme } from './client-I6TadQ-m.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Single-shot file picker modal. Built imperatively (no framework) so it can
|
package/dist/picker.js
CHANGED
|
@@ -1316,6 +1316,7 @@ var Picker = class {
|
|
|
1316
1316
|
const constraintBits = [];
|
|
1317
1317
|
if (this.opts.maxFileSize) constraintBits.push(`max ${formatBytes(this.opts.maxFileSize)}`);
|
|
1318
1318
|
if (this.opts.accept) {
|
|
1319
|
+
if (typeof this.opts.accept !== "string") this.opts.accept = this.opts.accept.join(",");
|
|
1319
1320
|
const types = this.opts.accept.split(",").map((s) => s.trim()).filter((s) => s && s !== "*/*").map((s) => s.replace("/*", ""));
|
|
1320
1321
|
if (types.length > 0 && types.length <= 4) {
|
|
1321
1322
|
constraintBits.push(types.join(" \xB7 "));
|