@uniformdev/mesh-sdk-react 18.38.2-alpha.6 → 19.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -63
- package/dist/index.esm.js +9 -50
- package/dist/index.js +9 -58
- package/dist/index.mjs +9 -50
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -5,11 +5,11 @@ import { TDate } from 'timeago.js';
|
|
|
5
5
|
import * as _emotion_react from '@emotion/react';
|
|
6
6
|
import { DataVariableDefinition, DataResourceVariables } from '@uniformdev/canvas';
|
|
7
7
|
import * as _uniformdev_mesh_sdk from '@uniformdev/mesh-sdk';
|
|
8
|
-
import { MeshLocation, SetValueOptions, DataSourceLocationValue, DataTypeLocationValue
|
|
8
|
+
import { MeshLocation, SetValueOptions, DataSourceLocationValue, DataTypeLocationValue } from '@uniformdev/mesh-sdk';
|
|
9
9
|
export * from '@uniformdev/mesh-sdk';
|
|
10
10
|
import { Emitter } from 'mitt';
|
|
11
11
|
import { BadgeThemeProps, InputSelectProps } from '@uniformdev/design-system';
|
|
12
|
-
export { AddListButton, AddListButtonProps, Button, ButtonProps, Callout, CalloutProps, Heading, HeadingProps, Input, InputComboBox, InputComboBoxProps, InputKeywordSearch, InputProps, InputSelect, InputToggle, InputToggleProps,
|
|
12
|
+
export { AddListButton, AddListButtonProps, Button, ButtonProps, Callout, CalloutProps, 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 } from '@uniformdev/design-system';
|
|
13
13
|
|
|
14
14
|
declare const SvgCaution: (props: SVGProps<SVGSVGElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
15
15
|
|
|
@@ -183,10 +183,6 @@ type ProductSearchResult = EntrySearchResult & {
|
|
|
183
183
|
id: string;
|
|
184
184
|
name: string;
|
|
185
185
|
}>;
|
|
186
|
-
/** @deprecated Use `editLink` instead. */
|
|
187
|
-
url?: string;
|
|
188
|
-
/** @deprecated Use `title` instead. */
|
|
189
|
-
name?: string;
|
|
190
186
|
};
|
|
191
187
|
interface ProductSearchResults {
|
|
192
188
|
total: number;
|
|
@@ -390,8 +386,6 @@ declare function useMeshLocation<TLocationType extends MeshLocation['type'], TLo
|
|
|
390
386
|
type: TLocationType;
|
|
391
387
|
}> | Extract<_uniformdev_mesh_sdk.DataTypeLocation, {
|
|
392
388
|
type: TLocationType;
|
|
393
|
-
}> | Extract<_uniformdev_mesh_sdk.DataTypeInstanceLocation, {
|
|
394
|
-
type: TLocationType;
|
|
395
389
|
}> | Extract<_uniformdev_mesh_sdk.DataResourceLocation, {
|
|
396
390
|
type: TLocationType;
|
|
397
391
|
}> | Extract<_uniformdev_mesh_sdk.ParamTypeLocation<TLocationValue, unknown, TLocationSetValue, unknown>, {
|
|
@@ -405,8 +399,6 @@ declare function useMeshLocation<TLocationType extends MeshLocation['type'], TLo
|
|
|
405
399
|
type: TLocationType;
|
|
406
400
|
}> | Extract<_uniformdev_mesh_sdk.DataTypeLocation, {
|
|
407
401
|
type: TLocationType;
|
|
408
|
-
}> | Extract<_uniformdev_mesh_sdk.DataTypeInstanceLocation, {
|
|
409
|
-
type: TLocationType;
|
|
410
402
|
}> | Extract<_uniformdev_mesh_sdk.DataResourceLocation, {
|
|
411
403
|
type: TLocationType;
|
|
412
404
|
}> | Extract<_uniformdev_mesh_sdk.ParamTypeLocation<TLocationValue, unknown, TLocationSetValue, unknown>, {
|
|
@@ -419,8 +411,6 @@ declare function useMeshLocation<TLocationType extends MeshLocation['type'], TLo
|
|
|
419
411
|
type: TLocationType;
|
|
420
412
|
}> | Extract<_uniformdev_mesh_sdk.DataTypeLocation, {
|
|
421
413
|
type: TLocationType;
|
|
422
|
-
}> | Extract<_uniformdev_mesh_sdk.DataTypeInstanceLocation, {
|
|
423
|
-
type: TLocationType;
|
|
424
414
|
}> | Extract<_uniformdev_mesh_sdk.DataResourceLocation, {
|
|
425
415
|
type: TLocationType;
|
|
426
416
|
}> | Extract<_uniformdev_mesh_sdk.ParamTypeLocation<TLocationValue, unknown, TLocationSetValue, unknown>, {
|
|
@@ -1038,56 +1028,6 @@ declare function useRequestParameter(paramName: string): {
|
|
|
1038
1028
|
update: (value: string) => void;
|
|
1039
1029
|
};
|
|
1040
1030
|
|
|
1041
|
-
/** @deprecated */
|
|
1042
|
-
interface UniformMeshLocationContextValue<TLocationValue = unknown, TLocationSetValue = TLocationValue> {
|
|
1043
|
-
location: MeshLocation<TLocationValue, TLocationSetValue>;
|
|
1044
|
-
}
|
|
1045
|
-
/** @deprecated not intended for public usage */
|
|
1046
|
-
declare const UniformMeshLocationContext: React__default.Context<UniformMeshLocationContextValue<unknown, unknown> | undefined>;
|
|
1047
|
-
/** @deprecated not intended for public usage. Use <MeshApp /> instead. */
|
|
1048
|
-
declare const UniformMeshLocationContextProvider: React__default.FC<React__default.PropsWithChildren<unknown>>;
|
|
1049
|
-
/**
|
|
1050
|
-
* Provides access to the current UniformMeshLocationContext value.
|
|
1051
|
-
* @deprecated Not intended for public use. Use `useUniformMeshLocation` instead.
|
|
1052
|
-
*/
|
|
1053
|
-
declare const useUniformMeshLocationContext: <TLocationValue = unknown, TLocationSetValue = TLocationValue>() => UniformMeshLocationContextValue<TLocationValue, TLocationSetValue>;
|
|
1054
|
-
|
|
1055
|
-
interface UniformMeshSdkContextValue {
|
|
1056
|
-
sdk: UniformMeshSDK;
|
|
1057
|
-
}
|
|
1058
|
-
/** @deprecated not intended for public usage */
|
|
1059
|
-
declare const UniformMeshSdkContext: React__default.Context<UniformMeshSdkContextValue | undefined>;
|
|
1060
|
-
/** @deprecated not intended for public usage; use <MeshApp /> instead */
|
|
1061
|
-
declare const UniformMeshSdkContextProvider: React__default.FC<React__default.PropsWithChildren<unknown>>;
|
|
1062
|
-
/**
|
|
1063
|
-
* Provides access to the current (initialized) Uniform Mesh SDK context value.
|
|
1064
|
-
* @deprecated Not intended for public use. Use `useUniformMeshLocation` or `useUniformMeshSdk` instead.
|
|
1065
|
-
*/
|
|
1066
|
-
declare const useUniformMeshSdkContext: () => UniformMeshSdkContextValue;
|
|
1067
|
-
|
|
1068
|
-
interface UseUniformMeshSdkOptions {
|
|
1069
|
-
autoResizingDisabled?: boolean;
|
|
1070
|
-
}
|
|
1071
|
-
/**
|
|
1072
|
-
* Provides a React-hook wrapper around Uniform Mesh SDK initialization.
|
|
1073
|
-
* NOTE: initialization is an async operation and should be handled as such.
|
|
1074
|
-
*
|
|
1075
|
-
* @deprecated prefer <MeshApp /> to initialize and provide in a single component
|
|
1076
|
-
*/
|
|
1077
|
-
declare const useInitializeUniformMeshSdk: ({ autoResizingDisabled }?: UseUniformMeshSdkOptions) => {
|
|
1078
|
-
initializing: boolean;
|
|
1079
|
-
error: Error | undefined;
|
|
1080
|
-
sdk: UniformMeshSDK | undefined;
|
|
1081
|
-
};
|
|
1082
|
-
|
|
1083
|
-
/**
|
|
1084
|
-
* Provides convenient access to the current Uniform Mesh location via React hook.
|
|
1085
|
-
* Intended to be used within <MeshApp />.
|
|
1086
|
-
*
|
|
1087
|
-
* @deprecated prefer useMeshLocation which has much more accurate type safety
|
|
1088
|
-
*/
|
|
1089
|
-
declare function useUniformMeshLocation<TLocationValue = unknown, TLocationMetadata = never, TLocationSetValue = TLocationValue>(): MeshLocationCore<TLocationValue, TLocationMetadata, TLocationSetValue>;
|
|
1090
|
-
|
|
1091
1031
|
/**
|
|
1092
1032
|
* Provides convenient access to the current Uniform Mesh SDK instance via React hook.
|
|
1093
1033
|
* Intended to be used within <MeshApp />.
|
|
@@ -1103,4 +1043,4 @@ declare function useUniformMeshSdk(): _uniformdev_mesh_sdk.UniformMeshSDK;
|
|
|
1103
1043
|
*/
|
|
1104
1044
|
declare function createLocationValidator<TSetValue>(setValue: SetLocationValueDispatch<TSetValue>, validate: (newValue: TSetValue, currentResult: SetValueOptions | undefined) => SetValueOptions): SetLocationValueDispatch<TSetValue>;
|
|
1105
1045
|
|
|
1106
|
-
export { BaseRequestData, Brand, DamItem, DamSelectedItem, DamSelectedItemProps, DataRefreshButton, DataRefreshButtonProps, DataResourceVariableRendererProps, DataResourceVariablesList, DataResourceVariablesListProps, DataSourceEditor, DataSourceEditorProps, DataTypeEditor, DataTypeEditorProps, DataVariableDefinitionWithName, DefaultSearchRow, DefaultSelectedItem, DispatchResult, EntrySearch, EntrySearchContentType, EntrySearchProps, EntrySearchQueryOptions, EntrySearchResult, EntrySearchRowProps, EntrySearchSelectedItemProps, GetProductOptions, GetProductsOptions, index as Icons, InputToken, InputVariables, InputVariablesProps, ItemListProps, LinkButton, MeshApp, MeshAppProps, NoResultsProps, ObjectSearchContainer, ObjectSearchContainerProps, ObjectSearchContextProps, ObjectSearchFilter, ObjectSearchFilterContainer, ObjectSearchFilterContainerProps, ObjectSearchFilterProps, ObjectSearchListItem, ObjectSearchListItemLoadingSkeleton, ObjectSearchListItemProps, ObjectSearchProvider, ObjectSearchProviderProps, ObjectSearchResultItem, ObjectSearchResultItemButton, ObjectSearchResultItemButtonProps, ObjectSearchResultItemProps, ObjectSearchResultList, ObjectSearchResultListProps, ProductCategory, ProductDynamicSelectorValue, ProductPreviewList, ProductQuery, ProductQueryCategory, ProductQueryContext, ProductQueryContextValue, ProductQueryProps, ProductSearch, ProductSearchContext, ProductSearchContextValue, ProductSearchProps, ProductSearchResult, ProductSearchResults, ProductSearchRow, ProductSelectedItem, QueryFilter, QueryFilterProps, QueryFilterSearchProps, RequestAction, RequestBody, RequestContext, RequestData, RequestHeaders, RequestMethodSelect, RequestParameter, RequestParameters, RequestParametersProps, RequestProvider, RequestProviderProps, RequestTypeContainer, RequestTypeContainerProps, RequestUrl, RequestUrlInput, ResolvableLoadingValue, SearchQueryProps, SelectedItemProps, SelectionField, SelectionFieldValue, SetLocationValueDispatch, SetLocationValueFunction, TextVariableRenderer,
|
|
1046
|
+
export { BaseRequestData, Brand, DamItem, DamSelectedItem, DamSelectedItemProps, DataRefreshButton, DataRefreshButtonProps, DataResourceVariableRendererProps, DataResourceVariablesList, DataResourceVariablesListProps, DataSourceEditor, DataSourceEditorProps, DataTypeEditor, DataTypeEditorProps, DataVariableDefinitionWithName, DefaultSearchRow, DefaultSelectedItem, DispatchResult, EntrySearch, EntrySearchContentType, EntrySearchProps, EntrySearchQueryOptions, EntrySearchResult, EntrySearchRowProps, EntrySearchSelectedItemProps, GetProductOptions, GetProductsOptions, index as Icons, InputToken, InputVariables, InputVariablesProps, ItemListProps, LinkButton, MeshApp, MeshAppProps, NoResultsProps, ObjectSearchContainer, ObjectSearchContainerProps, ObjectSearchContextProps, ObjectSearchFilter, ObjectSearchFilterContainer, ObjectSearchFilterContainerProps, ObjectSearchFilterProps, ObjectSearchListItem, ObjectSearchListItemLoadingSkeleton, ObjectSearchListItemProps, ObjectSearchProvider, ObjectSearchProviderProps, ObjectSearchResultItem, ObjectSearchResultItemButton, ObjectSearchResultItemButtonProps, ObjectSearchResultItemProps, ObjectSearchResultList, ObjectSearchResultListProps, ProductCategory, ProductDynamicSelectorValue, ProductPreviewList, ProductQuery, ProductQueryCategory, ProductQueryContext, ProductQueryContextValue, ProductQueryProps, ProductSearch, ProductSearchContext, ProductSearchContextValue, ProductSearchProps, ProductSearchResult, ProductSearchResults, ProductSearchRow, ProductSelectedItem, QueryFilter, QueryFilterProps, QueryFilterSearchProps, RequestAction, RequestBody, RequestContext, RequestData, RequestHeaders, RequestMethodSelect, RequestParameter, RequestParameters, RequestParametersProps, RequestProvider, RequestProviderProps, RequestTypeContainer, RequestTypeContainerProps, RequestUrl, RequestUrlInput, ResolvableLoadingValue, SearchQueryProps, SelectedItemProps, SelectionField, SelectionFieldValue, SetLocationValueDispatch, SetLocationValueFunction, TextVariableRenderer, VariableEditor, VariableEditorProps, VariablesAction, VariablesContext, VariablesEvents, VariablesList, VariablesProvider, VariablesProviderProps, badgeIcon, 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, 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, urlEncodeRequestParameter, urlEncodeRequestUrl, useMeshLocation, useObjectSearchContext, useProductQueryContext, useProductSearchContext, useRequest, useRequestHeader, useRequestParameter, useUniformMeshSdk, useVariables, variablesToList };
|
package/dist/index.esm.js
CHANGED
|
@@ -893,7 +893,7 @@ var ProductPreviewList = ({
|
|
|
893
893
|
scrollbarStyles
|
|
894
894
|
],
|
|
895
895
|
children: products == null ? void 0 : products.map((product, index) => {
|
|
896
|
-
var _a
|
|
896
|
+
var _a;
|
|
897
897
|
const [category] = (product == null ? void 0 : product.categories) || [];
|
|
898
898
|
const categoryName = typeof category === "undefined" || !categories ? void 0 : (_a = categories.find((c) => c.id === category.id)) == null ? void 0 : _a.name;
|
|
899
899
|
return /* @__PURE__ */ jsx18("li", { css: productPreviewListItem, children: /* @__PURE__ */ jsxs7(
|
|
@@ -906,13 +906,13 @@ var ProductPreviewList = ({
|
|
|
906
906
|
"img",
|
|
907
907
|
{
|
|
908
908
|
src: product.thumbnailUrl,
|
|
909
|
-
alt: typeof product.title === "string" ? product.title :
|
|
909
|
+
alt: typeof product.title === "string" ? product.title : `Product ${index}`,
|
|
910
910
|
css: productPreviewListImage,
|
|
911
911
|
"data-test-id": "product-image"
|
|
912
912
|
}
|
|
913
913
|
) : /* @__PURE__ */ jsx18("div", { css: productPreviewListImageDefault }),
|
|
914
914
|
/* @__PURE__ */ jsxs7("h4", { css: productPreviewListTitle, "data-test-id": "product-name", children: [
|
|
915
|
-
product.title
|
|
915
|
+
product.title,
|
|
916
916
|
categoryName && /* @__PURE__ */ jsx18("span", { css: productPreviewListCategoryText, children: categoryName })
|
|
917
917
|
] }),
|
|
918
918
|
product && /* @__PURE__ */ jsxs7(Fragment2, { children: [
|
|
@@ -925,12 +925,12 @@ var ProductPreviewList = ({
|
|
|
925
925
|
"Price: ",
|
|
926
926
|
product.price
|
|
927
927
|
] }) : null,
|
|
928
|
-
product.editLink
|
|
928
|
+
product.editLink ? /* @__PURE__ */ jsxs7(
|
|
929
929
|
"a",
|
|
930
930
|
{
|
|
931
931
|
css: productPreviewListLinkBtn,
|
|
932
|
-
href:
|
|
933
|
-
title: `Go to ${product.title
|
|
932
|
+
href: product.editLink,
|
|
933
|
+
title: `Go to ${product.title}`,
|
|
934
934
|
target: "_blank",
|
|
935
935
|
rel: "noopener noreferrer",
|
|
936
936
|
"data-test-id": "edit-product-button",
|
|
@@ -2655,18 +2655,6 @@ import { Theme } from "@uniformdev/design-system";
|
|
|
2655
2655
|
import { createContext, useContext as useContext3 } from "react";
|
|
2656
2656
|
import { jsx as jsx26, jsxs as jsxs15 } from "@emotion/react/jsx-runtime";
|
|
2657
2657
|
var UniformMeshSdkContext = createContext(void 0);
|
|
2658
|
-
var UniformMeshSdkContextProvider = ({ children }) => {
|
|
2659
|
-
let value = void 0;
|
|
2660
|
-
if (typeof window !== "undefined" && typeof window.UniformMeshSDK !== "undefined") {
|
|
2661
|
-
value = {
|
|
2662
|
-
sdk: window.UniformMeshSDK
|
|
2663
|
-
};
|
|
2664
|
-
}
|
|
2665
|
-
return /* @__PURE__ */ jsxs15(UniformMeshSdkContext.Provider, { value, children: [
|
|
2666
|
-
/* @__PURE__ */ jsx26(Theme, {}),
|
|
2667
|
-
/* @__PURE__ */ jsx26(UniformMeshLocationContextProvider, { children })
|
|
2668
|
-
] });
|
|
2669
|
-
};
|
|
2670
2658
|
var useUniformMeshSdkContext = () => {
|
|
2671
2659
|
const context = useContext3(UniformMeshSdkContext);
|
|
2672
2660
|
if (!context) {
|
|
@@ -2683,9 +2671,7 @@ function useUniformMeshSdk() {
|
|
|
2683
2671
|
|
|
2684
2672
|
// src/components/UniformMeshLocationContext.tsx
|
|
2685
2673
|
import { jsx as jsx27 } from "@emotion/react/jsx-runtime";
|
|
2686
|
-
var UniformMeshLocationContext = createContext2(
|
|
2687
|
-
void 0
|
|
2688
|
-
);
|
|
2674
|
+
var UniformMeshLocationContext = createContext2(void 0);
|
|
2689
2675
|
var UniformMeshLocationContextProvider = ({
|
|
2690
2676
|
children
|
|
2691
2677
|
}) => {
|
|
@@ -2716,20 +2702,9 @@ var useUniformMeshLocationContext = () => {
|
|
|
2716
2702
|
};
|
|
2717
2703
|
|
|
2718
2704
|
// src/hooks/useMeshLocation.ts
|
|
2719
|
-
var legacyWarned = false;
|
|
2720
2705
|
function useMeshLocation(expectedLocation) {
|
|
2721
2706
|
const { location } = useUniformMeshLocationContext();
|
|
2722
|
-
|
|
2723
|
-
if (expectedLocation === "dataTypeInstance") {
|
|
2724
|
-
effectiveExpected = "dataResource";
|
|
2725
|
-
if (!legacyWarned) {
|
|
2726
|
-
console.warn(
|
|
2727
|
-
"`dataTypeInstance` mesh location is deprecated, please switch to `dataResource` instead."
|
|
2728
|
-
);
|
|
2729
|
-
legacyWarned = true;
|
|
2730
|
-
}
|
|
2731
|
-
}
|
|
2732
|
-
if (effectiveExpected && location.type !== effectiveExpected) {
|
|
2707
|
+
if (expectedLocation && location.type !== expectedLocation) {
|
|
2733
2708
|
throw new Error(`Expected location type ${expectedLocation} but got ${location.type}`);
|
|
2734
2709
|
}
|
|
2735
2710
|
const backdoorLocation = useRef7(location);
|
|
@@ -3344,7 +3319,7 @@ function DataResourceVariablesList({
|
|
|
3344
3319
|
const {
|
|
3345
3320
|
value,
|
|
3346
3321
|
metadata: { dataType }
|
|
3347
|
-
} = useMeshLocation("
|
|
3322
|
+
} = useMeshLocation("dataResource");
|
|
3348
3323
|
const variableDefinitions = variablesToList(dataType.variables);
|
|
3349
3324
|
if (variableDefinitions.length === 0) {
|
|
3350
3325
|
if (NoVariablesComponent) {
|
|
@@ -4810,12 +4785,6 @@ var QueryFilter = ({
|
|
|
4810
4785
|
] });
|
|
4811
4786
|
};
|
|
4812
4787
|
|
|
4813
|
-
// src/hooks/useUniformMeshLocation.ts
|
|
4814
|
-
function useUniformMeshLocation() {
|
|
4815
|
-
const { location } = useUniformMeshLocationContext();
|
|
4816
|
-
return location;
|
|
4817
|
-
}
|
|
4818
|
-
|
|
4819
4788
|
// src/hooks/index.ts
|
|
4820
4789
|
import { ParameterShellContext, useParameterShell } from "@uniformdev/design-system";
|
|
4821
4790
|
|
|
@@ -4838,7 +4807,6 @@ import {
|
|
|
4838
4807
|
InputKeywordSearch as InputKeywordSearch4,
|
|
4839
4808
|
InputSelect as InputSelect8,
|
|
4840
4809
|
InputToggle,
|
|
4841
|
-
InputKeywordSearch as InputKeywordSearch5,
|
|
4842
4810
|
Label,
|
|
4843
4811
|
LoadingIndicator as LoadingIndicator4,
|
|
4844
4812
|
LoadingOverlay as LoadingOverlay2,
|
|
@@ -4885,7 +4853,6 @@ export {
|
|
|
4885
4853
|
InputSelect8 as InputSelect,
|
|
4886
4854
|
InputToggle,
|
|
4887
4855
|
InputVariables,
|
|
4888
|
-
InputKeywordSearch5 as KeywordSearchInput,
|
|
4889
4856
|
Label,
|
|
4890
4857
|
LinkButton,
|
|
4891
4858
|
LoadingIndicator4 as LoadingIndicator,
|
|
@@ -4941,10 +4908,6 @@ export {
|
|
|
4941
4908
|
TextVariableRenderer,
|
|
4942
4909
|
Textarea,
|
|
4943
4910
|
Theme3 as Theme,
|
|
4944
|
-
UniformMeshLocationContext,
|
|
4945
|
-
UniformMeshLocationContextProvider,
|
|
4946
|
-
UniformMeshSdkContext,
|
|
4947
|
-
UniformMeshSdkContextProvider,
|
|
4948
4911
|
VariableEditor,
|
|
4949
4912
|
VariablesList,
|
|
4950
4913
|
VariablesProvider,
|
|
@@ -5013,7 +4976,6 @@ export {
|
|
|
5013
4976
|
selectedItemTitle,
|
|
5014
4977
|
urlEncodeRequestParameter,
|
|
5015
4978
|
urlEncodeRequestUrl,
|
|
5016
|
-
useInitializeUniformMeshSdk,
|
|
5017
4979
|
useMeshLocation,
|
|
5018
4980
|
useObjectSearchContext,
|
|
5019
4981
|
useParameterShell,
|
|
@@ -5022,10 +4984,7 @@ export {
|
|
|
5022
4984
|
useRequest,
|
|
5023
4985
|
useRequestHeader,
|
|
5024
4986
|
useRequestParameter,
|
|
5025
|
-
useUniformMeshLocation,
|
|
5026
|
-
useUniformMeshLocationContext,
|
|
5027
4987
|
useUniformMeshSdk,
|
|
5028
|
-
useUniformMeshSdkContext,
|
|
5029
4988
|
useVariables,
|
|
5030
4989
|
variablesToList
|
|
5031
4990
|
};
|
package/dist/index.js
CHANGED
|
@@ -50,7 +50,6 @@ __export(src_exports, {
|
|
|
50
50
|
InputSelect: () => import_design_system34.InputSelect,
|
|
51
51
|
InputToggle: () => import_design_system34.InputToggle,
|
|
52
52
|
InputVariables: () => InputVariables,
|
|
53
|
-
KeywordSearchInput: () => import_design_system34.InputKeywordSearch,
|
|
54
53
|
Label: () => import_design_system34.Label,
|
|
55
54
|
LinkButton: () => LinkButton,
|
|
56
55
|
LoadingIndicator: () => import_design_system34.LoadingIndicator,
|
|
@@ -106,10 +105,6 @@ __export(src_exports, {
|
|
|
106
105
|
TextVariableRenderer: () => TextVariableRenderer,
|
|
107
106
|
Textarea: () => import_design_system34.Textarea,
|
|
108
107
|
Theme: () => import_design_system34.Theme,
|
|
109
|
-
UniformMeshLocationContext: () => UniformMeshLocationContext,
|
|
110
|
-
UniformMeshLocationContextProvider: () => UniformMeshLocationContextProvider,
|
|
111
|
-
UniformMeshSdkContext: () => UniformMeshSdkContext,
|
|
112
|
-
UniformMeshSdkContextProvider: () => UniformMeshSdkContextProvider,
|
|
113
108
|
VariableEditor: () => VariableEditor,
|
|
114
109
|
VariablesList: () => VariablesList,
|
|
115
110
|
VariablesProvider: () => VariablesProvider,
|
|
@@ -178,7 +173,6 @@ __export(src_exports, {
|
|
|
178
173
|
selectedItemTitle: () => selectedItemTitle,
|
|
179
174
|
urlEncodeRequestParameter: () => urlEncodeRequestParameter,
|
|
180
175
|
urlEncodeRequestUrl: () => urlEncodeRequestUrl,
|
|
181
|
-
useInitializeUniformMeshSdk: () => useInitializeUniformMeshSdk,
|
|
182
176
|
useMeshLocation: () => useMeshLocation,
|
|
183
177
|
useObjectSearchContext: () => useObjectSearchContext,
|
|
184
178
|
useParameterShell: () => import_design_system33.useParameterShell,
|
|
@@ -187,10 +181,7 @@ __export(src_exports, {
|
|
|
187
181
|
useRequest: () => useRequest,
|
|
188
182
|
useRequestHeader: () => useRequestHeader,
|
|
189
183
|
useRequestParameter: () => useRequestParameter,
|
|
190
|
-
useUniformMeshLocation: () => useUniformMeshLocation,
|
|
191
|
-
useUniformMeshLocationContext: () => useUniformMeshLocationContext,
|
|
192
184
|
useUniformMeshSdk: () => useUniformMeshSdk,
|
|
193
|
-
useUniformMeshSdkContext: () => useUniformMeshSdkContext,
|
|
194
185
|
useVariables: () => useVariables,
|
|
195
186
|
variablesToList: () => variablesToList
|
|
196
187
|
});
|
|
@@ -1085,7 +1076,7 @@ var ProductPreviewList = ({
|
|
|
1085
1076
|
import_design_system3.scrollbarStyles
|
|
1086
1077
|
],
|
|
1087
1078
|
children: products == null ? void 0 : products.map((product, index) => {
|
|
1088
|
-
var _a
|
|
1079
|
+
var _a;
|
|
1089
1080
|
const [category] = (product == null ? void 0 : product.categories) || [];
|
|
1090
1081
|
const categoryName = typeof category === "undefined" || !categories ? void 0 : (_a = categories.find((c) => c.id === category.id)) == null ? void 0 : _a.name;
|
|
1091
1082
|
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("li", { css: productPreviewListItem, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
@@ -1098,13 +1089,13 @@ var ProductPreviewList = ({
|
|
|
1098
1089
|
"img",
|
|
1099
1090
|
{
|
|
1100
1091
|
src: product.thumbnailUrl,
|
|
1101
|
-
alt: typeof product.title === "string" ? product.title :
|
|
1092
|
+
alt: typeof product.title === "string" ? product.title : `Product ${index}`,
|
|
1102
1093
|
css: productPreviewListImage,
|
|
1103
1094
|
"data-test-id": "product-image"
|
|
1104
1095
|
}
|
|
1105
1096
|
) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { css: productPreviewListImageDefault }),
|
|
1106
1097
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("h4", { css: productPreviewListTitle, "data-test-id": "product-name", children: [
|
|
1107
|
-
product.title
|
|
1098
|
+
product.title,
|
|
1108
1099
|
categoryName && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { css: productPreviewListCategoryText, children: categoryName })
|
|
1109
1100
|
] }),
|
|
1110
1101
|
product && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
|
|
@@ -1117,12 +1108,12 @@ var ProductPreviewList = ({
|
|
|
1117
1108
|
"Price: ",
|
|
1118
1109
|
product.price
|
|
1119
1110
|
] }) : null,
|
|
1120
|
-
product.editLink
|
|
1111
|
+
product.editLink ? /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
1121
1112
|
"a",
|
|
1122
1113
|
{
|
|
1123
1114
|
css: productPreviewListLinkBtn,
|
|
1124
|
-
href:
|
|
1125
|
-
title: `Go to ${product.title
|
|
1115
|
+
href: product.editLink,
|
|
1116
|
+
title: `Go to ${product.title}`,
|
|
1126
1117
|
target: "_blank",
|
|
1127
1118
|
rel: "noopener noreferrer",
|
|
1128
1119
|
"data-test-id": "edit-product-button",
|
|
@@ -2837,18 +2828,6 @@ var import_design_system13 = require("@uniformdev/design-system");
|
|
|
2837
2828
|
var import_react25 = require("react");
|
|
2838
2829
|
var import_jsx_runtime26 = require("@emotion/react/jsx-runtime");
|
|
2839
2830
|
var UniformMeshSdkContext = (0, import_react25.createContext)(void 0);
|
|
2840
|
-
var UniformMeshSdkContextProvider = ({ children }) => {
|
|
2841
|
-
let value = void 0;
|
|
2842
|
-
if (typeof window !== "undefined" && typeof window.UniformMeshSDK !== "undefined") {
|
|
2843
|
-
value = {
|
|
2844
|
-
sdk: window.UniformMeshSDK
|
|
2845
|
-
};
|
|
2846
|
-
}
|
|
2847
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(UniformMeshSdkContext.Provider, { value, children: [
|
|
2848
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_design_system13.Theme, {}),
|
|
2849
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(UniformMeshLocationContextProvider, { children })
|
|
2850
|
-
] });
|
|
2851
|
-
};
|
|
2852
2831
|
var useUniformMeshSdkContext = () => {
|
|
2853
2832
|
const context = (0, import_react25.useContext)(UniformMeshSdkContext);
|
|
2854
2833
|
if (!context) {
|
|
@@ -2865,9 +2844,7 @@ function useUniformMeshSdk() {
|
|
|
2865
2844
|
|
|
2866
2845
|
// src/components/UniformMeshLocationContext.tsx
|
|
2867
2846
|
var import_jsx_runtime27 = require("@emotion/react/jsx-runtime");
|
|
2868
|
-
var UniformMeshLocationContext = (0, import_react26.createContext)(
|
|
2869
|
-
void 0
|
|
2870
|
-
);
|
|
2847
|
+
var UniformMeshLocationContext = (0, import_react26.createContext)(void 0);
|
|
2871
2848
|
var UniformMeshLocationContextProvider = ({
|
|
2872
2849
|
children
|
|
2873
2850
|
}) => {
|
|
@@ -2898,20 +2875,9 @@ var useUniformMeshLocationContext = () => {
|
|
|
2898
2875
|
};
|
|
2899
2876
|
|
|
2900
2877
|
// src/hooks/useMeshLocation.ts
|
|
2901
|
-
var legacyWarned = false;
|
|
2902
2878
|
function useMeshLocation(expectedLocation) {
|
|
2903
2879
|
const { location } = useUniformMeshLocationContext();
|
|
2904
|
-
|
|
2905
|
-
if (expectedLocation === "dataTypeInstance") {
|
|
2906
|
-
effectiveExpected = "dataResource";
|
|
2907
|
-
if (!legacyWarned) {
|
|
2908
|
-
console.warn(
|
|
2909
|
-
"`dataTypeInstance` mesh location is deprecated, please switch to `dataResource` instead."
|
|
2910
|
-
);
|
|
2911
|
-
legacyWarned = true;
|
|
2912
|
-
}
|
|
2913
|
-
}
|
|
2914
|
-
if (effectiveExpected && location.type !== effectiveExpected) {
|
|
2880
|
+
if (expectedLocation && location.type !== expectedLocation) {
|
|
2915
2881
|
throw new Error(`Expected location type ${expectedLocation} but got ${location.type}`);
|
|
2916
2882
|
}
|
|
2917
2883
|
const backdoorLocation = (0, import_react27.useRef)(location);
|
|
@@ -3516,7 +3482,7 @@ function DataResourceVariablesList({
|
|
|
3516
3482
|
const {
|
|
3517
3483
|
value,
|
|
3518
3484
|
metadata: { dataType }
|
|
3519
|
-
} = useMeshLocation("
|
|
3485
|
+
} = useMeshLocation("dataResource");
|
|
3520
3486
|
const variableDefinitions = variablesToList(dataType.variables);
|
|
3521
3487
|
if (variableDefinitions.length === 0) {
|
|
3522
3488
|
if (NoVariablesComponent) {
|
|
@@ -4964,12 +4930,6 @@ var QueryFilter = ({
|
|
|
4964
4930
|
] });
|
|
4965
4931
|
};
|
|
4966
4932
|
|
|
4967
|
-
// src/hooks/useUniformMeshLocation.ts
|
|
4968
|
-
function useUniformMeshLocation() {
|
|
4969
|
-
const { location } = useUniformMeshLocationContext();
|
|
4970
|
-
return location;
|
|
4971
|
-
}
|
|
4972
|
-
|
|
4973
4933
|
// src/hooks/index.ts
|
|
4974
4934
|
var import_design_system33 = require("@uniformdev/design-system");
|
|
4975
4935
|
|
|
@@ -5005,7 +4965,6 @@ __reExport(src_exports, require("@uniformdev/mesh-sdk"), module.exports);
|
|
|
5005
4965
|
InputSelect,
|
|
5006
4966
|
InputToggle,
|
|
5007
4967
|
InputVariables,
|
|
5008
|
-
KeywordSearchInput,
|
|
5009
4968
|
Label,
|
|
5010
4969
|
LinkButton,
|
|
5011
4970
|
LoadingIndicator,
|
|
@@ -5061,10 +5020,6 @@ __reExport(src_exports, require("@uniformdev/mesh-sdk"), module.exports);
|
|
|
5061
5020
|
TextVariableRenderer,
|
|
5062
5021
|
Textarea,
|
|
5063
5022
|
Theme,
|
|
5064
|
-
UniformMeshLocationContext,
|
|
5065
|
-
UniformMeshLocationContextProvider,
|
|
5066
|
-
UniformMeshSdkContext,
|
|
5067
|
-
UniformMeshSdkContextProvider,
|
|
5068
5023
|
VariableEditor,
|
|
5069
5024
|
VariablesList,
|
|
5070
5025
|
VariablesProvider,
|
|
@@ -5133,7 +5088,6 @@ __reExport(src_exports, require("@uniformdev/mesh-sdk"), module.exports);
|
|
|
5133
5088
|
selectedItemTitle,
|
|
5134
5089
|
urlEncodeRequestParameter,
|
|
5135
5090
|
urlEncodeRequestUrl,
|
|
5136
|
-
useInitializeUniformMeshSdk,
|
|
5137
5091
|
useMeshLocation,
|
|
5138
5092
|
useObjectSearchContext,
|
|
5139
5093
|
useParameterShell,
|
|
@@ -5142,10 +5096,7 @@ __reExport(src_exports, require("@uniformdev/mesh-sdk"), module.exports);
|
|
|
5142
5096
|
useRequest,
|
|
5143
5097
|
useRequestHeader,
|
|
5144
5098
|
useRequestParameter,
|
|
5145
|
-
useUniformMeshLocation,
|
|
5146
|
-
useUniformMeshLocationContext,
|
|
5147
5099
|
useUniformMeshSdk,
|
|
5148
|
-
useUniformMeshSdkContext,
|
|
5149
5100
|
useVariables,
|
|
5150
5101
|
variablesToList
|
|
5151
5102
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -893,7 +893,7 @@ var ProductPreviewList = ({
|
|
|
893
893
|
scrollbarStyles
|
|
894
894
|
],
|
|
895
895
|
children: products == null ? void 0 : products.map((product, index) => {
|
|
896
|
-
var _a
|
|
896
|
+
var _a;
|
|
897
897
|
const [category] = (product == null ? void 0 : product.categories) || [];
|
|
898
898
|
const categoryName = typeof category === "undefined" || !categories ? void 0 : (_a = categories.find((c) => c.id === category.id)) == null ? void 0 : _a.name;
|
|
899
899
|
return /* @__PURE__ */ jsx18("li", { css: productPreviewListItem, children: /* @__PURE__ */ jsxs7(
|
|
@@ -906,13 +906,13 @@ var ProductPreviewList = ({
|
|
|
906
906
|
"img",
|
|
907
907
|
{
|
|
908
908
|
src: product.thumbnailUrl,
|
|
909
|
-
alt: typeof product.title === "string" ? product.title :
|
|
909
|
+
alt: typeof product.title === "string" ? product.title : `Product ${index}`,
|
|
910
910
|
css: productPreviewListImage,
|
|
911
911
|
"data-test-id": "product-image"
|
|
912
912
|
}
|
|
913
913
|
) : /* @__PURE__ */ jsx18("div", { css: productPreviewListImageDefault }),
|
|
914
914
|
/* @__PURE__ */ jsxs7("h4", { css: productPreviewListTitle, "data-test-id": "product-name", children: [
|
|
915
|
-
product.title
|
|
915
|
+
product.title,
|
|
916
916
|
categoryName && /* @__PURE__ */ jsx18("span", { css: productPreviewListCategoryText, children: categoryName })
|
|
917
917
|
] }),
|
|
918
918
|
product && /* @__PURE__ */ jsxs7(Fragment2, { children: [
|
|
@@ -925,12 +925,12 @@ var ProductPreviewList = ({
|
|
|
925
925
|
"Price: ",
|
|
926
926
|
product.price
|
|
927
927
|
] }) : null,
|
|
928
|
-
product.editLink
|
|
928
|
+
product.editLink ? /* @__PURE__ */ jsxs7(
|
|
929
929
|
"a",
|
|
930
930
|
{
|
|
931
931
|
css: productPreviewListLinkBtn,
|
|
932
|
-
href:
|
|
933
|
-
title: `Go to ${product.title
|
|
932
|
+
href: product.editLink,
|
|
933
|
+
title: `Go to ${product.title}`,
|
|
934
934
|
target: "_blank",
|
|
935
935
|
rel: "noopener noreferrer",
|
|
936
936
|
"data-test-id": "edit-product-button",
|
|
@@ -2655,18 +2655,6 @@ import { Theme } from "@uniformdev/design-system";
|
|
|
2655
2655
|
import { createContext, useContext as useContext3 } from "react";
|
|
2656
2656
|
import { jsx as jsx26, jsxs as jsxs15 } from "@emotion/react/jsx-runtime";
|
|
2657
2657
|
var UniformMeshSdkContext = createContext(void 0);
|
|
2658
|
-
var UniformMeshSdkContextProvider = ({ children }) => {
|
|
2659
|
-
let value = void 0;
|
|
2660
|
-
if (typeof window !== "undefined" && typeof window.UniformMeshSDK !== "undefined") {
|
|
2661
|
-
value = {
|
|
2662
|
-
sdk: window.UniformMeshSDK
|
|
2663
|
-
};
|
|
2664
|
-
}
|
|
2665
|
-
return /* @__PURE__ */ jsxs15(UniformMeshSdkContext.Provider, { value, children: [
|
|
2666
|
-
/* @__PURE__ */ jsx26(Theme, {}),
|
|
2667
|
-
/* @__PURE__ */ jsx26(UniformMeshLocationContextProvider, { children })
|
|
2668
|
-
] });
|
|
2669
|
-
};
|
|
2670
2658
|
var useUniformMeshSdkContext = () => {
|
|
2671
2659
|
const context = useContext3(UniformMeshSdkContext);
|
|
2672
2660
|
if (!context) {
|
|
@@ -2683,9 +2671,7 @@ function useUniformMeshSdk() {
|
|
|
2683
2671
|
|
|
2684
2672
|
// src/components/UniformMeshLocationContext.tsx
|
|
2685
2673
|
import { jsx as jsx27 } from "@emotion/react/jsx-runtime";
|
|
2686
|
-
var UniformMeshLocationContext = createContext2(
|
|
2687
|
-
void 0
|
|
2688
|
-
);
|
|
2674
|
+
var UniformMeshLocationContext = createContext2(void 0);
|
|
2689
2675
|
var UniformMeshLocationContextProvider = ({
|
|
2690
2676
|
children
|
|
2691
2677
|
}) => {
|
|
@@ -2716,20 +2702,9 @@ var useUniformMeshLocationContext = () => {
|
|
|
2716
2702
|
};
|
|
2717
2703
|
|
|
2718
2704
|
// src/hooks/useMeshLocation.ts
|
|
2719
|
-
var legacyWarned = false;
|
|
2720
2705
|
function useMeshLocation(expectedLocation) {
|
|
2721
2706
|
const { location } = useUniformMeshLocationContext();
|
|
2722
|
-
|
|
2723
|
-
if (expectedLocation === "dataTypeInstance") {
|
|
2724
|
-
effectiveExpected = "dataResource";
|
|
2725
|
-
if (!legacyWarned) {
|
|
2726
|
-
console.warn(
|
|
2727
|
-
"`dataTypeInstance` mesh location is deprecated, please switch to `dataResource` instead."
|
|
2728
|
-
);
|
|
2729
|
-
legacyWarned = true;
|
|
2730
|
-
}
|
|
2731
|
-
}
|
|
2732
|
-
if (effectiveExpected && location.type !== effectiveExpected) {
|
|
2707
|
+
if (expectedLocation && location.type !== expectedLocation) {
|
|
2733
2708
|
throw new Error(`Expected location type ${expectedLocation} but got ${location.type}`);
|
|
2734
2709
|
}
|
|
2735
2710
|
const backdoorLocation = useRef7(location);
|
|
@@ -3344,7 +3319,7 @@ function DataResourceVariablesList({
|
|
|
3344
3319
|
const {
|
|
3345
3320
|
value,
|
|
3346
3321
|
metadata: { dataType }
|
|
3347
|
-
} = useMeshLocation("
|
|
3322
|
+
} = useMeshLocation("dataResource");
|
|
3348
3323
|
const variableDefinitions = variablesToList(dataType.variables);
|
|
3349
3324
|
if (variableDefinitions.length === 0) {
|
|
3350
3325
|
if (NoVariablesComponent) {
|
|
@@ -4810,12 +4785,6 @@ var QueryFilter = ({
|
|
|
4810
4785
|
] });
|
|
4811
4786
|
};
|
|
4812
4787
|
|
|
4813
|
-
// src/hooks/useUniformMeshLocation.ts
|
|
4814
|
-
function useUniformMeshLocation() {
|
|
4815
|
-
const { location } = useUniformMeshLocationContext();
|
|
4816
|
-
return location;
|
|
4817
|
-
}
|
|
4818
|
-
|
|
4819
4788
|
// src/hooks/index.ts
|
|
4820
4789
|
import { ParameterShellContext, useParameterShell } from "@uniformdev/design-system";
|
|
4821
4790
|
|
|
@@ -4838,7 +4807,6 @@ import {
|
|
|
4838
4807
|
InputKeywordSearch as InputKeywordSearch4,
|
|
4839
4808
|
InputSelect as InputSelect8,
|
|
4840
4809
|
InputToggle,
|
|
4841
|
-
InputKeywordSearch as InputKeywordSearch5,
|
|
4842
4810
|
Label,
|
|
4843
4811
|
LoadingIndicator as LoadingIndicator4,
|
|
4844
4812
|
LoadingOverlay as LoadingOverlay2,
|
|
@@ -4885,7 +4853,6 @@ export {
|
|
|
4885
4853
|
InputSelect8 as InputSelect,
|
|
4886
4854
|
InputToggle,
|
|
4887
4855
|
InputVariables,
|
|
4888
|
-
InputKeywordSearch5 as KeywordSearchInput,
|
|
4889
4856
|
Label,
|
|
4890
4857
|
LinkButton,
|
|
4891
4858
|
LoadingIndicator4 as LoadingIndicator,
|
|
@@ -4941,10 +4908,6 @@ export {
|
|
|
4941
4908
|
TextVariableRenderer,
|
|
4942
4909
|
Textarea,
|
|
4943
4910
|
Theme3 as Theme,
|
|
4944
|
-
UniformMeshLocationContext,
|
|
4945
|
-
UniformMeshLocationContextProvider,
|
|
4946
|
-
UniformMeshSdkContext,
|
|
4947
|
-
UniformMeshSdkContextProvider,
|
|
4948
4911
|
VariableEditor,
|
|
4949
4912
|
VariablesList,
|
|
4950
4913
|
VariablesProvider,
|
|
@@ -5013,7 +4976,6 @@ export {
|
|
|
5013
4976
|
selectedItemTitle,
|
|
5014
4977
|
urlEncodeRequestParameter,
|
|
5015
4978
|
urlEncodeRequestUrl,
|
|
5016
|
-
useInitializeUniformMeshSdk,
|
|
5017
4979
|
useMeshLocation,
|
|
5018
4980
|
useObjectSearchContext,
|
|
5019
4981
|
useParameterShell,
|
|
@@ -5022,10 +4984,7 @@ export {
|
|
|
5022
4984
|
useRequest,
|
|
5023
4985
|
useRequestHeader,
|
|
5024
4986
|
useRequestParameter,
|
|
5025
|
-
useUniformMeshLocation,
|
|
5026
|
-
useUniformMeshLocationContext,
|
|
5027
4987
|
useUniformMeshSdk,
|
|
5028
|
-
useUniformMeshSdkContext,
|
|
5029
4988
|
useVariables,
|
|
5030
4989
|
variablesToList
|
|
5031
4990
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "19.1.0",
|
|
4
4
|
"description": "Uniform Mesh Framework SDK for React",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@hookform/resolvers": "^3.0.1",
|
|
47
|
-
"@uniformdev/design-system": "
|
|
48
|
-
"@uniformdev/mesh-sdk": "
|
|
47
|
+
"@uniformdev/design-system": "19.1.0",
|
|
48
|
+
"@uniformdev/mesh-sdk": "19.1.0",
|
|
49
49
|
"mitt": "^3.0.0",
|
|
50
50
|
"react-beautiful-dnd": "13.1.1",
|
|
51
51
|
"react-hook-form": "^7.43.9",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@emotion/babel-preset-css-prop": "11.10.0",
|
|
65
65
|
"@emotion/react": "11.10.5",
|
|
66
66
|
"@svgr/cli": "6.5.1",
|
|
67
|
-
"@types/react": "18.0.
|
|
67
|
+
"@types/react": "18.0.37",
|
|
68
68
|
"@types/react-beautiful-dnd": "13.1.4",
|
|
69
69
|
"@types/uuid": "9.0.1",
|
|
70
70
|
"react": "18.2.0",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"publishConfig": {
|
|
77
77
|
"access": "public"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "0a06bc3cbf5a3ef7eb72b7ba237e76df645a4a88"
|
|
80
80
|
}
|