@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/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-C3JZYYpA.cjs';
2
- export { i as PickerBranding, j as PickerTheme } from './client-C3JZYYpA.cjs';
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-C3JZYYpA.js';
2
- export { i as PickerBranding, j as PickerTheme } from './client-C3JZYYpA.js';
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 "));