@appsurify-testmap/rrweb 3.1.1-alpha.2 → 3.1.1-alpha.3

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/rrweb.cjs CHANGED
@@ -939,7 +939,14 @@ const U$1 = {
939
939
  source: "dom-dsl"
940
940
  };
941
941
  function P$1(r2) {
942
- return !!(/^[a-z]+-\d+$/i.test(r2) || /^[a-z]+(-[a-z]+)+-\d+$/i.test(r2) || /^[a-z]+(_[a-z]+)*_\d+$/i.test(r2) || /^\d+$/.test(r2) || /^:[a-z0-9]+:$/i.test(r2) || /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i.test(r2) || /^[a-z]{1,3}[A-Za-z0-9]{8,}$/.test(r2) && (/\d/.test(r2) || /[A-Z]/.test(r2)) || /^radix-/.test(r2) || /^mui-\d+$/.test(r2));
942
+ if (/^[a-z]+-\d+$/i.test(r2) || /^[a-z]+(-[a-z]+)+-\d+$/i.test(r2) || /^[a-z]+(_[a-z]+)*_\d+$/i.test(r2) || /^\d+$/.test(r2) || /^:[a-z0-9]+:$/i.test(r2) || /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i.test(r2))
943
+ return true;
944
+ if (/^[a-z]{1,3}[A-Za-z0-9]{8,}$/.test(r2)) {
945
+ const t2 = /\d/.test(r2), e2 = /[A-Z]/.test(r2), s2 = r2.length >= 20;
946
+ if (t2 && e2 || s2)
947
+ return true;
948
+ }
949
+ return !!(/^radix-/.test(r2) || /^mui-\d+$/.test(r2));
943
950
  }
944
951
  const Q$1 = /* @__PURE__ */ new Set([
945
952
  "aria-labelledby",
@@ -1136,6 +1143,11 @@ const At$1 = [
1136
1143
  /^(rtl|ltr):/,
1137
1144
  // === FIX 4: Group and peer variants ===
1138
1145
  /^(group|peer)(-hover|-focus|-active)?:/,
1146
+ // === Arbitrary pseudo-class/modifier variants (catch-all) ===
1147
+ // Matches any lowercase/hyphenated prefix followed by colon
1148
+ // e.g., file:bg-transparent, placeholder:text-gray, invalid:border-red, accept:text-primary
1149
+ // Must come AFTER semantic pattern checks to avoid false positives
1150
+ /^[a-z][a-z-]*:/,
1139
1151
  // === FIX 4: Tailwind utilities with fraction values ===
1140
1152
  /\/([\d.]+|full|auto|screen)$/,
1141
1153
  // /50, /100, /full, /auto, /screen
@@ -13331,7 +13343,14 @@ const U = {
13331
13343
  source: "dom-dsl"
13332
13344
  };
13333
13345
  function P(r2) {
13334
- return !!(/^[a-z]+-\d+$/i.test(r2) || /^[a-z]+(-[a-z]+)+-\d+$/i.test(r2) || /^[a-z]+(_[a-z]+)*_\d+$/i.test(r2) || /^\d+$/.test(r2) || /^:[a-z0-9]+:$/i.test(r2) || /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i.test(r2) || /^[a-z]{1,3}[A-Za-z0-9]{8,}$/.test(r2) && (/\d/.test(r2) || /[A-Z]/.test(r2)) || /^radix-/.test(r2) || /^mui-\d+$/.test(r2));
13346
+ if (/^[a-z]+-\d+$/i.test(r2) || /^[a-z]+(-[a-z]+)+-\d+$/i.test(r2) || /^[a-z]+(_[a-z]+)*_\d+$/i.test(r2) || /^\d+$/.test(r2) || /^:[a-z0-9]+:$/i.test(r2) || /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i.test(r2))
13347
+ return true;
13348
+ if (/^[a-z]{1,3}[A-Za-z0-9]{8,}$/.test(r2)) {
13349
+ const t2 = /\d/.test(r2), e2 = /[A-Z]/.test(r2), s2 = r2.length >= 20;
13350
+ if (t2 && e2 || s2)
13351
+ return true;
13352
+ }
13353
+ return !!(/^radix-/.test(r2) || /^mui-\d+$/.test(r2));
13335
13354
  }
13336
13355
  const Q = /* @__PURE__ */ new Set([
13337
13356
  "aria-labelledby",
@@ -13528,6 +13547,11 @@ const At = [
13528
13547
  /^(rtl|ltr):/,
13529
13548
  // === FIX 4: Group and peer variants ===
13530
13549
  /^(group|peer)(-hover|-focus|-active)?:/,
13550
+ // === Arbitrary pseudo-class/modifier variants (catch-all) ===
13551
+ // Matches any lowercase/hyphenated prefix followed by colon
13552
+ // e.g., file:bg-transparent, placeholder:text-gray, invalid:border-red, accept:text-primary
13553
+ // Must come AFTER semantic pattern checks to avoid false positives
13554
+ /^[a-z][a-z-]*:/,
13531
13555
  // === FIX 4: Tailwind utilities with fraction values ===
13532
13556
  /\/([\d.]+|full|auto|screen)$/,
13533
13557
  // /50, /100, /full, /auto, /screen
@@ -18001,7 +18025,7 @@ class ProcessedNodeManager {
18001
18025
  destroy() {
18002
18026
  }
18003
18027
  }
18004
- const version$1 = "3.1.1-alpha.2";
18028
+ const version$1 = "3.1.1-alpha.3";
18005
18029
  let wrappedEmit;
18006
18030
  let takeFullSnapshot$1;
18007
18031
  let canvasManager;
@@ -20332,10 +20356,8 @@ class Replayer {
20332
20356
  this.wrapper.appendChild(this.mouseTail);
20333
20357
  }
20334
20358
  this.iframe = document.createElement("iframe");
20335
- const attributes = ["allow-same-origin"];
20336
- if (this.config.UNSAFE_replayCanvas) {
20337
- attributes.push("allow-scripts");
20338
- }
20359
+ const attributes = ["allow-same-origin", "allow-scripts"];
20360
+ if (this.config.UNSAFE_replayCanvas) ;
20339
20361
  this.iframe.style.display = "none";
20340
20362
  this.iframe.setAttribute("sandbox", attributes.join(" "));
20341
20363
  this.disableInteract();
@@ -21531,7 +21553,7 @@ class Replayer {
21531
21553
  this.config.logger.log(REPLAY_CONSOLE_PREFIX, ...args);
21532
21554
  }
21533
21555
  }
21534
- const version = "3.1.1-alpha.2";
21556
+ const version = "3.1.1-alpha.3";
21535
21557
  const { getVersion } = record;
21536
21558
  const { isRecording } = record;
21537
21559
  const { flushCustomEventQueue } = record;