@camstack/ui-library 1.2.187 → 1.2.188

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
@@ -23526,6 +23526,7 @@ function AddonActionButtonField({ field, values, disabled, onAction }) {
23526
23526
  const [loading, setLoading] = (0, react$1.useState)(false);
23527
23527
  const [status, setStatus] = (0, react$1.useState)(null);
23528
23528
  const confirm = useConfirm();
23529
+ const deviceId = useDeviceId();
23529
23530
  const handleClick = async () => {
23530
23531
  if (field.confirmMessage) {
23531
23532
  if (!await confirm({
@@ -23537,6 +23538,7 @@ function AddonActionButtonField({ field, values, disabled, onAction }) {
23537
23538
  }
23538
23539
  if (!onAction) return;
23539
23540
  const params = resolveActionParams(field, values);
23541
+ if (field.includeDeviceId === true && deviceId !== null && deviceId !== void 0) params["deviceId"] = deviceId;
23540
23542
  setLoading(true);
23541
23543
  setStatus(null);
23542
23544
  try {
package/dist/index.js CHANGED
@@ -23502,6 +23502,7 @@ function AddonActionButtonField({ field, values, disabled, onAction }) {
23502
23502
  const [loading, setLoading] = useState(false);
23503
23503
  const [status, setStatus] = useState(null);
23504
23504
  const confirm = useConfirm();
23505
+ const deviceId = useDeviceId();
23505
23506
  const handleClick = async () => {
23506
23507
  if (field.confirmMessage) {
23507
23508
  if (!await confirm({
@@ -23513,6 +23514,7 @@ function AddonActionButtonField({ field, values, disabled, onAction }) {
23513
23514
  }
23514
23515
  if (!onAction) return;
23515
23516
  const params = resolveActionParams(field, values);
23517
+ if (field.includeDeviceId === true && deviceId !== null && deviceId !== void 0) params["deviceId"] = deviceId;
23516
23518
  setLoading(true);
23517
23519
  setStatus(null);
23518
23520
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/ui-library",
3
- "version": "1.2.187",
3
+ "version": "1.2.188",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",