@plasmicapp/react-web 0.2.334 → 0.2.336

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 +284 -133
  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;
@@ -11556,6 +11556,15 @@ interface CodeComponentMeta<P> {
11556
11556
  * The description of the component to be shown in Studio.
11557
11557
  */
11558
11558
  description?: string;
11559
+ /**
11560
+ * A specific section to which the component should be displayed in Studio. By default, the component will be displayed in the "Custom Components" section.
11561
+ * A new section will be created to display the components with the same `section` value.
11562
+ */
11563
+ section?: string;
11564
+ /**
11565
+ * A link to an image that will be displayed as a thumbnail of the component in the Studio, if the component has a `section` specified.
11566
+ */
11567
+ thumbnailUrl?: string;
11559
11568
  /**
11560
11569
  * The javascript name to be used when generating code. Optional: if not
11561
11570
  * provided, `meta.name` is used.
@@ -12793,6 +12802,269 @@ declare const Stack: (<T extends keyof JSX.IntrinsicElements = "div">(props: {
12793
12802
 
12794
12803
 
12795
12804
 
12805
+ interface AriaLabelingProps$1 {
12806
+ /**
12807
+ * Defines a string value that labels the current element.
12808
+ */
12809
+ 'aria-label'?: string,
12810
+
12811
+ /**
12812
+ * Identifies the element (or elements) that labels the current element.
12813
+ */
12814
+ 'aria-labelledby'?: string,
12815
+
12816
+ /**
12817
+ * Identifies the element (or elements) that describes the object.
12818
+ */
12819
+ 'aria-describedby'?: string,
12820
+
12821
+ /**
12822
+ * Identifies the element (or elements) that provide a detailed, extended description for the object.
12823
+ */
12824
+ 'aria-details'?: string
12825
+ }
12826
+
12827
+ // A set of common DOM props that are allowed on any component
12828
+ // Ensure this is synced with DOMPropNames in filterDOMProps
12829
+ interface DOMProps$1 {
12830
+ /**
12831
+ * The element's unique identifier. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id).
12832
+ */
12833
+ id?: string
12834
+ }
12835
+
12836
+ interface FocusableDOMProps$1 extends DOMProps$1 {
12837
+ /**
12838
+ * Whether to exclude the element from the sequential tab order. If true,
12839
+ * the element will not be focusable via the keyboard by tabbing. This should
12840
+ * be avoided except in rare scenarios where an alternative means of accessing
12841
+ * the element or its functionality via the keyboard is available.
12842
+ */
12843
+ excludeFromTabOrder?: boolean
12844
+ }
12845
+
12846
+ /** Any focusable element, including both HTML and SVG elements. */
12847
+ interface FocusableElement extends Element, HTMLOrSVGElement {}
12848
+
12849
+ /** All DOM attributes supported across both HTML and SVG elements. */
12850
+ interface DOMAttributes<T = FocusableElement> extends AriaAttributes, DOMAttributes$1<T> {
12851
+ id?: string | undefined,
12852
+ role?: AriaRole | undefined,
12853
+ tabIndex?: number | undefined,
12854
+ style?: CSSProperties$1 | undefined,
12855
+ className?: string | undefined
12856
+ }
12857
+
12858
+ /*
12859
+ * Copyright 2020 Adobe. All rights reserved.
12860
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
12861
+ * you may not use this file except in compliance with the License. You may obtain a copy
12862
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
12863
+ *
12864
+ * Unless required by applicable law or agreed to in writing, software distributed under
12865
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
12866
+ * OF ANY KIND, either express or implied. See the License for the specific language
12867
+ * governing permissions and limitations under the License.
12868
+ */
12869
+
12870
+
12871
+
12872
+ interface InputBase$1 {
12873
+ /** Whether the input is disabled. */
12874
+ isDisabled?: boolean,
12875
+ /** Whether the input can be selected but not changed by the user. */
12876
+ isReadOnly?: boolean
12877
+ }
12878
+
12879
+ /*
12880
+ * Copyright 2020 Adobe. All rights reserved.
12881
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
12882
+ * you may not use this file except in compliance with the License. You may obtain a copy
12883
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
12884
+ *
12885
+ * Unless required by applicable law or agreed to in writing, software distributed under
12886
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
12887
+ * OF ANY KIND, either express or implied. See the License for the specific language
12888
+ * governing permissions and limitations under the License.
12889
+ */
12890
+
12891
+
12892
+
12893
+ type FocusStrategy$1 = 'first' | 'last';
12894
+
12895
+ /*
12896
+ * Copyright 2020 Adobe. All rights reserved.
12897
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
12898
+ * you may not use this file except in compliance with the License. You may obtain a copy
12899
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
12900
+ *
12901
+ * Unless required by applicable law or agreed to in writing, software distributed under
12902
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
12903
+ * OF ANY KIND, either express or implied. See the License for the specific language
12904
+ * governing permissions and limitations under the License.
12905
+ */
12906
+
12907
+
12908
+
12909
+ // Event bubbling can be problematic in real-world applications, so the default for React Spectrum components
12910
+ // is not to propagate. This can be overridden by calling continuePropagation() on the event.
12911
+ type BaseEvent$1<T extends SyntheticEvent> = T & {
12912
+ /**
12913
+ * Use continuePropagation.
12914
+ * @deprecated */
12915
+ stopPropagation(): void,
12916
+ continuePropagation(): void
12917
+ }
12918
+
12919
+ type KeyboardEvent$1 = BaseEvent$1<KeyboardEvent$2<any>>;
12920
+
12921
+ interface KeyboardEvents$1 {
12922
+ /** Handler that is called when a key is pressed. */
12923
+ onKeyDown?: (e: KeyboardEvent$1) => void,
12924
+ /** Handler that is called when a key is released. */
12925
+ onKeyUp?: (e: KeyboardEvent$1) => void
12926
+ }
12927
+
12928
+ interface FocusEvents$1<Target = Element> {
12929
+ /** Handler that is called when the element receives focus. */
12930
+ onFocus?: (e: FocusEvent<Target>) => void,
12931
+ /** Handler that is called when the element loses focus. */
12932
+ onBlur?: (e: FocusEvent<Target>) => void,
12933
+ /** Handler that is called when the element's focus status changes. */
12934
+ onFocusChange?: (isFocused: boolean) => void
12935
+ }
12936
+
12937
+ interface FocusableProps$1<Target = Element> extends FocusEvents$1<Target>, KeyboardEvents$1 {
12938
+ /** Whether the element should receive focus on render. */
12939
+ autoFocus?: boolean
12940
+ }
12941
+
12942
+ declare function useFocused(opts: {
12943
+ isTextInput?: boolean;
12944
+ }): (boolean | DOMAttributes<FocusableElement>)[];
12945
+ declare function useFocusVisible(opts: {
12946
+ isTextInput?: boolean;
12947
+ }): (boolean | DOMAttributes<FocusableElement>)[];
12948
+ declare function useFocusedWithin(opts: {
12949
+ isTextInput?: boolean;
12950
+ }): (boolean | DOMAttributes<FocusableElement>)[];
12951
+ declare function useFocusVisibleWithin(opts: {
12952
+ isTextInput?: boolean;
12953
+ }): (boolean | DOMAttributes<FocusableElement>)[];
12954
+ declare function useHover(): (boolean | {
12955
+ onMouseEnter: () => void;
12956
+ onMouseLeave: () => void;
12957
+ })[];
12958
+ declare function usePressed(): (boolean | {
12959
+ onMouseDown: () => void;
12960
+ onMouseUp: () => void;
12961
+ })[];
12962
+ declare const TRIGGER_TO_HOOK: {
12963
+ readonly useHover: typeof useHover;
12964
+ readonly useFocused: typeof useFocused;
12965
+ readonly useFocusVisible: typeof useFocusVisible;
12966
+ readonly useFocusedWithin: typeof useFocusedWithin;
12967
+ readonly useFocusVisibleWithin: typeof useFocusVisibleWithin;
12968
+ readonly usePressed: typeof usePressed;
12969
+ };
12970
+ type TriggerType = keyof typeof TRIGGER_TO_HOOK;
12971
+ interface TriggerOpts {
12972
+ isTextInput?: boolean;
12973
+ }
12974
+ /**
12975
+ * Installs argment trigger. All the useTrigger calls must use hardcoded `trigger` arg,
12976
+ * as it's not valid to install variable React hooks!
12977
+ */
12978
+ declare function useTrigger(trigger: TriggerType, opts: TriggerOpts): [boolean, React$1.HTMLAttributes<HTMLElement>];
12979
+
12980
+ declare const classNames: any;
12981
+
12982
+ declare function setPlumeStrictMode(mode: boolean): void;
12983
+ type VariantArgChoices<T> = T extends (infer M)[] ? M : T extends SingleChoiceArg<infer M> ? M : never;
12984
+ type VariantArgsChoices<V> = {
12985
+ [k in keyof V]-?: VariantArgChoices<V[k]>;
12986
+ };
12987
+ type DictValues<V extends Record<string, any>> = V[keyof V];
12988
+ type DictTuples<V extends Record<string, any>> = DictValues<{
12989
+ [K in keyof V]: [K, V[K]];
12990
+ }>;
12991
+ type VariantDefTuple<V> = DictTuples<VariantArgsChoices<V>>;
12992
+ type DistributeTuple<T> = T extends [infer T1, infer T2] ? {
12993
+ group: T1;
12994
+ variant: T2;
12995
+ } : never;
12996
+ type VariantDef<V> = DistributeTuple<VariantDefTuple<V>>;
12997
+ type PlasmicClass<V extends Record<string, any>, A extends Record<string, any>, O extends Record<string, any>> = {
12998
+ (props: {
12999
+ variants?: V;
13000
+ args?: A;
13001
+ overrides?: O;
13002
+ }): React$1.ReactElement | null;
13003
+ internalVariantProps: (keyof V)[];
13004
+ internalArgProps: (keyof A)[];
13005
+ };
13006
+ type AnyPlasmicClass = PlasmicClass<any, any, any>;
13007
+ type PlasmicClassVariants<C extends AnyPlasmicClass> = C extends PlasmicClass<infer V, any, any> ? V : unknown;
13008
+ type PlasmicClassArgs<C extends AnyPlasmicClass> = C extends PlasmicClass<any, infer A, any> ? A : unknown;
13009
+ type PlasmicClassOverrides<C extends AnyPlasmicClass> = C extends PlasmicClass<any, any, infer O> ? O : unknown;
13010
+
13011
+ interface PlumeCommonProps {
13012
+ showStartIcon?: boolean;
13013
+ showEndIcon?: boolean;
13014
+ startIcon?: React$1.ReactNode;
13015
+ endIcon?: React$1.ReactNode;
13016
+ children?: React$1.ReactNode;
13017
+ isDisabled?: boolean;
13018
+ }
13019
+ interface HtmlButtonProps extends Omit<React$1.ComponentProps<"button">, "ref" | "disabled"> {
13020
+ }
13021
+ interface HtmlAnchorProps extends Omit<React$1.ComponentProps<"a">, "ref" | "href" | "target"> {
13022
+ }
13023
+ interface PlumeActualButtonProps {
13024
+ submitsForm?: boolean;
13025
+ }
13026
+ interface PlumeAnchorProps {
13027
+ link?: string;
13028
+ target?: React$1.ComponentProps<"a">["target"] | boolean;
13029
+ }
13030
+ type PlumeButtonProps = PlumeCommonProps & PlumeActualButtonProps & PlumeAnchorProps;
13031
+ type BaseButtonProps = PlumeButtonProps & HtmlButtonProps & HtmlAnchorProps;
13032
+ type AllButtonProps = PlumeCommonProps & PlumeActualButtonProps & HtmlButtonProps;
13033
+ type AllAnchorProps = PlumeCommonProps & PlumeAnchorProps & HtmlAnchorProps;
13034
+ type HtmlAnchorOnlyProps = Exclude<keyof AllAnchorProps, keyof AllButtonProps>;
13035
+ type HtmlButtonOnlyProps = Exclude<keyof AllButtonProps, keyof AllAnchorProps>;
13036
+ type ButtonRef = React$1.Ref<HTMLButtonElement | HTMLAnchorElement>;
13037
+ interface ButtonConfig<C extends AnyPlasmicClass> {
13038
+ showStartIconVariant: VariantDef<PlasmicClassVariants<C>>;
13039
+ showEndIconVariant?: VariantDef<PlasmicClassVariants<C>>;
13040
+ isDisabledVariant?: VariantDef<PlasmicClassVariants<C>>;
13041
+ startIconSlot?: keyof PlasmicClassArgs<C>;
13042
+ endIconSlot?: keyof PlasmicClassArgs<C>;
13043
+ contentSlot: keyof PlasmicClassArgs<C>;
13044
+ root: keyof PlasmicClassOverrides<C>;
13045
+ }
13046
+ declare function useButton<P extends PlumeButtonProps, C extends AnyPlasmicClass>(plasmicClass: C, props: P, config: ButtonConfig<C>, ref?: ButtonRef): {
13047
+ plasmicProps: {
13048
+ variants: PlasmicClassVariants<C>;
13049
+ args: PlasmicClassArgs<C>;
13050
+ overrides: PlasmicClassOverrides<C>;
13051
+ };
13052
+ };
13053
+
13054
+ /*
13055
+ * Copyright 2020 Adobe. All rights reserved.
13056
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
13057
+ * you may not use this file except in compliance with the License. You may obtain a copy
13058
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
13059
+ *
13060
+ * Unless required by applicable law or agreed to in writing, software distributed under
13061
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
13062
+ * OF ANY KIND, either express or implied. See the License for the specific language
13063
+ * governing permissions and limitations under the License.
13064
+ */
13065
+
13066
+
13067
+
12796
13068
  interface AriaLabelingProps {
12797
13069
  /**
12798
13070
  * Defines a string value that labels the current element.
@@ -12849,18 +13121,6 @@ interface InputDOMProps {
12849
13121
  name?: string
12850
13122
  }
12851
13123
 
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
13124
  /*
12865
13125
  * Copyright 2020 Adobe. All rights reserved.
12866
13126
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -12879,7 +13139,7 @@ type ValidationState = 'valid' | 'invalid';
12879
13139
 
12880
13140
  type ValidationError = string | string[];
12881
13141
 
12882
- interface Validation<T> {
13142
+ interface Validation<T = unknown> {
12883
13143
  /** Whether user input is required on the input before form submission. */
12884
13144
  isRequired?: boolean,
12885
13145
  /** Whether the input value is invalid. */
@@ -12987,7 +13247,7 @@ interface Node<T> {
12987
13247
  key: Key,
12988
13248
  /** The object value the node was created from. */
12989
13249
  value: T | null,
12990
- /** The level of depth this node is at in the heirarchy. */
13250
+ /** The level of depth this node is at in the hierarchy. */
12991
13251
  level: number,
12992
13252
  /** Whether this item has children, even if not loaded yet. */
12993
13253
  hasChildNodes: boolean,
@@ -13042,7 +13302,7 @@ type BaseEvent<T extends SyntheticEvent> = T & {
13042
13302
  continuePropagation(): void
13043
13303
  }
13044
13304
 
13045
- type KeyboardEvent = BaseEvent<KeyboardEvent$1<any>>;
13305
+ type KeyboardEvent = BaseEvent<KeyboardEvent$2<any>>;
13046
13306
 
13047
13307
  type PointerType = 'mouse' | 'pen' | 'touch' | 'keyboard' | 'virtual';
13048
13308
 
@@ -13109,118 +13369,6 @@ interface FocusableProps<Target = Element> extends FocusEvents<Target>, Keyboard
13109
13369
 
13110
13370
  type Key = string | number;
13111
13371
 
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
13372
  /*
13225
13373
  * Copyright 2020 Adobe. All rights reserved.
13226
13374
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -13324,7 +13472,7 @@ declare function useCheckbox<P extends CheckboxProps, C extends AnyPlasmicClass>
13324
13472
  state: CheckboxState;
13325
13473
  };
13326
13474
 
13327
- interface BaseMenuProps extends DOMProps, AriaLabelingProps, StyleProps {
13475
+ interface BaseMenuProps extends DOMProps$1, AriaLabelingProps$1, StyleProps {
13328
13476
  /**
13329
13477
  * List of `Menu.Item`s or `Menu.Group`s that make up the menu
13330
13478
  */
@@ -13566,7 +13714,7 @@ interface DropdownMenuProps {
13566
13714
  }
13567
13715
  declare function DropdownMenu(props: DropdownMenuProps): React$1.JSX.Element;
13568
13716
 
13569
- interface BaseMenuButtonProps extends DOMProps, FocusableProps, StyleProps, Pick<React$1.ComponentProps<"button">, "title"> {
13717
+ interface BaseMenuButtonProps extends DOMProps$1, FocusableProps$1, StyleProps, Pick<React$1.ComponentProps<"button">, "title"> {
13570
13718
  /**
13571
13719
  * The menu to show; can either be a Menu instance, or a function that returns a Menu
13572
13720
  * instance if you want to defer creating the instance till when it's opened.
@@ -13632,7 +13780,7 @@ declare function useMenuButton<P extends BaseMenuButtonProps, C extends AnyPlasm
13632
13780
  state: MenuButtonState;
13633
13781
  };
13634
13782
 
13635
- interface BaseSelectProps extends DOMProps, AriaLabelingProps, FocusableDOMProps, InputBase, FocusableProps, StyleProps {
13783
+ interface BaseSelectProps extends DOMProps$1, AriaLabelingProps$1, FocusableDOMProps$1, InputBase$1, FocusableProps$1, StyleProps {
13636
13784
  /**
13637
13785
  * Key of the currently selected value
13638
13786
  */
@@ -13858,6 +14006,8 @@ interface MultipleSelectionManager extends FocusState {
13858
14006
  setSelectionBehavior(selectionBehavior: SelectionBehavior): void;
13859
14007
  /** Returns whether the given key is a hyperlink. */
13860
14008
  isLink(key: Key): boolean;
14009
+ /** Returns the props for the given item. */
14010
+ getItemProps(key: Key): any;
13861
14011
  }
13862
14012
  interface SelectionManagerOptions {
13863
14013
  allowsCellSelection?: boolean;
@@ -13962,6 +14112,7 @@ declare class SelectionManager implements MultipleSelectionManager {
13962
14112
  canSelectItem(key: Key): boolean;
13963
14113
  isDisabled(key: Key): boolean;
13964
14114
  isLink(key: Key): boolean;
14115
+ getItemProps(key: Key): any;
13965
14116
  }
13966
14117
 
13967
14118
  interface ListState<T> {
@@ -14093,7 +14244,7 @@ declare function useTextInput<P extends PlumeTextInputProps, C extends AnyPlasmi
14093
14244
  };
14094
14245
  };
14095
14246
 
14096
- interface BaseTriggeredOverlayProps extends StyleProps, DOMProps {
14247
+ interface BaseTriggeredOverlayProps extends StyleProps, DOMProps$1 {
14097
14248
  children?: React$1.ReactNode;
14098
14249
  }
14099
14250
  interface TriggeredOverlayConfig<C extends AnyPlasmicClass> {
@@ -14129,7 +14280,7 @@ interface OverlayTriggerState {
14129
14280
  interface TriggeredOverlayContextValue {
14130
14281
  triggerRef: React$1.RefObject<HTMLElement>;
14131
14282
  state: OverlayTriggerState;
14132
- autoFocus?: boolean | FocusStrategy;
14283
+ autoFocus?: boolean | FocusStrategy$1;
14133
14284
  placement?: Placement;
14134
14285
  overlayMatchTriggerWidth?: boolean;
14135
14286
  overlayMinTriggerWidth?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasmicapp/react-web",
3
- "version": "0.2.334",
3
+ "version": "0.2.336",
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.153",
100
+ "@plasmicapp/data-sources": "0.1.154",
101
101
  "@plasmicapp/data-sources-context": "0.1.21",
102
- "@plasmicapp/host": "1.0.194",
102
+ "@plasmicapp/host": "1.0.195",
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": "7599ea59c22abda5a7e58f20def34fc5ef7657ed"
171
+ "gitHead": "6c4d39c3bdbce56aec4eb6ab74b4e9b1ec97f353"
172
172
  }