@plasmicapp/react-web 0.2.250 → 0.2.252
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/LICENSE.app.md +661 -0
- package/dist/all.d.ts +73 -47
- package/dist/auth/PlasmicPageGuard.d.ts +1 -1
- package/dist/index.cjs.js +7 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/plume/collection-utils.d.ts +3 -3
- package/dist/plume/menu-button/DropdownMenu.d.ts +1 -1
- package/dist/react-utils.d.ts +1 -1
- package/dist/react-web.esm.js +7 -2
- package/dist/react-web.esm.js.map +1 -1
- package/dist/render/PlasmicHead/index.d.ts +1 -1
- package/dist/render/PlasmicIcon.d.ts +1 -1
- package/dist/render/PlasmicLink.d.ts +2 -2
- package/dist/render/PlasmicSlot.d.ts +2 -2
- package/dist/render/ssr.d.ts +1 -1
- package/dist/states/valtio.d.ts +1 -1
- package/dist/stories/PlasmicImg.stories.d.ts +2 -3
- package/dist/stories/UseDollarState.stories.d.ts +22 -23
- package/lib/auth/PlasmicPageGuard.d.ts +1 -1
- package/package.json +19 -12
- package/skinny/dist/auth/PlasmicPageGuard.d.ts +1 -1
- package/skinny/dist/{collection-utils-12be6625.js → collection-utils-b8088b18.js} +4 -4
- package/skinny/dist/{collection-utils-12be6625.js.map → collection-utils-b8088b18.js.map} +1 -1
- package/skinny/dist/{common-e74df507.js → common-7e2bbe30.js} +8 -3
- package/skinny/dist/common-7e2bbe30.js.map +1 -0
- package/skinny/dist/index.js +4 -4
- package/skinny/dist/plume/button/index.js +2 -2
- package/skinny/dist/plume/checkbox/index.js +5 -5
- package/skinny/dist/plume/collection-utils.d.ts +3 -3
- package/skinny/dist/plume/menu/index.js +6 -6
- package/skinny/dist/plume/menu-button/DropdownMenu.d.ts +1 -1
- package/skinny/dist/plume/menu-button/index.js +5 -5
- package/skinny/dist/plume/select/index.js +6 -6
- package/skinny/dist/plume/switch/index.js +5 -5
- package/skinny/dist/plume/text-input/index.js +2 -2
- package/skinny/dist/plume/triggered-overlay/index.js +4 -4
- package/skinny/dist/{plume-utils-3d2c0c98.js → plume-utils-9472dfe6.js} +2 -2
- package/skinny/dist/{plume-utils-3d2c0c98.js.map → plume-utils-9472dfe6.js.map} +1 -1
- package/skinny/dist/{props-utils-30c7073a.js → props-utils-b08721e5.js} +2 -2
- package/skinny/dist/{props-utils-30c7073a.js.map → props-utils-b08721e5.js.map} +1 -1
- package/skinny/dist/{react-utils-8796beba.js → react-utils-d266354d.js} +2 -2
- package/skinny/dist/{react-utils-8796beba.js.map → react-utils-d266354d.js.map} +1 -1
- package/skinny/dist/react-utils.d.ts +1 -1
- package/skinny/dist/render/PlasmicHead/index.d.ts +1 -1
- package/skinny/dist/render/PlasmicIcon.d.ts +1 -1
- package/skinny/dist/render/PlasmicImg/index.js +2 -2
- package/skinny/dist/render/PlasmicLink.d.ts +2 -2
- package/skinny/dist/render/PlasmicSlot.d.ts +2 -2
- package/skinny/dist/render/ssr.d.ts +1 -1
- package/skinny/dist/{ssr-90db5fad.js → ssr-145c6cd2.js} +2 -2
- package/skinny/dist/{ssr-90db5fad.js.map → ssr-145c6cd2.js.map} +1 -1
- package/skinny/dist/states/valtio.d.ts +1 -1
- package/skinny/dist/stories/PlasmicImg.stories.d.ts +2 -3
- package/skinny/dist/stories/UseDollarState.stories.d.ts +22 -23
- package/LICENSE.md +0 -21
- package/skinny/dist/common-e74df507.js.map +0 -1
package/dist/all.d.ts
CHANGED
|
@@ -12,11 +12,17 @@ import React__default, { AriaAttributes, DOMAttributes as DOMAttributes$1, AriaR
|
|
|
12
12
|
// Michal Adamczyk <https://github.com/mradamczyk>
|
|
13
13
|
// Marvin Hagemeister <https://github.com/marvinhagemeister>
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
type
|
|
17
|
-
type
|
|
15
|
+
declare namespace classNames$1 {
|
|
16
|
+
type Value = string | number | boolean | undefined | null;
|
|
17
|
+
type Mapping = Record<string, unknown>;
|
|
18
|
+
interface ArgumentArray extends Array<Argument> {}
|
|
19
|
+
type Argument = Value | Mapping | ArgumentArray;
|
|
20
|
+
}
|
|
18
21
|
|
|
19
|
-
|
|
22
|
+
/**
|
|
23
|
+
* A simple JavaScript utility for conditionally joining classNames together.
|
|
24
|
+
*/
|
|
25
|
+
declare function classNames$1(...args: classNames$1.ArgumentArray): string;
|
|
20
26
|
|
|
21
27
|
interface PlasmicPageGuardProps {
|
|
22
28
|
appId: string;
|
|
@@ -26,7 +32,7 @@ interface PlasmicPageGuardProps {
|
|
|
26
32
|
children: React__default.ReactNode;
|
|
27
33
|
unauthorizedComp?: React__default.ReactNode;
|
|
28
34
|
}
|
|
29
|
-
declare function PlasmicPageGuard(props: PlasmicPageGuardProps): JSX.Element | null;
|
|
35
|
+
declare function PlasmicPageGuard(props: PlasmicPageGuardProps): React__default.JSX.Element | null;
|
|
30
36
|
declare function withPlasmicPageGuard<P extends object>(WrappedComponent: React__default.ComponentType<P>, options: Omit<PlasmicPageGuardProps, "children">): React__default.FC<P>;
|
|
31
37
|
|
|
32
38
|
declare function pick<T extends {}>(obj: T, ...keys: (string | number | symbol)[]): Partial<T>;
|
|
@@ -11183,6 +11189,11 @@ interface ComponentTemplates<P> {
|
|
|
11183
11189
|
}
|
|
11184
11190
|
type StateSpec = {
|
|
11185
11191
|
onChangeProp: string;
|
|
11192
|
+
/**
|
|
11193
|
+
* If true, will hide the state in a collapsed section; good for states that
|
|
11194
|
+
* should not usually be used.
|
|
11195
|
+
*/
|
|
11196
|
+
advanced?: boolean;
|
|
11186
11197
|
} & ({
|
|
11187
11198
|
type: "readonly";
|
|
11188
11199
|
variableType: "text";
|
|
@@ -12061,7 +12072,7 @@ type PlasmicHeadProps = {
|
|
|
12061
12072
|
image?: string;
|
|
12062
12073
|
canonical?: string;
|
|
12063
12074
|
};
|
|
12064
|
-
declare function PlasmicHead(props: PlasmicHeadProps): JSX.Element | null;
|
|
12075
|
+
declare function PlasmicHead(props: PlasmicHeadProps): React$1.JSX.Element | null;
|
|
12065
12076
|
declare const plasmicHeadMeta: {
|
|
12066
12077
|
name: string;
|
|
12067
12078
|
displayName: string;
|
|
@@ -12092,7 +12103,7 @@ declare const plasmicHeadMeta: {
|
|
|
12092
12103
|
|
|
12093
12104
|
declare function PlasmicIcon(props: React$1.ComponentProps<"svg"> & {
|
|
12094
12105
|
PlasmicIconType: React$1.ComponentType;
|
|
12095
|
-
}): JSX.Element;
|
|
12106
|
+
}): React$1.JSX.Element;
|
|
12096
12107
|
|
|
12097
12108
|
/**
|
|
12098
12109
|
* Responsive `<img/>` replacement, based on `next/image`
|
|
@@ -12175,18 +12186,18 @@ interface PlasmicImgProps extends ImgTagProps {
|
|
|
12175
12186
|
}
|
|
12176
12187
|
declare const PlasmicImg: React__default.ForwardRefExoticComponent<PlasmicImgProps & React__default.RefAttributes<HTMLElement>>;
|
|
12177
12188
|
|
|
12178
|
-
declare const PlasmicLink: React__default.ForwardRefExoticComponent<
|
|
12189
|
+
declare const PlasmicLink: React__default.ForwardRefExoticComponent<Omit<any, "ref"> & React__default.RefAttributes<any>>;
|
|
12179
12190
|
|
|
12180
12191
|
declare function PlasmicSlot<T extends keyof JSX.IntrinsicElements = "div">(props: React$1.ComponentProps<T> & {
|
|
12181
12192
|
as?: T;
|
|
12182
12193
|
defaultContents?: React$1.ReactNode;
|
|
12183
12194
|
value?: React$1.ReactNode;
|
|
12184
|
-
}): JSX.Element | null;
|
|
12195
|
+
}): React$1.JSX.Element | null;
|
|
12185
12196
|
declare function renderPlasmicSlot<T extends keyof JSX.IntrinsicElements = "div">(opts: {
|
|
12186
12197
|
as?: T;
|
|
12187
12198
|
defaultContents?: React$1.ReactNode;
|
|
12188
12199
|
value?: React$1.ReactNode;
|
|
12189
|
-
}): JSX.Element | null;
|
|
12200
|
+
}): React$1.JSX.Element | null;
|
|
12190
12201
|
|
|
12191
12202
|
type Queries = {
|
|
12192
12203
|
[name: string]: string;
|
|
@@ -12263,7 +12274,7 @@ interface PlasmicRootProviderProps extends PlasmicDataSourceContextValue {
|
|
|
12263
12274
|
disableLoadingBoundary?: boolean;
|
|
12264
12275
|
suspenseFallback?: React$1.ReactNode;
|
|
12265
12276
|
}
|
|
12266
|
-
declare function PlasmicRootProvider(props: PlasmicRootProviderProps): JSX.Element;
|
|
12277
|
+
declare function PlasmicRootProvider(props: PlasmicRootProviderProps): React$1.JSX.Element;
|
|
12267
12278
|
declare const useIsSSR: typeof useIsSSR$1;
|
|
12268
12279
|
|
|
12269
12280
|
declare const Stack: (<T extends keyof JSX.IntrinsicElements = "div">(props: {
|
|
@@ -12380,6 +12391,13 @@ interface FocusableDOMProps extends DOMProps {
|
|
|
12380
12391
|
excludeFromTabOrder?: boolean
|
|
12381
12392
|
}
|
|
12382
12393
|
|
|
12394
|
+
interface InputDOMProps {
|
|
12395
|
+
/**
|
|
12396
|
+
* The name of the input element, used when submitting an HTML form. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefname).
|
|
12397
|
+
*/
|
|
12398
|
+
name?: string
|
|
12399
|
+
}
|
|
12400
|
+
|
|
12383
12401
|
/** Any focusable element, including both HTML and SVG elements. */
|
|
12384
12402
|
interface FocusableElement extends Element, HTMLOrSVGElement {}
|
|
12385
12403
|
|
|
@@ -12409,13 +12427,12 @@ interface DOMAttributes<T = FocusableElement> extends AriaAttributes, DOMAttribu
|
|
|
12409
12427
|
type ValidationState = 'valid' | 'invalid';
|
|
12410
12428
|
|
|
12411
12429
|
interface Validation {
|
|
12412
|
-
/** Whether
|
|
12413
|
-
|
|
12414
|
-
/**
|
|
12415
|
-
|
|
12416
|
-
|
|
12417
|
-
|
|
12418
|
-
isRequired?: boolean
|
|
12430
|
+
/** Whether user input is required on the input before form submission. */
|
|
12431
|
+
isRequired?: boolean,
|
|
12432
|
+
/** Whether the input value is invalid. */
|
|
12433
|
+
isInvalid?: boolean,
|
|
12434
|
+
/** @deprecated Use `isInvalid` instead. */
|
|
12435
|
+
validationState?: ValidationState
|
|
12419
12436
|
}
|
|
12420
12437
|
|
|
12421
12438
|
interface InputBase {
|
|
@@ -12472,10 +12489,10 @@ interface Collection<T> extends Iterable<T> {
|
|
|
12472
12489
|
getKeys(): Iterable<Key>,
|
|
12473
12490
|
|
|
12474
12491
|
/** Get an item by its key. */
|
|
12475
|
-
getItem(key: Key): T,
|
|
12492
|
+
getItem(key: Key): T | null,
|
|
12476
12493
|
|
|
12477
12494
|
/** Get an item by the index of its key. */
|
|
12478
|
-
at(idx: number): T,
|
|
12495
|
+
at(idx: number): T | null,
|
|
12479
12496
|
|
|
12480
12497
|
/** Get the key that comes before the given key in the collection. */
|
|
12481
12498
|
getKeyBefore(key: Key): Key | null,
|
|
@@ -12487,7 +12504,13 @@ interface Collection<T> extends Iterable<T> {
|
|
|
12487
12504
|
getFirstKey(): Key | null,
|
|
12488
12505
|
|
|
12489
12506
|
/** Get the last key in the collection. */
|
|
12490
|
-
getLastKey(): Key | null
|
|
12507
|
+
getLastKey(): Key | null,
|
|
12508
|
+
|
|
12509
|
+
/** Iterate over the child items of the given key. */
|
|
12510
|
+
getChildren?(key: Key): Iterable<T>,
|
|
12511
|
+
|
|
12512
|
+
/** Returns a string representation of the item's contents. */
|
|
12513
|
+
getTextValue?(key: Key): string
|
|
12491
12514
|
}
|
|
12492
12515
|
|
|
12493
12516
|
interface Node<T> {
|
|
@@ -12496,12 +12519,15 @@ interface Node<T> {
|
|
|
12496
12519
|
/** A unique key for the node. */
|
|
12497
12520
|
key: Key,
|
|
12498
12521
|
/** The object value the node was created from. */
|
|
12499
|
-
value: T,
|
|
12522
|
+
value: T | null,
|
|
12500
12523
|
/** The level of depth this node is at in the heirarchy. */
|
|
12501
12524
|
level: number,
|
|
12502
12525
|
/** Whether this item has children, even if not loaded yet. */
|
|
12503
12526
|
hasChildNodes: boolean,
|
|
12504
|
-
/**
|
|
12527
|
+
/**
|
|
12528
|
+
* The loaded children of this node.
|
|
12529
|
+
* @deprecated Use `collection.getChildren(node.key)` instead.
|
|
12530
|
+
*/
|
|
12505
12531
|
childNodes: Iterable<Node<T>>,
|
|
12506
12532
|
/** The rendered contents of this node (e.g. JSX). */
|
|
12507
12533
|
rendered: ReactNode,
|
|
@@ -12514,11 +12540,11 @@ interface Node<T> {
|
|
|
12514
12540
|
/** A function that should be called to wrap the rendered node. */
|
|
12515
12541
|
wrapper?: (element: ReactElement) => ReactElement,
|
|
12516
12542
|
/** The key of the parent node. */
|
|
12517
|
-
parentKey?: Key,
|
|
12543
|
+
parentKey?: Key | null,
|
|
12518
12544
|
/** The key of the node before this node. */
|
|
12519
|
-
prevKey?: Key,
|
|
12545
|
+
prevKey?: Key | null,
|
|
12520
12546
|
/** The key of the node after this node. */
|
|
12521
|
-
nextKey?: Key,
|
|
12547
|
+
nextKey?: Key | null,
|
|
12522
12548
|
/** Additional properties specific to a particular node type. */
|
|
12523
12549
|
props?: any,
|
|
12524
12550
|
/** @private */
|
|
@@ -12542,7 +12568,9 @@ interface Node<T> {
|
|
|
12542
12568
|
// Event bubbling can be problematic in real-world applications, so the default for React Spectrum components
|
|
12543
12569
|
// is not to propagate. This can be overridden by calling continuePropagation() on the event.
|
|
12544
12570
|
type BaseEvent<T extends SyntheticEvent> = T & {
|
|
12545
|
-
/**
|
|
12571
|
+
/**
|
|
12572
|
+
* Use continuePropagation.
|
|
12573
|
+
* @deprecated */
|
|
12546
12574
|
stopPropagation(): void,
|
|
12547
12575
|
continuePropagation(): void
|
|
12548
12576
|
}
|
|
@@ -12565,10 +12593,16 @@ interface PressEvent {
|
|
|
12565
12593
|
/** Whether the meta keyboard modifier was held during the press event. */
|
|
12566
12594
|
metaKey: boolean,
|
|
12567
12595
|
/** Whether the alt keyboard modifier was held during the press event. */
|
|
12568
|
-
altKey: boolean
|
|
12596
|
+
altKey: boolean,
|
|
12597
|
+
/**
|
|
12598
|
+
* By default, press events stop propagation to parent elements.
|
|
12599
|
+
* In cases where a handler decides not to handle a specific event,
|
|
12600
|
+
* it can call `continuePropagation()` to allow a parent to handle it.
|
|
12601
|
+
*/
|
|
12602
|
+
continuePropagation(): void
|
|
12569
12603
|
}
|
|
12570
12604
|
|
|
12571
|
-
interface LongPressEvent extends Omit<PressEvent, 'type'> {
|
|
12605
|
+
interface LongPressEvent extends Omit<PressEvent, 'type' | 'continuePropagation'> {
|
|
12572
12606
|
/** The type of long press event being fired. */
|
|
12573
12607
|
type: 'longpressstart' | 'longpressend' | 'longpress'
|
|
12574
12608
|
}
|
|
@@ -12580,16 +12614,16 @@ interface KeyboardEvents {
|
|
|
12580
12614
|
onKeyUp?: (e: KeyboardEvent) => void
|
|
12581
12615
|
}
|
|
12582
12616
|
|
|
12583
|
-
interface FocusEvents {
|
|
12617
|
+
interface FocusEvents<Target = Element> {
|
|
12584
12618
|
/** Handler that is called when the element receives focus. */
|
|
12585
|
-
onFocus?: (e: FocusEvent) => void,
|
|
12619
|
+
onFocus?: (e: FocusEvent<Target>) => void,
|
|
12586
12620
|
/** Handler that is called when the element loses focus. */
|
|
12587
|
-
onBlur?: (e: FocusEvent) => void,
|
|
12621
|
+
onBlur?: (e: FocusEvent<Target>) => void,
|
|
12588
12622
|
/** Handler that is called when the element's focus status changes. */
|
|
12589
12623
|
onFocusChange?: (isFocused: boolean) => void
|
|
12590
12624
|
}
|
|
12591
12625
|
|
|
12592
|
-
interface FocusableProps extends FocusEvents
|
|
12626
|
+
interface FocusableProps<Target = Element> extends FocusEvents<Target>, KeyboardEvents {
|
|
12593
12627
|
/** Whether the element should receive focus on render. */
|
|
12594
12628
|
autoFocus?: boolean
|
|
12595
12629
|
}
|
|
@@ -12740,14 +12774,10 @@ interface ToggleProps extends InputBase, Validation, FocusableProps {
|
|
|
12740
12774
|
/**
|
|
12741
12775
|
* The value of the input element, used when submitting an HTML form. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefvalue).
|
|
12742
12776
|
*/
|
|
12743
|
-
value?: string
|
|
12744
|
-
/**
|
|
12745
|
-
* The name of the input element, used when submitting an HTML form. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefname).
|
|
12746
|
-
*/
|
|
12747
|
-
name?: string
|
|
12777
|
+
value?: string
|
|
12748
12778
|
}
|
|
12749
12779
|
|
|
12750
|
-
interface AriaToggleProps extends ToggleProps, FocusableDOMProps, AriaLabelingProps, AriaValidationProps {
|
|
12780
|
+
interface AriaToggleProps extends ToggleProps, FocusableDOMProps, AriaLabelingProps, AriaValidationProps, InputDOMProps {
|
|
12751
12781
|
/**
|
|
12752
12782
|
* Identifies the element (or elements) whose contents or presence are controlled by the current element.
|
|
12753
12783
|
*/
|
|
@@ -13053,7 +13083,7 @@ interface DropdownMenuProps {
|
|
|
13053
13083
|
*/
|
|
13054
13084
|
onOpenChange?: (isOpen: boolean) => void;
|
|
13055
13085
|
}
|
|
13056
|
-
declare function DropdownMenu(props: DropdownMenuProps): JSX.Element;
|
|
13086
|
+
declare function DropdownMenu(props: DropdownMenuProps): React$1.JSX.Element;
|
|
13057
13087
|
|
|
13058
13088
|
interface BaseMenuButtonProps extends DOMProps, FocusableProps, StyleProps, Pick<React$1.ComponentProps<"button">, "title"> {
|
|
13059
13089
|
/**
|
|
@@ -13387,7 +13417,7 @@ declare class SelectionManager implements MultipleSelectionManager {
|
|
|
13387
13417
|
/**
|
|
13388
13418
|
* Sets the focused key.
|
|
13389
13419
|
*/
|
|
13390
|
-
setFocusedKey(key: Key, childFocusStrategy?: FocusStrategy): void;
|
|
13420
|
+
setFocusedKey(key: Key | null, childFocusStrategy?: FocusStrategy): void;
|
|
13391
13421
|
/**
|
|
13392
13422
|
* The currently selected keys in the collection.
|
|
13393
13423
|
*/
|
|
@@ -13495,14 +13525,10 @@ interface SwitchBase extends InputBase, FocusableProps {
|
|
|
13495
13525
|
/**
|
|
13496
13526
|
* The value of the input element, used when submitting an HTML form. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefvalue).
|
|
13497
13527
|
*/
|
|
13498
|
-
value?: string
|
|
13499
|
-
/**
|
|
13500
|
-
* The name of the input element, used when submitting an HTML form. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefname).
|
|
13501
|
-
*/
|
|
13502
|
-
name?: string
|
|
13528
|
+
value?: string
|
|
13503
13529
|
}
|
|
13504
13530
|
interface SwitchProps$1 extends SwitchBase {}
|
|
13505
|
-
interface AriaSwitchBase extends SwitchBase, FocusableDOMProps, AriaLabelingProps {
|
|
13531
|
+
interface AriaSwitchBase extends SwitchBase, FocusableDOMProps, InputDOMProps, AriaLabelingProps {
|
|
13506
13532
|
/**
|
|
13507
13533
|
* Identifies the element (or elements) whose contents or presence are controlled by the current element.
|
|
13508
13534
|
*/
|
|
@@ -7,6 +7,6 @@ interface PlasmicPageGuardProps {
|
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
unauthorizedComp?: React.ReactNode;
|
|
9
9
|
}
|
|
10
|
-
export declare function PlasmicPageGuard(props: PlasmicPageGuardProps): JSX.Element | null;
|
|
10
|
+
export declare function PlasmicPageGuard(props: PlasmicPageGuardProps): React.JSX.Element | null;
|
|
11
11
|
export declare function withPlasmicPageGuard<P extends object>(WrappedComponent: React.ComponentType<P>, options: Omit<PlasmicPageGuardProps, "children">): React.FC<P>;
|
|
12
12
|
export {};
|
package/dist/index.cjs.js
CHANGED
|
@@ -61,7 +61,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
61
61
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
62
62
|
PERFORMANCE OF THIS SOFTWARE.
|
|
63
63
|
***************************************************************************** */
|
|
64
|
-
/* global Reflect, Promise */
|
|
64
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
65
65
|
|
|
66
66
|
var extendStatics = function(d, b) {
|
|
67
67
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -176,7 +176,12 @@ function __spreadArray(to, from, pack) {
|
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
179
|
-
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
182
|
+
var e = new Error(message);
|
|
183
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
184
|
+
};
|
|
180
185
|
|
|
181
186
|
// https://stackoverflow.com/a/2117523
|
|
182
187
|
function uuidv4() {
|