@uniformdev/mesh-sdk-react 19.38.3-alpha.70 → 19.39.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.esm.js CHANGED
@@ -4441,7 +4441,7 @@ function InputVariables(props) {
4441
4441
  const { dispatch, canDispatch, isEditing } = useVariables(true);
4442
4442
  const { disableVariablesForReals, hadVariablesInValue, sharedMenuProps } = useInputVariablesState(props);
4443
4443
  const disableInlineVariablesForReals = disableVariablesForReals || disableInlineMenu;
4444
- const replaceValueOnVariableInsert = Boolean(inputWhenNoVariables && !hadVariablesInValue);
4444
+ const useInputWithNoVariables = Boolean(inputWhenNoVariables && !hadVariablesInValue);
4445
4445
  const input3 = /* @__PURE__ */ jsxs23(
4446
4446
  "div",
4447
4447
  {
@@ -4451,12 +4451,13 @@ function InputVariables(props) {
4451
4451
  }
4452
4452
  },
4453
4453
  children: [
4454
- inputWhenNoVariables && !hadVariablesInValue ? inputWhenNoVariables : /* @__PURE__ */ jsx39(
4454
+ useInputWithNoVariables ? inputWhenNoVariables : /* @__PURE__ */ jsx39(
4455
4455
  InputVariablesOverlayMenu,
4456
4456
  {
4457
4457
  ...sharedMenuProps,
4458
4458
  disabled: disableInlineVariablesForReals,
4459
- replaceValueOnVariableInsert,
4459
+ replaceValueOnVariableInsert: useInputWithNoVariables,
4460
+ useInputWhenNoVariables: useInputWithNoVariables,
4460
4461
  children: /* @__PURE__ */ jsx39(
4461
4462
  VariablesComposerInput,
4462
4463
  {
@@ -4484,7 +4485,7 @@ function InputVariables(props) {
4484
4485
  label,
4485
4486
  selectVariableMenuOptions: {
4486
4487
  ...sharedMenuProps,
4487
- replaceValueOnVariableInsert
4488
+ replaceValueOnVariableInsert: useInputWithNoVariables
4488
4489
  },
4489
4490
  id: finalId,
4490
4491
  isActive: hadVariablesInValue,
@@ -4504,12 +4505,12 @@ function InputVariables(props) {
4504
4505
  enableEditingVariables: !disabled && !disableVariablesForReals && enableEditingVariables,
4505
4506
  getEditorContext,
4506
4507
  disabled,
4507
- replaceValueOnVariableInsert,
4508
+ replaceValueOnVariableInsert: useInputWithNoVariables,
4508
4509
  autoFocus,
4509
4510
  filterVariable,
4510
4511
  children: [
4511
4512
  /* @__PURE__ */ jsx39(PasteTransformerPlugin, { transformPaste }),
4512
- /* @__PURE__ */ jsx39(ControlledValuePlugin, { value, enabled: !!inputWhenNoVariables && !hadVariablesInValue }),
4513
+ /* @__PURE__ */ jsx39(ControlledValuePlugin, { value, enabled: useInputWithNoVariables }),
4513
4514
  editorRef ? /* @__PURE__ */ jsx39(EditorRefPlugin, { editorRef }) : null,
4514
4515
  body
4515
4516
  ]
@@ -4519,6 +4520,7 @@ function InputVariables(props) {
4519
4520
  function InputVariablesOverlayMenu({
4520
4521
  children,
4521
4522
  disabled,
4523
+ useInputWhenNoVariables,
4522
4524
  ...props
4523
4525
  }) {
4524
4526
  if (disabled) {
@@ -4530,7 +4532,7 @@ function InputVariablesOverlayMenu({
4530
4532
  VariablesComposerVariableMenu,
4531
4533
  {
4532
4534
  ...props,
4533
- tip: "Tip: access this list by typing $$",
4535
+ tip: useInputWhenNoVariables ? void 0 : "Tip: access this list by typing $$",
4534
4536
  buttonCss: menuBtn2
4535
4537
  }
4536
4538
  )
@@ -4743,7 +4745,7 @@ function ParameterVariables(props) {
4743
4745
  } = props;
4744
4746
  const { dispatch, canDispatch, isEditing } = useVariables(true);
4745
4747
  const { disableVariablesForReals, hadVariablesInValue, sharedMenuProps, hasVariablesInValue } = useInputVariablesState(props);
4746
- const replaceValueOnVariableInsert = Boolean(inputWhenNoVariables && !hadVariablesInValue);
4748
+ const useInputWhenNoVariables = Boolean(inputWhenNoVariables && !hadVariablesInValue);
4747
4749
  return /* @__PURE__ */ jsxs26(
4748
4750
  VariablesComposer,
4749
4751
  {
@@ -4755,12 +4757,12 @@ function ParameterVariables(props) {
4755
4757
  enableEditingVariables: !disabled,
4756
4758
  getEditorContext,
4757
4759
  disabled,
4758
- replaceValueOnVariableInsert,
4760
+ replaceValueOnVariableInsert: useInputWhenNoVariables,
4759
4761
  autoFocus,
4760
4762
  filterVariable,
4761
4763
  children: [
4762
4764
  editorRef ? /* @__PURE__ */ jsx42(EditorRefPlugin, { editorRef }) : null,
4763
- /* @__PURE__ */ jsx42(ControlledValuePlugin, { value, enabled: !!inputWhenNoVariables && !hadVariablesInValue }),
4765
+ /* @__PURE__ */ jsx42(ControlledValuePlugin, { value, enabled: useInputWhenNoVariables }),
4764
4766
  /* @__PURE__ */ jsxs26(
4765
4767
  HorizontalRhythm5,
4766
4768
  {
@@ -4773,7 +4775,7 @@ function ParameterVariables(props) {
4773
4775
  }
4774
4776
  },
4775
4777
  children: [
4776
- /* @__PURE__ */ jsx42("div", { css: { flex: 1 }, children: inputWhenNoVariables && !hadVariablesInValue ? inputWhenNoVariables : /* @__PURE__ */ jsx42(
4778
+ /* @__PURE__ */ jsx42("div", { css: { flex: 1 }, children: useInputWhenNoVariables ? inputWhenNoVariables : /* @__PURE__ */ jsx42(
4777
4779
  VariablesComposerInput,
4778
4780
  {
4779
4781
  "aria-label": ariaLabel,
@@ -4790,9 +4792,9 @@ function ParameterVariables(props) {
4790
4792
  {
4791
4793
  ...sharedMenuProps,
4792
4794
  buttonCss: [variableBindButton2],
4793
- tip: "Tip: access this list by typing $$",
4795
+ tip: useInputWhenNoVariables ? void 0 : "Tip: access this list by typing $$",
4794
4796
  buttonProps: hasVariablesInValue ? { "aria-pressed": "true" } : void 0,
4795
- replaceValueOnVariableInsert
4797
+ replaceValueOnVariableInsert: useInputWhenNoVariables
4796
4798
  }
4797
4799
  )
4798
4800
  ]
package/dist/index.js CHANGED
@@ -4607,7 +4607,7 @@ function InputVariables(props) {
4607
4607
  const { dispatch, canDispatch, isEditing } = useVariables(true);
4608
4608
  const { disableVariablesForReals, hadVariablesInValue, sharedMenuProps } = useInputVariablesState(props);
4609
4609
  const disableInlineVariablesForReals = disableVariablesForReals || disableInlineMenu;
4610
- const replaceValueOnVariableInsert = Boolean(inputWhenNoVariables && !hadVariablesInValue);
4610
+ const useInputWithNoVariables = Boolean(inputWhenNoVariables && !hadVariablesInValue);
4611
4611
  const input3 = /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
4612
4612
  "div",
4613
4613
  {
@@ -4617,12 +4617,13 @@ function InputVariables(props) {
4617
4617
  }
4618
4618
  },
4619
4619
  children: [
4620
- inputWhenNoVariables && !hadVariablesInValue ? inputWhenNoVariables : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
4620
+ useInputWithNoVariables ? inputWhenNoVariables : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
4621
4621
  InputVariablesOverlayMenu,
4622
4622
  {
4623
4623
  ...sharedMenuProps,
4624
4624
  disabled: disableInlineVariablesForReals,
4625
- replaceValueOnVariableInsert,
4625
+ replaceValueOnVariableInsert: useInputWithNoVariables,
4626
+ useInputWhenNoVariables: useInputWithNoVariables,
4626
4627
  children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
4627
4628
  VariablesComposerInput,
4628
4629
  {
@@ -4650,7 +4651,7 @@ function InputVariables(props) {
4650
4651
  label,
4651
4652
  selectVariableMenuOptions: {
4652
4653
  ...sharedMenuProps,
4653
- replaceValueOnVariableInsert
4654
+ replaceValueOnVariableInsert: useInputWithNoVariables
4654
4655
  },
4655
4656
  id: finalId,
4656
4657
  isActive: hadVariablesInValue,
@@ -4670,12 +4671,12 @@ function InputVariables(props) {
4670
4671
  enableEditingVariables: !disabled && !disableVariablesForReals && enableEditingVariables,
4671
4672
  getEditorContext,
4672
4673
  disabled,
4673
- replaceValueOnVariableInsert,
4674
+ replaceValueOnVariableInsert: useInputWithNoVariables,
4674
4675
  autoFocus,
4675
4676
  filterVariable,
4676
4677
  children: [
4677
4678
  /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(PasteTransformerPlugin, { transformPaste }),
4678
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(ControlledValuePlugin, { value, enabled: !!inputWhenNoVariables && !hadVariablesInValue }),
4679
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(ControlledValuePlugin, { value, enabled: useInputWithNoVariables }),
4679
4680
  editorRef ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(EditorRefPlugin, { editorRef }) : null,
4680
4681
  body
4681
4682
  ]
@@ -4685,6 +4686,7 @@ function InputVariables(props) {
4685
4686
  function InputVariablesOverlayMenu({
4686
4687
  children,
4687
4688
  disabled,
4689
+ useInputWhenNoVariables,
4688
4690
  ...props
4689
4691
  }) {
4690
4692
  if (disabled) {
@@ -4696,7 +4698,7 @@ function InputVariablesOverlayMenu({
4696
4698
  VariablesComposerVariableMenu,
4697
4699
  {
4698
4700
  ...props,
4699
- tip: "Tip: access this list by typing $$",
4701
+ tip: useInputWhenNoVariables ? void 0 : "Tip: access this list by typing $$",
4700
4702
  buttonCss: menuBtn2
4701
4703
  }
4702
4704
  )
@@ -4909,7 +4911,7 @@ function ParameterVariables(props) {
4909
4911
  } = props;
4910
4912
  const { dispatch, canDispatch, isEditing } = useVariables(true);
4911
4913
  const { disableVariablesForReals, hadVariablesInValue, sharedMenuProps, hasVariablesInValue } = useInputVariablesState(props);
4912
- const replaceValueOnVariableInsert = Boolean(inputWhenNoVariables && !hadVariablesInValue);
4914
+ const useInputWhenNoVariables = Boolean(inputWhenNoVariables && !hadVariablesInValue);
4913
4915
  return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
4914
4916
  VariablesComposer,
4915
4917
  {
@@ -4921,12 +4923,12 @@ function ParameterVariables(props) {
4921
4923
  enableEditingVariables: !disabled,
4922
4924
  getEditorContext,
4923
4925
  disabled,
4924
- replaceValueOnVariableInsert,
4926
+ replaceValueOnVariableInsert: useInputWhenNoVariables,
4925
4927
  autoFocus,
4926
4928
  filterVariable,
4927
4929
  children: [
4928
4930
  editorRef ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(EditorRefPlugin, { editorRef }) : null,
4929
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ControlledValuePlugin, { value, enabled: !!inputWhenNoVariables && !hadVariablesInValue }),
4931
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ControlledValuePlugin, { value, enabled: useInputWhenNoVariables }),
4930
4932
  /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
4931
4933
  import_design_system22.HorizontalRhythm,
4932
4934
  {
@@ -4939,7 +4941,7 @@ function ParameterVariables(props) {
4939
4941
  }
4940
4942
  },
4941
4943
  children: [
4942
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { css: { flex: 1 }, children: inputWhenNoVariables && !hadVariablesInValue ? inputWhenNoVariables : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4944
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { css: { flex: 1 }, children: useInputWhenNoVariables ? inputWhenNoVariables : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4943
4945
  VariablesComposerInput,
4944
4946
  {
4945
4947
  "aria-label": ariaLabel,
@@ -4956,9 +4958,9 @@ function ParameterVariables(props) {
4956
4958
  {
4957
4959
  ...sharedMenuProps,
4958
4960
  buttonCss: [variableBindButton2],
4959
- tip: "Tip: access this list by typing $$",
4961
+ tip: useInputWhenNoVariables ? void 0 : "Tip: access this list by typing $$",
4960
4962
  buttonProps: hasVariablesInValue ? { "aria-pressed": "true" } : void 0,
4961
- replaceValueOnVariableInsert
4963
+ replaceValueOnVariableInsert: useInputWhenNoVariables
4962
4964
  }
4963
4965
  )
4964
4966
  ]
package/dist/index.mjs CHANGED
@@ -4441,7 +4441,7 @@ function InputVariables(props) {
4441
4441
  const { dispatch, canDispatch, isEditing } = useVariables(true);
4442
4442
  const { disableVariablesForReals, hadVariablesInValue, sharedMenuProps } = useInputVariablesState(props);
4443
4443
  const disableInlineVariablesForReals = disableVariablesForReals || disableInlineMenu;
4444
- const replaceValueOnVariableInsert = Boolean(inputWhenNoVariables && !hadVariablesInValue);
4444
+ const useInputWithNoVariables = Boolean(inputWhenNoVariables && !hadVariablesInValue);
4445
4445
  const input3 = /* @__PURE__ */ jsxs23(
4446
4446
  "div",
4447
4447
  {
@@ -4451,12 +4451,13 @@ function InputVariables(props) {
4451
4451
  }
4452
4452
  },
4453
4453
  children: [
4454
- inputWhenNoVariables && !hadVariablesInValue ? inputWhenNoVariables : /* @__PURE__ */ jsx39(
4454
+ useInputWithNoVariables ? inputWhenNoVariables : /* @__PURE__ */ jsx39(
4455
4455
  InputVariablesOverlayMenu,
4456
4456
  {
4457
4457
  ...sharedMenuProps,
4458
4458
  disabled: disableInlineVariablesForReals,
4459
- replaceValueOnVariableInsert,
4459
+ replaceValueOnVariableInsert: useInputWithNoVariables,
4460
+ useInputWhenNoVariables: useInputWithNoVariables,
4460
4461
  children: /* @__PURE__ */ jsx39(
4461
4462
  VariablesComposerInput,
4462
4463
  {
@@ -4484,7 +4485,7 @@ function InputVariables(props) {
4484
4485
  label,
4485
4486
  selectVariableMenuOptions: {
4486
4487
  ...sharedMenuProps,
4487
- replaceValueOnVariableInsert
4488
+ replaceValueOnVariableInsert: useInputWithNoVariables
4488
4489
  },
4489
4490
  id: finalId,
4490
4491
  isActive: hadVariablesInValue,
@@ -4504,12 +4505,12 @@ function InputVariables(props) {
4504
4505
  enableEditingVariables: !disabled && !disableVariablesForReals && enableEditingVariables,
4505
4506
  getEditorContext,
4506
4507
  disabled,
4507
- replaceValueOnVariableInsert,
4508
+ replaceValueOnVariableInsert: useInputWithNoVariables,
4508
4509
  autoFocus,
4509
4510
  filterVariable,
4510
4511
  children: [
4511
4512
  /* @__PURE__ */ jsx39(PasteTransformerPlugin, { transformPaste }),
4512
- /* @__PURE__ */ jsx39(ControlledValuePlugin, { value, enabled: !!inputWhenNoVariables && !hadVariablesInValue }),
4513
+ /* @__PURE__ */ jsx39(ControlledValuePlugin, { value, enabled: useInputWithNoVariables }),
4513
4514
  editorRef ? /* @__PURE__ */ jsx39(EditorRefPlugin, { editorRef }) : null,
4514
4515
  body
4515
4516
  ]
@@ -4519,6 +4520,7 @@ function InputVariables(props) {
4519
4520
  function InputVariablesOverlayMenu({
4520
4521
  children,
4521
4522
  disabled,
4523
+ useInputWhenNoVariables,
4522
4524
  ...props
4523
4525
  }) {
4524
4526
  if (disabled) {
@@ -4530,7 +4532,7 @@ function InputVariablesOverlayMenu({
4530
4532
  VariablesComposerVariableMenu,
4531
4533
  {
4532
4534
  ...props,
4533
- tip: "Tip: access this list by typing $$",
4535
+ tip: useInputWhenNoVariables ? void 0 : "Tip: access this list by typing $$",
4534
4536
  buttonCss: menuBtn2
4535
4537
  }
4536
4538
  )
@@ -4743,7 +4745,7 @@ function ParameterVariables(props) {
4743
4745
  } = props;
4744
4746
  const { dispatch, canDispatch, isEditing } = useVariables(true);
4745
4747
  const { disableVariablesForReals, hadVariablesInValue, sharedMenuProps, hasVariablesInValue } = useInputVariablesState(props);
4746
- const replaceValueOnVariableInsert = Boolean(inputWhenNoVariables && !hadVariablesInValue);
4748
+ const useInputWhenNoVariables = Boolean(inputWhenNoVariables && !hadVariablesInValue);
4747
4749
  return /* @__PURE__ */ jsxs26(
4748
4750
  VariablesComposer,
4749
4751
  {
@@ -4755,12 +4757,12 @@ function ParameterVariables(props) {
4755
4757
  enableEditingVariables: !disabled,
4756
4758
  getEditorContext,
4757
4759
  disabled,
4758
- replaceValueOnVariableInsert,
4760
+ replaceValueOnVariableInsert: useInputWhenNoVariables,
4759
4761
  autoFocus,
4760
4762
  filterVariable,
4761
4763
  children: [
4762
4764
  editorRef ? /* @__PURE__ */ jsx42(EditorRefPlugin, { editorRef }) : null,
4763
- /* @__PURE__ */ jsx42(ControlledValuePlugin, { value, enabled: !!inputWhenNoVariables && !hadVariablesInValue }),
4765
+ /* @__PURE__ */ jsx42(ControlledValuePlugin, { value, enabled: useInputWhenNoVariables }),
4764
4766
  /* @__PURE__ */ jsxs26(
4765
4767
  HorizontalRhythm5,
4766
4768
  {
@@ -4773,7 +4775,7 @@ function ParameterVariables(props) {
4773
4775
  }
4774
4776
  },
4775
4777
  children: [
4776
- /* @__PURE__ */ jsx42("div", { css: { flex: 1 }, children: inputWhenNoVariables && !hadVariablesInValue ? inputWhenNoVariables : /* @__PURE__ */ jsx42(
4778
+ /* @__PURE__ */ jsx42("div", { css: { flex: 1 }, children: useInputWhenNoVariables ? inputWhenNoVariables : /* @__PURE__ */ jsx42(
4777
4779
  VariablesComposerInput,
4778
4780
  {
4779
4781
  "aria-label": ariaLabel,
@@ -4790,9 +4792,9 @@ function ParameterVariables(props) {
4790
4792
  {
4791
4793
  ...sharedMenuProps,
4792
4794
  buttonCss: [variableBindButton2],
4793
- tip: "Tip: access this list by typing $$",
4795
+ tip: useInputWhenNoVariables ? void 0 : "Tip: access this list by typing $$",
4794
4796
  buttonProps: hasVariablesInValue ? { "aria-pressed": "true" } : void 0,
4795
- replaceValueOnVariableInsert
4797
+ replaceValueOnVariableInsert: useInputWhenNoVariables
4796
4798
  }
4797
4799
  )
4798
4800
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/mesh-sdk-react",
3
- "version": "19.38.3-alpha.70+55e5a8fe1",
3
+ "version": "19.39.0",
4
4
  "description": "Uniform Mesh Framework SDK for React",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -48,9 +48,9 @@
48
48
  "@lexical/react": "^0.11.3",
49
49
  "@lexical/selection": "^0.11.3",
50
50
  "@lexical/utils": "^0.11.3",
51
- "@uniformdev/canvas": "19.38.3-alpha.70+55e5a8fe1",
52
- "@uniformdev/design-system": "19.38.3-alpha.70+55e5a8fe1",
53
- "@uniformdev/mesh-sdk": "19.38.3-alpha.70+55e5a8fe1",
51
+ "@uniformdev/canvas": "19.39.0",
52
+ "@uniformdev/design-system": "19.39.0",
53
+ "@uniformdev/mesh-sdk": "19.39.0",
54
54
  "dequal": "^2.0.3",
55
55
  "lexical": "^0.11.3",
56
56
  "mitt": "^3.0.0",
@@ -85,5 +85,5 @@
85
85
  "publishConfig": {
86
86
  "access": "public"
87
87
  },
88
- "gitHead": "55e5a8fe1d80971a93ea31d3a50cec72e71be70a"
88
+ "gitHead": "63b0b9b3d9b8f155fad931e9e5ca56d4bda5223a"
89
89
  }