@ohhwells/bridge 0.1.152-next.410 → 0.1.152-next.414

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.cjs CHANGED
@@ -17089,7 +17089,7 @@ function apiBase() {
17089
17089
  function bridgeVersion() {
17090
17090
  try {
17091
17091
  if (true) {
17092
- return "0.1.152-next.410";
17092
+ return "0.1.152-next.414";
17093
17093
  }
17094
17094
  } catch {
17095
17095
  }
@@ -17103,7 +17103,7 @@ function stampBridgeVersionOnDocument() {
17103
17103
  return;
17104
17104
  }
17105
17105
  try {
17106
- const v = true ? "0.1.152-next.410" : "";
17106
+ const v = true ? "0.1.152-next.414" : "";
17107
17107
  if (v) {
17108
17108
  document.documentElement.setAttribute("data-ohw-bridge-version", v);
17109
17109
  window.__OHW_BRIDGE_VERSION__ = v;
@@ -17112,10 +17112,19 @@ function stampBridgeVersionOnDocument() {
17112
17112
  }
17113
17113
  }
17114
17114
  var RECOVERABLE_PAGE_ERROR = /Minified React error #(?:418|419|421|422|423|425)\b|Hydration failed because the initial UI does not match|Text content does not match server-rendered HTML|There was an error while hydrating|did not match\. Server:/i;
17115
+ function isVercelPreviewHost() {
17116
+ if (typeof location === "undefined") {
17117
+ return false;
17118
+ }
17119
+ return location.hostname.toLowerCase().endsWith(".vercel.ohhwells.site");
17120
+ }
17115
17121
  function reportOutageBeacon(args) {
17116
17122
  if (typeof window === "undefined" || !args.subdomain) {
17117
17123
  return;
17118
17124
  }
17125
+ if (isVercelPreviewHost()) {
17126
+ return;
17127
+ }
17119
17128
  if (args.reason === "page_error" && args.detail && RECOVERABLE_PAGE_ERROR.test(args.detail)) {
17120
17129
  return;
17121
17130
  }
@@ -32075,7 +32084,7 @@ function OhhwellsBridge() {
32075
32084
  postToParent2({
32076
32085
  type: "ow:ready",
32077
32086
  version: "1",
32078
- bridgeVersion: "0.1.152-next.410",
32087
+ bridgeVersion: "0.1.152-next.414",
32079
32088
  path: pathname,
32080
32089
  nodes: collectEditableNodes(editContentRef.current),
32081
32090
  sections