@uniformdev/mesh-sdk-react 20.46.1-alpha.9 → 20.47.1-alpha.3

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/LICENSE.txt CHANGED
@@ -1,2 +1,2 @@
1
- © 2025 Uniform Systems, Inc. All Rights Reserved.
1
+ © 2026 Uniform Systems, Inc. All Rights Reserved.
2
2
  See details of Uniform Systems, Inc. Master Subscription Agreement here: https://uniform.dev/eula
package/dist/index.d.mts CHANGED
@@ -186,7 +186,7 @@ declare function ControlledValuePlugin({ enabled, value, extraDependencies, }: {
186
186
  enabled: boolean;
187
187
  value: string | undefined | SerializedEditorState<SerializedLexicalNode>;
188
188
  extraDependencies?: unknown[];
189
- }): JSX.Element | null;
189
+ }): ReactNode | null;
190
190
 
191
191
  type SerializedVariableNode = Spread<{
192
192
  reference: string;
@@ -217,9 +217,9 @@ type VariableNodeState = {
217
217
  isLoading: boolean;
218
218
  };
219
219
  /** Renders a variable reference node within a Lexical editor */
220
- declare class VariableNode extends DecoratorNode<JSX.Element> {
220
+ declare class VariableNode extends DecoratorNode<ReactNode> {
221
221
  reference: Readonly<string>;
222
- private __state;
222
+ private __variableState;
223
223
  static getType(): string;
224
224
  static clone(node: VariableNode): VariableNode;
225
225
  /** Imports the node from serialized JSON (i.e. the data provided to the editor's initial state) */
@@ -441,7 +441,7 @@ declare function useVariablesMenu<TEditorContext>({ showAddVariableMenuOption, e
441
441
  * Enables variables auto-complete and reference management to a Lexical editor.
442
442
  * Must also activate the VariableNode node to make this work.
443
443
  */
444
- declare function VariablesPlugin<TEditorContext = unknown>({ disableVariables, showAddVariableMenuOption, enableEditingVariables, getEditorContext, replaceValueOnVariableInsert, filterVariable, disableVariableDisplayNames, }: VariablesPluginProps<TEditorContext>): JSX.Element | null;
444
+ declare function VariablesPlugin<TEditorContext = unknown>({ disableVariables, showAddVariableMenuOption, enableEditingVariables, getEditorContext, replaceValueOnVariableInsert, filterVariable, disableVariableDisplayNames, }: VariablesPluginProps<TEditorContext>): ReactNode | null;
445
445
 
446
446
  type PasteTransformerPluginProps = {
447
447
  /**
@@ -481,7 +481,7 @@ type UseInputVariablesStateProps<TEditorContext = unknown> = {
481
481
  * in the input will be replaced with the variable reference. Once in variables-mode, additional
482
482
  * insertions are inserted at the current selection (or end) of the variables value.
483
483
  */
484
- inputWhenNoVariables?: JSX.Element;
484
+ inputWhenNoVariables?: ReactNode;
485
485
  /** Computes the editor context when a variable is added or edited from this composer */
486
486
  getEditorContext?: () => TEditorContext;
487
487
  /** Filters available variables in menus and auto-completes */
@@ -599,7 +599,7 @@ declare function ParameterConnectionIndicator({ children, value, menuOptions, di
599
599
 
600
600
  type ParameterOrSingleVariableProps<TEditorContext = unknown> = {
601
601
  disabled?: boolean;
602
- inputWhenNoVariables: JSX.Element;
602
+ inputWhenNoVariables: ReactNode;
603
603
  enableEditingVariables?: boolean;
604
604
  /**
605
605
  * Optional ref to get a handle to the variables editor.
@@ -1295,8 +1295,11 @@ type RequestParametersProps = Pick<InputVariablesProps, 'disableVariables'>;
1295
1295
  declare function RequestParameters({ disableVariables, addOmitIfEmpty, }: Pick<InputVariablesProps, 'disableVariables' | 'addOmitIfEmpty'>): _emotion_react_jsx_runtime.JSX.Element;
1296
1296
 
1297
1297
  type RequestParameter = {
1298
+ /** The key of the parameter */
1298
1299
  key: string;
1300
+ /** The value of the parameter */
1299
1301
  value: string;
1302
+ /** Whether to remove the parameter value if it is empty (which can occur if using a variable value) */
1300
1303
  omitIfEmpty?: boolean;
1301
1304
  };
1302
1305
  type BaseRequestData = {
@@ -1347,6 +1350,10 @@ type RequestActionContext = {
1347
1350
  type RequestContext = {
1348
1351
  dispatch: (event: RequestAction, ctx?: RequestActionContext) => void;
1349
1352
  request: Readonly<RequestData>;
1353
+ /** Version number that increments when header or parameter list items are removed,
1354
+ * used to control remounting of the list item rows and prevent stale visible state due to lack of dom diff.
1355
+ */
1356
+ listVersion: number;
1350
1357
  };
1351
1358
  /** Provides a mutable HTTP request object context. Components such as RequestBody and RequestUrl use this context to render. */
1352
1359
  declare function RequestProvider({ value, onChange, children }: RequestProviderProps): _emotion_react_jsx_runtime.JSX.Element;
package/dist/index.d.ts CHANGED
@@ -186,7 +186,7 @@ declare function ControlledValuePlugin({ enabled, value, extraDependencies, }: {
186
186
  enabled: boolean;
187
187
  value: string | undefined | SerializedEditorState<SerializedLexicalNode>;
188
188
  extraDependencies?: unknown[];
189
- }): JSX.Element | null;
189
+ }): ReactNode | null;
190
190
 
191
191
  type SerializedVariableNode = Spread<{
192
192
  reference: string;
@@ -217,9 +217,9 @@ type VariableNodeState = {
217
217
  isLoading: boolean;
218
218
  };
219
219
  /** Renders a variable reference node within a Lexical editor */
220
- declare class VariableNode extends DecoratorNode<JSX.Element> {
220
+ declare class VariableNode extends DecoratorNode<ReactNode> {
221
221
  reference: Readonly<string>;
222
- private __state;
222
+ private __variableState;
223
223
  static getType(): string;
224
224
  static clone(node: VariableNode): VariableNode;
225
225
  /** Imports the node from serialized JSON (i.e. the data provided to the editor's initial state) */
@@ -441,7 +441,7 @@ declare function useVariablesMenu<TEditorContext>({ showAddVariableMenuOption, e
441
441
  * Enables variables auto-complete and reference management to a Lexical editor.
442
442
  * Must also activate the VariableNode node to make this work.
443
443
  */
444
- declare function VariablesPlugin<TEditorContext = unknown>({ disableVariables, showAddVariableMenuOption, enableEditingVariables, getEditorContext, replaceValueOnVariableInsert, filterVariable, disableVariableDisplayNames, }: VariablesPluginProps<TEditorContext>): JSX.Element | null;
444
+ declare function VariablesPlugin<TEditorContext = unknown>({ disableVariables, showAddVariableMenuOption, enableEditingVariables, getEditorContext, replaceValueOnVariableInsert, filterVariable, disableVariableDisplayNames, }: VariablesPluginProps<TEditorContext>): ReactNode | null;
445
445
 
446
446
  type PasteTransformerPluginProps = {
447
447
  /**
@@ -481,7 +481,7 @@ type UseInputVariablesStateProps<TEditorContext = unknown> = {
481
481
  * in the input will be replaced with the variable reference. Once in variables-mode, additional
482
482
  * insertions are inserted at the current selection (or end) of the variables value.
483
483
  */
484
- inputWhenNoVariables?: JSX.Element;
484
+ inputWhenNoVariables?: ReactNode;
485
485
  /** Computes the editor context when a variable is added or edited from this composer */
486
486
  getEditorContext?: () => TEditorContext;
487
487
  /** Filters available variables in menus and auto-completes */
@@ -599,7 +599,7 @@ declare function ParameterConnectionIndicator({ children, value, menuOptions, di
599
599
 
600
600
  type ParameterOrSingleVariableProps<TEditorContext = unknown> = {
601
601
  disabled?: boolean;
602
- inputWhenNoVariables: JSX.Element;
602
+ inputWhenNoVariables: ReactNode;
603
603
  enableEditingVariables?: boolean;
604
604
  /**
605
605
  * Optional ref to get a handle to the variables editor.
@@ -1295,8 +1295,11 @@ type RequestParametersProps = Pick<InputVariablesProps, 'disableVariables'>;
1295
1295
  declare function RequestParameters({ disableVariables, addOmitIfEmpty, }: Pick<InputVariablesProps, 'disableVariables' | 'addOmitIfEmpty'>): _emotion_react_jsx_runtime.JSX.Element;
1296
1296
 
1297
1297
  type RequestParameter = {
1298
+ /** The key of the parameter */
1298
1299
  key: string;
1300
+ /** The value of the parameter */
1299
1301
  value: string;
1302
+ /** Whether to remove the parameter value if it is empty (which can occur if using a variable value) */
1300
1303
  omitIfEmpty?: boolean;
1301
1304
  };
1302
1305
  type BaseRequestData = {
@@ -1347,6 +1350,10 @@ type RequestActionContext = {
1347
1350
  type RequestContext = {
1348
1351
  dispatch: (event: RequestAction, ctx?: RequestActionContext) => void;
1349
1352
  request: Readonly<RequestData>;
1353
+ /** Version number that increments when header or parameter list items are removed,
1354
+ * used to control remounting of the list item rows and prevent stale visible state due to lack of dom diff.
1355
+ */
1356
+ listVersion: number;
1350
1357
  };
1351
1358
  /** Provides a mutable HTTP request object context. Components such as RequestBody and RequestUrl use this context to render. */
1352
1359
  declare function RequestProvider({ value, onChange, children }: RequestProviderProps): _emotion_react_jsx_runtime.JSX.Element;