tinacms 2.8.3 → 2.9.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.
package/dist/index.mjs CHANGED
@@ -38882,6 +38882,18 @@ const ToggleInput = ({ disabled, ...props }) => {
38882
38882
  }
38883
38883
  );
38884
38884
  };
38885
+ function MdCheckCircle(props) {
38886
+ return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "fill": "none", "d": "M0 0h24v24H0z" }, "child": [] }, { "tag": "path", "attr": { "d": "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" }, "child": [] }] })(props);
38887
+ }
38888
+ function MdInfo(props) {
38889
+ return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "fill": "none", "d": "M0 0h24v24H0z" }, "child": [] }, { "tag": "path", "attr": { "d": "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z" }, "child": [] }] })(props);
38890
+ }
38891
+ function MdError(props) {
38892
+ return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "fill": "none", "d": "M0 0h24v24H0z" }, "child": [] }, { "tag": "path", "attr": { "d": "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z" }, "child": [] }] })(props);
38893
+ }
38894
+ function MdWarning(props) {
38895
+ return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "fill": "none", "d": "M0 0h24v24H0z" }, "child": [] }, { "tag": "path", "attr": { "d": "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z" }, "child": [] }] })(props);
38896
+ }
38885
38897
  function MdVpnKey(props) {
38886
38898
  return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "fill": "none", "d": "M0 0h24v24H0z" }, "child": [] }, { "tag": "path", "attr": { "d": "M12.65 10A5.99 5.99 0 0 0 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6a5.99 5.99 0 0 0 5.65-4H17v4h4v-4h2v-4H12.65zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z" }, "child": [] }] })(props);
38887
38899
  }
@@ -39282,7 +39294,8 @@ const OverflowMenu$1 = ({ toolbarItems: toolbarItems2, className = "w-full" }) =
39282
39294
  },
39283
39295
  className: classNames(
39284
39296
  toolbarItem.active ? "bg-gray-50 text-blue-500" : "bg-white text-gray-600",
39285
- "hover:bg-gray-50 hover:text-blue-500 cursor-pointer pointer-events-auto px-4 py-2 text-sm w-full flex items-center whitespace-nowrap"
39297
+ "hover:bg-gray-50 hover:text-blue-500 cursor-pointer pointer-events-auto px-4 py-2 text-sm w-full flex items-center whitespace-nowrap",
39298
+ toolbarItem.className ?? ""
39286
39299
  )
39287
39300
  },
39288
39301
  /* @__PURE__ */ React__default.createElement("div", { className: "mr-2 opacity-80" }, toolbarItem.Icon),
@@ -40357,6 +40370,18 @@ const GroupFieldPlugin = {
40357
40370
  name: "group",
40358
40371
  Component: Group
40359
40372
  };
40373
+ const constructUrlWithBasePath = (url, basePath) => {
40374
+ if (!url)
40375
+ return url;
40376
+ if (url.startsWith("http://") || url.startsWith("https://") || url.startsWith("//")) {
40377
+ return url;
40378
+ }
40379
+ if (basePath) {
40380
+ const cleanBasePath = basePath.replace(/^\/+|\/+$/g, "");
40381
+ return `/${cleanBasePath}/${url}`;
40382
+ }
40383
+ return url;
40384
+ };
40360
40385
  const BlockSelectorBig = ({
40361
40386
  templates,
40362
40387
  addItem,
@@ -40556,6 +40581,10 @@ const CardColumns = ({ children, className = "" }) => {
40556
40581
  );
40557
40582
  };
40558
40583
  const BlockCard = ({ close: close2, name, template }) => {
40584
+ const cms = useCMS$1();
40585
+ const basePath = cms.flags.get("tina-basepath");
40586
+ const basePathStr = typeof basePath === "string" ? basePath : void 0;
40587
+ const previewSrc = template.previewSrc ? constructUrlWithBasePath(template.previewSrc, basePathStr) : void 0;
40559
40588
  return /* @__PURE__ */ React.createElement(
40560
40589
  "button",
40561
40590
  {
@@ -40566,17 +40595,17 @@ const BlockCard = ({ close: close2, name, template }) => {
40566
40595
  close2(name, template);
40567
40596
  }
40568
40597
  },
40569
- template.previewSrc && /* @__PURE__ */ React.createElement(
40598
+ previewSrc && /* @__PURE__ */ React.createElement(
40570
40599
  "img",
40571
40600
  {
40572
- src: template.previewSrc,
40601
+ src: previewSrc,
40573
40602
  className: "w-full h-auto transition-all ease-out duration-150 group-hover:opacity-50"
40574
40603
  }
40575
40604
  ),
40576
40605
  /* @__PURE__ */ React.createElement(
40577
40606
  "span",
40578
40607
  {
40579
- className: `relative flex justify-between items-center gap-4 w-full px-4 text-left ${template.previewSrc ? `py-2 border-t border-gray-100 ` : `py-3`}`
40608
+ className: `relative flex justify-between items-center gap-4 w-full px-4 text-left ${previewSrc ? `py-2 border-t border-gray-100 ` : `py-3`}`
40580
40609
  },
40581
40610
  template.label ? template.label : name,
40582
40611
  /* @__PURE__ */ React.createElement(AddIcon, { className: "w-5 h-auto group-hover:text-blue-500 opacity-30 transition-all ease-out duration-150 group-hover:opacity-80" })
@@ -42612,13 +42641,13 @@ const BranchSwitcherLegacy = ({
42612
42641
  {
42613
42642
  target: "_blank",
42614
42643
  className: "transition-all duration-150 ease-out text-blue-600 hover:text-blue-400 hover:underline no-underline",
42615
- href: "https://tina.io/docs/tina-cloud/"
42644
+ href: "https://tina.io/docs/r/what-is-tinacloud/"
42616
42645
  },
42617
42646
  "Learn more about moving to production with TinaCloud."
42618
42647
  )), /* @__PURE__ */ React.createElement("p", null, /* @__PURE__ */ React.createElement(
42619
42648
  Button$1,
42620
42649
  {
42621
- href: "https://tina.io/docs/tina-cloud/",
42650
+ href: "https://tina.io/docs/r/what-is-tinacloud/",
42622
42651
  target: "_blank",
42623
42652
  as: "a"
42624
42653
  },
@@ -42848,13 +42877,13 @@ const EditoralBranchSwitcher = ({
42848
42877
  {
42849
42878
  target: "_blank",
42850
42879
  className: "transition-all duration-150 ease-out text-blue-600 hover:text-blue-400 hover:underline no-underline",
42851
- href: "https://tina.io/docs/tina-cloud/"
42880
+ href: "https://tina.io/docs/r/what-is-tinacloud/"
42852
42881
  },
42853
42882
  "Learn more about moving to production with TinaCloud."
42854
42883
  )), /* @__PURE__ */ React.createElement("p", null, /* @__PURE__ */ React.createElement(
42855
42884
  Button$1,
42856
42885
  {
42857
- href: "https://tina.io/docs/tina-cloud/",
42886
+ href: "https://tina.io/docs/r/what-is-tinacloud/",
42858
42887
  target: "_blank",
42859
42888
  as: "a"
42860
42889
  },
@@ -43771,18 +43800,14 @@ class TinaMediaStore {
43771
43800
  }
43772
43801
  let res;
43773
43802
  if (!this.isLocal) {
43774
- if (await this.isAuthenticated()) {
43775
- res = await this.api.authProvider.fetchWithToken(
43776
- `${this.url}/list/${options.directory || ""}?limit=${options.limit || 20}${options.offset ? `&cursor=${options.offset}` : ""}`
43777
- );
43778
- if (res.status == 401) {
43779
- throw E_UNAUTHORIZED;
43780
- }
43781
- if (res.status == 404) {
43782
- throw E_BAD_ROUTE;
43783
- }
43784
- } else {
43785
- throw new Error("Not authenticated");
43803
+ res = await this.api.authProvider.fetchWithToken(
43804
+ `${this.url}/list/${options.directory || ""}?limit=${options.limit || 20}${options.offset ? `&cursor=${options.offset}` : ""}`
43805
+ );
43806
+ if (res.status == 401) {
43807
+ throw E_UNAUTHORIZED;
43808
+ }
43809
+ if (res.status == 404) {
43810
+ throw E_BAD_ROUTE;
43786
43811
  }
43787
43812
  } else {
43788
43813
  res = await this.fetchFunction(
@@ -43982,18 +44007,17 @@ class MediaListError extends Error {
43982
44007
  const E_UNAUTHORIZED = new MediaListError({
43983
44008
  title: "Unauthorized",
43984
44009
  message: "You don't have access to this resource.",
43985
- docsLink: "https://tina.io/docs/reference/media/overview"
44010
+ docsLink: "https://tina.io/docs/r/repo-based-media"
43986
44011
  });
43987
44012
  const E_BAD_ROUTE = new MediaListError({
43988
44013
  title: "Bad Route",
43989
44014
  message: "The Cloudinary API route is missing or misconfigured.",
43990
- docsLink: "https://tina.io/docs/reference/media/external/authentication/"
44015
+ docsLink: "https://tina.io/docs/r/backend-media-handler/"
43991
44016
  });
43992
44017
  new MediaListError({
43993
44018
  title: "An Error Occurred",
43994
44019
  message: "Something went wrong accessing your media from TinaCloud.",
43995
- docsLink: ""
43996
- // TODO
44020
+ docsLink: "https://tina.io/docs/r/repo-based-media"
43997
44021
  });
43998
44022
  class Flags {
43999
44023
  constructor(events2) {
@@ -44137,7 +44161,7 @@ function createPlaceholder(name, _pr) {
44137
44161
  "a",
44138
44162
  {
44139
44163
  className: "text-blue-500 underline",
44140
- href: "https://tina.io/docs/editing/markdown/#registering-the-field-plugins",
44164
+ href: "https://tina.io/docs/r/custom-fields-react",
44141
44165
  target: "_blank",
44142
44166
  rel: "noreferrer noopener"
44143
44167
  },
@@ -44341,7 +44365,7 @@ function GridMediaItem({ item, active, onClick }) {
44341
44365
  }
44342
44366
  const thumbnail = (item.thumbnails || {})["400x400"];
44343
44367
  const itemIsImage = isImage(thumbnail);
44344
- return /* @__PURE__ */ React__default.createElement("li", { className: "block overflow-hidden flex justify-center shrink-0 w-full transition duration-150 ease-out" }, /* @__PURE__ */ React__default.createElement(
44368
+ return /* @__PURE__ */ React__default.createElement("li", { className: "block flex justify-center shrink-0 w-full transition duration-150 ease-out" }, /* @__PURE__ */ React__default.createElement(
44345
44369
  "button",
44346
44370
  {
44347
44371
  className: cn(
@@ -44359,6 +44383,17 @@ function GridMediaItem({ item, active, onClick }) {
44359
44383
  }
44360
44384
  }
44361
44385
  },
44386
+ /* @__PURE__ */ React__default.createElement(
44387
+ "span",
44388
+ {
44389
+ className: cn(
44390
+ "absolute bottom-0 left-0 w-full text-xs text-white px-2 py-1 truncate z-10",
44391
+ active ? "bg-blue-500/60" : "bg-black/60"
44392
+ ),
44393
+ style: { pointerEvents: "none" }
44394
+ },
44395
+ item.filename
44396
+ ),
44362
44397
  item.new && /* @__PURE__ */ React__default.createElement("span", { className: "absolute top-1 right-1 rounded shadow bg-green-100 border border-green-200 text-[10px] tracking-wide font-bold text-green-600 px-1.5 py-0.5 z-10" }, "NEW"),
44363
44398
  /* @__PURE__ */ React__default.createElement("div", { className: "relative w-full flex items-center justify-center" }, itemIsImage ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
44364
44399
  "img",
@@ -44371,16 +44406,6 @@ function GridMediaItem({ item, active, onClick }) {
44371
44406
  src: thumbnail,
44372
44407
  alt: item.filename
44373
44408
  }
44374
- ), /* @__PURE__ */ React__default.createElement(
44375
- "span",
44376
- {
44377
- className: cn(
44378
- "absolute bottom-0 left-0 w-full text-xs text-white px-2 py-1 truncate z-10",
44379
- active ? "bg-blue-500/60" : "bg-black/60"
44380
- ),
44381
- style: { pointerEvents: "none" }
44382
- },
44383
- item.filename
44384
44409
  )) : /* @__PURE__ */ React__default.createElement("div", { className: "p-4 w-full flex flex-col gap-4 items-center justify-center" }, /* @__PURE__ */ React__default.createElement(FileIcon, { className: "w-[30%] h-auto fill-gray-300" }), /* @__PURE__ */ React__default.createElement("span", { className: "block text-base text-gray-600 w-full break-words truncate" }, item.filename)))
44385
44410
  ));
44386
44411
  }
@@ -44476,7 +44501,7 @@ function MediaManager2() {
44476
44501
  const defaultListError = new MediaListError({
44477
44502
  title: "Error fetching media",
44478
44503
  message: "Something went wrong while requesting the resource.",
44479
- docsLink: "https://tina.io/docs/media/#media-store"
44504
+ docsLink: "https://tina.io/docs/r/repo-based-media"
44480
44505
  });
44481
44506
  function MediaPicker({
44482
44507
  allowDelete,
@@ -44696,7 +44721,7 @@ function MediaPicker({
44696
44721
  {
44697
44722
  title: "No Media Store Configured",
44698
44723
  message: "To use the media manager, you need to configure a Media Store.",
44699
- docsLink: "https://tina.io/docs/reference/media/overview/"
44724
+ docsLink: "https://tina.io/docs/r/repo-based-media"
44700
44725
  }
44701
44726
  );
44702
44727
  }
@@ -44852,8 +44877,8 @@ const ActiveItemPreview = ({
44852
44877
  variant: "primary",
44853
44878
  onClick: () => selectMediaItem(activeItem)
44854
44879
  },
44855
- "Insert",
44856
- /* @__PURE__ */ React__default.createElement(BiArrowToBottom, { className: "ml-1 -mr-0.5 w-6 h-auto opacity-70" })
44880
+ /* @__PURE__ */ React__default.createElement(BiArrowToBottom, { className: "mr-1 -ml-0.5 w-6 h-auto opacity-70" }),
44881
+ "Insert"
44857
44882
  ), allowDelete && /* @__PURE__ */ React__default.createElement(
44858
44883
  Button$1,
44859
44884
  {
@@ -44861,8 +44886,8 @@ const ActiveItemPreview = ({
44861
44886
  size: "medium",
44862
44887
  onClick: deleteMediaItem
44863
44888
  },
44864
- "Delete",
44865
- /* @__PURE__ */ React__default.createElement(TrashIcon, { className: "ml-1 -mr-0.5 w-6 h-auto opacity-70" })
44889
+ /* @__PURE__ */ React__default.createElement(TrashIcon, { className: "mr-1 -ml-0.5 w-6 h-auto opacity-70" }),
44890
+ "Delete"
44866
44891
  ))))
44867
44892
  );
44868
44893
  };
@@ -45184,19 +45209,35 @@ function ImUsers(props) {
45184
45209
  function PiSidebarSimpleLight(props) {
45185
45210
  return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 256 256", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M216,42H40A14,14,0,0,0,26,56V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM38,200V56a2,2,0,0,1,2-2H82V202H40A2,2,0,0,1,38,200Zm180,0a2,2,0,0,1-2,2H94V54H216a2,2,0,0,1,2,2Z" }, "child": [] }] })(props);
45186
45211
  }
45187
- const Alert$1 = ({
45212
+ const Callout = ({
45188
45213
  children,
45189
- alertStyle = "warning",
45214
+ calloutStyle = "warning",
45190
45215
  className = "",
45191
45216
  ...props
45192
45217
  }) => {
45218
+ const commonAlertStyles = "ml-8 text-sm px-4 py-3 rounded-md border";
45193
45219
  const styles = {
45194
- warning: "ml-8 text-sm px-4 py-2 text-amber-700 bg-amber-100 rounded border border-amber-700/20"
45220
+ warning: `text-amber-700 bg-amber-100 border-amber-700/20`,
45221
+ info: `text-blue-600 bg-blue-100/50 border-blue-600/20`,
45222
+ success: `text-green-600 bg-green-100/50 border-green-600/20`,
45223
+ error: `text-red-600 bg-red-100/50 border-red-600/20`
45195
45224
  };
45196
45225
  const icon = {
45197
- warning: /* @__PURE__ */ React.createElement(AiFillWarning, { className: "w-5 h-auto inline-block mr-1 opacity-70 text-amber-600" })
45226
+ warning: /* @__PURE__ */ React.createElement(MdWarning, { className: "w-5 h-auto inline-block mr-1 opacity-70 text-amber-600" }),
45227
+ info: /* @__PURE__ */ React.createElement(MdInfo, { className: "w-5 h-auto inline-block mr-1 opacity-70 text-[#1D4ED8]" }),
45228
+ success: /* @__PURE__ */ React.createElement(MdCheckCircle, { className: "w-5 h-auto inline-block mr-1 opacity-70 text-green-600" }),
45229
+ error: /* @__PURE__ */ React.createElement(MdError, { className: "w-5 h-auto inline-block mr-1 opacity-70 text-red-600" })
45198
45230
  };
45199
- return /* @__PURE__ */ React.createElement("div", { className: cn$1(styles[alertStyle], className), ...props }, icon[alertStyle], " ", children);
45231
+ return /* @__PURE__ */ React.createElement(
45232
+ "div",
45233
+ {
45234
+ className: cn$1(commonAlertStyles, styles[calloutStyle], className),
45235
+ ...props
45236
+ },
45237
+ icon[calloutStyle],
45238
+ " ",
45239
+ children
45240
+ );
45200
45241
  };
45201
45242
  const LocalWarning = () => {
45202
45243
  var _a2, _b;
@@ -45205,7 +45246,7 @@ const LocalWarning = () => {
45205
45246
  if (!isLocalMode) {
45206
45247
  return null;
45207
45248
  }
45208
- return /* @__PURE__ */ React.createElement(Alert$1, { alertStyle: "warning" }, /* @__PURE__ */ React.createElement("a", { href: "https://tina.io/docs/tina-cloud/", target: "_blank" }, "You are in local mode"));
45249
+ return /* @__PURE__ */ React.createElement(Callout, { calloutStyle: "warning", className: "w-fit" }, /* @__PURE__ */ React.createElement("a", { href: "https://tina.io/docs/r/what-is-tinacloud/", target: "_blank" }, "You are in local mode"));
45209
45250
  };
45210
45251
  const BillingWarning = () => {
45211
45252
  var _a2;
@@ -45946,7 +45987,7 @@ function formatDistanceToNow(dirtyDate, options) {
45946
45987
  requiredArgs(1, arguments);
45947
45988
  return formatDistance2(dirtyDate, Date.now(), options);
45948
45989
  }
45949
- const version$1 = "2.8.3";
45990
+ const version$1 = "2.9.1";
45950
45991
  const VersionInfo = () => {
45951
45992
  var _a2, _b, _c, _d, _e, _f;
45952
45993
  const cms = useCMS();
@@ -46171,11 +46212,11 @@ const Nav = ({
46171
46212
  },
46172
46213
  { Site: [] }
46173
46214
  );
46174
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
46215
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: "flex items-baseline" }, /* @__PURE__ */ React.createElement(
46175
46216
  "button",
46176
46217
  {
46177
46218
  className: cn(
46178
- "fixed pointer-events-auto p-4 hover:bg-gray-100 transition-colors duration-150 ease-in-out rounded z-10",
46219
+ "pointer-events-auto p-4 hover:bg-gray-100 transition-colors duration-150 ease-in-out rounded z-10",
46179
46220
  menuIsOpen ? "hidden" : ""
46180
46221
  ),
46181
46222
  onClick: () => {
@@ -46183,7 +46224,7 @@ const Nav = ({
46183
46224
  }
46184
46225
  },
46185
46226
  /* @__PURE__ */ React.createElement(BiMenu, { className: "h-6 w-auto text-gray-600" })
46186
- ), /* @__PURE__ */ React.createElement(
46227
+ )), /* @__PURE__ */ React.createElement(
46187
46228
  "div",
46188
46229
  {
46189
46230
  className: cn(
@@ -46209,7 +46250,7 @@ const Nav = ({
46209
46250
  /* @__PURE__ */ React.createElement("div", { className: "flex flex-col px-6 flex-1 overflow-auto" }, showCollections && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("h4", { className: "flex space-x-1 justify-items-start uppercase font-sans font-bold text-sm mb-3 mt-8 text-gray-700" }, /* @__PURE__ */ React.createElement("span", null, "Collections"), isLocalMode && /* @__PURE__ */ React.createElement("span", { className: "flex items-center" }, /* @__PURE__ */ React.createElement(
46210
46251
  "a",
46211
46252
  {
46212
- href: "https://tina.io/docs/schema/#defining-collections",
46253
+ href: "https://tina.io/docs/r/content-modelling-collections",
46213
46254
  target: "_blank"
46214
46255
  },
46215
46256
  /* @__PURE__ */ React.createElement(FiInfo, null)
@@ -46653,12 +46694,12 @@ const SidebarNoFormsPlaceholder = () => /* @__PURE__ */ React.createElement(
46653
46694
  /* @__PURE__ */ React.createElement("p", { className: "block pt-5" }, /* @__PURE__ */ React.createElement(
46654
46695
  Button$1,
46655
46696
  {
46656
- href: "https://tina.io/docs/contextual-editing/overview",
46697
+ href: "https://tina.io/docs/r/visual-editing-setup",
46657
46698
  target: "_blank",
46658
46699
  as: "a"
46659
46700
  },
46660
46701
  /* @__PURE__ */ React.createElement(Emoji$1, { className: "mr-1.5" }, "📖"),
46661
- " Contextual Editing Docs"
46702
+ " Visual Editing Docs"
46662
46703
  ))
46663
46704
  );
46664
46705
  const Emoji$1 = ({ className = "", ...props }) => /* @__PURE__ */ React.createElement(
@@ -47307,7 +47348,7 @@ class TinaCMS extends CMS {
47307
47348
  name: "Support",
47308
47349
  link: {
47309
47350
  text: "Support",
47310
- href: "https://tina.io/docs/support"
47351
+ href: "https://tina.io/docs/r/support"
47311
47352
  },
47312
47353
  Icon: MdOutlineHelpOutline
47313
47354
  })
@@ -47644,7 +47685,7 @@ function Alerts2({ alerts }) {
47644
47685
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", { className: "fixed bottom-0 left-0 right-0 p-6 flex flex-col items-center z-[999999]" }, alerts.all.filter((alert) => {
47645
47686
  return alert.level !== "error";
47646
47687
  }).map((alert) => {
47647
- return /* @__PURE__ */ React__default.createElement(Alert, { key: alert.id, level: alert.level }, alert.level === "info" && /* @__PURE__ */ React__default.createElement(BiInfoCircle, { className: "w-5 h-auto opacity-70" }), alert.level === "success" && /* @__PURE__ */ React__default.createElement(BiCheckCircle, { className: "w-5 h-auto opacity-70" }), alert.level === "warn" && /* @__PURE__ */ React__default.createElement(BiError, { className: "w-5 h-auto opacity-70" }), /* @__PURE__ */ React__default.createElement("p", { className: "m-0 flex-1 max-w-[680px] text-left" }, parseUrlsInText(alert.message.toString())), /* @__PURE__ */ React__default.createElement(
47688
+ return /* @__PURE__ */ React__default.createElement(Alert, { key: alert.id, level: alert.level }, alert.level === "info" && /* @__PURE__ */ React__default.createElement(MdInfo, { className: "w-5 h-auto opacity-70" }), alert.level === "success" && /* @__PURE__ */ React__default.createElement(MdCheckCircle, { className: "w-5 h-auto opacity-70" }), alert.level === "warn" && /* @__PURE__ */ React__default.createElement(MdWarning, { className: "w-5 h-auto opacity-70" }), /* @__PURE__ */ React__default.createElement("p", { className: "m-0 flex-1 max-w-[680px] text-left" }, parseUrlsInText(alert.message.toString())), /* @__PURE__ */ React__default.createElement(
47648
47689
  CloseAlert,
47649
47690
  {
47650
47691
  onClick: () => {
@@ -47665,7 +47706,7 @@ function Alerts2({ alerts }) {
47665
47706
  alerts.dismiss(alert);
47666
47707
  }
47667
47708
  },
47668
- /* @__PURE__ */ React__default.createElement(BiError, { className: "mr-1 w-6 h-auto fill-current inline-block text-red-600" }),
47709
+ /* @__PURE__ */ React__default.createElement(MdError, { className: "mr-1 w-6 h-auto fill-current inline-block text-red-600" }),
47669
47710
  " ",
47670
47711
  "Error"
47671
47712
  ), /* @__PURE__ */ React__default.createElement(ModalBody, { padded: true }, /* @__PURE__ */ React__default.createElement("div", { className: "tina-prose" }, /* @__PURE__ */ React__default.createElement(AlertMessage, null))), /* @__PURE__ */ React__default.createElement(ModalActions, null, /* @__PURE__ */ React__default.createElement("div", { className: "flex-1" }), /* @__PURE__ */ React__default.createElement(
@@ -47699,7 +47740,7 @@ const Alert = ({
47699
47740
  return /* @__PURE__ */ React__default.createElement(
47700
47741
  "div",
47701
47742
  {
47702
- className: `rounded shadow-lg border-l-[6px] font-normal cursor-pointer pointer-events-all text-sm transition-all duration-100 ease-out mb-4 max-w-full ${colorClasses[level]}}`,
47743
+ className: `rounded shadow-lg font-normal cursor-pointer pointer-events-all text-sm transition-all duration-100 ease-out mb-4 max-w-full ${colorClasses[level]}}`,
47703
47744
  style: {
47704
47745
  animationName: "fly-in-up, fade-in",
47705
47746
  animationTimingFunction: "ease-out",
@@ -47711,7 +47752,7 @@ const Alert = ({
47711
47752
  /* @__PURE__ */ React__default.createElement(
47712
47753
  "div",
47713
47754
  {
47714
- className: `flex items-center gap-1.5 min-w-[350px] rounded-r border p-2 ${borderClasses[level]}`,
47755
+ className: `flex items-center gap-1.5 min-w-[350px] rounded-md border p-2 ${borderClasses[level]}`,
47715
47756
  ...props
47716
47757
  }
47717
47758
  )
@@ -47723,7 +47764,7 @@ const CloseAlert = ({ ...styleProps }) => /* @__PURE__ */ React__default.createE
47723
47764
  className: "border-none bg-transparent p-0 outline-none flex items-center",
47724
47765
  ...styleProps
47725
47766
  },
47726
- /* @__PURE__ */ React__default.createElement(BiX, { className: "w-5 auto flex-grow-0 flex-shrink-0 opacity-50" })
47767
+ /* @__PURE__ */ React__default.createElement(BiX, { className: "w-5 auto flex-grow-0 flex-shrink-0" })
47727
47768
  );
47728
47769
  function CursorPaginator({
47729
47770
  navigateNext,
@@ -63822,7 +63863,9 @@ const CreateBranchModal = ({
63822
63863
  const tinaApi = cms.api.tina;
63823
63864
  const { setCurrentBranch } = useBranchData();
63824
63865
  const [disabled, setDisabled] = React.useState(false);
63825
- const [newBranchName, setNewBranchName] = React.useState("");
63866
+ const [newBranchName, setNewBranchName] = React.useState(
63867
+ `${crudType}-${path3}`
63868
+ );
63826
63869
  const [isExecuting, setIsExecuting] = React.useState(false);
63827
63870
  const [errorMessage, setErrorMessage] = React.useState("");
63828
63871
  const [currentStep, setCurrentStep] = React.useState(0);
@@ -64034,7 +64077,15 @@ const CreateBranchModal = ({
64034
64077
  if (isExecuting) {
64035
64078
  return renderProgressIndicator();
64036
64079
  } else {
64037
- return /* @__PURE__ */ React.createElement("div", { className: "max-w-sm" }, errorMessage && /* @__PURE__ */ React.createElement("div", { className: "flex items-center gap-1 text-red-700 py-2 px-3 mb-4 bg-red-50 border border-red-200 rounded" }, /* @__PURE__ */ React.createElement(BiError, { className: "w-5 h-auto text-red-400 flex-shrink-0" }), /* @__PURE__ */ React.createElement("span", { className: "text-sm" }, /* @__PURE__ */ React.createElement("b", null, "Error:"), " ", errorMessage)), /* @__PURE__ */ React.createElement("p", { className: "text-lg text-gray-700 font-bold mb-2" }, "This content is protected 🚧"), /* @__PURE__ */ React.createElement("p", { className: "text-sm text-gray-700 mb-4 max-w-sm" }, "To make changes, you need to create a copy then get it approved and merged for it to go live."), /* @__PURE__ */ React.createElement(
64080
+ return /* @__PURE__ */ React.createElement("div", { className: "max-w-sm" }, errorMessage && /* @__PURE__ */ React.createElement("div", { className: "flex items-center gap-1 text-red-700 py-2 px-3 mb-4 bg-red-50 border border-red-200 rounded" }, /* @__PURE__ */ React.createElement(BiError, { className: "w-5 h-auto text-red-400 flex-shrink-0" }), /* @__PURE__ */ React.createElement("span", { className: "text-sm" }, /* @__PURE__ */ React.createElement("b", null, "Error:"), " ", errorMessage)), /* @__PURE__ */ React.createElement("p", { className: "text-lg text-gray-700 font-bold mb-2" }, "First, let's create a copy"), /* @__PURE__ */ React.createElement("p", { className: "text-sm text-gray-700 mb-4 max-w-sm" }, "To make changes, you need to create a copy then get it approved and merged for it to go live. Learn more about", " ", /* @__PURE__ */ React.createElement(
64081
+ "a",
64082
+ {
64083
+ className: "underline hover:text-tina-orange",
64084
+ href: "https://tina.io/docs/tinacloud/editorial-workflow",
64085
+ target: "_blank"
64086
+ },
64087
+ "Editorial Workflow"
64088
+ ), "."), /* @__PURE__ */ React.createElement(
64038
64089
  PrefixedTextField,
64039
64090
  {
64040
64091
  placeholder: "e.g. {{PAGE-NAME}}-updates",
@@ -64056,7 +64107,7 @@ const CreateBranchModal = ({
64056
64107
  disabled: newBranchName === "" || disabled,
64057
64108
  onClick: executeEditorialWorkflow
64058
64109
  },
64059
- "Confirm"
64110
+ "Continue"
64060
64111
  ), /* @__PURE__ */ React.createElement(
64061
64112
  OverflowMenu$1,
64062
64113
  {
@@ -119012,7 +119063,7 @@ mutation addPendingDocumentMutation(
119012
119063
  }
119013
119064
  usingProtectedBranch() {
119014
119065
  var _a2;
119015
- return this.usingEditorialWorkflow && ((_a2 = this.protectedBranches) == null ? void 0 : _a2.includes(this.branch));
119066
+ return this.usingEditorialWorkflow && ((_a2 = this.protectedBranches) == null ? void 0 : _a2.includes(decodeURIComponent(this.branch)));
119016
119067
  }
119017
119068
  async createBranch({ baseBranch, branchName }) {
119018
119069
  const url = `${this.contentApiBase}/github/${this.clientId}/create_branch`;
@@ -119921,7 +119972,7 @@ class ErrorBoundary extends React__default.Component {
119921
119972
  {
119922
119973
  className: "text-gray-600",
119923
119974
  style: { textDecoration: "underline" },
119924
- href: "https://tina.io/docs/errors/faq/",
119975
+ href: "https://tina.io/docs/r/FAQ/",
119925
119976
  target: "_blank"
119926
119977
  },
119927
119978
  " ",
@@ -119979,7 +120030,7 @@ const TinaCMSProvider2 = ({
119979
120030
  !schema.config.contentApiUrlOverride
119980
120031
  ) {
119981
120032
  throw new Error(
119982
- "Invalid setup. See https://tina.io/docs/tina-cloud/overview for more information."
120033
+ "Invalid setup. See https://tina.io/docs/r/what-is-tinacloud for more information."
119983
120034
  );
119984
120035
  }
119985
120036
  if (!schema) {
@@ -120313,7 +120364,7 @@ const ErrorDialog = (props) => {
120313
120364
  {
120314
120365
  className: "text-gray-600",
120315
120366
  style: { textDecoration: "underline" },
120316
- href: "https://tina.io/docs/errors/faq/",
120367
+ href: "https://tina.io/docs/r/FAQ/",
120317
120368
  target: "_blank"
120318
120369
  },
120319
120370
  " ",
@@ -120439,7 +120490,7 @@ const PageWrapper = ({
120439
120490
  headerClassName,
120440
120491
  children
120441
120492
  }) => {
120442
- return /* @__PURE__ */ React__default.createElement("div", { className: "relative left-0 w-full h-full bg-gradient-to-b from-gray-50/50 to-gray-50 shadow-2xl overflow-y-auto transition-opacity duration-300 ease-out flex flex-col opacity-100" }, /* @__PURE__ */ React__default.createElement("div", { className: `py-2 px-4 ${headerClassName}` }, /* @__PURE__ */ React__default.createElement(LocalWarning, null), /* @__PURE__ */ React__default.createElement(BillingWarning, null), /* @__PURE__ */ React__default.createElement("div", { className: "flex justify-between items-center" }, /* @__PURE__ */ React__default.createElement(BranchButton, null), /* @__PURE__ */ React__default.createElement(BranchPreviewButton, null))), children);
120493
+ return /* @__PURE__ */ React__default.createElement("div", { className: "relative left-0 w-full h-full bg-gradient-to-b from-gray-50/50 to-gray-50 overflow-y-auto transition-opacity duration-300 ease-out flex flex-col opacity-100" }, /* @__PURE__ */ React__default.createElement("div", { className: `py-2 pl-4 pr-4 w-full ${headerClassName}` }, /* @__PURE__ */ React__default.createElement(LocalWarning, null), /* @__PURE__ */ React__default.createElement(BillingWarning, null), /* @__PURE__ */ React__default.createElement("div", { className: "flex justify-between items-center" }, /* @__PURE__ */ React__default.createElement(BranchButton, null), /* @__PURE__ */ React__default.createElement(BranchPreviewButton, null))), children);
120443
120494
  };
120444
120495
  const PageHeader = ({
120445
120496
  children
@@ -120544,6 +120595,7 @@ const handleNavigate = async (navigate, cms, collection, collectionDefinition, d
120544
120595
  const plugins2 = cms.plugins.all("tina-admin");
120545
120596
  const routeMapping = plugins2.find(({ name }) => name === "route-mapping");
120546
120597
  const tinaPreview = cms.flags.get("tina-preview") || false;
120598
+ const basePath = cms.flags.get("tina-basepath");
120547
120599
  let routeOverride = ((_a2 = collectionDefinition.ui) == null ? void 0 : _a2.router) ? await ((_b = collectionDefinition.ui) == null ? void 0 : _b.router({
120548
120600
  document: document2,
120549
120601
  collection: collectionDefinition
@@ -120552,7 +120604,7 @@ const handleNavigate = async (navigate, cms, collection, collectionDefinition, d
120552
120604
  if (routeOverride.startsWith("/")) {
120553
120605
  routeOverride = routeOverride.slice(1);
120554
120606
  }
120555
- tinaPreview ? navigate(`/~/${routeOverride}`) : window.location.href = routeOverride;
120607
+ tinaPreview ? navigate(`/~${basePath ? `/${basePath}` : ""}/${routeOverride}`) : window.location.href = `${basePath ? `/${basePath}` : ""}/${routeOverride}`;
120556
120608
  return null;
120557
120609
  } else {
120558
120610
  const pathToDoc = document2._sys.breadcrumbs;
@@ -120830,7 +120882,7 @@ const CollectionListPage = () => {
120830
120882
  },
120831
120883
  close: () => setFolderModalOpen(false)
120832
120884
  }
120833
- ), /* @__PURE__ */ React__default.createElement(PageHeader, null, /* @__PURE__ */ React__default.createElement("div", { className: "w-full" }, /* @__PURE__ */ React__default.createElement("h3", { className: "font-sans text-2xl text-gray-700" }, collection.label ? collection.label : collection.name), /* @__PURE__ */ React__default.createElement("div", { className: "flex flex-col lg:flex-row justify-between lg:items-end pt-2" }, /* @__PURE__ */ React__default.createElement("div", { className: "flex flex-col md:flex-row gap-2 md:gap-4 items-start" }, (fields == null ? void 0 : fields.length) > 0 && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, !search && /* @__PURE__ */ React__default.createElement("div", { className: "flex flex-col gap-2 items-start w-full md:w-auto" }, /* @__PURE__ */ React__default.createElement(
120885
+ ), /* @__PURE__ */ React__default.createElement(PageHeader, null, /* @__PURE__ */ React__default.createElement("div", { className: "w-full" }, /* @__PURE__ */ React__default.createElement("h3", { className: "font-sans text-2xl text-tina-orange" }, collection.label ? collection.label : collection.name), /* @__PURE__ */ React__default.createElement("div", { className: "flex flex-col lg:flex-row justify-between lg:items-end pt-2" }, /* @__PURE__ */ React__default.createElement("div", { className: "flex flex-col md:flex-row gap-2 md:gap-4 items-baseline" }, (fields == null ? void 0 : fields.length) > 0 && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, !search && /* @__PURE__ */ React__default.createElement("div", { className: "flex flex-col gap-2 items-start w-full md:w-auto" }, /* @__PURE__ */ React__default.createElement(
120834
120886
  "label",
120835
120887
  {
120836
120888
  htmlFor: "sort",
@@ -120885,7 +120937,7 @@ const CollectionListPage = () => {
120885
120937
  }
120886
120938
  }
120887
120939
  }
120888
- ))), /* @__PURE__ */ React__default.createElement("div", { className: "flex flex-1 flex-col gap-2 items-start w-full" }, searchEnabled ? /* @__PURE__ */ React__default.createElement(
120940
+ ))), /* @__PURE__ */ React__default.createElement("div", { className: "flex flex-1 flex-row gap-2 items-end w-full" }, searchEnabled ? /* @__PURE__ */ React__default.createElement(
120889
120941
  SearchInput,
120890
120942
  {
120891
120943
  loading: _loading,
@@ -120894,16 +120946,15 @@ const CollectionListPage = () => {
120894
120946
  searchInput,
120895
120947
  setSearchInput
120896
120948
  }
120897
- ) : /* @__PURE__ */ React__default.createElement("div", { className: "flex flex-col gap-2 items-start w-full md:w-auto" }, /* @__PURE__ */ React__default.createElement("div", { className: "h-4" }), /* @__PURE__ */ React__default.createElement(
120898
- Message,
120949
+ ) : /* @__PURE__ */ React__default.createElement("div", { className: "flex flex-col gap-2 items-start w-full md:w-auto" }, /* @__PURE__ */ React__default.createElement("div", { className: "block font-sans text-xs font-semibold opacity-0" }, " "), /* @__PURE__ */ React__default.createElement(Callout, { calloutStyle: "info" }, " ", "You have not configured search.", " ", /* @__PURE__ */ React__default.createElement(
120950
+ "a",
120899
120951
  {
120900
- link: "https://tina.io/docs/reference/search/overview",
120901
- linkLabel: "Read The Docs",
120902
- type: "info",
120903
- size: "small"
120952
+ href: "https://tina.io/docs/r/content-search",
120953
+ target: "_blank",
120954
+ className: "underline hover:text-blue-700 transition-all duration-150"
120904
120955
  },
120905
- "Search not configured."
120906
- )))), allowCreate && /* @__PURE__ */ React__default.createElement("div", { className: "flex flex-col md:flex-row items-start md:items-end gap-2 md:gap-0 pt-4 lg:pt-0" }, allowCreateNestedFolder && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(TooltipProvider, null, /* @__PURE__ */ React__default.createElement(Tooltip, null, /* @__PURE__ */ React__default.createElement(TooltipTrigger, { asChild: true }, /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement(
120956
+ "Read the docs"
120957
+ ))))), allowCreate && /* @__PURE__ */ React__default.createElement("div", { className: "flex flex-col md:flex-row items-start md:items-end gap-2 md:gap-0 pt-4 lg:pt-0" }, allowCreateNestedFolder && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(TooltipProvider, null, /* @__PURE__ */ React__default.createElement(Tooltip, null, /* @__PURE__ */ React__default.createElement(TooltipTrigger, { asChild: true }, /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement(
120907
120958
  Link$1,
120908
120959
  {
120909
120960
  onMouseDown: (evt) => {
@@ -120935,15 +120986,15 @@ const CollectionListPage = () => {
120935
120986
  side: "top",
120936
120987
  align: "center"
120937
120988
  },
120938
- /* @__PURE__ */ React__default.createElement("p", null, "Folders cant be manually added when using templates.", /* @__PURE__ */ React__default.createElement("br", null), "See the docs -", " ", /* @__PURE__ */ React__default.createElement(
120989
+ /* @__PURE__ */ React__default.createElement("p", null, "Folders can't be manually added when using templates.", /* @__PURE__ */ React__default.createElement("br", null), "See the docs -", " ", /* @__PURE__ */ React__default.createElement(
120939
120990
  "a",
120940
120991
  {
120941
- href: "https://tina.io/docs/reference/templates",
120992
+ href: "https://tina.io/docs/r/content-modelling-templates",
120942
120993
  target: "_blank",
120943
120994
  rel: "noopener noreferrer",
120944
120995
  className: "underline text-blue-500"
120945
120996
  },
120946
- "https://tina.io/docs/reference/templates"
120997
+ "https://tina.io/docs/r/content-modelling-templates"
120947
120998
  ))
120948
120999
  )))), !collection.templates && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
120949
121000
  Link$1,
@@ -120970,7 +121021,7 @@ const CollectionListPage = () => {
120970
121021
  templates: collection.templates,
120971
121022
  folder
120972
121023
  }
120973
- ))))), /* @__PURE__ */ React__default.createElement(PageBody, null, /* @__PURE__ */ React__default.createElement("div", { className: "w-full mx-auto max-w-screen-xl" }, sortField && !sortField.required && /* @__PURE__ */ React__default.createElement("p", { className: "mb-4 text-gray-500" }, /* @__PURE__ */ React__default.createElement("em", null, "Sorting on a non-required field. Some documents may be excluded (if they don't have a value for", " ", sortName, ")")), /* @__PURE__ */ React__default.createElement("div", { className: "w-full overflow-x-auto" }, (folder.name && !search || documents.length > 0) && /* @__PURE__ */ React__default.createElement("table", { className: "table-auto shadow bg-white border-b border-gray-200 w-full max-w-full rounded-lg" }, /* @__PURE__ */ React__default.createElement("tbody", { className: "divide-y divide-gray-150" }, folder.name && !search ? /* @__PURE__ */ React__default.createElement("tr", null, /* @__PURE__ */ React__default.createElement("td", { colSpan: 5 }, /* @__PURE__ */ React__default.createElement(
121024
+ ))))), /* @__PURE__ */ React__default.createElement(PageBody, null, /* @__PURE__ */ React__default.createElement("div", { className: "w-full mx-auto max-w-screen-xl" }, sortField && !sortField.required && /* @__PURE__ */ React__default.createElement("p", { className: "mb-4 text-gray-500" }, /* @__PURE__ */ React__default.createElement("em", null, "Sorting on a non-required field. Some documents may be excluded (if they don't have a value for", " ", sortName, ")")), /* @__PURE__ */ React__default.createElement("div", { className: "w-full overflow-x-auto shadow-md rounded-md" }, (folder.name && !search || documents.length > 0) && /* @__PURE__ */ React__default.createElement("table", { className: "table-auto shadow bg-white border-b border-gray-200 w-full max-w-full rounded-lg" }, /* @__PURE__ */ React__default.createElement("tbody", null, folder.name && !search ? /* @__PURE__ */ React__default.createElement("tr", null, /* @__PURE__ */ React__default.createElement("td", { colSpan: 5 }, /* @__PURE__ */ React__default.createElement(
120974
121025
  Breadcrumb,
120975
121026
  {
120976
121027
  folder,
@@ -121015,6 +121066,7 @@ const CollectionListPage = () => {
121015
121066
  return /* @__PURE__ */ React__default.createElement(
121016
121067
  "tr",
121017
121068
  {
121069
+ className: "hover:bg-gray-100 transition-colors duration-300",
121018
121070
  key: `document-${document2.node._sys.relativePath}`
121019
121071
  },
121020
121072
  /* @__PURE__ */ React__default.createElement(
@@ -121089,15 +121141,9 @@ const CollectionListPage = () => {
121089
121141
  }
121090
121142
  },
121091
121143
  allowDelete && {
121092
- name: "delete",
121093
- label: "Delete",
121094
- Icon: /* @__PURE__ */ React__default.createElement(
121095
- BiTrash,
121096
- {
121097
- size: "1.3rem",
121098
- className: "text-red-500"
121099
- }
121100
- ),
121144
+ name: "rename",
121145
+ label: "Rename",
121146
+ Icon: /* @__PURE__ */ React__default.createElement(BiRename, { size: "1.3rem" }),
121101
121147
  onMouseDown: () => {
121102
121148
  setVars((old) => ({
121103
121149
  ...old,
@@ -121110,19 +121156,20 @@ const CollectionListPage = () => {
121110
121156
  ) + document2.node._sys.extension,
121111
121157
  newRelativePath: ""
121112
121158
  }));
121113
- setDeleteModalOpen(true);
121159
+ setRenameModalOpen(true);
121114
121160
  }
121115
121161
  },
121116
121162
  allowDelete && {
121117
- name: "rename",
121118
- label: "Rename",
121163
+ name: "delete",
121164
+ label: "Delete",
121119
121165
  Icon: /* @__PURE__ */ React__default.createElement(
121120
- BiRename,
121166
+ BiTrash,
121121
121167
  {
121122
121168
  size: "1.3rem",
121123
121169
  className: "text-red-500"
121124
121170
  }
121125
121171
  ),
121172
+ className: "text-red-500",
121126
121173
  onMouseDown: () => {
121127
121174
  setVars((old) => ({
121128
121175
  ...old,
@@ -121135,7 +121182,7 @@ const CollectionListPage = () => {
121135
121182
  ) + document2.node._sys.extension,
121136
121183
  newRelativePath: ""
121137
121184
  }));
121138
- setRenameModalOpen(true);
121185
+ setDeleteModalOpen(true);
121139
121186
  }
121140
121187
  }
121141
121188
  ].filter(Boolean)
@@ -122094,7 +122141,7 @@ const ScreenPage = () => {
122094
122141
  const selectedScreen = screens.find(
122095
122142
  ({ name }) => slugify(name) === screenName
122096
122143
  );
122097
- return /* @__PURE__ */ React__default.createElement("div", { className: "relative w-full h-full flex flex-col items-stretch justify-between" }, /* @__PURE__ */ React__default.createElement("div", { className: "pt-2 px-6 bg-white" }, /* @__PURE__ */ React__default.createElement(LocalWarning, null), /* @__PURE__ */ React__default.createElement(BillingWarning, null)), /* @__PURE__ */ React__default.createElement(
122144
+ return /* @__PURE__ */ React__default.createElement("div", { className: "relative w-full h-full flex flex-col items-stretch justify-between" }, /* @__PURE__ */ React__default.createElement("div", { className: "py-2 px-6 w-fit " }, /* @__PURE__ */ React__default.createElement(LocalWarning, null), /* @__PURE__ */ React__default.createElement(BillingWarning, null)), /* @__PURE__ */ React__default.createElement(
122098
122145
  "div",
122099
122146
  {
122100
122147
  className: `xl:hidden pl-6 py-5 border-b border-gray-200 bg-white`