@uniformdev/mesh-sdk-react 19.61.1-alpha.13 → 19.61.1-alpha.23

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 CHANGED
@@ -437,6 +437,8 @@ declare function useMeshLocation<TLocationType extends MeshLocation['type'], TLo
437
437
  type: TLocationType;
438
438
  }> | Extract<_uniformdev_mesh_sdk.DataResourceLocation, {
439
439
  type: TLocationType;
440
+ }> | Extract<_uniformdev_mesh_sdk.AIPromptMetadataLocation, {
441
+ type: TLocationType;
440
442
  }> | Extract<_uniformdev_mesh_sdk.ParamTypeLocation<TLocationValue, unknown, TLocationSetValue, unknown>, {
441
443
  type: TLocationType;
442
444
  }> | Extract<_uniformdev_mesh_sdk.ParamTypeConfigLocation<TLocationValue, unknown>, {
@@ -454,6 +456,8 @@ declare function useMeshLocation<TLocationType extends MeshLocation['type'], TLo
454
456
  type: TLocationType;
455
457
  }> | Extract<_uniformdev_mesh_sdk.DataResourceLocation, {
456
458
  type: TLocationType;
459
+ }> | Extract<_uniformdev_mesh_sdk.AIPromptMetadataLocation, {
460
+ type: TLocationType;
457
461
  }> | Extract<_uniformdev_mesh_sdk.ParamTypeLocation<TLocationValue, unknown, TLocationSetValue, unknown>, {
458
462
  type: TLocationType;
459
463
  }> | Extract<_uniformdev_mesh_sdk.ParamTypeConfigLocation<TLocationValue, unknown>, {
@@ -470,6 +474,8 @@ declare function useMeshLocation<TLocationType extends MeshLocation['type'], TLo
470
474
  type: TLocationType;
471
475
  }> | Extract<_uniformdev_mesh_sdk.DataResourceLocation, {
472
476
  type: TLocationType;
477
+ }> | Extract<_uniformdev_mesh_sdk.AIPromptMetadataLocation, {
478
+ type: TLocationType;
473
479
  }> | Extract<_uniformdev_mesh_sdk.ParamTypeLocation<TLocationValue, unknown, TLocationSetValue, unknown>, {
474
480
  type: TLocationType;
475
481
  }> | Extract<_uniformdev_mesh_sdk.ParamTypeConfigLocation<TLocationValue, unknown>, {
@@ -592,6 +598,10 @@ type MeshDataVariableDefinition = Omit<DataVariableDefinition, 'default'> & {
592
598
  * If not passed, defaults to helpText.
593
599
  */
594
600
  tooltip?: string;
601
+ /**
602
+ If true the variable will be shown only in menus.
603
+ */
604
+ system?: boolean;
595
605
  };
596
606
  /**
597
607
  * Provides information for an undefined variable that might be referenced in data,
package/dist/index.d.ts CHANGED
@@ -437,6 +437,8 @@ declare function useMeshLocation<TLocationType extends MeshLocation['type'], TLo
437
437
  type: TLocationType;
438
438
  }> | Extract<_uniformdev_mesh_sdk.DataResourceLocation, {
439
439
  type: TLocationType;
440
+ }> | Extract<_uniformdev_mesh_sdk.AIPromptMetadataLocation, {
441
+ type: TLocationType;
440
442
  }> | Extract<_uniformdev_mesh_sdk.ParamTypeLocation<TLocationValue, unknown, TLocationSetValue, unknown>, {
441
443
  type: TLocationType;
442
444
  }> | Extract<_uniformdev_mesh_sdk.ParamTypeConfigLocation<TLocationValue, unknown>, {
@@ -454,6 +456,8 @@ declare function useMeshLocation<TLocationType extends MeshLocation['type'], TLo
454
456
  type: TLocationType;
455
457
  }> | Extract<_uniformdev_mesh_sdk.DataResourceLocation, {
456
458
  type: TLocationType;
459
+ }> | Extract<_uniformdev_mesh_sdk.AIPromptMetadataLocation, {
460
+ type: TLocationType;
457
461
  }> | Extract<_uniformdev_mesh_sdk.ParamTypeLocation<TLocationValue, unknown, TLocationSetValue, unknown>, {
458
462
  type: TLocationType;
459
463
  }> | Extract<_uniformdev_mesh_sdk.ParamTypeConfigLocation<TLocationValue, unknown>, {
@@ -470,6 +474,8 @@ declare function useMeshLocation<TLocationType extends MeshLocation['type'], TLo
470
474
  type: TLocationType;
471
475
  }> | Extract<_uniformdev_mesh_sdk.DataResourceLocation, {
472
476
  type: TLocationType;
477
+ }> | Extract<_uniformdev_mesh_sdk.AIPromptMetadataLocation, {
478
+ type: TLocationType;
473
479
  }> | Extract<_uniformdev_mesh_sdk.ParamTypeLocation<TLocationValue, unknown, TLocationSetValue, unknown>, {
474
480
  type: TLocationType;
475
481
  }> | Extract<_uniformdev_mesh_sdk.ParamTypeConfigLocation<TLocationValue, unknown>, {
@@ -592,6 +598,10 @@ type MeshDataVariableDefinition = Omit<DataVariableDefinition, 'default'> & {
592
598
  * If not passed, defaults to helpText.
593
599
  */
594
600
  tooltip?: string;
601
+ /**
602
+ If true the variable will be shown only in menus.
603
+ */
604
+ system?: boolean;
595
605
  };
596
606
  /**
597
607
  * Provides information for an undefined variable that might be referenced in data,
package/dist/index.esm.js CHANGED
@@ -3002,7 +3002,7 @@ import {
3002
3002
  import { mergeRegister } from "@lexical/utils";
3003
3003
  import { AiFillPlusCircle } from "@react-icons/all-files/ai/AiFillPlusCircle";
3004
3004
  import { createVariableReference } from "@uniformdev/canvas";
3005
- import { HorizontalRhythm as HorizontalRhythm2, MenuGroup, MenuItem as MenuItem2, MenuItemSeparator } from "@uniformdev/design-system";
3005
+ import { HorizontalRhythm as HorizontalRhythm2, MenuGroup, MenuItemInner, MenuItemSeparator } from "@uniformdev/design-system";
3006
3006
  import { dequal as dequal2 } from "dequal/lite";
3007
3007
  import {
3008
3008
  $createTextNode,
@@ -3766,7 +3766,7 @@ function VariablesPlugin({
3766
3766
  currentCumulativeMenuIndex++;
3767
3767
  const myCumulativeIndex = currentCumulativeMenuIndex;
3768
3768
  return /* @__PURE__ */ jsx32(
3769
- MenuItem2,
3769
+ MenuItemInner,
3770
3770
  {
3771
3771
  active: selectedIndex === myCumulativeIndex,
3772
3772
  onClick: () => {
@@ -4213,7 +4213,7 @@ import { CLEAR_EDITOR_COMMAND } from "lexical";
4213
4213
  // src/components/Variables/toolbox/SelectVariableMenu.tsx
4214
4214
  import { BsFillPlusCircleFill } from "@react-icons/all-files/bs/BsFillPlusCircleFill";
4215
4215
  import { CgUsbC } from "@react-icons/all-files/cg/CgUsbC";
4216
- import { HorizontalRhythm as HorizontalRhythm3, Menu as Menu2, MenuGroup as MenuGroup2, MenuItem as MenuItem3, MenuItemSeparator as MenuItemSeparator2 } from "@uniformdev/design-system";
4216
+ import { HorizontalRhythm as HorizontalRhythm3, Menu as Menu2, MenuGroup as MenuGroup2, MenuItem as MenuItem2, MenuItemSeparator as MenuItemSeparator2 } from "@uniformdev/design-system";
4217
4217
  import { useRef as useRef11 } from "react";
4218
4218
  import { Fragment as Fragment7, jsx as jsx34, jsxs as jsxs19 } from "@emotion/react/jsx-runtime";
4219
4219
  function SelectVariableMenu({
@@ -4256,7 +4256,7 @@ function SelectVariableMenu({
4256
4256
  menuLabel: menuTooltip,
4257
4257
  children: [
4258
4258
  showAddVariableMenuOptionForReals ? /* @__PURE__ */ jsx34(
4259
- MenuItem3,
4259
+ MenuItem2,
4260
4260
  {
4261
4261
  onClick: async () => {
4262
4262
  const result = await editVariable("", getEditorContext == null ? void 0 : getEditorContext());
@@ -4278,7 +4278,7 @@ function SelectVariableMenu({
4278
4278
  return /* @__PURE__ */ jsx34(MenuGroup2, { title: (_a = group.name) != null ? _a : "", children: group.variables.map((variable) => {
4279
4279
  const { name, displayName, helpText } = variable;
4280
4280
  return /* @__PURE__ */ jsxs19(
4281
- MenuItem3,
4281
+ MenuItem2,
4282
4282
  {
4283
4283
  id: name,
4284
4284
  css: menuItemTextGroup,
@@ -4293,7 +4293,7 @@ function SelectVariableMenu({
4293
4293
  }) }, group.name);
4294
4294
  }),
4295
4295
  menuHasVariableOptions && onResetVariables ? /* @__PURE__ */ jsx34(MenuItemSeparator2, {}) : null,
4296
- onResetVariables ? /* @__PURE__ */ jsx34(MenuItem3, { onClick: onResetVariables, css: { color: "var(--brand-secondary-5)" }, children: "Reset" }) : null,
4296
+ onResetVariables ? /* @__PURE__ */ jsx34(MenuItem2, { onClick: onResetVariables, css: { color: "var(--brand-secondary-5)" }, children: "Reset" }) : null,
4297
4297
  tip && (menuHasVariableOptions || onResetVariables) ? /* @__PURE__ */ jsx34(MenuItemSeparator2, {}) : null,
4298
4298
  tip ? /* @__PURE__ */ jsx34("i", { css: variablesTipText, children: tip }) : null
4299
4299
  ]
@@ -5151,7 +5151,7 @@ var variableValue = css25`
5151
5151
  import { Fragment as Fragment11, jsx as jsx43, jsxs as jsxs27 } from "@emotion/react/jsx-runtime";
5152
5152
  function VariablesList() {
5153
5153
  const { variables, dispatch } = useVariables();
5154
- const sorted = variablesToList(variables);
5154
+ const sorted = variablesToList(variables).filter((variable) => !variable.system);
5155
5155
  const onDragEnd = (res) => {
5156
5156
  var _a, _b;
5157
5157
  if (res.destination && res.source.droppableId === ((_a = res.destination) == null ? void 0 : _a.droppableId)) {
@@ -7121,7 +7121,7 @@ import {
7121
7121
  LoadingIndicator as LoadingIndicator5,
7122
7122
  LoadingOverlay as LoadingOverlay2,
7123
7123
  Menu as Menu4,
7124
- MenuItem as MenuItem4,
7124
+ MenuItem as MenuItem3,
7125
7125
  ParameterGroup,
7126
7126
  ParameterImage,
7127
7127
  ParameterImageInner,
@@ -7177,7 +7177,7 @@ export {
7177
7177
  LoadingIndicator5 as LoadingIndicator,
7178
7178
  LoadingOverlay2 as LoadingOverlay,
7179
7179
  Menu4 as Menu,
7180
- MenuItem4 as MenuItem,
7180
+ MenuItem3 as MenuItem,
7181
7181
  MeshApp,
7182
7182
  OPEN_INSERT_VARIABLE_COMMAND,
7183
7183
  ObjectSearchContainer,
package/dist/index.js CHANGED
@@ -3944,7 +3944,7 @@ function VariablesPlugin({
3944
3944
  currentCumulativeMenuIndex++;
3945
3945
  const myCumulativeIndex = currentCumulativeMenuIndex;
3946
3946
  return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3947
- import_design_system17.MenuItem,
3947
+ import_design_system17.MenuItemInner,
3948
3948
  {
3949
3949
  active: selectedIndex === myCumulativeIndex,
3950
3950
  onClick: () => {
@@ -5307,7 +5307,7 @@ var variableValue = import_react55.css`
5307
5307
  var import_jsx_runtime43 = require("@emotion/react/jsx-runtime");
5308
5308
  function VariablesList() {
5309
5309
  const { variables, dispatch } = useVariables();
5310
- const sorted = variablesToList(variables);
5310
+ const sorted = variablesToList(variables).filter((variable) => !variable.system);
5311
5311
  const onDragEnd = (res) => {
5312
5312
  var _a, _b;
5313
5313
  if (res.destination && res.source.droppableId === ((_a = res.destination) == null ? void 0 : _a.droppableId)) {
package/dist/index.mjs CHANGED
@@ -3002,7 +3002,7 @@ import {
3002
3002
  import { mergeRegister } from "@lexical/utils";
3003
3003
  import { AiFillPlusCircle } from "@react-icons/all-files/ai/AiFillPlusCircle";
3004
3004
  import { createVariableReference } from "@uniformdev/canvas";
3005
- import { HorizontalRhythm as HorizontalRhythm2, MenuGroup, MenuItem as MenuItem2, MenuItemSeparator } from "@uniformdev/design-system";
3005
+ import { HorizontalRhythm as HorizontalRhythm2, MenuGroup, MenuItemInner, MenuItemSeparator } from "@uniformdev/design-system";
3006
3006
  import { dequal as dequal2 } from "dequal/lite";
3007
3007
  import {
3008
3008
  $createTextNode,
@@ -3766,7 +3766,7 @@ function VariablesPlugin({
3766
3766
  currentCumulativeMenuIndex++;
3767
3767
  const myCumulativeIndex = currentCumulativeMenuIndex;
3768
3768
  return /* @__PURE__ */ jsx32(
3769
- MenuItem2,
3769
+ MenuItemInner,
3770
3770
  {
3771
3771
  active: selectedIndex === myCumulativeIndex,
3772
3772
  onClick: () => {
@@ -4213,7 +4213,7 @@ import { CLEAR_EDITOR_COMMAND } from "lexical";
4213
4213
  // src/components/Variables/toolbox/SelectVariableMenu.tsx
4214
4214
  import { BsFillPlusCircleFill } from "@react-icons/all-files/bs/BsFillPlusCircleFill";
4215
4215
  import { CgUsbC } from "@react-icons/all-files/cg/CgUsbC";
4216
- import { HorizontalRhythm as HorizontalRhythm3, Menu as Menu2, MenuGroup as MenuGroup2, MenuItem as MenuItem3, MenuItemSeparator as MenuItemSeparator2 } from "@uniformdev/design-system";
4216
+ import { HorizontalRhythm as HorizontalRhythm3, Menu as Menu2, MenuGroup as MenuGroup2, MenuItem as MenuItem2, MenuItemSeparator as MenuItemSeparator2 } from "@uniformdev/design-system";
4217
4217
  import { useRef as useRef11 } from "react";
4218
4218
  import { Fragment as Fragment7, jsx as jsx34, jsxs as jsxs19 } from "@emotion/react/jsx-runtime";
4219
4219
  function SelectVariableMenu({
@@ -4256,7 +4256,7 @@ function SelectVariableMenu({
4256
4256
  menuLabel: menuTooltip,
4257
4257
  children: [
4258
4258
  showAddVariableMenuOptionForReals ? /* @__PURE__ */ jsx34(
4259
- MenuItem3,
4259
+ MenuItem2,
4260
4260
  {
4261
4261
  onClick: async () => {
4262
4262
  const result = await editVariable("", getEditorContext == null ? void 0 : getEditorContext());
@@ -4278,7 +4278,7 @@ function SelectVariableMenu({
4278
4278
  return /* @__PURE__ */ jsx34(MenuGroup2, { title: (_a = group.name) != null ? _a : "", children: group.variables.map((variable) => {
4279
4279
  const { name, displayName, helpText } = variable;
4280
4280
  return /* @__PURE__ */ jsxs19(
4281
- MenuItem3,
4281
+ MenuItem2,
4282
4282
  {
4283
4283
  id: name,
4284
4284
  css: menuItemTextGroup,
@@ -4293,7 +4293,7 @@ function SelectVariableMenu({
4293
4293
  }) }, group.name);
4294
4294
  }),
4295
4295
  menuHasVariableOptions && onResetVariables ? /* @__PURE__ */ jsx34(MenuItemSeparator2, {}) : null,
4296
- onResetVariables ? /* @__PURE__ */ jsx34(MenuItem3, { onClick: onResetVariables, css: { color: "var(--brand-secondary-5)" }, children: "Reset" }) : null,
4296
+ onResetVariables ? /* @__PURE__ */ jsx34(MenuItem2, { onClick: onResetVariables, css: { color: "var(--brand-secondary-5)" }, children: "Reset" }) : null,
4297
4297
  tip && (menuHasVariableOptions || onResetVariables) ? /* @__PURE__ */ jsx34(MenuItemSeparator2, {}) : null,
4298
4298
  tip ? /* @__PURE__ */ jsx34("i", { css: variablesTipText, children: tip }) : null
4299
4299
  ]
@@ -5151,7 +5151,7 @@ var variableValue = css25`
5151
5151
  import { Fragment as Fragment11, jsx as jsx43, jsxs as jsxs27 } from "@emotion/react/jsx-runtime";
5152
5152
  function VariablesList() {
5153
5153
  const { variables, dispatch } = useVariables();
5154
- const sorted = variablesToList(variables);
5154
+ const sorted = variablesToList(variables).filter((variable) => !variable.system);
5155
5155
  const onDragEnd = (res) => {
5156
5156
  var _a, _b;
5157
5157
  if (res.destination && res.source.droppableId === ((_a = res.destination) == null ? void 0 : _a.droppableId)) {
@@ -7121,7 +7121,7 @@ import {
7121
7121
  LoadingIndicator as LoadingIndicator5,
7122
7122
  LoadingOverlay as LoadingOverlay2,
7123
7123
  Menu as Menu4,
7124
- MenuItem as MenuItem4,
7124
+ MenuItem as MenuItem3,
7125
7125
  ParameterGroup,
7126
7126
  ParameterImage,
7127
7127
  ParameterImageInner,
@@ -7177,7 +7177,7 @@ export {
7177
7177
  LoadingIndicator5 as LoadingIndicator,
7178
7178
  LoadingOverlay2 as LoadingOverlay,
7179
7179
  Menu4 as Menu,
7180
- MenuItem4 as MenuItem,
7180
+ MenuItem3 as MenuItem,
7181
7181
  MeshApp,
7182
7182
  OPEN_INSERT_VARIABLE_COMMAND,
7183
7183
  ObjectSearchContainer,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/mesh-sdk-react",
3
- "version": "19.61.1-alpha.13+9ea7c72e6",
3
+ "version": "19.61.1-alpha.23+f3b91f17a",
4
4
  "description": "Uniform Mesh Framework SDK for React",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -50,9 +50,9 @@
50
50
  "@lexical/selection": "^0.12.0",
51
51
  "@lexical/utils": "^0.12.0",
52
52
  "@react-icons/all-files": "https://github.com/react-icons/react-icons/releases/download/v4.10.1/react-icons-all-files-4.10.1.tgz",
53
- "@uniformdev/canvas": "19.61.1-alpha.13+9ea7c72e6",
54
- "@uniformdev/design-system": "19.61.1-alpha.13+9ea7c72e6",
55
- "@uniformdev/mesh-sdk": "19.61.1-alpha.13+9ea7c72e6",
53
+ "@uniformdev/canvas": "19.61.1-alpha.23+f3b91f17a",
54
+ "@uniformdev/design-system": "19.61.1-alpha.23+f3b91f17a",
55
+ "@uniformdev/mesh-sdk": "19.61.1-alpha.23+f3b91f17a",
56
56
  "dequal": "^2.0.3",
57
57
  "lexical": "^0.12.0",
58
58
  "mitt": "^3.0.0",
@@ -86,5 +86,5 @@
86
86
  "publishConfig": {
87
87
  "access": "public"
88
88
  },
89
- "gitHead": "9ea7c72e685bf1dd690149aa40a9b7a443d2ad28"
89
+ "gitHead": "f3b91f17a3a9f28f817e68e91ace4b414e9befe4"
90
90
  }