@plasmicapp/react-web 0.2.333 → 0.2.335

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.
Files changed (2) hide show
  1. package/dist/all.d.ts +276 -134
  2. package/package.json +25 -25
package/dist/all.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import * as React$1 from 'react';
3
- import React__default, { AriaAttributes, DOMAttributes as DOMAttributes$1, AriaRole, CSSProperties as CSSProperties$1, ReactNode, ReactElement, FocusEvent, KeyboardEvent as KeyboardEvent$1, SyntheticEvent } from 'react';
3
+ import React__default, { AriaAttributes, DOMAttributes as DOMAttributes$1, AriaRole, CSSProperties as CSSProperties$1, FocusEvent, KeyboardEvent as KeyboardEvent$2, SyntheticEvent, ReactNode, ReactElement } from 'react';
4
4
 
5
5
  interface PlasmicPageGuardProps {
6
6
  appId: string;
@@ -12289,7 +12289,7 @@ declare global {
12289
12289
  }
12290
12290
  }
12291
12291
 
12292
- type PropType<P> = StringType$1<P> | BooleanType$1<P> | NumberType$1<P> | JSONLikeType<P> | ChoiceType<P> | CustomType<P> | DataSourceType<P>;
12292
+ type PropType<P> = StringType$1<P> | BooleanType$1<P> | NumberType$1<P> | JSONLikeType<P> | ChoiceType<P> | DataSourceType<P>;
12293
12293
  type RestrictPropType<T, P> = T extends string ? StringType$1<P> | ChoiceType<P> | JSONLikeType<P> | CustomType<P> : T extends boolean ? BooleanType$1<P> | JSONLikeType<P> | CustomType<P> : T extends number ? NumberType$1<P> | JSONLikeType<P> | CustomType<P> : PropType<P>;
12294
12294
  type DistributedKeyOf<T> = T extends any ? keyof T : never;
12295
12295
  interface GlobalContextMeta<P> {
@@ -12793,6 +12793,269 @@ declare const Stack: (<T extends keyof JSX.IntrinsicElements = "div">(props: {
12793
12793
 
12794
12794
 
12795
12795
 
12796
+ interface AriaLabelingProps$1 {
12797
+ /**
12798
+ * Defines a string value that labels the current element.
12799
+ */
12800
+ 'aria-label'?: string,
12801
+
12802
+ /**
12803
+ * Identifies the element (or elements) that labels the current element.
12804
+ */
12805
+ 'aria-labelledby'?: string,
12806
+
12807
+ /**
12808
+ * Identifies the element (or elements) that describes the object.
12809
+ */
12810
+ 'aria-describedby'?: string,
12811
+
12812
+ /**
12813
+ * Identifies the element (or elements) that provide a detailed, extended description for the object.
12814
+ */
12815
+ 'aria-details'?: string
12816
+ }
12817
+
12818
+ // A set of common DOM props that are allowed on any component
12819
+ // Ensure this is synced with DOMPropNames in filterDOMProps
12820
+ interface DOMProps$1 {
12821
+ /**
12822
+ * The element's unique identifier. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id).
12823
+ */
12824
+ id?: string
12825
+ }
12826
+
12827
+ interface FocusableDOMProps$1 extends DOMProps$1 {
12828
+ /**
12829
+ * Whether to exclude the element from the sequential tab order. If true,
12830
+ * the element will not be focusable via the keyboard by tabbing. This should
12831
+ * be avoided except in rare scenarios where an alternative means of accessing
12832
+ * the element or its functionality via the keyboard is available.
12833
+ */
12834
+ excludeFromTabOrder?: boolean
12835
+ }
12836
+
12837
+ /** Any focusable element, including both HTML and SVG elements. */
12838
+ interface FocusableElement extends Element, HTMLOrSVGElement {}
12839
+
12840
+ /** All DOM attributes supported across both HTML and SVG elements. */
12841
+ interface DOMAttributes<T = FocusableElement> extends AriaAttributes, DOMAttributes$1<T> {
12842
+ id?: string | undefined,
12843
+ role?: AriaRole | undefined,
12844
+ tabIndex?: number | undefined,
12845
+ style?: CSSProperties$1 | undefined,
12846
+ className?: string | undefined
12847
+ }
12848
+
12849
+ /*
12850
+ * Copyright 2020 Adobe. All rights reserved.
12851
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
12852
+ * you may not use this file except in compliance with the License. You may obtain a copy
12853
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
12854
+ *
12855
+ * Unless required by applicable law or agreed to in writing, software distributed under
12856
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
12857
+ * OF ANY KIND, either express or implied. See the License for the specific language
12858
+ * governing permissions and limitations under the License.
12859
+ */
12860
+
12861
+
12862
+
12863
+ interface InputBase$1 {
12864
+ /** Whether the input is disabled. */
12865
+ isDisabled?: boolean,
12866
+ /** Whether the input can be selected but not changed by the user. */
12867
+ isReadOnly?: boolean
12868
+ }
12869
+
12870
+ /*
12871
+ * Copyright 2020 Adobe. All rights reserved.
12872
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
12873
+ * you may not use this file except in compliance with the License. You may obtain a copy
12874
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
12875
+ *
12876
+ * Unless required by applicable law or agreed to in writing, software distributed under
12877
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
12878
+ * OF ANY KIND, either express or implied. See the License for the specific language
12879
+ * governing permissions and limitations under the License.
12880
+ */
12881
+
12882
+
12883
+
12884
+ type FocusStrategy$1 = 'first' | 'last';
12885
+
12886
+ /*
12887
+ * Copyright 2020 Adobe. All rights reserved.
12888
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
12889
+ * you may not use this file except in compliance with the License. You may obtain a copy
12890
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
12891
+ *
12892
+ * Unless required by applicable law or agreed to in writing, software distributed under
12893
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
12894
+ * OF ANY KIND, either express or implied. See the License for the specific language
12895
+ * governing permissions and limitations under the License.
12896
+ */
12897
+
12898
+
12899
+
12900
+ // Event bubbling can be problematic in real-world applications, so the default for React Spectrum components
12901
+ // is not to propagate. This can be overridden by calling continuePropagation() on the event.
12902
+ type BaseEvent$1<T extends SyntheticEvent> = T & {
12903
+ /**
12904
+ * Use continuePropagation.
12905
+ * @deprecated */
12906
+ stopPropagation(): void,
12907
+ continuePropagation(): void
12908
+ }
12909
+
12910
+ type KeyboardEvent$1 = BaseEvent$1<KeyboardEvent$2<any>>;
12911
+
12912
+ interface KeyboardEvents$1 {
12913
+ /** Handler that is called when a key is pressed. */
12914
+ onKeyDown?: (e: KeyboardEvent$1) => void,
12915
+ /** Handler that is called when a key is released. */
12916
+ onKeyUp?: (e: KeyboardEvent$1) => void
12917
+ }
12918
+
12919
+ interface FocusEvents$1<Target = Element> {
12920
+ /** Handler that is called when the element receives focus. */
12921
+ onFocus?: (e: FocusEvent<Target>) => void,
12922
+ /** Handler that is called when the element loses focus. */
12923
+ onBlur?: (e: FocusEvent<Target>) => void,
12924
+ /** Handler that is called when the element's focus status changes. */
12925
+ onFocusChange?: (isFocused: boolean) => void
12926
+ }
12927
+
12928
+ interface FocusableProps$1<Target = Element> extends FocusEvents$1<Target>, KeyboardEvents$1 {
12929
+ /** Whether the element should receive focus on render. */
12930
+ autoFocus?: boolean
12931
+ }
12932
+
12933
+ declare function useFocused(opts: {
12934
+ isTextInput?: boolean;
12935
+ }): (boolean | DOMAttributes<FocusableElement>)[];
12936
+ declare function useFocusVisible(opts: {
12937
+ isTextInput?: boolean;
12938
+ }): (boolean | DOMAttributes<FocusableElement>)[];
12939
+ declare function useFocusedWithin(opts: {
12940
+ isTextInput?: boolean;
12941
+ }): (boolean | DOMAttributes<FocusableElement>)[];
12942
+ declare function useFocusVisibleWithin(opts: {
12943
+ isTextInput?: boolean;
12944
+ }): (boolean | DOMAttributes<FocusableElement>)[];
12945
+ declare function useHover(): (boolean | {
12946
+ onMouseEnter: () => void;
12947
+ onMouseLeave: () => void;
12948
+ })[];
12949
+ declare function usePressed(): (boolean | {
12950
+ onMouseDown: () => void;
12951
+ onMouseUp: () => void;
12952
+ })[];
12953
+ declare const TRIGGER_TO_HOOK: {
12954
+ readonly useHover: typeof useHover;
12955
+ readonly useFocused: typeof useFocused;
12956
+ readonly useFocusVisible: typeof useFocusVisible;
12957
+ readonly useFocusedWithin: typeof useFocusedWithin;
12958
+ readonly useFocusVisibleWithin: typeof useFocusVisibleWithin;
12959
+ readonly usePressed: typeof usePressed;
12960
+ };
12961
+ type TriggerType = keyof typeof TRIGGER_TO_HOOK;
12962
+ interface TriggerOpts {
12963
+ isTextInput?: boolean;
12964
+ }
12965
+ /**
12966
+ * Installs argment trigger. All the useTrigger calls must use hardcoded `trigger` arg,
12967
+ * as it's not valid to install variable React hooks!
12968
+ */
12969
+ declare function useTrigger(trigger: TriggerType, opts: TriggerOpts): [boolean, React$1.HTMLAttributes<HTMLElement>];
12970
+
12971
+ declare const classNames: any;
12972
+
12973
+ declare function setPlumeStrictMode(mode: boolean): void;
12974
+ type VariantArgChoices<T> = T extends (infer M)[] ? M : T extends SingleChoiceArg<infer M> ? M : never;
12975
+ type VariantArgsChoices<V> = {
12976
+ [k in keyof V]-?: VariantArgChoices<V[k]>;
12977
+ };
12978
+ type DictValues<V extends Record<string, any>> = V[keyof V];
12979
+ type DictTuples<V extends Record<string, any>> = DictValues<{
12980
+ [K in keyof V]: [K, V[K]];
12981
+ }>;
12982
+ type VariantDefTuple<V> = DictTuples<VariantArgsChoices<V>>;
12983
+ type DistributeTuple<T> = T extends [infer T1, infer T2] ? {
12984
+ group: T1;
12985
+ variant: T2;
12986
+ } : never;
12987
+ type VariantDef<V> = DistributeTuple<VariantDefTuple<V>>;
12988
+ type PlasmicClass<V extends Record<string, any>, A extends Record<string, any>, O extends Record<string, any>> = {
12989
+ (props: {
12990
+ variants?: V;
12991
+ args?: A;
12992
+ overrides?: O;
12993
+ }): React$1.ReactElement | null;
12994
+ internalVariantProps: (keyof V)[];
12995
+ internalArgProps: (keyof A)[];
12996
+ };
12997
+ type AnyPlasmicClass = PlasmicClass<any, any, any>;
12998
+ type PlasmicClassVariants<C extends AnyPlasmicClass> = C extends PlasmicClass<infer V, any, any> ? V : unknown;
12999
+ type PlasmicClassArgs<C extends AnyPlasmicClass> = C extends PlasmicClass<any, infer A, any> ? A : unknown;
13000
+ type PlasmicClassOverrides<C extends AnyPlasmicClass> = C extends PlasmicClass<any, any, infer O> ? O : unknown;
13001
+
13002
+ interface PlumeCommonProps {
13003
+ showStartIcon?: boolean;
13004
+ showEndIcon?: boolean;
13005
+ startIcon?: React$1.ReactNode;
13006
+ endIcon?: React$1.ReactNode;
13007
+ children?: React$1.ReactNode;
13008
+ isDisabled?: boolean;
13009
+ }
13010
+ interface HtmlButtonProps extends Omit<React$1.ComponentProps<"button">, "ref" | "disabled"> {
13011
+ }
13012
+ interface HtmlAnchorProps extends Omit<React$1.ComponentProps<"a">, "ref" | "href" | "target"> {
13013
+ }
13014
+ interface PlumeActualButtonProps {
13015
+ submitsForm?: boolean;
13016
+ }
13017
+ interface PlumeAnchorProps {
13018
+ link?: string;
13019
+ target?: React$1.ComponentProps<"a">["target"] | boolean;
13020
+ }
13021
+ type PlumeButtonProps = PlumeCommonProps & PlumeActualButtonProps & PlumeAnchorProps;
13022
+ type BaseButtonProps = PlumeButtonProps & HtmlButtonProps & HtmlAnchorProps;
13023
+ type AllButtonProps = PlumeCommonProps & PlumeActualButtonProps & HtmlButtonProps;
13024
+ type AllAnchorProps = PlumeCommonProps & PlumeAnchorProps & HtmlAnchorProps;
13025
+ type HtmlAnchorOnlyProps = Exclude<keyof AllAnchorProps, keyof AllButtonProps>;
13026
+ type HtmlButtonOnlyProps = Exclude<keyof AllButtonProps, keyof AllAnchorProps>;
13027
+ type ButtonRef = React$1.Ref<HTMLButtonElement | HTMLAnchorElement>;
13028
+ interface ButtonConfig<C extends AnyPlasmicClass> {
13029
+ showStartIconVariant: VariantDef<PlasmicClassVariants<C>>;
13030
+ showEndIconVariant?: VariantDef<PlasmicClassVariants<C>>;
13031
+ isDisabledVariant?: VariantDef<PlasmicClassVariants<C>>;
13032
+ startIconSlot?: keyof PlasmicClassArgs<C>;
13033
+ endIconSlot?: keyof PlasmicClassArgs<C>;
13034
+ contentSlot: keyof PlasmicClassArgs<C>;
13035
+ root: keyof PlasmicClassOverrides<C>;
13036
+ }
13037
+ declare function useButton<P extends PlumeButtonProps, C extends AnyPlasmicClass>(plasmicClass: C, props: P, config: ButtonConfig<C>, ref?: ButtonRef): {
13038
+ plasmicProps: {
13039
+ variants: PlasmicClassVariants<C>;
13040
+ args: PlasmicClassArgs<C>;
13041
+ overrides: PlasmicClassOverrides<C>;
13042
+ };
13043
+ };
13044
+
13045
+ /*
13046
+ * Copyright 2020 Adobe. All rights reserved.
13047
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
13048
+ * you may not use this file except in compliance with the License. You may obtain a copy
13049
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
13050
+ *
13051
+ * Unless required by applicable law or agreed to in writing, software distributed under
13052
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
13053
+ * OF ANY KIND, either express or implied. See the License for the specific language
13054
+ * governing permissions and limitations under the License.
13055
+ */
13056
+
13057
+
13058
+
12796
13059
  interface AriaLabelingProps {
12797
13060
  /**
12798
13061
  * Defines a string value that labels the current element.
@@ -12849,18 +13112,6 @@ interface InputDOMProps {
12849
13112
  name?: string
12850
13113
  }
12851
13114
 
12852
- /** Any focusable element, including both HTML and SVG elements. */
12853
- interface FocusableElement extends Element, HTMLOrSVGElement {}
12854
-
12855
- /** All DOM attributes supported across both HTML and SVG elements. */
12856
- interface DOMAttributes<T = FocusableElement> extends AriaAttributes, DOMAttributes$1<T> {
12857
- id?: string | undefined,
12858
- role?: AriaRole | undefined,
12859
- tabIndex?: number | undefined,
12860
- style?: CSSProperties$1 | undefined,
12861
- className?: string | undefined
12862
- }
12863
-
12864
13115
  /*
12865
13116
  * Copyright 2020 Adobe. All rights reserved.
12866
13117
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -12879,7 +13130,7 @@ type ValidationState = 'valid' | 'invalid';
12879
13130
 
12880
13131
  type ValidationError = string | string[];
12881
13132
 
12882
- interface Validation<T> {
13133
+ interface Validation<T = unknown> {
12883
13134
  /** Whether user input is required on the input before form submission. */
12884
13135
  isRequired?: boolean,
12885
13136
  /** Whether the input value is invalid. */
@@ -12987,7 +13238,7 @@ interface Node<T> {
12987
13238
  key: Key,
12988
13239
  /** The object value the node was created from. */
12989
13240
  value: T | null,
12990
- /** The level of depth this node is at in the heirarchy. */
13241
+ /** The level of depth this node is at in the hierarchy. */
12991
13242
  level: number,
12992
13243
  /** Whether this item has children, even if not loaded yet. */
12993
13244
  hasChildNodes: boolean,
@@ -13042,7 +13293,7 @@ type BaseEvent<T extends SyntheticEvent> = T & {
13042
13293
  continuePropagation(): void
13043
13294
  }
13044
13295
 
13045
- type KeyboardEvent = BaseEvent<KeyboardEvent$1<any>>;
13296
+ type KeyboardEvent = BaseEvent<KeyboardEvent$2<any>>;
13046
13297
 
13047
13298
  type PointerType = 'mouse' | 'pen' | 'touch' | 'keyboard' | 'virtual';
13048
13299
 
@@ -13109,118 +13360,6 @@ interface FocusableProps<Target = Element> extends FocusEvents<Target>, Keyboard
13109
13360
 
13110
13361
  type Key = string | number;
13111
13362
 
13112
- declare function useFocused(opts: {
13113
- isTextInput?: boolean;
13114
- }): (boolean | DOMAttributes<FocusableElement>)[];
13115
- declare function useFocusVisible(opts: {
13116
- isTextInput?: boolean;
13117
- }): (boolean | DOMAttributes<FocusableElement>)[];
13118
- declare function useFocusedWithin(opts: {
13119
- isTextInput?: boolean;
13120
- }): (boolean | DOMAttributes<FocusableElement>)[];
13121
- declare function useFocusVisibleWithin(opts: {
13122
- isTextInput?: boolean;
13123
- }): (boolean | DOMAttributes<FocusableElement>)[];
13124
- declare function useHover(): (boolean | {
13125
- onMouseEnter: () => void;
13126
- onMouseLeave: () => void;
13127
- })[];
13128
- declare function usePressed(): (boolean | {
13129
- onMouseDown: () => void;
13130
- onMouseUp: () => void;
13131
- })[];
13132
- declare const TRIGGER_TO_HOOK: {
13133
- readonly useHover: typeof useHover;
13134
- readonly useFocused: typeof useFocused;
13135
- readonly useFocusVisible: typeof useFocusVisible;
13136
- readonly useFocusedWithin: typeof useFocusedWithin;
13137
- readonly useFocusVisibleWithin: typeof useFocusVisibleWithin;
13138
- readonly usePressed: typeof usePressed;
13139
- };
13140
- type TriggerType = keyof typeof TRIGGER_TO_HOOK;
13141
- interface TriggerOpts {
13142
- isTextInput?: boolean;
13143
- }
13144
- /**
13145
- * Installs argment trigger. All the useTrigger calls must use hardcoded `trigger` arg,
13146
- * as it's not valid to install variable React hooks!
13147
- */
13148
- declare function useTrigger(trigger: TriggerType, opts: TriggerOpts): [boolean, React$1.HTMLAttributes<HTMLElement>];
13149
-
13150
- declare const classNames: any;
13151
-
13152
- declare function setPlumeStrictMode(mode: boolean): void;
13153
- type VariantArgChoices<T> = T extends (infer M)[] ? M : T extends SingleChoiceArg<infer M> ? M : never;
13154
- type VariantArgsChoices<V> = {
13155
- [k in keyof V]-?: VariantArgChoices<V[k]>;
13156
- };
13157
- type DictValues<V extends Record<string, any>> = V[keyof V];
13158
- type DictTuples<V extends Record<string, any>> = DictValues<{
13159
- [K in keyof V]: [K, V[K]];
13160
- }>;
13161
- type VariantDefTuple<V> = DictTuples<VariantArgsChoices<V>>;
13162
- type DistributeTuple<T> = T extends [infer T1, infer T2] ? {
13163
- group: T1;
13164
- variant: T2;
13165
- } : never;
13166
- type VariantDef<V> = DistributeTuple<VariantDefTuple<V>>;
13167
- type PlasmicClass<V extends Record<string, any>, A extends Record<string, any>, O extends Record<string, any>> = {
13168
- (props: {
13169
- variants?: V;
13170
- args?: A;
13171
- overrides?: O;
13172
- }): React$1.ReactElement | null;
13173
- internalVariantProps: (keyof V)[];
13174
- internalArgProps: (keyof A)[];
13175
- };
13176
- type AnyPlasmicClass = PlasmicClass<any, any, any>;
13177
- type PlasmicClassVariants<C extends AnyPlasmicClass> = C extends PlasmicClass<infer V, any, any> ? V : unknown;
13178
- type PlasmicClassArgs<C extends AnyPlasmicClass> = C extends PlasmicClass<any, infer A, any> ? A : unknown;
13179
- type PlasmicClassOverrides<C extends AnyPlasmicClass> = C extends PlasmicClass<any, any, infer O> ? O : unknown;
13180
-
13181
- interface PlumeCommonProps {
13182
- showStartIcon?: boolean;
13183
- showEndIcon?: boolean;
13184
- startIcon?: React$1.ReactNode;
13185
- endIcon?: React$1.ReactNode;
13186
- children?: React$1.ReactNode;
13187
- isDisabled?: boolean;
13188
- }
13189
- interface HtmlButtonProps extends Omit<React$1.ComponentProps<"button">, "ref" | "disabled"> {
13190
- }
13191
- interface HtmlAnchorProps extends Omit<React$1.ComponentProps<"a">, "ref" | "href" | "target"> {
13192
- }
13193
- interface PlumeActualButtonProps {
13194
- submitsForm?: boolean;
13195
- }
13196
- interface PlumeAnchorProps {
13197
- link?: string;
13198
- target?: React$1.ComponentProps<"a">["target"] | boolean;
13199
- }
13200
- type PlumeButtonProps = PlumeCommonProps & PlumeActualButtonProps & PlumeAnchorProps;
13201
- type BaseButtonProps = PlumeButtonProps & HtmlButtonProps & HtmlAnchorProps;
13202
- type AllButtonProps = PlumeCommonProps & PlumeActualButtonProps & HtmlButtonProps;
13203
- type AllAnchorProps = PlumeCommonProps & PlumeAnchorProps & HtmlAnchorProps;
13204
- type HtmlAnchorOnlyProps = Exclude<keyof AllAnchorProps, keyof AllButtonProps>;
13205
- type HtmlButtonOnlyProps = Exclude<keyof AllButtonProps, keyof AllAnchorProps>;
13206
- type ButtonRef = React$1.Ref<HTMLButtonElement | HTMLAnchorElement>;
13207
- interface ButtonConfig<C extends AnyPlasmicClass> {
13208
- showStartIconVariant: VariantDef<PlasmicClassVariants<C>>;
13209
- showEndIconVariant?: VariantDef<PlasmicClassVariants<C>>;
13210
- isDisabledVariant?: VariantDef<PlasmicClassVariants<C>>;
13211
- startIconSlot?: keyof PlasmicClassArgs<C>;
13212
- endIconSlot?: keyof PlasmicClassArgs<C>;
13213
- contentSlot: keyof PlasmicClassArgs<C>;
13214
- root: keyof PlasmicClassOverrides<C>;
13215
- }
13216
- declare function useButton<P extends PlumeButtonProps, C extends AnyPlasmicClass>(plasmicClass: C, props: P, config: ButtonConfig<C>, ref?: ButtonRef): {
13217
- plasmicProps: {
13218
- variants: PlasmicClassVariants<C>;
13219
- args: PlasmicClassArgs<C>;
13220
- overrides: PlasmicClassOverrides<C>;
13221
- };
13222
- };
13223
-
13224
13363
  /*
13225
13364
  * Copyright 2020 Adobe. All rights reserved.
13226
13365
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -13324,7 +13463,7 @@ declare function useCheckbox<P extends CheckboxProps, C extends AnyPlasmicClass>
13324
13463
  state: CheckboxState;
13325
13464
  };
13326
13465
 
13327
- interface BaseMenuProps extends DOMProps, AriaLabelingProps, StyleProps {
13466
+ interface BaseMenuProps extends DOMProps$1, AriaLabelingProps$1, StyleProps {
13328
13467
  /**
13329
13468
  * List of `Menu.Item`s or `Menu.Group`s that make up the menu
13330
13469
  */
@@ -13566,7 +13705,7 @@ interface DropdownMenuProps {
13566
13705
  }
13567
13706
  declare function DropdownMenu(props: DropdownMenuProps): React$1.JSX.Element;
13568
13707
 
13569
- interface BaseMenuButtonProps extends DOMProps, FocusableProps, StyleProps, Pick<React$1.ComponentProps<"button">, "title"> {
13708
+ interface BaseMenuButtonProps extends DOMProps$1, FocusableProps$1, StyleProps, Pick<React$1.ComponentProps<"button">, "title"> {
13570
13709
  /**
13571
13710
  * The menu to show; can either be a Menu instance, or a function that returns a Menu
13572
13711
  * instance if you want to defer creating the instance till when it's opened.
@@ -13632,7 +13771,7 @@ declare function useMenuButton<P extends BaseMenuButtonProps, C extends AnyPlasm
13632
13771
  state: MenuButtonState;
13633
13772
  };
13634
13773
 
13635
- interface BaseSelectProps extends DOMProps, AriaLabelingProps, FocusableDOMProps, InputBase, FocusableProps, StyleProps {
13774
+ interface BaseSelectProps extends DOMProps$1, AriaLabelingProps$1, FocusableDOMProps$1, InputBase$1, FocusableProps$1, StyleProps {
13636
13775
  /**
13637
13776
  * Key of the currently selected value
13638
13777
  */
@@ -13858,6 +13997,8 @@ interface MultipleSelectionManager extends FocusState {
13858
13997
  setSelectionBehavior(selectionBehavior: SelectionBehavior): void;
13859
13998
  /** Returns whether the given key is a hyperlink. */
13860
13999
  isLink(key: Key): boolean;
14000
+ /** Returns the props for the given item. */
14001
+ getItemProps(key: Key): any;
13861
14002
  }
13862
14003
  interface SelectionManagerOptions {
13863
14004
  allowsCellSelection?: boolean;
@@ -13962,6 +14103,7 @@ declare class SelectionManager implements MultipleSelectionManager {
13962
14103
  canSelectItem(key: Key): boolean;
13963
14104
  isDisabled(key: Key): boolean;
13964
14105
  isLink(key: Key): boolean;
14106
+ getItemProps(key: Key): any;
13965
14107
  }
13966
14108
 
13967
14109
  interface ListState<T> {
@@ -14093,7 +14235,7 @@ declare function useTextInput<P extends PlumeTextInputProps, C extends AnyPlasmi
14093
14235
  };
14094
14236
  };
14095
14237
 
14096
- interface BaseTriggeredOverlayProps extends StyleProps, DOMProps {
14238
+ interface BaseTriggeredOverlayProps extends StyleProps, DOMProps$1 {
14097
14239
  children?: React$1.ReactNode;
14098
14240
  }
14099
14241
  interface TriggeredOverlayConfig<C extends AnyPlasmicClass> {
@@ -14129,7 +14271,7 @@ interface OverlayTriggerState {
14129
14271
  interface TriggeredOverlayContextValue {
14130
14272
  triggerRef: React$1.RefObject<HTMLElement>;
14131
14273
  state: OverlayTriggerState;
14132
- autoFocus?: boolean | FocusStrategy;
14274
+ autoFocus?: boolean | FocusStrategy$1;
14133
14275
  placement?: Placement;
14134
14276
  overlayMatchTriggerWidth?: boolean;
14135
14277
  overlayMinTriggerWidth?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasmicapp/react-web",
3
- "version": "0.2.333",
3
+ "version": "0.2.335",
4
4
  "description": "plasmic library for rendering in the presentational style",
5
5
  "main": "dist/index.cjs.js",
6
6
  "types": "dist/index.d.ts",
@@ -97,31 +97,31 @@
97
97
  },
98
98
  "dependencies": {
99
99
  "@plasmicapp/auth-react": "0.0.21",
100
- "@plasmicapp/data-sources": "0.1.152",
100
+ "@plasmicapp/data-sources": "0.1.153",
101
101
  "@plasmicapp/data-sources-context": "0.1.21",
102
- "@plasmicapp/host": "1.0.193",
102
+ "@plasmicapp/host": "1.0.194",
103
103
  "@plasmicapp/loader-splits": "1.0.60",
104
104
  "@plasmicapp/nextjs-app-router": "1.0.11",
105
105
  "@plasmicapp/prepass": "1.0.17",
106
106
  "@plasmicapp/query": "0.1.79",
107
- "@react-aria/checkbox": "^3.11.2",
108
- "@react-aria/focus": "^3.14.3",
109
- "@react-aria/interactions": "^3.19.1",
110
- "@react-aria/listbox": "^3.11.1",
111
- "@react-aria/menu": "^3.11.1",
112
- "@react-aria/overlays": "^3.18.1",
113
- "@react-aria/select": "^3.13.1",
114
- "@react-aria/separator": "^3.3.7",
115
- "@react-aria/ssr": "^3.8.0",
116
- "@react-aria/switch": "^3.5.6",
117
- "@react-aria/visually-hidden": "^3.8.6",
118
- "@react-stately/collections": "^3.10.2",
119
- "@react-stately/list": "^3.10.0",
120
- "@react-stately/menu": "^3.5.6",
121
- "@react-stately/overlays": "^3.6.3",
122
- "@react-stately/select": "^3.5.5",
123
- "@react-stately/toggle": "^3.6.3",
124
- "@react-stately/tree": "^3.7.3",
107
+ "@react-aria/checkbox": "^3.14.2",
108
+ "@react-aria/focus": "^3.17.0",
109
+ "@react-aria/interactions": "^3.21.2",
110
+ "@react-aria/listbox": "^3.12.0",
111
+ "@react-aria/menu": "^3.14.0",
112
+ "@react-aria/overlays": "^3.22.0",
113
+ "@react-aria/select": "^3.14.4",
114
+ "@react-aria/separator": "^3.3.12",
115
+ "@react-aria/ssr": "^3.9.3",
116
+ "@react-aria/switch": "^3.6.3",
117
+ "@react-aria/visually-hidden": "^3.8.11",
118
+ "@react-stately/collections": "^3.10.6",
119
+ "@react-stately/list": "^3.10.4",
120
+ "@react-stately/menu": "^3.7.0",
121
+ "@react-stately/overlays": "^3.6.6",
122
+ "@react-stately/select": "^3.6.3",
123
+ "@react-stately/toggle": "^3.7.3",
124
+ "@react-stately/tree": "^3.8.0",
125
125
  "classnames": "^2.5.1",
126
126
  "clone": "^2.1.2",
127
127
  "dlv": "^1.1.3",
@@ -133,9 +133,9 @@
133
133
  "@babel/preset-env": "^7.22.15",
134
134
  "@babel/preset-react": "^7.22.15",
135
135
  "@babel/preset-typescript": "^7.22.15",
136
- "@react-types/overlays": "^3.8.3",
137
- "@react-types/select": "^3.8.4",
138
- "@react-types/shared": "^3.21.0",
136
+ "@react-types/overlays": "^3.8.5",
137
+ "@react-types/select": "^3.9.2",
138
+ "@react-types/shared": "^3.22.1",
139
139
  "@rollup/plugin-commonjs": "^25.0.2",
140
140
  "@rollup/plugin-json": "^6.0.0",
141
141
  "@rollup/plugin-node-resolve": "^15.1.0",
@@ -168,5 +168,5 @@
168
168
  "react": ">=16.8.0",
169
169
  "react-dom": ">=16.8.0"
170
170
  },
171
- "gitHead": "ec1ec1085b5ea8cdaf8eea3b901340c32656fc0d"
171
+ "gitHead": "49d20a068413cd4682820d3b17382f6eff15a797"
172
172
  }