hyperframes 0.8.29 → 0.8.30

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.
@@ -5,7 +5,7 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
6
6
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
7
7
  <title>HyperFrames Studio</title>
8
- <script type="module" crossorigin src="/assets/index-CAyl2GL2.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-hQAWl6re.js"></script>
9
9
  <link rel="stylesheet" crossorigin href="/assets/index-DnRfAiK2.css">
10
10
  </head>
11
11
  <body>
@@ -15907,10 +15907,10 @@ function patchInlineStyle(html2, elementId2, prop, value) {
15907
15907
  }
15908
15908
  function patchInlineStyleInTag(html2, tag, prop, value) {
15909
15909
  if (!tag) return html2;
15910
- const styleMatch = /\bstyle=(["'])([\s\S]*?)\1/.exec(tag);
15910
+ const styleMatch = /\bstyle=(")([^"]*)"|\bstyle=(')([^']*)'/.exec(tag);
15911
15911
  if (styleMatch) {
15912
- const existingStyle = styleMatch[2];
15913
- const quote = styleMatch[1];
15912
+ const existingStyle = styleMatch[2] ?? styleMatch[4];
15913
+ const quote = styleMatch[1] ?? styleMatch[3];
15914
15914
  const props = /* @__PURE__ */ new Map();
15915
15915
  for (const part of splitInlineStyleDeclarations(existingStyle)) {
15916
15916
  const colon = part.indexOf(":");
@@ -15929,8 +15929,8 @@ function patchInlineStyleInTag(html2, tag, prop, value) {
15929
15929
  return html2.replace(tag, newTag);
15930
15930
  } else {
15931
15931
  if (value === null) return html2;
15932
- const selfClosing = /\s*\/$/.test(tag);
15933
- const base2 = selfClosing ? tag.replace(/\s*\/$/, "") : tag;
15932
+ const selfClosing = tag.endsWith("/");
15933
+ const base2 = selfClosing ? tag.slice(0, -1).trimEnd() : tag;
15934
15934
  const newTag = `${base2} style="${prop}: ${escapeStyleAttributeValue(value, '"')}"${selfClosing ? " /" : ""}`;
15935
15935
  return html2.replace(tag, newTag);
15936
15936
  }
@@ -86235,7 +86235,7 @@ function DesignPanelPromoteProvider({
86235
86235
 
86236
86236
  // src/components/editor/colorGradingScopePatch.ts
86237
86237
  var MEDIA_TAG_RE = /<\s*(video|img)\b(?:[^>"']|"[^"]*"|'[^']*')*>/gi;
86238
- var COLOR_GRADING_ATTR_RE = /\sdata-color-grading=(["'])([\s\S]*?)\1/i;
86238
+ var COLOR_GRADING_ATTR_RE = /\sdata-color-grading=(?:"[^"]*"|'[^']*')/i;
86239
86239
  var IGNORED_HTML_RANGE_RE = /<!--[\s\S]*?-->|<(script|style)\b[\s\S]*?<\/\1\s*>/gi;
86240
86240
  function collectIgnoredRanges(html2) {
86241
86241
  const ranges = [];
@@ -90193,11 +90193,11 @@ function parseStyleString(style) {
90193
90193
  function mergeStyleIntoTag(tag, newStyles) {
90194
90194
  if (!newStyles.trim()) return tag;
90195
90195
  const incoming = parseStyleString(newStyles);
90196
- const styleAttrRe = /style=(["'])([\s\S]*?)\1/;
90196
+ const styleAttrRe = /style=(")([^"]*)"|style=(')([^']*)'/;
90197
90197
  const match = tag.match(styleAttrRe);
90198
90198
  if (match) {
90199
- const quote = match[1];
90200
- const existing = parseStyleString(match[2]);
90199
+ const quote = match[1] ?? match[3];
90200
+ const existing = parseStyleString(match[2] ?? match[4]);
90201
90201
  const merged = { ...existing, ...incoming };
90202
90202
  const serialized2 = Object.entries(merged).map(([k, v]) => `${k}: ${v}`).join("; ");
90203
90203
  return tag.replace(styleAttrRe, `style=${quote}${serialized2}${quote}`);