@bettercms-ai/next 0.30.0 → 0.31.0

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.js CHANGED
@@ -556,6 +556,13 @@ async function BcmsDraftMarker() {
556
556
  });
557
557
  }
558
558
 
559
+ // src/embed-scripts.ts
560
+ import { createElement as createElement2 } from "react";
561
+ import { X_WIDGET_SCRIPT } from "@bettercms-ai/richtext";
562
+ function BcmsEmbedScripts({ xScript }) {
563
+ return xScript ? createElement2("script", { async: true, src: X_WIDGET_SCRIPT, charSet: "utf-8" }) : null;
564
+ }
565
+
559
566
  // src/draft-route.ts
560
567
  import { previewTokenValid, safeRedirectPath } from "@bettercms-ai/sdk/draft";
561
568
  var PREVIEW_TOKEN_COOKIE = "bcms-preview-token";
@@ -858,6 +865,7 @@ function createRevalidateRoute(config = {}) {
858
865
  export {
859
866
  BcmsButton,
860
867
  BcmsDraftMarker,
868
+ BcmsEmbedScripts,
861
869
  BcmsField,
862
870
  BcmsImage,
863
871
  BetterCMSError,