@procaaso/alphinity-ui-components 1.8.2 → 1.9.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.cjs CHANGED
@@ -999,7 +999,7 @@ var NodeControlsPanel = ({
999
999
  };
1000
1000
 
1001
1001
  // src/components/DeviceControlPanel/DeviceControlPanel.tsx
1002
- var import_react5 = require("react");
1002
+ var import_react5 = __toESM(require("react"), 1);
1003
1003
 
1004
1004
  // src/theme/statusColors.ts
1005
1005
  var DEFAULT_STATUS_COLORS = {
@@ -1026,7 +1026,7 @@ function resolveStatusColor(status, customMap) {
1026
1026
 
1027
1027
  // src/components/DeviceControlPanel/DeviceControlPanel.tsx
1028
1028
  var import_jsx_runtime8 = require("react/jsx-runtime");
1029
- function DeviceControlPanel({
1029
+ function DeviceControlPanelImpl({
1030
1030
  binding,
1031
1031
  onClose,
1032
1032
  position = "bottom",
@@ -1050,6 +1050,7 @@ function DeviceControlPanel({
1050
1050
  onUndock,
1051
1051
  undockIcon = "\u21F1",
1052
1052
  modeSelectionStyle = "buttons",
1053
+ showBuiltInToast = true,
1053
1054
  embedded = false
1054
1055
  }) {
1055
1056
  const [localParameterValues, setLocalParameterValues] = (0, import_react5.useState)({});
@@ -1895,7 +1896,7 @@ function DeviceControlPanel({
1895
1896
  );
1896
1897
  }) })
1897
1898
  ] }),
1898
- binding.state.lastCommandResult && showToast && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1899
+ binding.state.lastCommandResult && showToast && showBuiltInToast && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1899
1900
  "div",
1900
1901
  {
1901
1902
  style: {
@@ -1951,6 +1952,7 @@ function DeviceControlPanel({
1951
1952
  ` })
1952
1953
  ] });
1953
1954
  }
1955
+ var DeviceControlPanel = import_react5.default.memo(DeviceControlPanelImpl);
1954
1956
 
1955
1957
  // src/components/NumpadDialog/NumpadDialog.tsx
1956
1958
  var import_react6 = require("react");
@@ -8694,9 +8696,9 @@ function useDeviceConfigs(initialConfigs) {
8694
8696
  }
8695
8697
 
8696
8698
  // src/components/DeviceConfigPanel/DeviceConfigPanel.tsx
8697
- var import_react24 = require("react");
8699
+ var import_react24 = __toESM(require("react"), 1);
8698
8700
  var import_jsx_runtime23 = require("react/jsx-runtime");
8699
- function DeviceConfigPanel({
8701
+ function DeviceConfigPanelImpl({
8700
8702
  binding,
8701
8703
  onClose,
8702
8704
  onUndock,
@@ -8711,6 +8713,7 @@ function DeviceConfigPanel({
8711
8713
  toastDuration = 3e3,
8712
8714
  onOpenControls,
8713
8715
  showControlsButton = true,
8716
+ showBuiltInToast = true,
8714
8717
  embedded = false
8715
8718
  }) {
8716
8719
  const [localValues, setLocalValues] = (0, import_react24.useState)(() => {
@@ -9376,7 +9379,7 @@ function DeviceConfigPanel({
9376
9379
  }
9377
9380
  )
9378
9381
  ] }),
9379
- binding.state.lastSaveResult && showToast && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
9382
+ binding.state.lastSaveResult && showToast && showBuiltInToast && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
9380
9383
  "div",
9381
9384
  {
9382
9385
  style: {
@@ -9398,6 +9401,7 @@ function DeviceConfigPanel({
9398
9401
  )
9399
9402
  ] });
9400
9403
  }
9404
+ var DeviceConfigPanel = import_react24.default.memo(DeviceConfigPanelImpl);
9401
9405
 
9402
9406
  // src/diagram/hooks/useSimulation.ts
9403
9407
  var import_react25 = require("react");