@uniformdev/mesh-sdk-react 19.179.2-alpha.22 → 19.181.1-alpha.4
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.mts +4 -7
- package/dist/index.d.ts +4 -7
- package/dist/index.esm.js +14 -25
- package/dist/index.js +14 -25
- package/dist/index.mjs +14 -25
- package/package.json +6 -5
package/dist/index.d.mts
CHANGED
|
@@ -7,7 +7,7 @@ import { Interpolation, Theme, SerializedStyles } from '@emotion/react';
|
|
|
7
7
|
import * as _uniformdev_mesh_sdk from '@uniformdev/mesh-sdk';
|
|
8
8
|
import { DynamicInputs, MeshLocation, SetValueOptions, EditConnectedDataResponseCancellationContext, DataSourceLocationValue, DataTypeLocationValue, BindableTypes } from '@uniformdev/mesh-sdk';
|
|
9
9
|
export * from '@uniformdev/mesh-sdk';
|
|
10
|
-
import { DataVariableDefinition, DataResourceVariables, DataType
|
|
10
|
+
import { DataVariableDefinition, DataResourceVariables, DataType } from '@uniformdev/canvas';
|
|
11
11
|
import { Emitter } from 'mitt';
|
|
12
12
|
import { BadgeThemeProps, InputSelectProps, IconType } from '@uniformdev/design-system';
|
|
13
13
|
export { AddListButton, AddListButtonProps, Button, ButtonProps, Callout, CalloutProps, DrawerContent, Heading, HeadingProps, Input, InputComboBox, InputComboBoxProps, InputKeywordSearch, InputProps, InputSelect, InputToggle, InputToggleProps, Label, LabelProps, LoadingIndicator, LoadingOverlay, Menu, MenuItem, MenuItemProps, MenuProps, ParameterGroup, ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImageProps, ParameterInput, ParameterInputInner, ParameterInputProps, ParameterLabel, ParameterLabelProps, ParameterMenuButton, ParameterMenuButtonProps, ParameterSelect, ParameterSelectInner, ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellProps, ParameterTextarea, ParameterTextareaInner, ParameterTextareaProps, ParameterToggle, ParameterToggleInner, ParameterToggleProps, ScrollableList, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, Switch, SwitchProps, Textarea, TextareaProps, Theme, ThemeProps, useParameterShell, utilityColors } from '@uniformdev/design-system';
|
|
@@ -1124,7 +1124,7 @@ declare function serializeVariablesEditorSerializedState(serializedEditorState:
|
|
|
1124
1124
|
* If newValue is a string, it will be treated as a variable-reference-containing string, and parsed to a Lexical AST
|
|
1125
1125
|
* If newValue is a serialized Lexical AST, it will be used as-is. If the AST is invalid, the editor will be set to an empty state.
|
|
1126
1126
|
*/
|
|
1127
|
-
declare function setVariablesEditorValue(editor: LexicalEditor, newValue: string | undefined | SerializedEditorState<SerializedLexicalNode
|
|
1127
|
+
declare function setVariablesEditorValue(editor: LexicalEditor, newValue: string | undefined | SerializedEditorState<SerializedLexicalNode>, tag?: string): void;
|
|
1128
1128
|
|
|
1129
1129
|
declare function variableDefaultTextValue(defaultValue: unknown): string;
|
|
1130
1130
|
|
|
@@ -1686,11 +1686,8 @@ type RequestAction = {
|
|
|
1686
1686
|
body: string;
|
|
1687
1687
|
contentType: string;
|
|
1688
1688
|
};
|
|
1689
|
-
type RequestActionContext = {
|
|
1690
|
-
dataSourceVariant?: DataSourceVariantsKeys;
|
|
1691
|
-
};
|
|
1692
1689
|
type RequestContext = {
|
|
1693
|
-
dispatch: (event: RequestAction
|
|
1690
|
+
dispatch: (event: RequestAction) => void;
|
|
1694
1691
|
request: Readonly<RequestData>;
|
|
1695
1692
|
};
|
|
1696
1693
|
/** Provides a mutable HTTP request object context. Components such as RequestBody and RequestUrl use this context to render. */
|
|
@@ -2332,4 +2329,4 @@ type ContentDataResourceLocaleInfoProps = {
|
|
|
2332
2329
|
};
|
|
2333
2330
|
declare function useContentDataResourceLocaleInfo({ locale, setLocale, dynamicInputs, }: ContentDataResourceLocaleInfoProps): ContentDataResourceLocaleInfoResult;
|
|
2334
2331
|
|
|
2335
|
-
export { $createVariableNode, $isVariableNode, type BaseRequestData, type Brand, CHECKBOX_OPERATORS, type ContentDataResourceLocaleInfoProps, type ContentDataResourceLocaleInfoResult, ControlledValuePlugin, DATE_OPERATORS, DATE_TIME_OPERATORS, DISCONNECT_VARIABLE_COMMAND, type DamItem, DamSelectedItem, type DamSelectedItemProps, DataRefreshButton, type DataRefreshButtonProps, DataResourceDynamicInputProvider, type DataResourceDynamicInputProviderProps, type DataResourceVariableRendererProps, DataResourceVariablesList, DataResourceVariablesListExplicit, type DataResourceVariablesListProps, DataSourceEditor, type DataSourceEditorProps, DataTypeEditor, type DataTypeEditorProps, type DataVariableDefinitionWithName, DateEditor, DateRangeEditor, DefaultSearchRow, DefaultSelectedItem, type DisconnectVariableCommandArguments, type DispatchResult, EDIT_VARIABLE_COMMAND, type EditVariableCommandArguments, EntrySearch, type EntrySearchContentType, type EntrySearchProps, type EntrySearchQueryOptions, type EntrySearchResult, type EntrySearchRowProps, type EntrySearchSelectedItemProps, type Filter, FilterButton, type FilterButtonProps, FilterControls, type FilterEditor, FilterEditorRenderer, type FilterEditorRendererProps, FilterItem, type FilterItemProps, FilterItems, type FilterItemsProps, type FilterMapper, FilterMenu, FilterMultiChoiceEditor, type FilterOption, type FilterOptionGroup, type FilterOptionLeftHandComponentProps, FilterSingleChoiceEditor, type FiltersProps, type GetProductOptions, type GetProductsOptions, INSERT_VARIABLE_COMMAND, index as Icons, type InputOption, type InputOptionGroup, type InputOptionValue, InputVariables, type InputVariablesProps, type InsertVariableCommandArguments, type ItemListProps, type KnownUndefinedVariableInfo, type KnownUndefinedVariableInfoWithName, LinkButton, MULTI_SELECT_OPERATORS, MeshApp, type MeshAppProps, type MeshDataVariableDefinition, NUMBER_OPERATORS, type NoResultsProps, NumberEditor, NumberRangeEditor, OPEN_INSERT_VARIABLE_COMMAND, OPTIONAL_SYSTEM_FIELD_OPERATORS, ObjectSearchContainer, type ObjectSearchContainerProps, type ObjectSearchContextProps, ObjectSearchFilter, ObjectSearchFilterContainer, type ObjectSearchFilterContainerProps, type ObjectSearchFilterProps, ObjectSearchListItem, ObjectSearchListItemLoadingSkeleton, type ObjectSearchListItemProps, ObjectSearchProvider, type ObjectSearchProviderProps, ObjectSearchResultItem, ObjectSearchResultItemButton, type ObjectSearchResultItemButtonProps, type ObjectSearchResultItemProps, ObjectSearchResultList, type ObjectSearchResultListProps, type Operator, type OperatorType, type OperatorValue, type OperatorValueType, PUBLISH_STATUS_FIELD_OPERATORS, ParamTypeDynamicDataProvider, type ParamTypeDynamicDataProviderProps, type ParameterConnectOptions, ParameterConnectionIndicator, type ParameterConnectionIndicatorProps, ParameterOrSingleVariable, type ParameterOrSingleVariableProps, ParameterVariables, type ParameterVariablesProps, type ProductCategory, type ProductDynamicSelectorValue, ProductPreviewList, ProductQuery, type ProductQueryCategory, ProductQueryContext, type ProductQueryContextValue, type ProductQueryProps, ProductSearch, ProductSearchContext, type ProductSearchContextValue, type ProductSearchProps, type ProductSearchResult, type ProductSearchResults, ProductSearchRow, ProductSelectedItem, QueryFilter, type QueryFilterProps, type QueryFilterSearchProps, RICHTEXT_OPERATORS, type RequestAction,
|
|
2332
|
+
export { $createVariableNode, $isVariableNode, type BaseRequestData, type Brand, CHECKBOX_OPERATORS, type ContentDataResourceLocaleInfoProps, type ContentDataResourceLocaleInfoResult, ControlledValuePlugin, DATE_OPERATORS, DATE_TIME_OPERATORS, DISCONNECT_VARIABLE_COMMAND, type DamItem, DamSelectedItem, type DamSelectedItemProps, DataRefreshButton, type DataRefreshButtonProps, DataResourceDynamicInputProvider, type DataResourceDynamicInputProviderProps, type DataResourceVariableRendererProps, DataResourceVariablesList, DataResourceVariablesListExplicit, type DataResourceVariablesListProps, DataSourceEditor, type DataSourceEditorProps, DataTypeEditor, type DataTypeEditorProps, type DataVariableDefinitionWithName, DateEditor, DateRangeEditor, DefaultSearchRow, DefaultSelectedItem, type DisconnectVariableCommandArguments, type DispatchResult, EDIT_VARIABLE_COMMAND, type EditVariableCommandArguments, EntrySearch, type EntrySearchContentType, type EntrySearchProps, type EntrySearchQueryOptions, type EntrySearchResult, type EntrySearchRowProps, type EntrySearchSelectedItemProps, type Filter, FilterButton, type FilterButtonProps, FilterControls, type FilterEditor, FilterEditorRenderer, type FilterEditorRendererProps, FilterItem, type FilterItemProps, FilterItems, type FilterItemsProps, type FilterMapper, FilterMenu, FilterMultiChoiceEditor, type FilterOption, type FilterOptionGroup, type FilterOptionLeftHandComponentProps, FilterSingleChoiceEditor, type FiltersProps, type GetProductOptions, type GetProductsOptions, INSERT_VARIABLE_COMMAND, index as Icons, type InputOption, type InputOptionGroup, type InputOptionValue, InputVariables, type InputVariablesProps, type InsertVariableCommandArguments, type ItemListProps, type KnownUndefinedVariableInfo, type KnownUndefinedVariableInfoWithName, LinkButton, MULTI_SELECT_OPERATORS, MeshApp, type MeshAppProps, type MeshDataVariableDefinition, NUMBER_OPERATORS, type NoResultsProps, NumberEditor, NumberRangeEditor, OPEN_INSERT_VARIABLE_COMMAND, OPTIONAL_SYSTEM_FIELD_OPERATORS, ObjectSearchContainer, type ObjectSearchContainerProps, type ObjectSearchContextProps, ObjectSearchFilter, ObjectSearchFilterContainer, type ObjectSearchFilterContainerProps, type ObjectSearchFilterProps, ObjectSearchListItem, ObjectSearchListItemLoadingSkeleton, type ObjectSearchListItemProps, ObjectSearchProvider, type ObjectSearchProviderProps, ObjectSearchResultItem, ObjectSearchResultItemButton, type ObjectSearchResultItemButtonProps, type ObjectSearchResultItemProps, ObjectSearchResultList, type ObjectSearchResultListProps, type Operator, type OperatorType, type OperatorValue, type OperatorValueType, PUBLISH_STATUS_FIELD_OPERATORS, ParamTypeDynamicDataProvider, type ParamTypeDynamicDataProviderProps, type ParameterConnectOptions, ParameterConnectionIndicator, type ParameterConnectionIndicatorProps, ParameterOrSingleVariable, type ParameterOrSingleVariableProps, ParameterVariables, type ParameterVariablesProps, type ProductCategory, type ProductDynamicSelectorValue, ProductPreviewList, ProductQuery, type ProductQueryCategory, ProductQueryContext, type ProductQueryContextValue, type ProductQueryProps, ProductSearch, ProductSearchContext, type ProductSearchContextValue, type ProductSearchProps, type ProductSearchResult, type ProductSearchResults, ProductSearchRow, ProductSelectedItem, QueryFilter, type QueryFilterProps, type QueryFilterSearchProps, RICHTEXT_OPERATORS, type RequestAction, RequestBody, type RequestContext, type RequestData, RequestHeaders, RequestMethodSelect, type RequestParameter, RequestParameters, type RequestParametersProps, RequestProvider, type RequestProviderProps, RequestTypeContainer, type RequestTypeContainerProps, RequestUrl, RequestUrlInput, ResolvableLoadingValue, SELECT_OPERATORS, SYSTEM_FIELD_OPERATORS, SearchAndFilter, SearchAndFilterContext, type SearchAndFilterContextProps, SearchAndFilterOptionsContainer, type SearchAndFilterOptionsContainerProps, type SearchAndFilterProps, SearchAndFilterProvider, type SearchAndFilterProviderProps, SearchAndFilterResultContainer, type SearchAndFilterResultContainerProps, SearchOnlyContext, SearchOnlyFilter, type SearchOnlyProviderProps, type SearchQueryProps, type SelectedItemProps, SelectionField, type SelectionFieldValue, type SerializedVariableNode, type SetLocationValueDispatch, type SetLocationValueFunction, SortItems, type SortItemsProps, StatusMultiEditor, StatusSingleEditor, TEXTBOX_OPERATORS, TextEditor, TextMultiChoiceEditor, TextVariableRenderer, USER_OPERATORS, type UseVariablesMenu, type UseVariablesMenuInput, VariableChip, VariableEditor, type VariableEditorCompleteEvent, type VariableEditorProps, VariableNode, type VariableNodeState, type VariableSourceGroup, type VariablesAction, type VariablesContext, type VariablesEvents, VariablesList, VariablesPlugin, type VariablesPluginProps, VariablesProvider, type VariablesProviderProps, badgeIcon, bindableFiltersMapper, convertConnectedDataToVariable, createLocationValidator, damSelectItemImage, damSelectedItemContainer, damSelectedItemCopy, damSelectedItemDetails, damSelectedItemIcon, damSelectedItemInfoBtn, damSelectedItemInner, damSelectedItemLinkBtn, damSelectedItemLinkContainer, damSelectedItemMediaContainer, damSelectedItemPopover, damSelectedItemPopoverLabel, damSelectedItemSmallText, damSelectedItemTitle, draggableContainer, draggableIcon, draggableIconOffset, draggableIconWrapper, entrySearchBtn, entrySearchConfig, entrySearchConfigHidden, entrySearchLoadMoreBtn, entrySearchResultList, entrySearchSelectIcon, entrySearchSelectImg, entrySearchSelectInput, entrySearchSelectOption, entrySearchWrapper, filterMapper, hasReferencedVariables, prettifyBindExpression, productSearchRowActiveIcon, productSearchRowCategory, productSearchRowContainer, productSearchRowContent, productSearchRowContentActive, productSearchRowDetails, productSearchRowTitle, productSelectedItemContainer, productSelectedItemContent, productSelectedItemDetails, productSelectedItemIcon, productSelectedItemImage, productSelectedItemLinkContainer, productedSelectedItemLinkBtn, productedSelectedItemSmallText, searchRowBtn, searchRowContainer, searchRowContainerActive, searchRowContainerWithPopover, searchRowPopover, searchRowText, searchRowTextSmall, selectItemLinkBtn, selectItemLinkContainer, selectItemPopover, selectItemPopoverLabel, selectItemSmallText, selectedItemContainer, selectedItemCopy, selectedItemDetails, selectedItemIcon, selectedItemInner, selectedItemTitle, serializeVariablesEditorSerializedState, serializeVariablesEditorState, setVariablesEditorValue, urlEncodeRequestParameter, urlEncodeRequestUrl, useConnectedDataAsVariables, useContentDataResourceLocaleInfo, useDynamicInputsAsVariables, useMeshLocation, useObjectSearchContext, useProductQueryContext, useProductSearchContext, useRequest, useRequestHeader, useRequestParameter, useSearchAndFilter, useUniformMeshSdk, useVariableEditor, useVariables, useVariablesMenu, variableDefaultTextValue, variablePrefix, variableSuffix, variablesToGroupedList, variablesToList };
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { Interpolation, Theme, SerializedStyles } from '@emotion/react';
|
|
|
7
7
|
import * as _uniformdev_mesh_sdk from '@uniformdev/mesh-sdk';
|
|
8
8
|
import { DynamicInputs, MeshLocation, SetValueOptions, EditConnectedDataResponseCancellationContext, DataSourceLocationValue, DataTypeLocationValue, BindableTypes } from '@uniformdev/mesh-sdk';
|
|
9
9
|
export * from '@uniformdev/mesh-sdk';
|
|
10
|
-
import { DataVariableDefinition, DataResourceVariables, DataType
|
|
10
|
+
import { DataVariableDefinition, DataResourceVariables, DataType } from '@uniformdev/canvas';
|
|
11
11
|
import { Emitter } from 'mitt';
|
|
12
12
|
import { BadgeThemeProps, InputSelectProps, IconType } from '@uniformdev/design-system';
|
|
13
13
|
export { AddListButton, AddListButtonProps, Button, ButtonProps, Callout, CalloutProps, DrawerContent, Heading, HeadingProps, Input, InputComboBox, InputComboBoxProps, InputKeywordSearch, InputProps, InputSelect, InputToggle, InputToggleProps, Label, LabelProps, LoadingIndicator, LoadingOverlay, Menu, MenuItem, MenuItemProps, MenuProps, ParameterGroup, ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImageProps, ParameterInput, ParameterInputInner, ParameterInputProps, ParameterLabel, ParameterLabelProps, ParameterMenuButton, ParameterMenuButtonProps, ParameterSelect, ParameterSelectInner, ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellProps, ParameterTextarea, ParameterTextareaInner, ParameterTextareaProps, ParameterToggle, ParameterToggleInner, ParameterToggleProps, ScrollableList, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, Switch, SwitchProps, Textarea, TextareaProps, Theme, ThemeProps, useParameterShell, utilityColors } from '@uniformdev/design-system';
|
|
@@ -1124,7 +1124,7 @@ declare function serializeVariablesEditorSerializedState(serializedEditorState:
|
|
|
1124
1124
|
* If newValue is a string, it will be treated as a variable-reference-containing string, and parsed to a Lexical AST
|
|
1125
1125
|
* If newValue is a serialized Lexical AST, it will be used as-is. If the AST is invalid, the editor will be set to an empty state.
|
|
1126
1126
|
*/
|
|
1127
|
-
declare function setVariablesEditorValue(editor: LexicalEditor, newValue: string | undefined | SerializedEditorState<SerializedLexicalNode
|
|
1127
|
+
declare function setVariablesEditorValue(editor: LexicalEditor, newValue: string | undefined | SerializedEditorState<SerializedLexicalNode>, tag?: string): void;
|
|
1128
1128
|
|
|
1129
1129
|
declare function variableDefaultTextValue(defaultValue: unknown): string;
|
|
1130
1130
|
|
|
@@ -1686,11 +1686,8 @@ type RequestAction = {
|
|
|
1686
1686
|
body: string;
|
|
1687
1687
|
contentType: string;
|
|
1688
1688
|
};
|
|
1689
|
-
type RequestActionContext = {
|
|
1690
|
-
dataSourceVariant?: DataSourceVariantsKeys;
|
|
1691
|
-
};
|
|
1692
1689
|
type RequestContext = {
|
|
1693
|
-
dispatch: (event: RequestAction
|
|
1690
|
+
dispatch: (event: RequestAction) => void;
|
|
1694
1691
|
request: Readonly<RequestData>;
|
|
1695
1692
|
};
|
|
1696
1693
|
/** Provides a mutable HTTP request object context. Components such as RequestBody and RequestUrl use this context to render. */
|
|
@@ -2332,4 +2329,4 @@ type ContentDataResourceLocaleInfoProps = {
|
|
|
2332
2329
|
};
|
|
2333
2330
|
declare function useContentDataResourceLocaleInfo({ locale, setLocale, dynamicInputs, }: ContentDataResourceLocaleInfoProps): ContentDataResourceLocaleInfoResult;
|
|
2334
2331
|
|
|
2335
|
-
export { $createVariableNode, $isVariableNode, type BaseRequestData, type Brand, CHECKBOX_OPERATORS, type ContentDataResourceLocaleInfoProps, type ContentDataResourceLocaleInfoResult, ControlledValuePlugin, DATE_OPERATORS, DATE_TIME_OPERATORS, DISCONNECT_VARIABLE_COMMAND, type DamItem, DamSelectedItem, type DamSelectedItemProps, DataRefreshButton, type DataRefreshButtonProps, DataResourceDynamicInputProvider, type DataResourceDynamicInputProviderProps, type DataResourceVariableRendererProps, DataResourceVariablesList, DataResourceVariablesListExplicit, type DataResourceVariablesListProps, DataSourceEditor, type DataSourceEditorProps, DataTypeEditor, type DataTypeEditorProps, type DataVariableDefinitionWithName, DateEditor, DateRangeEditor, DefaultSearchRow, DefaultSelectedItem, type DisconnectVariableCommandArguments, type DispatchResult, EDIT_VARIABLE_COMMAND, type EditVariableCommandArguments, EntrySearch, type EntrySearchContentType, type EntrySearchProps, type EntrySearchQueryOptions, type EntrySearchResult, type EntrySearchRowProps, type EntrySearchSelectedItemProps, type Filter, FilterButton, type FilterButtonProps, FilterControls, type FilterEditor, FilterEditorRenderer, type FilterEditorRendererProps, FilterItem, type FilterItemProps, FilterItems, type FilterItemsProps, type FilterMapper, FilterMenu, FilterMultiChoiceEditor, type FilterOption, type FilterOptionGroup, type FilterOptionLeftHandComponentProps, FilterSingleChoiceEditor, type FiltersProps, type GetProductOptions, type GetProductsOptions, INSERT_VARIABLE_COMMAND, index as Icons, type InputOption, type InputOptionGroup, type InputOptionValue, InputVariables, type InputVariablesProps, type InsertVariableCommandArguments, type ItemListProps, type KnownUndefinedVariableInfo, type KnownUndefinedVariableInfoWithName, LinkButton, MULTI_SELECT_OPERATORS, MeshApp, type MeshAppProps, type MeshDataVariableDefinition, NUMBER_OPERATORS, type NoResultsProps, NumberEditor, NumberRangeEditor, OPEN_INSERT_VARIABLE_COMMAND, OPTIONAL_SYSTEM_FIELD_OPERATORS, ObjectSearchContainer, type ObjectSearchContainerProps, type ObjectSearchContextProps, ObjectSearchFilter, ObjectSearchFilterContainer, type ObjectSearchFilterContainerProps, type ObjectSearchFilterProps, ObjectSearchListItem, ObjectSearchListItemLoadingSkeleton, type ObjectSearchListItemProps, ObjectSearchProvider, type ObjectSearchProviderProps, ObjectSearchResultItem, ObjectSearchResultItemButton, type ObjectSearchResultItemButtonProps, type ObjectSearchResultItemProps, ObjectSearchResultList, type ObjectSearchResultListProps, type Operator, type OperatorType, type OperatorValue, type OperatorValueType, PUBLISH_STATUS_FIELD_OPERATORS, ParamTypeDynamicDataProvider, type ParamTypeDynamicDataProviderProps, type ParameterConnectOptions, ParameterConnectionIndicator, type ParameterConnectionIndicatorProps, ParameterOrSingleVariable, type ParameterOrSingleVariableProps, ParameterVariables, type ParameterVariablesProps, type ProductCategory, type ProductDynamicSelectorValue, ProductPreviewList, ProductQuery, type ProductQueryCategory, ProductQueryContext, type ProductQueryContextValue, type ProductQueryProps, ProductSearch, ProductSearchContext, type ProductSearchContextValue, type ProductSearchProps, type ProductSearchResult, type ProductSearchResults, ProductSearchRow, ProductSelectedItem, QueryFilter, type QueryFilterProps, type QueryFilterSearchProps, RICHTEXT_OPERATORS, type RequestAction,
|
|
2332
|
+
export { $createVariableNode, $isVariableNode, type BaseRequestData, type Brand, CHECKBOX_OPERATORS, type ContentDataResourceLocaleInfoProps, type ContentDataResourceLocaleInfoResult, ControlledValuePlugin, DATE_OPERATORS, DATE_TIME_OPERATORS, DISCONNECT_VARIABLE_COMMAND, type DamItem, DamSelectedItem, type DamSelectedItemProps, DataRefreshButton, type DataRefreshButtonProps, DataResourceDynamicInputProvider, type DataResourceDynamicInputProviderProps, type DataResourceVariableRendererProps, DataResourceVariablesList, DataResourceVariablesListExplicit, type DataResourceVariablesListProps, DataSourceEditor, type DataSourceEditorProps, DataTypeEditor, type DataTypeEditorProps, type DataVariableDefinitionWithName, DateEditor, DateRangeEditor, DefaultSearchRow, DefaultSelectedItem, type DisconnectVariableCommandArguments, type DispatchResult, EDIT_VARIABLE_COMMAND, type EditVariableCommandArguments, EntrySearch, type EntrySearchContentType, type EntrySearchProps, type EntrySearchQueryOptions, type EntrySearchResult, type EntrySearchRowProps, type EntrySearchSelectedItemProps, type Filter, FilterButton, type FilterButtonProps, FilterControls, type FilterEditor, FilterEditorRenderer, type FilterEditorRendererProps, FilterItem, type FilterItemProps, FilterItems, type FilterItemsProps, type FilterMapper, FilterMenu, FilterMultiChoiceEditor, type FilterOption, type FilterOptionGroup, type FilterOptionLeftHandComponentProps, FilterSingleChoiceEditor, type FiltersProps, type GetProductOptions, type GetProductsOptions, INSERT_VARIABLE_COMMAND, index as Icons, type InputOption, type InputOptionGroup, type InputOptionValue, InputVariables, type InputVariablesProps, type InsertVariableCommandArguments, type ItemListProps, type KnownUndefinedVariableInfo, type KnownUndefinedVariableInfoWithName, LinkButton, MULTI_SELECT_OPERATORS, MeshApp, type MeshAppProps, type MeshDataVariableDefinition, NUMBER_OPERATORS, type NoResultsProps, NumberEditor, NumberRangeEditor, OPEN_INSERT_VARIABLE_COMMAND, OPTIONAL_SYSTEM_FIELD_OPERATORS, ObjectSearchContainer, type ObjectSearchContainerProps, type ObjectSearchContextProps, ObjectSearchFilter, ObjectSearchFilterContainer, type ObjectSearchFilterContainerProps, type ObjectSearchFilterProps, ObjectSearchListItem, ObjectSearchListItemLoadingSkeleton, type ObjectSearchListItemProps, ObjectSearchProvider, type ObjectSearchProviderProps, ObjectSearchResultItem, ObjectSearchResultItemButton, type ObjectSearchResultItemButtonProps, type ObjectSearchResultItemProps, ObjectSearchResultList, type ObjectSearchResultListProps, type Operator, type OperatorType, type OperatorValue, type OperatorValueType, PUBLISH_STATUS_FIELD_OPERATORS, ParamTypeDynamicDataProvider, type ParamTypeDynamicDataProviderProps, type ParameterConnectOptions, ParameterConnectionIndicator, type ParameterConnectionIndicatorProps, ParameterOrSingleVariable, type ParameterOrSingleVariableProps, ParameterVariables, type ParameterVariablesProps, type ProductCategory, type ProductDynamicSelectorValue, ProductPreviewList, ProductQuery, type ProductQueryCategory, ProductQueryContext, type ProductQueryContextValue, type ProductQueryProps, ProductSearch, ProductSearchContext, type ProductSearchContextValue, type ProductSearchProps, type ProductSearchResult, type ProductSearchResults, ProductSearchRow, ProductSelectedItem, QueryFilter, type QueryFilterProps, type QueryFilterSearchProps, RICHTEXT_OPERATORS, type RequestAction, RequestBody, type RequestContext, type RequestData, RequestHeaders, RequestMethodSelect, type RequestParameter, RequestParameters, type RequestParametersProps, RequestProvider, type RequestProviderProps, RequestTypeContainer, type RequestTypeContainerProps, RequestUrl, RequestUrlInput, ResolvableLoadingValue, SELECT_OPERATORS, SYSTEM_FIELD_OPERATORS, SearchAndFilter, SearchAndFilterContext, type SearchAndFilterContextProps, SearchAndFilterOptionsContainer, type SearchAndFilterOptionsContainerProps, type SearchAndFilterProps, SearchAndFilterProvider, type SearchAndFilterProviderProps, SearchAndFilterResultContainer, type SearchAndFilterResultContainerProps, SearchOnlyContext, SearchOnlyFilter, type SearchOnlyProviderProps, type SearchQueryProps, type SelectedItemProps, SelectionField, type SelectionFieldValue, type SerializedVariableNode, type SetLocationValueDispatch, type SetLocationValueFunction, SortItems, type SortItemsProps, StatusMultiEditor, StatusSingleEditor, TEXTBOX_OPERATORS, TextEditor, TextMultiChoiceEditor, TextVariableRenderer, USER_OPERATORS, type UseVariablesMenu, type UseVariablesMenuInput, VariableChip, VariableEditor, type VariableEditorCompleteEvent, type VariableEditorProps, VariableNode, type VariableNodeState, type VariableSourceGroup, type VariablesAction, type VariablesContext, type VariablesEvents, VariablesList, VariablesPlugin, type VariablesPluginProps, VariablesProvider, type VariablesProviderProps, badgeIcon, bindableFiltersMapper, convertConnectedDataToVariable, createLocationValidator, damSelectItemImage, damSelectedItemContainer, damSelectedItemCopy, damSelectedItemDetails, damSelectedItemIcon, damSelectedItemInfoBtn, damSelectedItemInner, damSelectedItemLinkBtn, damSelectedItemLinkContainer, damSelectedItemMediaContainer, damSelectedItemPopover, damSelectedItemPopoverLabel, damSelectedItemSmallText, damSelectedItemTitle, draggableContainer, draggableIcon, draggableIconOffset, draggableIconWrapper, entrySearchBtn, entrySearchConfig, entrySearchConfigHidden, entrySearchLoadMoreBtn, entrySearchResultList, entrySearchSelectIcon, entrySearchSelectImg, entrySearchSelectInput, entrySearchSelectOption, entrySearchWrapper, filterMapper, hasReferencedVariables, prettifyBindExpression, productSearchRowActiveIcon, productSearchRowCategory, productSearchRowContainer, productSearchRowContent, productSearchRowContentActive, productSearchRowDetails, productSearchRowTitle, productSelectedItemContainer, productSelectedItemContent, productSelectedItemDetails, productSelectedItemIcon, productSelectedItemImage, productSelectedItemLinkContainer, productedSelectedItemLinkBtn, productedSelectedItemSmallText, searchRowBtn, searchRowContainer, searchRowContainerActive, searchRowContainerWithPopover, searchRowPopover, searchRowText, searchRowTextSmall, selectItemLinkBtn, selectItemLinkContainer, selectItemPopover, selectItemPopoverLabel, selectItemSmallText, selectedItemContainer, selectedItemCopy, selectedItemDetails, selectedItemIcon, selectedItemInner, selectedItemTitle, serializeVariablesEditorSerializedState, serializeVariablesEditorState, setVariablesEditorValue, urlEncodeRequestParameter, urlEncodeRequestUrl, useConnectedDataAsVariables, useContentDataResourceLocaleInfo, useDynamicInputsAsVariables, useMeshLocation, useObjectSearchContext, useProductQueryContext, useProductSearchContext, useRequest, useRequestHeader, useRequestParameter, useSearchAndFilter, useUniformMeshSdk, useVariableEditor, useVariables, useVariablesMenu, variableDefaultTextValue, variablePrefix, variableSuffix, variablesToGroupedList, variablesToList };
|
package/dist/index.esm.js
CHANGED
|
@@ -2834,6 +2834,9 @@ function serializeRecursive(node, buffer) {
|
|
|
2834
2834
|
}
|
|
2835
2835
|
}
|
|
2836
2836
|
|
|
2837
|
+
// src/components/Variables/util/setVariablesEditorValue.ts
|
|
2838
|
+
import { emptyRichTextValue } from "@uniformdev/richtext";
|
|
2839
|
+
|
|
2837
2840
|
// src/components/Variables/util/deserializeVariablesEditorState.ts
|
|
2838
2841
|
import { parseVariableExpression } from "@uniformdev/canvas";
|
|
2839
2842
|
import { TextNode as TextNode2 } from "lexical";
|
|
@@ -2896,14 +2899,18 @@ function refreshVariableNodeMetadata(editor) {
|
|
|
2896
2899
|
}
|
|
2897
2900
|
|
|
2898
2901
|
// src/components/Variables/util/setVariablesEditorValue.ts
|
|
2899
|
-
function setVariablesEditorValue(editor, newValue) {
|
|
2902
|
+
function setVariablesEditorValue(editor, newValue, tag) {
|
|
2900
2903
|
if (typeof newValue === "undefined" || typeof newValue === "string") {
|
|
2901
2904
|
const parsedState = editor.parseEditorState(deserializeVariablesEditorState(newValue));
|
|
2902
|
-
editor.setEditorState(parsedState)
|
|
2905
|
+
editor.setEditorState(parsedState.clone(null), {
|
|
2906
|
+
tag
|
|
2907
|
+
});
|
|
2903
2908
|
} else {
|
|
2904
2909
|
try {
|
|
2905
2910
|
const parsedState = editor.parseEditorState(newValue);
|
|
2906
|
-
editor.setEditorState(parsedState)
|
|
2911
|
+
editor.setEditorState(parsedState.clone(null), {
|
|
2912
|
+
tag
|
|
2913
|
+
});
|
|
2907
2914
|
} catch (e) {
|
|
2908
2915
|
console.warn(
|
|
2909
2916
|
"Tried to set invalid Lexical state, probably invalidly formatted state object - falling back to empty state. Invalid state attempted:",
|
|
@@ -2911,28 +2918,10 @@ function setVariablesEditorValue(editor, newValue) {
|
|
|
2911
2918
|
"Error:",
|
|
2912
2919
|
e
|
|
2913
2920
|
);
|
|
2914
|
-
const parsedState = editor.parseEditorState(
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
version: 1,
|
|
2918
|
-
direction: null,
|
|
2919
|
-
format: "",
|
|
2920
|
-
indent: 0,
|
|
2921
|
-
children: [
|
|
2922
|
-
{
|
|
2923
|
-
type: "paragraph",
|
|
2924
|
-
version: 1,
|
|
2925
|
-
format: "start",
|
|
2926
|
-
indent: 0,
|
|
2927
|
-
direction: null,
|
|
2928
|
-
children: [],
|
|
2929
|
-
textFormat: 0,
|
|
2930
|
-
textStyle: ""
|
|
2931
|
-
}
|
|
2932
|
-
]
|
|
2933
|
-
}
|
|
2921
|
+
const parsedState = editor.parseEditorState(emptyRichTextValue);
|
|
2922
|
+
editor.setEditorState(parsedState.clone(null), {
|
|
2923
|
+
tag
|
|
2934
2924
|
});
|
|
2935
|
-
editor.setEditorState(parsedState);
|
|
2936
2925
|
}
|
|
2937
2926
|
}
|
|
2938
2927
|
refreshVariableNodeMetadata(editor);
|
|
@@ -5031,7 +5020,7 @@ function ParameterConnectionIndicator({
|
|
|
5031
5020
|
return result;
|
|
5032
5021
|
}, [value]);
|
|
5033
5022
|
return /* @__PURE__ */ jsxs24(HorizontalRhythm5, { align: "center", gap: "xs", css: { width: "100%" }, children: [
|
|
5034
|
-
/* @__PURE__ */ jsx41("div", { css: { flex: 1 }, children }),
|
|
5023
|
+
/* @__PURE__ */ jsx41("div", { css: { flex: 1, maxWidth: "100%" }, children }),
|
|
5035
5024
|
disabled ? null : /* @__PURE__ */ jsx41(
|
|
5036
5025
|
Menu3,
|
|
5037
5026
|
{
|
package/dist/index.js
CHANGED
|
@@ -3076,6 +3076,9 @@ function serializeRecursive(node, buffer) {
|
|
|
3076
3076
|
}
|
|
3077
3077
|
}
|
|
3078
3078
|
|
|
3079
|
+
// src/components/Variables/util/setVariablesEditorValue.ts
|
|
3080
|
+
var import_richtext = require("@uniformdev/richtext");
|
|
3081
|
+
|
|
3079
3082
|
// src/components/Variables/util/deserializeVariablesEditorState.ts
|
|
3080
3083
|
var import_canvas3 = require("@uniformdev/canvas");
|
|
3081
3084
|
var import_lexical2 = require("lexical");
|
|
@@ -3138,14 +3141,18 @@ function refreshVariableNodeMetadata(editor) {
|
|
|
3138
3141
|
}
|
|
3139
3142
|
|
|
3140
3143
|
// src/components/Variables/util/setVariablesEditorValue.ts
|
|
3141
|
-
function setVariablesEditorValue(editor, newValue) {
|
|
3144
|
+
function setVariablesEditorValue(editor, newValue, tag) {
|
|
3142
3145
|
if (typeof newValue === "undefined" || typeof newValue === "string") {
|
|
3143
3146
|
const parsedState = editor.parseEditorState(deserializeVariablesEditorState(newValue));
|
|
3144
|
-
editor.setEditorState(parsedState)
|
|
3147
|
+
editor.setEditorState(parsedState.clone(null), {
|
|
3148
|
+
tag
|
|
3149
|
+
});
|
|
3145
3150
|
} else {
|
|
3146
3151
|
try {
|
|
3147
3152
|
const parsedState = editor.parseEditorState(newValue);
|
|
3148
|
-
editor.setEditorState(parsedState)
|
|
3153
|
+
editor.setEditorState(parsedState.clone(null), {
|
|
3154
|
+
tag
|
|
3155
|
+
});
|
|
3149
3156
|
} catch (e) {
|
|
3150
3157
|
console.warn(
|
|
3151
3158
|
"Tried to set invalid Lexical state, probably invalidly formatted state object - falling back to empty state. Invalid state attempted:",
|
|
@@ -3153,28 +3160,10 @@ function setVariablesEditorValue(editor, newValue) {
|
|
|
3153
3160
|
"Error:",
|
|
3154
3161
|
e
|
|
3155
3162
|
);
|
|
3156
|
-
const parsedState = editor.parseEditorState(
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
version: 1,
|
|
3160
|
-
direction: null,
|
|
3161
|
-
format: "",
|
|
3162
|
-
indent: 0,
|
|
3163
|
-
children: [
|
|
3164
|
-
{
|
|
3165
|
-
type: "paragraph",
|
|
3166
|
-
version: 1,
|
|
3167
|
-
format: "start",
|
|
3168
|
-
indent: 0,
|
|
3169
|
-
direction: null,
|
|
3170
|
-
children: [],
|
|
3171
|
-
textFormat: 0,
|
|
3172
|
-
textStyle: ""
|
|
3173
|
-
}
|
|
3174
|
-
]
|
|
3175
|
-
}
|
|
3163
|
+
const parsedState = editor.parseEditorState(import_richtext.emptyRichTextValue);
|
|
3164
|
+
editor.setEditorState(parsedState.clone(null), {
|
|
3165
|
+
tag
|
|
3176
3166
|
});
|
|
3177
|
-
editor.setEditorState(parsedState);
|
|
3178
3167
|
}
|
|
3179
3168
|
}
|
|
3180
3169
|
refreshVariableNodeMetadata(editor);
|
|
@@ -5226,7 +5215,7 @@ function ParameterConnectionIndicator({
|
|
|
5226
5215
|
return result;
|
|
5227
5216
|
}, [value]);
|
|
5228
5217
|
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_design_system22.HorizontalRhythm, { align: "center", gap: "xs", css: { width: "100%" }, children: [
|
|
5229
|
-
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { css: { flex: 1 }, children }),
|
|
5218
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { css: { flex: 1, maxWidth: "100%" }, children }),
|
|
5230
5219
|
disabled ? null : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
5231
5220
|
import_design_system22.Menu,
|
|
5232
5221
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -2834,6 +2834,9 @@ function serializeRecursive(node, buffer) {
|
|
|
2834
2834
|
}
|
|
2835
2835
|
}
|
|
2836
2836
|
|
|
2837
|
+
// src/components/Variables/util/setVariablesEditorValue.ts
|
|
2838
|
+
import { emptyRichTextValue } from "@uniformdev/richtext";
|
|
2839
|
+
|
|
2837
2840
|
// src/components/Variables/util/deserializeVariablesEditorState.ts
|
|
2838
2841
|
import { parseVariableExpression } from "@uniformdev/canvas";
|
|
2839
2842
|
import { TextNode as TextNode2 } from "lexical";
|
|
@@ -2896,14 +2899,18 @@ function refreshVariableNodeMetadata(editor) {
|
|
|
2896
2899
|
}
|
|
2897
2900
|
|
|
2898
2901
|
// src/components/Variables/util/setVariablesEditorValue.ts
|
|
2899
|
-
function setVariablesEditorValue(editor, newValue) {
|
|
2902
|
+
function setVariablesEditorValue(editor, newValue, tag) {
|
|
2900
2903
|
if (typeof newValue === "undefined" || typeof newValue === "string") {
|
|
2901
2904
|
const parsedState = editor.parseEditorState(deserializeVariablesEditorState(newValue));
|
|
2902
|
-
editor.setEditorState(parsedState)
|
|
2905
|
+
editor.setEditorState(parsedState.clone(null), {
|
|
2906
|
+
tag
|
|
2907
|
+
});
|
|
2903
2908
|
} else {
|
|
2904
2909
|
try {
|
|
2905
2910
|
const parsedState = editor.parseEditorState(newValue);
|
|
2906
|
-
editor.setEditorState(parsedState)
|
|
2911
|
+
editor.setEditorState(parsedState.clone(null), {
|
|
2912
|
+
tag
|
|
2913
|
+
});
|
|
2907
2914
|
} catch (e) {
|
|
2908
2915
|
console.warn(
|
|
2909
2916
|
"Tried to set invalid Lexical state, probably invalidly formatted state object - falling back to empty state. Invalid state attempted:",
|
|
@@ -2911,28 +2918,10 @@ function setVariablesEditorValue(editor, newValue) {
|
|
|
2911
2918
|
"Error:",
|
|
2912
2919
|
e
|
|
2913
2920
|
);
|
|
2914
|
-
const parsedState = editor.parseEditorState(
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
version: 1,
|
|
2918
|
-
direction: null,
|
|
2919
|
-
format: "",
|
|
2920
|
-
indent: 0,
|
|
2921
|
-
children: [
|
|
2922
|
-
{
|
|
2923
|
-
type: "paragraph",
|
|
2924
|
-
version: 1,
|
|
2925
|
-
format: "start",
|
|
2926
|
-
indent: 0,
|
|
2927
|
-
direction: null,
|
|
2928
|
-
children: [],
|
|
2929
|
-
textFormat: 0,
|
|
2930
|
-
textStyle: ""
|
|
2931
|
-
}
|
|
2932
|
-
]
|
|
2933
|
-
}
|
|
2921
|
+
const parsedState = editor.parseEditorState(emptyRichTextValue);
|
|
2922
|
+
editor.setEditorState(parsedState.clone(null), {
|
|
2923
|
+
tag
|
|
2934
2924
|
});
|
|
2935
|
-
editor.setEditorState(parsedState);
|
|
2936
2925
|
}
|
|
2937
2926
|
}
|
|
2938
2927
|
refreshVariableNodeMetadata(editor);
|
|
@@ -5031,7 +5020,7 @@ function ParameterConnectionIndicator({
|
|
|
5031
5020
|
return result;
|
|
5032
5021
|
}, [value]);
|
|
5033
5022
|
return /* @__PURE__ */ jsxs24(HorizontalRhythm5, { align: "center", gap: "xs", css: { width: "100%" }, children: [
|
|
5034
|
-
/* @__PURE__ */ jsx41("div", { css: { flex: 1 }, children }),
|
|
5023
|
+
/* @__PURE__ */ jsx41("div", { css: { flex: 1, maxWidth: "100%" }, children }),
|
|
5035
5024
|
disabled ? null : /* @__PURE__ */ jsx41(
|
|
5036
5025
|
Menu3,
|
|
5037
5026
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk-react",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.181.1-alpha.4+63886f3999",
|
|
4
4
|
"description": "Uniform Mesh Framework SDK for React",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -50,9 +50,10 @@
|
|
|
50
50
|
"@lexical/selection": "0.17.0",
|
|
51
51
|
"@lexical/utils": "0.17.0",
|
|
52
52
|
"@react-icons/all-files": "https://github.com/react-icons/react-icons/releases/download/v5.2.1/react-icons-all-files-5.2.1.tgz",
|
|
53
|
-
"@uniformdev/canvas": "19.
|
|
54
|
-
"@uniformdev/design-system": "19.
|
|
55
|
-
"@uniformdev/mesh-sdk": "19.
|
|
53
|
+
"@uniformdev/canvas": "19.181.1-alpha.4+63886f3999",
|
|
54
|
+
"@uniformdev/design-system": "19.181.1-alpha.4+63886f3999",
|
|
55
|
+
"@uniformdev/mesh-sdk": "19.181.1-alpha.4+63886f3999",
|
|
56
|
+
"@uniformdev/richtext": "19.181.1-alpha.4+63886f3999",
|
|
56
57
|
"dequal": "^2.0.3",
|
|
57
58
|
"lexical": "0.17.0",
|
|
58
59
|
"mitt": "3.0.1",
|
|
@@ -86,5 +87,5 @@
|
|
|
86
87
|
"publishConfig": {
|
|
87
88
|
"access": "public"
|
|
88
89
|
},
|
|
89
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "63886f3999fa693ef6b012fdcaefc930e238fc4d"
|
|
90
91
|
}
|