@uniformdev/mesh-sdk-react 20.72.3 → 20.72.4-alpha.13
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 +66 -4
- package/dist/index.d.ts +66 -4
- package/dist/index.esm.js +154 -86
- package/dist/index.js +424 -352
- package/dist/index.mjs +154 -86
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -912,7 +912,12 @@ type DelegationStatus = 'idle' | 'acquiring' | 'active' | 'disabled' | 'error';
|
|
|
912
912
|
interface DelegationContextValue {
|
|
913
913
|
status: DelegationStatus;
|
|
914
914
|
error: Error | null;
|
|
915
|
-
|
|
915
|
+
/**
|
|
916
|
+
* Re-runs session-token acquisition (checkActive → getSessionToken → onSessionToken).
|
|
917
|
+
* Concurrent callers share one in-flight attempt. Resolves when status is `active`;
|
|
918
|
+
* rejects when acquisition ends in `disabled` or `error`.
|
|
919
|
+
*/
|
|
920
|
+
reacquire: () => Promise<void>;
|
|
916
921
|
}
|
|
917
922
|
/** @deprecated This beta identity delegation API may change with breaking changes. */
|
|
918
923
|
declare const DelegationContext: React$1.Context<DelegationContextValue | null>;
|
|
@@ -942,6 +947,16 @@ interface DelegationGateProps {
|
|
|
942
947
|
*/
|
|
943
948
|
declare function DelegationGate({ children, loadingComponent, disabledComponent, errorComponent, }: DelegationGateProps): _emotion_react_jsx_runtime.JSX.Element | null;
|
|
944
949
|
|
|
950
|
+
/**
|
|
951
|
+
* Thrown by `reacquire()` when `sdk.getSessionToken()` returns `undefined`,
|
|
952
|
+
* meaning identity delegation is not enabled for this integration.
|
|
953
|
+
* Distinct from transient errors so callers can avoid showing an error state.
|
|
954
|
+
*
|
|
955
|
+
* @deprecated This beta identity delegation API may change with breaking changes.
|
|
956
|
+
*/
|
|
957
|
+
declare class DelegationDisabledError extends Error {
|
|
958
|
+
constructor();
|
|
959
|
+
}
|
|
945
960
|
/**
|
|
946
961
|
* @deprecated This beta identity delegation API may change with breaking changes.
|
|
947
962
|
*/
|
|
@@ -988,6 +1003,10 @@ interface DelegationProviderProps {
|
|
|
988
1003
|
* no longer active. This covers the "returned after a long time" case where the stored
|
|
989
1004
|
* access token has expired and the refresh token is also gone or no longer valid.
|
|
990
1005
|
*
|
|
1006
|
+
* Mid-session expiry (visible tab, BFF returns `delegation_expired`) is recovered via
|
|
1007
|
+
* `reacquire()` — typically through `useDelegationFetch`, which awaits re-exchange and
|
|
1008
|
+
* retries the failed request once.
|
|
1009
|
+
*
|
|
991
1010
|
* @deprecated This beta identity delegation API may change with breaking changes.
|
|
992
1011
|
*/
|
|
993
1012
|
declare function DelegationProvider({ sdk, onSessionToken, checkActive, revalidateOnFocus, revalidateAfterMs, children, }: DelegationProviderProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
@@ -2064,17 +2083,60 @@ type SortItemsProps = {
|
|
|
2064
2083
|
*/
|
|
2065
2084
|
declare const SortItems: ({ sortByLabel, localeLabel, sortOptions, sortByValue, onSortChange, localeValue, localeOptions, onLocaleChange, disableSortBinding, }: SortItemsProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2066
2085
|
|
|
2086
|
+
/**
|
|
2087
|
+
* Options for {@link createDelegationFetch}.
|
|
2088
|
+
*
|
|
2089
|
+
* @deprecated This beta identity delegation API may change with breaking changes.
|
|
2090
|
+
*/
|
|
2091
|
+
interface CreateDelegationFetchOptions {
|
|
2092
|
+
/**
|
|
2093
|
+
* Re-runs session-token exchange. Concurrent callers should share one in-flight
|
|
2094
|
+
* attempt (as `DelegationProvider.reacquire` does).
|
|
2095
|
+
*/
|
|
2096
|
+
reacquire: () => Promise<void>;
|
|
2097
|
+
/** Fetch implementation override (e.g. selective polyfill). */
|
|
2098
|
+
fetch?: typeof fetch;
|
|
2099
|
+
/**
|
|
2100
|
+
* Whether a failed response requires re-exchange.
|
|
2101
|
+
* Defaults to catching 401 with `{ code: 'delegation_expired' }`.
|
|
2102
|
+
*/
|
|
2103
|
+
isDelegationExpired?: (response: Response) => Promise<boolean>;
|
|
2104
|
+
}
|
|
2105
|
+
/**
|
|
2106
|
+
* Default expiry check: 401 whose JSON body has `code === DELEGATION_EXPIRED_CODE`.
|
|
2107
|
+
*
|
|
2108
|
+
* @deprecated This beta identity delegation API may change with breaking changes.
|
|
2109
|
+
*/
|
|
2110
|
+
declare function isDelegationExpiredResponse(response: Response): Promise<boolean>;
|
|
2111
|
+
/**
|
|
2112
|
+
* `fetch` wrapper that injects the Mesh CSRF header, and on a BFF
|
|
2113
|
+
* `delegation_expired` 401 calls `reacquire()` once then retries.
|
|
2114
|
+
* A second expiry after reacquire is returned as-is.
|
|
2115
|
+
*
|
|
2116
|
+
* @deprecated This beta identity delegation API may change with breaking changes.
|
|
2117
|
+
*/
|
|
2118
|
+
declare function createDelegationFetch(options: CreateDelegationFetchOptions): typeof fetch;
|
|
2119
|
+
|
|
2067
2120
|
/** Converts connected data map into VariablesProvider-format variables */
|
|
2068
2121
|
declare function useConnectedDataAsVariables(connectedData: Record<string, unknown> | undefined): Record<string, MeshDataVariableDefinition>;
|
|
2069
2122
|
|
|
2070
2123
|
/**
|
|
2071
|
-
*
|
|
2072
|
-
*
|
|
2124
|
+
* Delegation session state (`status`, `error`, awaitable `reacquire`).
|
|
2125
|
+
* Requires `DelegationProvider`. Prefer {@link useDelegationFetch} for BFF calls.
|
|
2073
2126
|
*
|
|
2074
2127
|
* @deprecated This beta identity delegation API may change with breaking changes.
|
|
2075
2128
|
*/
|
|
2076
2129
|
declare function useDelegation(): DelegationContextValue;
|
|
2077
2130
|
|
|
2131
|
+
/**
|
|
2132
|
+
* `fetch` for BFF calls: injects the Mesh CSRF header, and on `delegation_expired`
|
|
2133
|
+
* 401 reacquires via {@link useDelegation} then retries once.
|
|
2134
|
+
* Requires `DelegationProvider`. See {@link createDelegationFetch}.
|
|
2135
|
+
*
|
|
2136
|
+
* @deprecated This beta identity delegation API may change with breaking changes.
|
|
2137
|
+
*/
|
|
2138
|
+
declare function useDelegationFetch(options?: Omit<CreateDelegationFetchOptions, 'reacquire'>): typeof fetch;
|
|
2139
|
+
|
|
2078
2140
|
/** Converts dynamic inputs into VariablesProvider-format variables */
|
|
2079
2141
|
declare function useDynamicInputsAsVariables(dynamicInputs: DynamicInputs): Record<string, MeshDataVariableDefinition>;
|
|
2080
2142
|
|
|
@@ -2125,4 +2187,4 @@ type ContentDataResourceLocaleInfoProps = {
|
|
|
2125
2187
|
};
|
|
2126
2188
|
declare function useContentDataResourceLocaleInfo({ locale, defaultLocale, setLocale, dynamicInputs, }: ContentDataResourceLocaleInfoProps): ContentDataResourceLocaleInfoResult;
|
|
2127
2189
|
|
|
2128
|
-
export { $createVariableNode, $isVariableNode, type BadgeThemeProps, type BaseRequestData, CHECKBOX_OPERATORS, type ContentDataResourceLocaleInfoProps, type ContentDataResourceLocaleInfoResult, ControlledValuePlugin, DATE_OPERATORS, DATE_TIME_OPERATORS, DISCONNECT_VARIABLE_COMMAND, DataRefreshButton, type DataRefreshButtonProps, DataResourceDynamicInputProvider, type DataResourceDynamicInputProviderProps, type DataResourceVariableRendererProps, DataResourceVariablesList, DataResourceVariablesListExplicit, type DataResourceVariablesListProps, DataSourceEditor, type DataSourceEditorProps, DataTypeEditor, type DataTypeEditorProps, type DataVariableDefinitionWithName, DateEditor, DateRangeEditor, DelegationContext, type DelegationContextValue, DelegationGate, type DelegationGateProps, DelegationProvider, type DelegationProviderProps, type DelegationStatus, type DisconnectVariableCommandArguments, type DispatchResult, EDIT_VARIABLE_COMMAND, type EditVariableCommandArguments, 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, 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, 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, QueryFilter, type QueryFilterProps, type QueryFilterSearchProps, RICHTEXT_OPERATORS, type RequestAction, type RequestActionContext, RequestBody, type RequestContext, type RequestData, RequestHeaders, RequestMethodSelect, type RequestParameter, RequestParameters, type RequestParametersProps, RequestProvider, type RequestProviderProps, RequestTypeContainer, type RequestTypeContainerProps, RequestUrl, RequestUrlInput, 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, 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, bindableFiltersMapper, convertConnectedDataToVariable, createLocationValidator, filterMapper, prettifyBindExpression, readOnlyAttributes, serializeVariablesEditorSerializedState, serializeVariablesEditorState, setVariablesEditorValue, urlEncodeRequestParameter, urlEncodeRequestUrl, useConnectedDataAsVariables, useContentDataResourceLocaleInfo, useDelegation, useDynamicInputsAsVariables, useMeshLocation, useObjectSearchContext, useRequest, useRequestHeader, useRequestParameter, useSearchAndFilter, useUniformMeshSdk, useVariableEditor, useVariables, useVariablesMenu, variableDefaultTextValue, variablePrefix, variableSuffix, variablesToGroupedList, variablesToList };
|
|
2190
|
+
export { $createVariableNode, $isVariableNode, type BadgeThemeProps, type BaseRequestData, CHECKBOX_OPERATORS, type ContentDataResourceLocaleInfoProps, type ContentDataResourceLocaleInfoResult, ControlledValuePlugin, type CreateDelegationFetchOptions, DATE_OPERATORS, DATE_TIME_OPERATORS, DISCONNECT_VARIABLE_COMMAND, DataRefreshButton, type DataRefreshButtonProps, DataResourceDynamicInputProvider, type DataResourceDynamicInputProviderProps, type DataResourceVariableRendererProps, DataResourceVariablesList, DataResourceVariablesListExplicit, type DataResourceVariablesListProps, DataSourceEditor, type DataSourceEditorProps, DataTypeEditor, type DataTypeEditorProps, type DataVariableDefinitionWithName, DateEditor, DateRangeEditor, DelegationContext, type DelegationContextValue, DelegationDisabledError, DelegationGate, type DelegationGateProps, DelegationProvider, type DelegationProviderProps, type DelegationStatus, type DisconnectVariableCommandArguments, type DispatchResult, EDIT_VARIABLE_COMMAND, type EditVariableCommandArguments, 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, 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, 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, QueryFilter, type QueryFilterProps, type QueryFilterSearchProps, RICHTEXT_OPERATORS, type RequestAction, type RequestActionContext, RequestBody, type RequestContext, type RequestData, RequestHeaders, RequestMethodSelect, type RequestParameter, RequestParameters, type RequestParametersProps, RequestProvider, type RequestProviderProps, RequestTypeContainer, type RequestTypeContainerProps, RequestUrl, RequestUrlInput, 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, 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, bindableFiltersMapper, convertConnectedDataToVariable, createDelegationFetch, createLocationValidator, filterMapper, isDelegationExpiredResponse, prettifyBindExpression, readOnlyAttributes, serializeVariablesEditorSerializedState, serializeVariablesEditorState, setVariablesEditorValue, urlEncodeRequestParameter, urlEncodeRequestUrl, useConnectedDataAsVariables, useContentDataResourceLocaleInfo, useDelegation, useDelegationFetch, useDynamicInputsAsVariables, useMeshLocation, useObjectSearchContext, useRequest, useRequestHeader, useRequestParameter, useSearchAndFilter, useUniformMeshSdk, useVariableEditor, useVariables, useVariablesMenu, variableDefaultTextValue, variablePrefix, variableSuffix, variablesToGroupedList, variablesToList };
|
package/dist/index.d.ts
CHANGED
|
@@ -912,7 +912,12 @@ type DelegationStatus = 'idle' | 'acquiring' | 'active' | 'disabled' | 'error';
|
|
|
912
912
|
interface DelegationContextValue {
|
|
913
913
|
status: DelegationStatus;
|
|
914
914
|
error: Error | null;
|
|
915
|
-
|
|
915
|
+
/**
|
|
916
|
+
* Re-runs session-token acquisition (checkActive → getSessionToken → onSessionToken).
|
|
917
|
+
* Concurrent callers share one in-flight attempt. Resolves when status is `active`;
|
|
918
|
+
* rejects when acquisition ends in `disabled` or `error`.
|
|
919
|
+
*/
|
|
920
|
+
reacquire: () => Promise<void>;
|
|
916
921
|
}
|
|
917
922
|
/** @deprecated This beta identity delegation API may change with breaking changes. */
|
|
918
923
|
declare const DelegationContext: React$1.Context<DelegationContextValue | null>;
|
|
@@ -942,6 +947,16 @@ interface DelegationGateProps {
|
|
|
942
947
|
*/
|
|
943
948
|
declare function DelegationGate({ children, loadingComponent, disabledComponent, errorComponent, }: DelegationGateProps): _emotion_react_jsx_runtime.JSX.Element | null;
|
|
944
949
|
|
|
950
|
+
/**
|
|
951
|
+
* Thrown by `reacquire()` when `sdk.getSessionToken()` returns `undefined`,
|
|
952
|
+
* meaning identity delegation is not enabled for this integration.
|
|
953
|
+
* Distinct from transient errors so callers can avoid showing an error state.
|
|
954
|
+
*
|
|
955
|
+
* @deprecated This beta identity delegation API may change with breaking changes.
|
|
956
|
+
*/
|
|
957
|
+
declare class DelegationDisabledError extends Error {
|
|
958
|
+
constructor();
|
|
959
|
+
}
|
|
945
960
|
/**
|
|
946
961
|
* @deprecated This beta identity delegation API may change with breaking changes.
|
|
947
962
|
*/
|
|
@@ -988,6 +1003,10 @@ interface DelegationProviderProps {
|
|
|
988
1003
|
* no longer active. This covers the "returned after a long time" case where the stored
|
|
989
1004
|
* access token has expired and the refresh token is also gone or no longer valid.
|
|
990
1005
|
*
|
|
1006
|
+
* Mid-session expiry (visible tab, BFF returns `delegation_expired`) is recovered via
|
|
1007
|
+
* `reacquire()` — typically through `useDelegationFetch`, which awaits re-exchange and
|
|
1008
|
+
* retries the failed request once.
|
|
1009
|
+
*
|
|
991
1010
|
* @deprecated This beta identity delegation API may change with breaking changes.
|
|
992
1011
|
*/
|
|
993
1012
|
declare function DelegationProvider({ sdk, onSessionToken, checkActive, revalidateOnFocus, revalidateAfterMs, children, }: DelegationProviderProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
@@ -2064,17 +2083,60 @@ type SortItemsProps = {
|
|
|
2064
2083
|
*/
|
|
2065
2084
|
declare const SortItems: ({ sortByLabel, localeLabel, sortOptions, sortByValue, onSortChange, localeValue, localeOptions, onLocaleChange, disableSortBinding, }: SortItemsProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2066
2085
|
|
|
2086
|
+
/**
|
|
2087
|
+
* Options for {@link createDelegationFetch}.
|
|
2088
|
+
*
|
|
2089
|
+
* @deprecated This beta identity delegation API may change with breaking changes.
|
|
2090
|
+
*/
|
|
2091
|
+
interface CreateDelegationFetchOptions {
|
|
2092
|
+
/**
|
|
2093
|
+
* Re-runs session-token exchange. Concurrent callers should share one in-flight
|
|
2094
|
+
* attempt (as `DelegationProvider.reacquire` does).
|
|
2095
|
+
*/
|
|
2096
|
+
reacquire: () => Promise<void>;
|
|
2097
|
+
/** Fetch implementation override (e.g. selective polyfill). */
|
|
2098
|
+
fetch?: typeof fetch;
|
|
2099
|
+
/**
|
|
2100
|
+
* Whether a failed response requires re-exchange.
|
|
2101
|
+
* Defaults to catching 401 with `{ code: 'delegation_expired' }`.
|
|
2102
|
+
*/
|
|
2103
|
+
isDelegationExpired?: (response: Response) => Promise<boolean>;
|
|
2104
|
+
}
|
|
2105
|
+
/**
|
|
2106
|
+
* Default expiry check: 401 whose JSON body has `code === DELEGATION_EXPIRED_CODE`.
|
|
2107
|
+
*
|
|
2108
|
+
* @deprecated This beta identity delegation API may change with breaking changes.
|
|
2109
|
+
*/
|
|
2110
|
+
declare function isDelegationExpiredResponse(response: Response): Promise<boolean>;
|
|
2111
|
+
/**
|
|
2112
|
+
* `fetch` wrapper that injects the Mesh CSRF header, and on a BFF
|
|
2113
|
+
* `delegation_expired` 401 calls `reacquire()` once then retries.
|
|
2114
|
+
* A second expiry after reacquire is returned as-is.
|
|
2115
|
+
*
|
|
2116
|
+
* @deprecated This beta identity delegation API may change with breaking changes.
|
|
2117
|
+
*/
|
|
2118
|
+
declare function createDelegationFetch(options: CreateDelegationFetchOptions): typeof fetch;
|
|
2119
|
+
|
|
2067
2120
|
/** Converts connected data map into VariablesProvider-format variables */
|
|
2068
2121
|
declare function useConnectedDataAsVariables(connectedData: Record<string, unknown> | undefined): Record<string, MeshDataVariableDefinition>;
|
|
2069
2122
|
|
|
2070
2123
|
/**
|
|
2071
|
-
*
|
|
2072
|
-
*
|
|
2124
|
+
* Delegation session state (`status`, `error`, awaitable `reacquire`).
|
|
2125
|
+
* Requires `DelegationProvider`. Prefer {@link useDelegationFetch} for BFF calls.
|
|
2073
2126
|
*
|
|
2074
2127
|
* @deprecated This beta identity delegation API may change with breaking changes.
|
|
2075
2128
|
*/
|
|
2076
2129
|
declare function useDelegation(): DelegationContextValue;
|
|
2077
2130
|
|
|
2131
|
+
/**
|
|
2132
|
+
* `fetch` for BFF calls: injects the Mesh CSRF header, and on `delegation_expired`
|
|
2133
|
+
* 401 reacquires via {@link useDelegation} then retries once.
|
|
2134
|
+
* Requires `DelegationProvider`. See {@link createDelegationFetch}.
|
|
2135
|
+
*
|
|
2136
|
+
* @deprecated This beta identity delegation API may change with breaking changes.
|
|
2137
|
+
*/
|
|
2138
|
+
declare function useDelegationFetch(options?: Omit<CreateDelegationFetchOptions, 'reacquire'>): typeof fetch;
|
|
2139
|
+
|
|
2078
2140
|
/** Converts dynamic inputs into VariablesProvider-format variables */
|
|
2079
2141
|
declare function useDynamicInputsAsVariables(dynamicInputs: DynamicInputs): Record<string, MeshDataVariableDefinition>;
|
|
2080
2142
|
|
|
@@ -2125,4 +2187,4 @@ type ContentDataResourceLocaleInfoProps = {
|
|
|
2125
2187
|
};
|
|
2126
2188
|
declare function useContentDataResourceLocaleInfo({ locale, defaultLocale, setLocale, dynamicInputs, }: ContentDataResourceLocaleInfoProps): ContentDataResourceLocaleInfoResult;
|
|
2127
2189
|
|
|
2128
|
-
export { $createVariableNode, $isVariableNode, type BadgeThemeProps, type BaseRequestData, CHECKBOX_OPERATORS, type ContentDataResourceLocaleInfoProps, type ContentDataResourceLocaleInfoResult, ControlledValuePlugin, DATE_OPERATORS, DATE_TIME_OPERATORS, DISCONNECT_VARIABLE_COMMAND, DataRefreshButton, type DataRefreshButtonProps, DataResourceDynamicInputProvider, type DataResourceDynamicInputProviderProps, type DataResourceVariableRendererProps, DataResourceVariablesList, DataResourceVariablesListExplicit, type DataResourceVariablesListProps, DataSourceEditor, type DataSourceEditorProps, DataTypeEditor, type DataTypeEditorProps, type DataVariableDefinitionWithName, DateEditor, DateRangeEditor, DelegationContext, type DelegationContextValue, DelegationGate, type DelegationGateProps, DelegationProvider, type DelegationProviderProps, type DelegationStatus, type DisconnectVariableCommandArguments, type DispatchResult, EDIT_VARIABLE_COMMAND, type EditVariableCommandArguments, 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, 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, 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, QueryFilter, type QueryFilterProps, type QueryFilterSearchProps, RICHTEXT_OPERATORS, type RequestAction, type RequestActionContext, RequestBody, type RequestContext, type RequestData, RequestHeaders, RequestMethodSelect, type RequestParameter, RequestParameters, type RequestParametersProps, RequestProvider, type RequestProviderProps, RequestTypeContainer, type RequestTypeContainerProps, RequestUrl, RequestUrlInput, 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, 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, bindableFiltersMapper, convertConnectedDataToVariable, createLocationValidator, filterMapper, prettifyBindExpression, readOnlyAttributes, serializeVariablesEditorSerializedState, serializeVariablesEditorState, setVariablesEditorValue, urlEncodeRequestParameter, urlEncodeRequestUrl, useConnectedDataAsVariables, useContentDataResourceLocaleInfo, useDelegation, useDynamicInputsAsVariables, useMeshLocation, useObjectSearchContext, useRequest, useRequestHeader, useRequestParameter, useSearchAndFilter, useUniformMeshSdk, useVariableEditor, useVariables, useVariablesMenu, variableDefaultTextValue, variablePrefix, variableSuffix, variablesToGroupedList, variablesToList };
|
|
2190
|
+
export { $createVariableNode, $isVariableNode, type BadgeThemeProps, type BaseRequestData, CHECKBOX_OPERATORS, type ContentDataResourceLocaleInfoProps, type ContentDataResourceLocaleInfoResult, ControlledValuePlugin, type CreateDelegationFetchOptions, DATE_OPERATORS, DATE_TIME_OPERATORS, DISCONNECT_VARIABLE_COMMAND, DataRefreshButton, type DataRefreshButtonProps, DataResourceDynamicInputProvider, type DataResourceDynamicInputProviderProps, type DataResourceVariableRendererProps, DataResourceVariablesList, DataResourceVariablesListExplicit, type DataResourceVariablesListProps, DataSourceEditor, type DataSourceEditorProps, DataTypeEditor, type DataTypeEditorProps, type DataVariableDefinitionWithName, DateEditor, DateRangeEditor, DelegationContext, type DelegationContextValue, DelegationDisabledError, DelegationGate, type DelegationGateProps, DelegationProvider, type DelegationProviderProps, type DelegationStatus, type DisconnectVariableCommandArguments, type DispatchResult, EDIT_VARIABLE_COMMAND, type EditVariableCommandArguments, 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, 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, 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, QueryFilter, type QueryFilterProps, type QueryFilterSearchProps, RICHTEXT_OPERATORS, type RequestAction, type RequestActionContext, RequestBody, type RequestContext, type RequestData, RequestHeaders, RequestMethodSelect, type RequestParameter, RequestParameters, type RequestParametersProps, RequestProvider, type RequestProviderProps, RequestTypeContainer, type RequestTypeContainerProps, RequestUrl, RequestUrlInput, 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, 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, bindableFiltersMapper, convertConnectedDataToVariable, createDelegationFetch, createLocationValidator, filterMapper, isDelegationExpiredResponse, prettifyBindExpression, readOnlyAttributes, serializeVariablesEditorSerializedState, serializeVariablesEditorState, setVariablesEditorValue, urlEncodeRequestParameter, urlEncodeRequestUrl, useConnectedDataAsVariables, useContentDataResourceLocaleInfo, useDelegation, useDelegationFetch, useDynamicInputsAsVariables, useMeshLocation, useObjectSearchContext, useRequest, useRequestHeader, useRequestParameter, useSearchAndFilter, useUniformMeshSdk, useVariableEditor, useVariables, useVariablesMenu, variableDefaultTextValue, variablePrefix, variableSuffix, variablesToGroupedList, variablesToList };
|