@shipstatic/drop 2.11.2 → 2.12.0-beta.0

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/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { PlatformLimits } from '@shipstatic/types';
2
- import { P as ProcessedFile, D as DropStatus } from './useDrop-C43AHhf8.cjs';
3
- export { a as DropInputProps, b as DropOptions, c as DropPhase, d as DropReturn, e as DropzonePropsOptions, f as PickerMode, u as useDrop } from './useDrop-C43AHhf8.cjs';
2
+ import { P as ProcessedFile, D as DropStatus } from './useDrop-vakC-Kel.cjs';
3
+ export { a as DropInputProps, b as DropOptions, c as DropPhase, d as DropReturn, e as DropzonePropsOptions, f as PickerMode, u as useDrop } from './useDrop-vakC-Kel.cjs';
4
4
  import '@shipstatic/ship';
5
5
 
6
6
  interface ProcessFilesOptions {
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { PlatformLimits } from '@shipstatic/types';
2
- import { P as ProcessedFile, D as DropStatus } from './useDrop-C43AHhf8.js';
3
- export { a as DropInputProps, b as DropOptions, c as DropPhase, d as DropReturn, e as DropzonePropsOptions, f as PickerMode, u as useDrop } from './useDrop-C43AHhf8.js';
2
+ import { P as ProcessedFile, D as DropStatus } from './useDrop-vakC-Kel.js';
3
+ export { a as DropInputProps, b as DropOptions, c as DropPhase, d as DropReturn, e as DropzonePropsOptions, f as PickerMode, u as useDrop } from './useDrop-vakC-Kel.js';
4
4
  import '@shipstatic/ship';
5
5
 
6
6
  interface ProcessFilesOptions {
package/dist/index.js CHANGED
@@ -185,6 +185,7 @@ var BILLING_RETURNS = {
185
185
  portal: ["billing", "returned"]
186
186
  };
187
187
  var marker = (kind) => BILLING_RETURNS[kind].join("=");
188
+ var withNext = (door, next) => next ? `${door}?next=${encodeURIComponent(next)}` : door;
188
189
  function consolePaths(account) {
189
190
  const base = "";
190
191
  const at = (path) => `${base}${path}`;
@@ -210,6 +211,9 @@ function consolePaths(account) {
210
211
  apiKey: () => at("/api-key")
211
212
  };
212
213
  }
214
+ Object.assign(({ next } = {}) => withNext("/login", next), {
215
+ link: ({ token, next }) => withNext(`/login/link/${token}`, next)
216
+ });
213
217
  `https://my.shipstatic.com${consolePaths().apiKey()}`;
214
218
  var FileValidationStatus = {
215
219
  /** File is pending validation */