@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260326064410 → 0.8.1-dev.20260326083242
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +24 -26
- package/dist/index.mjs +24 -26
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -13,7 +13,7 @@ interface ViewControlProps {
|
|
|
13
13
|
customProps?: Record<string, unknown>;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
declare const ViewControl: React.
|
|
16
|
+
declare const ViewControl: React.FC<ViewControlProps>;
|
|
17
17
|
|
|
18
18
|
declare const ViewControlTypes: {
|
|
19
19
|
lineText: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ interface ViewControlProps {
|
|
|
13
13
|
customProps?: Record<string, unknown>;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
declare const ViewControl: React.
|
|
16
|
+
declare const ViewControl: React.FC<ViewControlProps>;
|
|
17
17
|
|
|
18
18
|
declare const ViewControlTypes: {
|
|
19
19
|
lineText: string;
|
package/dist/index.js
CHANGED
|
@@ -672,31 +672,28 @@ var AiGeneratedSummary_default = AiGeneratedSummary;
|
|
|
672
672
|
|
|
673
673
|
// src/components/controls/view/ViewControl.tsx
|
|
674
674
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
675
|
-
var ViewControl =
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
}
|
|
698
|
-
);
|
|
699
|
-
ViewControl.displayName = "ViewControl";
|
|
675
|
+
var ViewControl = (props) => {
|
|
676
|
+
const ControlComponents = {
|
|
677
|
+
[ViewControlTypes_default.lineText]: LineTextView_default,
|
|
678
|
+
// [ViewControlTypes.asset]: Asset,
|
|
679
|
+
[ViewControlTypes_default.multilineTextBullets]: MultilineTextBulletsView_default,
|
|
680
|
+
[ViewControlTypes_default.money]: MoneyView_default,
|
|
681
|
+
[ViewControlTypes_default.date]: DateView_default,
|
|
682
|
+
[ViewControlTypes_default.time]: DateView_default,
|
|
683
|
+
[ViewControlTypes_default.datetime]: DateView_default,
|
|
684
|
+
[ViewControlTypes_default.number]: NumberView_default,
|
|
685
|
+
[ViewControlTypes_default.multilineText]: MultilineTextView_default,
|
|
686
|
+
[ViewControlTypes_default.moneyText]: MoneyView_default,
|
|
687
|
+
[ViewControlTypes_default.percentage]: PercentageView_default,
|
|
688
|
+
// [ViewControlTypes.statusBg]: StatusBg,
|
|
689
|
+
[ViewControlTypes_default.progressIndicator]: ProgressIndicator_default,
|
|
690
|
+
// [ViewControlTypes.timeUntilStarts]: TimeUntilStarts,
|
|
691
|
+
// [ViewControlTypes.timeUntilStartsStyled]: TimeUntilStartsStyled,
|
|
692
|
+
[ViewControlTypes_default.aiGeneratedSummary]: AiGeneratedSummary_default
|
|
693
|
+
};
|
|
694
|
+
const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
|
|
695
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react9.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
|
|
696
|
+
};
|
|
700
697
|
var ViewControl_default = ViewControl;
|
|
701
698
|
|
|
702
699
|
// src/components/controls/edit/InputControl.tsx
|
|
@@ -4884,6 +4881,7 @@ var ImageGalleryNode = (props) => {
|
|
|
4884
4881
|
var ImageGalleryNode_default = ImageGalleryNode;
|
|
4885
4882
|
|
|
4886
4883
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
4884
|
+
var import_link3 = __toESM(require("next/link"));
|
|
4887
4885
|
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
4888
4886
|
function toCamelCase(str) {
|
|
4889
4887
|
return str.replace(/-([a-z])/g, (_, letter) => letter.toUpperCase());
|
|
@@ -5147,7 +5145,7 @@ var DivContainer = async (props) => {
|
|
|
5147
5145
|
wrapperProps = { ...props.node.componentProperties, "slidesToShow": slidesToShow };
|
|
5148
5146
|
break;
|
|
5149
5147
|
case !!(props.node.href || props.href):
|
|
5150
|
-
Wrapper =
|
|
5148
|
+
Wrapper = import_link3.default;
|
|
5151
5149
|
let href = props.node.href || props.href;
|
|
5152
5150
|
if (href?.includes("{")) {
|
|
5153
5151
|
href = resolveHrefTemplate(href, props.dataitem);
|
package/dist/index.mjs
CHANGED
|
@@ -321,31 +321,28 @@ var AiGeneratedSummary_default = AiGeneratedSummary;
|
|
|
321
321
|
|
|
322
322
|
// src/components/controls/view/ViewControl.tsx
|
|
323
323
|
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
324
|
-
var ViewControl =
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
}
|
|
347
|
-
);
|
|
348
|
-
ViewControl.displayName = "ViewControl";
|
|
324
|
+
var ViewControl = (props) => {
|
|
325
|
+
const ControlComponents = {
|
|
326
|
+
[ViewControlTypes_default.lineText]: LineTextView_default,
|
|
327
|
+
// [ViewControlTypes.asset]: Asset,
|
|
328
|
+
[ViewControlTypes_default.multilineTextBullets]: MultilineTextBulletsView_default,
|
|
329
|
+
[ViewControlTypes_default.money]: MoneyView_default,
|
|
330
|
+
[ViewControlTypes_default.date]: DateView_default,
|
|
331
|
+
[ViewControlTypes_default.time]: DateView_default,
|
|
332
|
+
[ViewControlTypes_default.datetime]: DateView_default,
|
|
333
|
+
[ViewControlTypes_default.number]: NumberView_default,
|
|
334
|
+
[ViewControlTypes_default.multilineText]: MultilineTextView_default,
|
|
335
|
+
[ViewControlTypes_default.moneyText]: MoneyView_default,
|
|
336
|
+
[ViewControlTypes_default.percentage]: PercentageView_default,
|
|
337
|
+
// [ViewControlTypes.statusBg]: StatusBg,
|
|
338
|
+
[ViewControlTypes_default.progressIndicator]: ProgressIndicator_default,
|
|
339
|
+
// [ViewControlTypes.timeUntilStarts]: TimeUntilStarts,
|
|
340
|
+
// [ViewControlTypes.timeUntilStartsStyled]: TimeUntilStartsStyled,
|
|
341
|
+
[ViewControlTypes_default.aiGeneratedSummary]: AiGeneratedSummary_default
|
|
342
|
+
};
|
|
343
|
+
const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
|
|
344
|
+
return /* @__PURE__ */ jsx9(React9.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx9(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
|
|
345
|
+
};
|
|
349
346
|
var ViewControl_default = ViewControl;
|
|
350
347
|
|
|
351
348
|
// src/components/controls/edit/InputControl.tsx
|
|
@@ -4540,6 +4537,7 @@ var ImageGalleryNode = (props) => {
|
|
|
4540
4537
|
var ImageGalleryNode_default = ImageGalleryNode;
|
|
4541
4538
|
|
|
4542
4539
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
4540
|
+
import Link3 from "next/link";
|
|
4543
4541
|
import { jsx as jsx62, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
4544
4542
|
function toCamelCase(str) {
|
|
4545
4543
|
return str.replace(/-([a-z])/g, (_, letter) => letter.toUpperCase());
|
|
@@ -4803,7 +4801,7 @@ var DivContainer = async (props) => {
|
|
|
4803
4801
|
wrapperProps = { ...props.node.componentProperties, "slidesToShow": slidesToShow };
|
|
4804
4802
|
break;
|
|
4805
4803
|
case !!(props.node.href || props.href):
|
|
4806
|
-
Wrapper =
|
|
4804
|
+
Wrapper = Link3;
|
|
4807
4805
|
let href = props.node.href || props.href;
|
|
4808
4806
|
if (href?.includes("{")) {
|
|
4809
4807
|
href = resolveHrefTemplate(href, props.dataitem);
|
package/package.json
CHANGED