@mathews_cometchat/bubble-builder 1.0.0-alpha26 → 1.0.0-alpha28
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.
|
@@ -8208,9 +8208,9 @@ var P = ee((e, t) => ({
|
|
|
8208
8208
|
notificationTitle: "",
|
|
8209
8209
|
notificationBody: "",
|
|
8210
8210
|
notificationData: [],
|
|
8211
|
-
notificationEnabled: !
|
|
8211
|
+
notificationEnabled: !0,
|
|
8212
8212
|
canvasView: "bubble",
|
|
8213
|
-
channels: "
|
|
8213
|
+
channels: "both",
|
|
8214
8214
|
selectedPath: null,
|
|
8215
8215
|
selectedPaths: [],
|
|
8216
8216
|
clipboard: null,
|
|
@@ -16965,7 +16965,7 @@ var Kn = 375, qn = 667, Jn = /* @__PURE__ */ new Date(), Yn = Jn.toLocaleTimeStr
|
|
|
16965
16965
|
transition: "all 0.15s"
|
|
16966
16966
|
}, tr = (0, S.memo)(function({ platform: e, setPlatform: t }) {
|
|
16967
16967
|
let n = P((e) => e.canvasView), r = P((e) => e.setCanvasView), i = P((e) => e.channels);
|
|
16968
|
-
return i === "inapp" ? null : /* @__PURE__ */ (0, F.jsxs)("div", {
|
|
16968
|
+
return i === "inapp" || O.notification?.showPreview === !1 ? null : /* @__PURE__ */ (0, F.jsxs)("div", {
|
|
16969
16969
|
style: {
|
|
16970
16970
|
display: "flex",
|
|
16971
16971
|
flexDirection: "column",
|
|
@@ -17128,7 +17128,7 @@ var rr = /* @__PURE__ */ (0, F.jsxs)("div", {
|
|
|
17128
17128
|
/* @__PURE__ */ (0, F.jsxs)("div", {
|
|
17129
17129
|
className: "canvas-area",
|
|
17130
17130
|
ref: w,
|
|
17131
|
-
children: [b === "notification" ? /* @__PURE__ */ (0, F.jsx)(Qn, { platform: x }) : /* @__PURE__ */ (0, F.jsx)("div", {
|
|
17131
|
+
children: [b === "notification" && O.notification?.showPreview !== !1 ? /* @__PURE__ */ (0, F.jsx)(Qn, { platform: x }) : /* @__PURE__ */ (0, F.jsx)("div", {
|
|
17132
17132
|
style: {
|
|
17133
17133
|
width: 375 * f,
|
|
17134
17134
|
height: 667 * f,
|
|
@@ -22558,7 +22558,9 @@ function os(e, t) {
|
|
|
22558
22558
|
}
|
|
22559
22559
|
var ss = (0, S.memo)(function() {
|
|
22560
22560
|
let e = P((e) => e.selectedPath), t = P((e) => e.body), n = P((e) => e.updateElement), r = P((e) => e.setCanvasView), i = P((e) => e.channels), [a, o] = (0, S.useState)(i === "push" ? "notification" : "tree"), s = i === "push" || i === "both", c = e ? os(t, e) : null, l = (0, S.useCallback)((e) => {
|
|
22561
|
-
o(e)
|
|
22561
|
+
o(e);
|
|
22562
|
+
let t = O.notification?.showPreview !== !1;
|
|
22563
|
+
r(e === "notification" && t ? "notification" : "bubble");
|
|
22562
22564
|
}, [r]), u = (0, S.useCallback)((e) => {
|
|
22563
22565
|
let t = P.getState().selectedPath;
|
|
22564
22566
|
t && n(t, e);
|
|
@@ -22741,7 +22743,7 @@ function fs() {
|
|
|
22741
22743
|
//#endregion
|
|
22742
22744
|
//#region src/lib.tsx
|
|
22743
22745
|
function ps(e, t) {
|
|
22744
|
-
O.appId = t.appId, O.region = t.region, O.token = t.token, O.onSave = t.onSave, O.onChange = t.onChange, O.hideTopBar = t.hideTopBar, O.hideTemplateLibrary = t.hideTemplateLibrary, O.channels = t.channels ?? "
|
|
22746
|
+
O.appId = t.appId, O.region = t.region, O.token = t.token, O.onSave = t.onSave, O.onChange = t.onChange, O.hideTopBar = t.hideTopBar, O.hideTemplateLibrary = t.hideTemplateLibrary, O.channels = t.channels ?? "both", O.notification = t.notification, P.getState().setChannels(O.channels), t.variables && P.getState().setVariables(t.variables), t.hiddenElements && P.getState().setHiddenElements(t.hiddenElements), t.hiddenComponents && P.getState().setHiddenComponents(t.hiddenComponents), t.hideTemplateLibrary && P.getState().setView("editor"), console.log("[BubbleBuilder] mountBubbleBuilder called with:", {
|
|
22745
22747
|
appId: t.appId,
|
|
22746
22748
|
region: t.region,
|
|
22747
22749
|
token: t.token ? "***" + t.token.slice(-4) : void 0,
|