@gatewaze/admin-embed 0.1.0 → 0.1.1

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,6 +1,6 @@
1
1
  import { c as e, t } from "./react-DB2tPNit.js";
2
2
  import { d as n } from "./shim-BCerG8nb.js";
3
- import { t as r } from "./_virtual_gatewaze-modules-BeloWlOa.js";
3
+ import { t as r } from "./_virtual_gatewaze-modules-JoNAqVD8.js";
4
4
  import { t as i } from "./jsx-runtime-CjozyJt-.js";
5
5
  import { D as a, E as o, O as s, f as c, r as l } from "./ui-DRIo9Krs.js";
6
6
  import { n as u } from "./context-jzuubYRz.js";
@@ -11246,16 +11246,13 @@ function Rr(e, t) {
11246
11246
  }
11247
11247
  var zr = (0, it.createUsePuck)();
11248
11248
  function Br() {
11249
- let e = zr((e) => e.selectedItem?.props?.id ?? null), t = zr((e) => e.dispatch), n = (0, D.useRef)(null);
11250
- return (0, D.useEffect)(() => {
11251
- e && e !== n.current && t({
11249
+ let e = zr((e) => e.selectedItem?.props?.id ?? null), t = zr((e) => e.appState.ui.leftSideBarVisible), n = zr((e) => e.dispatch), r = (0, D.useRef)(null), i = (0, D.useRef)(t);
11250
+ return i.current = t, (0, D.useEffect)(() => {
11251
+ e && e !== r.current && i.current && n({
11252
11252
  type: "setUi",
11253
- ui: {
11254
- plugin: { current: "fields" },
11255
- leftSideBarVisible: !0
11256
- }
11257
- }), n.current = e;
11258
- }, [e, t]), null;
11253
+ ui: { plugin: { current: "fields" } }
11254
+ }), r.current = e;
11255
+ }, [e, n]), null;
11259
11256
  }
11260
11257
  function Vr() {
11261
11258
  let e = zr((e) => e.appState.data), t = zr((e) => e.dispatch), { blocks: n } = _r();
@@ -1,7 +1,7 @@
1
1
  import { c as e, n as t, t as n } from "./react-DB2tPNit.js";
2
2
  import { t as r } from "./jsx-runtime-CjozyJt-.js";
3
3
  import { n as i, t as a } from "./brand-DklYwIeA.js";
4
- //#region \0stub:/Users/dan/Git/gatewaze/gw-embed-build/packages/admin/src/hooks/useAuth
4
+ //#region \0stub:/home/runner/work/gatewaze/gatewaze/packages/admin/src/hooks/useAuth
5
5
  var o = /* @__PURE__ */ t(((e, t) => {
6
6
  t.exports = {};
7
7
  })), s = a(), c = o(), l = /* @__PURE__ */ e(n()), u = i(), d = r();
@@ -2,7 +2,7 @@ import { c as e, n as t, t as n } from "./react-DB2tPNit.js";
2
2
  import { t as r } from "./jsx-runtime-CjozyJt-.js";
3
3
  import { t as i } from "./edition-slug-CARO24Bs.js";
4
4
  import { n as a, r as o } from "./brand-DklYwIeA.js";
5
- import { t as s } from "./NewsletterSignup-DRVZIpOs.js";
5
+ import { t as s } from "./NewsletterSignup-6cUEwhXn.js";
6
6
  //#region \0stub:next/navigation
7
7
  var c = /* @__PURE__ */ t(((e, t) => {
8
8
  t.exports = {};
@@ -2,7 +2,7 @@ import { c as e, t } from "./react-DB2tPNit.js";
2
2
  import { d as n } from "./shim-BCerG8nb.js";
3
3
  import { t as r } from "./jsx-runtime-CjozyJt-.js";
4
4
  import { E as i, d as a, f as o, l as s, n as c, u as l } from "./ui-DRIo9Krs.js";
5
- import { n as u, t as d } from "./NewsletterCanvasEditor--B06apn3.js";
5
+ import { n as u, t as d } from "./NewsletterCanvasEditor-X6FmNxZS.js";
6
6
  import { n as f, t as ee } from "./export-edition-html-C_hdXQu5.js";
7
7
  import { a as te, s as ne } from "./hooks-C377EXJG.js";
8
8
  import { n as p } from "./lib-CylJmhlJ.js";
@@ -9,7 +9,7 @@ var i = {
9
9
  visibility: "public",
10
10
  name: "Newsletters",
11
11
  description: "Create, edit, and distribute newsletters with edition management and subscriber tracking",
12
- version: "1.0.1",
12
+ version: "1.0.2",
13
13
  features: [
14
14
  "newsletters",
15
15
  "newsletters.editor",
@@ -133,25 +133,25 @@ var i = {
133
133
  },
134
134
  {
135
135
  path: "newsletters/:slug/editions/:id",
136
- component: () => import("./_id_-CzScE4Qn.js"),
136
+ component: () => import("./_id_-CRhdYmlR.js"),
137
137
  requiredFeature: "newsletters",
138
138
  guard: "none"
139
139
  },
140
140
  {
141
141
  path: "newsletters/:slug/editions/:id/:tab",
142
- component: () => import("./_id_-CzScE4Qn.js"),
142
+ component: () => import("./_id_-CRhdYmlR.js"),
143
143
  requiredFeature: "newsletters",
144
144
  guard: "none"
145
145
  },
146
146
  {
147
147
  path: "newsletters/editor/:id",
148
- component: () => import("./_id_-CzScE4Qn.js"),
148
+ component: () => import("./_id_-CRhdYmlR.js"),
149
149
  requiredFeature: "newsletters",
150
150
  guard: "none"
151
151
  },
152
152
  {
153
153
  path: "newsletters/editor/:id/:tab",
154
- component: () => import("./_id_-CzScE4Qn.js"),
154
+ component: () => import("./_id_-CRhdYmlR.js"),
155
155
  requiredFeature: "newsletters",
156
156
  guard: "none"
157
157
  },
@@ -227,7 +227,7 @@ var i = {
227
227
  portalRoutes: [
228
228
  {
229
229
  path: "/newsletters",
230
- component: () => import("./pages-Ersfxcz7.js")
230
+ component: () => import("./pages-DHWaLn5F.js")
231
231
  },
232
232
  {
233
233
  path: "/newsletters/:collection/:edition",
@@ -235,7 +235,7 @@ var i = {
235
235
  },
236
236
  {
237
237
  path: "/newsletters/:collection",
238
- component: () => import("./_collection_-Qz4k_Qjl.js")
238
+ component: () => import("./_collection_-BP4HU4m8.js")
239
239
  }
240
240
  ],
241
241
  publicApiScopes: [{
@@ -493,7 +493,7 @@ var i = {
493
493
  ],
494
494
  adminRoutes: [{
495
495
  path: "inbox",
496
- component: () => import("./InboxPage-C8ivCKdx.js"),
496
+ component: () => import("./InboxPage-CPtDAUcc.js"),
497
497
  requiredFeature: "content-platform.inbox",
498
498
  guard: "none"
499
499
  }, {
@@ -889,13 +889,13 @@ var i = {
889
889
  },
890
890
  {
891
891
  path: "broadcasts/:id",
892
- component: () => import("./detail-uFBxRbLF.js"),
892
+ component: () => import("./detail-DrLMR38Z.js"),
893
893
  requiredFeature: "broadcasts",
894
894
  guard: "none"
895
895
  },
896
896
  {
897
897
  path: "broadcasts/:id/:tab",
898
- component: () => import("./detail-uFBxRbLF.js"),
898
+ component: () => import("./detail-DrLMR38Z.js"),
899
899
  requiredFeature: "broadcasts",
900
900
  guard: "none"
901
901
  }
@@ -1,7 +1,7 @@
1
1
  import { c as e, n as t, t as n } from "./react-DB2tPNit.js";
2
2
  import { t as r } from "./react-dom-giQNVXng.js";
3
3
  import { d as i, l as a, u as o } from "./shim-BCerG8nb.js";
4
- import { t as s } from "./_virtual_gatewaze-modules-BeloWlOa.js";
4
+ import { t as s } from "./_virtual_gatewaze-modules-JoNAqVD8.js";
5
5
  import { t as c } from "./jsx-runtime-CjozyJt-.js";
6
6
  import { t as l } from "./createSafeContext-P1pK0sAN.js";
7
7
  import { F as u, I as d, M as f, N as p, P as m, R as h, i as g, z as _ } from "./ui-DRIo9Krs.js";