@amplifyup/sdk 0.1.71 → 0.1.73

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/react.mjs CHANGED
@@ -4886,6 +4886,9 @@ var lastRichTextRequestAt = 0;
4886
4886
  function requestCanvasRichTextEdit(opts) {
4887
4887
  if (typeof window === "undefined" || window.parent === window) return;
4888
4888
  if (!opts.name) return;
4889
+ if (opts.el.classList.contains("au-rte-active") || opts.el.querySelector(".ProseMirror")) {
4890
+ return;
4891
+ }
4889
4892
  const now = Date.now();
4890
4893
  if (now - lastRichTextRequestAt < 400) return;
4891
4894
  lastRichTextRequestAt = now;
@@ -5030,7 +5033,7 @@ function ComposerInlineField({
5030
5033
  style: {
5031
5034
  cursor: "text",
5032
5035
  outline: "1px dashed color-mix(in srgb, currentColor 40%, transparent)",
5033
- outlineOffset: "2px",
5036
+ outlineOffset: "6px",
5034
5037
  minWidth: "1ch",
5035
5038
  minHeight: "1em",
5036
5039
  // Do not force `inline` — that overrides Tailwind `block` and parks
@@ -5087,7 +5090,7 @@ function ComposerInlineHtml({
5087
5090
  style: {
5088
5091
  cursor: "text",
5089
5092
  outline: "1px dashed color-mix(in srgb, currentColor 40%, transparent)",
5090
- outlineOffset: "2px"
5093
+ outlineOffset: "6px"
5091
5094
  }
5092
5095
  });
5093
5096
  }