@ohhwells/bridge 0.1.153-next.415 → 0.1.153-next.419

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @ohhwells/bridge
2
2
 
3
- The OhhWells canvas editor bridge — a standalone npm package that enables inline text and image editing for any site deployed on the OhhWells platform.
3
+ The OhhWells canvas editor bridge — a standalone npm package that enables inline text and image editing for any site deployed on the OhhWells platform
4
4
 
5
5
  ## What it does
6
6
 
package/dist/index.cjs CHANGED
@@ -17257,7 +17257,7 @@ function apiBase() {
17257
17257
  function bridgeVersion() {
17258
17258
  try {
17259
17259
  if (true) {
17260
- return "0.1.153-next.415";
17260
+ return "0.1.153-next.419";
17261
17261
  }
17262
17262
  } catch {
17263
17263
  }
@@ -17271,7 +17271,7 @@ function stampBridgeVersionOnDocument() {
17271
17271
  return;
17272
17272
  }
17273
17273
  try {
17274
- const v = true ? "0.1.153-next.415" : "";
17274
+ const v = true ? "0.1.153-next.419" : "";
17275
17275
  if (v) {
17276
17276
  document.documentElement.setAttribute("data-ohw-bridge-version", v);
17277
17277
  window.__OHW_BRIDGE_VERSION__ = v;
@@ -17279,6 +17279,7 @@ function stampBridgeVersionOnDocument() {
17279
17279
  } catch {
17280
17280
  }
17281
17281
  }
17282
+ var TRANSIENT_CONTENT_FETCH = /^(Failed to fetch|Load failed|NetworkError when attempting to fetch resource\.?|fetch failed|The user aborted a request\.?|The operation was aborted\.?)$/i;
17282
17283
  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;
17283
17284
  function isVercelPreviewHost() {
17284
17285
  if (typeof location === "undefined") {
@@ -17296,6 +17297,9 @@ function reportOutageBeacon(args) {
17296
17297
  if (args.reason === "page_error" && args.detail && RECOVERABLE_PAGE_ERROR.test(args.detail)) {
17297
17298
  return;
17298
17299
  }
17300
+ if (args.reason === "content_fetch_failed" && args.detail && TRANSIENT_CONTENT_FETCH.test(args.detail.trim())) {
17301
+ return;
17302
+ }
17299
17303
  const key = `${args.subdomain}|${args.reason}`;
17300
17304
  const now = Date.now();
17301
17305
  const prev = lastSent.get(key) || 0;
@@ -32131,7 +32135,7 @@ function OhhwellsBridge() {
32131
32135
  postToParent2({
32132
32136
  type: "ow:ready",
32133
32137
  version: "1",
32134
- bridgeVersion: "0.1.153-next.415",
32138
+ bridgeVersion: "0.1.153-next.419",
32135
32139
  path: pathname,
32136
32140
  nodes: collectEditableNodes(editContentRef.current),
32137
32141
  sections