@masters-union/union-stack 0.3.9 → 0.3.11
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/cdn/loader.v1.global.js +16 -2
- package/dist/cdn/loader.v1.global.js.map +1 -1
- package/dist/{chunk-27RCQJAE.cjs → chunk-NIO443GV.cjs} +7 -7
- package/dist/{chunk-27RCQJAE.cjs.map → chunk-NIO443GV.cjs.map} +1 -1
- package/dist/{chunk-ZOOUTUWU.cjs → chunk-NOAB2Q4B.cjs} +3 -3
- package/dist/{chunk-ZOOUTUWU.cjs.map → chunk-NOAB2Q4B.cjs.map} +1 -1
- package/dist/{chunk-DV5YSBNS.js → chunk-SP4HHLZB.js} +3 -3
- package/dist/{chunk-DV5YSBNS.js.map → chunk-SP4HHLZB.js.map} +1 -1
- package/dist/{chunk-YNWENXR2.js → chunk-Z5PZQVST.js} +3 -3
- package/dist/{chunk-YNWENXR2.js.map → chunk-Z5PZQVST.js.map} +1 -1
- package/dist/{client-B1KPVLJR.d.ts → client-C0qMOfb3.d.ts} +18 -1
- package/dist/{client-DP2jyZzm.d.cts → client-DOTa3Mai.d.cts} +18 -1
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/node.cjs +7 -7
- package/dist/node.d.cts +2 -2
- package/dist/node.d.ts +2 -2
- package/dist/node.js +1 -1
- package/dist/picker.cjs +256 -17
- package/dist/picker.cjs.map +1 -1
- package/dist/picker.d.cts +11 -3
- package/dist/picker.d.ts +11 -3
- package/dist/picker.js +256 -17
- package/dist/picker.js.map +1 -1
- package/dist/react.cjs +3 -3
- package/dist/react.d.cts +4 -4
- package/dist/react.d.ts +4 -4
- package/dist/react.js +2 -2
- package/dist/{types-50o0pbff.d.ts → types-ZCfjNZls.d.cts} +13 -0
- package/dist/{types-50o0pbff.d.cts → types-ZCfjNZls.d.ts} +13 -0
- package/package.json +1 -1
package/dist/react.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkNIO443GV_cjs = require('./chunk-NIO443GV.cjs');
|
|
4
|
+
require('./chunk-NOAB2Q4B.cjs');
|
|
5
5
|
var React3 = require('react');
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
@@ -27,7 +27,7 @@ var React3__namespace = /*#__PURE__*/_interopNamespace(React3);
|
|
|
27
27
|
var UnionStackContext = React3__namespace.createContext(null);
|
|
28
28
|
function UnionStackProvider({ children, ...cfg }) {
|
|
29
29
|
const client = React3__namespace.useMemo(
|
|
30
|
-
() => new
|
|
30
|
+
() => new chunkNIO443GV_cjs.UnionStackClient(cfg),
|
|
31
31
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
32
32
|
[cfg.apiKey, cfg.chunkSize]
|
|
33
33
|
);
|
package/dist/react.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { U as UnionStackClient, P as PickerOptions } from './client-
|
|
3
|
-
export { b as PickerBranding, a as PickerHandle, c as PickerTheme } from './client-
|
|
4
|
-
import { C as ClientConfig, e as UploadedFile, a as PickedFile, U as UploadError, B as BatchUploadOptions, P as PickResponse } from './types-
|
|
5
|
-
export { b as ProgressEvent, c as UploadErrorCode, d as UploadOptions } from './types-
|
|
2
|
+
import { U as UnionStackClient, P as PickerOptions } from './client-DOTa3Mai.cjs';
|
|
3
|
+
export { b as PickerBranding, a as PickerHandle, c as PickerTheme } from './client-DOTa3Mai.cjs';
|
|
4
|
+
import { C as ClientConfig, e as UploadedFile, a as PickedFile, U as UploadError, B as BatchUploadOptions, P as PickResponse } from './types-ZCfjNZls.cjs';
|
|
5
|
+
export { b as ProgressEvent, c as UploadErrorCode, d as UploadOptions } from './types-ZCfjNZls.cjs';
|
|
6
6
|
|
|
7
7
|
interface UnionStackProviderProps extends ClientConfig {
|
|
8
8
|
children: React.ReactNode;
|
package/dist/react.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { U as UnionStackClient, P as PickerOptions } from './client-
|
|
3
|
-
export { b as PickerBranding, a as PickerHandle, c as PickerTheme } from './client-
|
|
4
|
-
import { C as ClientConfig, e as UploadedFile, a as PickedFile, U as UploadError, B as BatchUploadOptions, P as PickResponse } from './types-
|
|
5
|
-
export { b as ProgressEvent, c as UploadErrorCode, d as UploadOptions } from './types-
|
|
2
|
+
import { U as UnionStackClient, P as PickerOptions } from './client-C0qMOfb3.js';
|
|
3
|
+
export { b as PickerBranding, a as PickerHandle, c as PickerTheme } from './client-C0qMOfb3.js';
|
|
4
|
+
import { C as ClientConfig, e as UploadedFile, a as PickedFile, U as UploadError, B as BatchUploadOptions, P as PickResponse } from './types-ZCfjNZls.js';
|
|
5
|
+
export { b as ProgressEvent, c as UploadErrorCode, d as UploadOptions } from './types-ZCfjNZls.js';
|
|
6
6
|
|
|
7
7
|
interface UnionStackProviderProps extends ClientConfig {
|
|
8
8
|
children: React.ReactNode;
|
package/dist/react.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UnionStackClient } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
import { UnionStackClient } from './chunk-SP4HHLZB.js';
|
|
2
|
+
import './chunk-Z5PZQVST.js';
|
|
3
3
|
import * as React3 from 'react';
|
|
4
4
|
|
|
5
5
|
var UnionStackContext = React3.createContext(null);
|
|
@@ -112,6 +112,19 @@ interface PickerConfig {
|
|
|
112
112
|
chunkSizeBytes: number;
|
|
113
113
|
allowedMimeTypes: string[];
|
|
114
114
|
};
|
|
115
|
+
/**
|
|
116
|
+
* Per-key image rules, enforced client-side by the picker. `cropRatioW/H`
|
|
117
|
+
* lock the crop box to a fixed ratio (both null = free-form). `forceCrop`
|
|
118
|
+
* requires every image to be cropped to that ratio before upload.
|
|
119
|
+
* `minWidth/minHeight` reject images below those pixel dimensions.
|
|
120
|
+
*/
|
|
121
|
+
image?: {
|
|
122
|
+
cropRatioW: number | null;
|
|
123
|
+
cropRatioH: number | null;
|
|
124
|
+
forceCrop: boolean;
|
|
125
|
+
minWidth: number | null;
|
|
126
|
+
minHeight: number | null;
|
|
127
|
+
} | null;
|
|
115
128
|
mode: 'live' | 'test';
|
|
116
129
|
/**
|
|
117
130
|
* Server-issued deprecation notice when this SDK version is below the
|
|
@@ -112,6 +112,19 @@ interface PickerConfig {
|
|
|
112
112
|
chunkSizeBytes: number;
|
|
113
113
|
allowedMimeTypes: string[];
|
|
114
114
|
};
|
|
115
|
+
/**
|
|
116
|
+
* Per-key image rules, enforced client-side by the picker. `cropRatioW/H`
|
|
117
|
+
* lock the crop box to a fixed ratio (both null = free-form). `forceCrop`
|
|
118
|
+
* requires every image to be cropped to that ratio before upload.
|
|
119
|
+
* `minWidth/minHeight` reject images below those pixel dimensions.
|
|
120
|
+
*/
|
|
121
|
+
image?: {
|
|
122
|
+
cropRatioW: number | null;
|
|
123
|
+
cropRatioH: number | null;
|
|
124
|
+
forceCrop: boolean;
|
|
125
|
+
minWidth: number | null;
|
|
126
|
+
minHeight: number | null;
|
|
127
|
+
} | null;
|
|
115
128
|
mode: 'live' | 'test';
|
|
116
129
|
/**
|
|
117
130
|
* Server-issued deprecation notice when this SDK version is below the
|
package/package.json
CHANGED