@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260415060612 → 0.8.1-dev.20260416042420
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.
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Button_default,
|
|
4
|
-
ServiceClient_default
|
|
5
|
-
|
|
4
|
+
ServiceClient_default,
|
|
5
|
+
ToastService_default
|
|
6
|
+
} from "./chunk-O5BPFXEO.mjs";
|
|
6
7
|
|
|
7
8
|
// src/components/pageRenderingEngine/nodes/LinkNodeButton.tsx
|
|
8
9
|
import { useCallback, useState } from "react";
|
|
@@ -87,6 +88,7 @@ var LinkNodeButton = (props) => {
|
|
|
87
88
|
console.log("API Response:", response);
|
|
88
89
|
if (response && !response.isSuccessful) {
|
|
89
90
|
const errorMessage = response.message || "API request failed";
|
|
91
|
+
ToastService_default.showError(errorMessage);
|
|
90
92
|
setError(errorMessage);
|
|
91
93
|
setIsLoading(false);
|
|
92
94
|
return { isSuccessful: false, message: errorMessage };
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
// src/components/Button.tsx
|
|
2
|
-
import React3, { useState as useState2 } from "react";
|
|
3
|
-
|
|
4
1
|
// src/components/ToastService.tsx
|
|
5
2
|
var ToastService = class _ToastService {
|
|
6
3
|
static initialize(showToast, closeToast) {
|
|
@@ -25,6 +22,9 @@ var ToastService = class _ToastService {
|
|
|
25
22
|
};
|
|
26
23
|
var ToastService_default = ToastService;
|
|
27
24
|
|
|
25
|
+
// src/components/Button.tsx
|
|
26
|
+
import React3, { useState as useState2 } from "react";
|
|
27
|
+
|
|
28
28
|
// src/components/StyleTypes.tsx
|
|
29
29
|
var buttonClasses = /* @__PURE__ */ new Map([
|
|
30
30
|
["Primary" /* Solid */, "btn-solid"],
|
|
@@ -394,6 +394,7 @@ var ServiceClient = class {
|
|
|
394
394
|
var ServiceClient_default = ServiceClient;
|
|
395
395
|
|
|
396
396
|
export {
|
|
397
|
+
ToastService_default,
|
|
397
398
|
buttonClasses,
|
|
398
399
|
Button_default,
|
|
399
400
|
ServiceClient_default
|
package/dist/index.js
CHANGED
|
@@ -626,6 +626,7 @@ var init_LinkNodeButton = __esm({
|
|
|
626
626
|
import_react35 = require("react");
|
|
627
627
|
init_Button();
|
|
628
628
|
init_ServiceClient();
|
|
629
|
+
init_ToastService();
|
|
629
630
|
import_jsx_runtime45 = require("react/jsx-runtime");
|
|
630
631
|
LinkNodeButton = (props) => {
|
|
631
632
|
const { node, dataitem, children, linkText, linkType, linkUrl } = props;
|
|
@@ -707,6 +708,7 @@ var init_LinkNodeButton = __esm({
|
|
|
707
708
|
console.log("API Response:", response);
|
|
708
709
|
if (response && !response.isSuccessful) {
|
|
709
710
|
const errorMessage = response.message || "API request failed";
|
|
711
|
+
ToastService_default.showError(errorMessage);
|
|
710
712
|
setError(errorMessage);
|
|
711
713
|
setIsLoading(false);
|
|
712
714
|
return { isSuccessful: false, message: errorMessage };
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
Button_default,
|
|
6
6
|
ServiceClient_default,
|
|
7
7
|
buttonClasses
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-O5BPFXEO.mjs";
|
|
9
9
|
|
|
10
10
|
// src/components/controls/view/ViewControl.tsx
|
|
11
11
|
import React9 from "react";
|
|
@@ -2817,7 +2817,7 @@ var ImageNode_default = ImageNode;
|
|
|
2817
2817
|
// src/components/pageRenderingEngine/nodes/LinkNode.tsx
|
|
2818
2818
|
import dynamic2 from "next/dynamic";
|
|
2819
2819
|
import { Fragment as Fragment4, jsx as jsx40, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
2820
|
-
var LinkNodeButton = dynamic2(() => import("./LinkNodeButton-
|
|
2820
|
+
var LinkNodeButton = dynamic2(() => import("./LinkNodeButton-ETDJGBBZ.mjs"), {
|
|
2821
2821
|
ssr: false
|
|
2822
2822
|
});
|
|
2823
2823
|
var LinkNode = (props) => {
|
package/package.json
CHANGED