@wix/himalaya-cli 0.1778.0 → 0.1779.0

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.
@@ -51,6 +51,14 @@ export declare function canonicalScreenArgs(args: Readonly<Record<string, unknow
51
51
  */
52
52
  export declare function effectiveWebViewInstanceId(screenId: string, args: Readonly<Record<string, unknown>> | undefined, componentId: string, explicitInstanceId?: string): string;
53
53
  export { DUAL_FORM_NODE_RENDERER, DUAL_FORM_T3_RENDERER, payloadNodeForm, prefersPayloadNodeForm, rootPrimaryWebView, sameCapabilityScope } from "./site-screen-form.js";
54
+ /** The screen's worker-bridged WebView nodes (`bridge: "worker"`), each with its descriptor path and
55
+ * props — what `himi test`'s bridge pass opens a page channel for. */
56
+ export declare function bridgedWebViews(descriptor: unknown): Array<{
57
+ id: string;
58
+ path: string;
59
+ props: Readonly<Record<string, unknown>>;
60
+ inTemplate: boolean;
61
+ }>;
54
62
  /** Whether a page URL is inside the site's path boundaries (the RFC 0062 §3 rule): https, no
55
63
  * credentials, the boundary's host and port, and its path or anything under it. */
56
64
  export declare function siteOriginsAdmit(url: string, siteOrigins: readonly string[]): boolean;
@@ -14926,6 +14926,10 @@ function collectWebViews(descriptor) {
14926
14926
  for (const r of roots(descriptor)) visit(r.c, r.path, false, { parentType: null, scrollAncestor: null, inVerticalScroll: false });
14927
14927
  return sites;
14928
14928
  }
14929
+ function bridgedWebViews(descriptor) {
14930
+ if (!isRec2(descriptor)) return [];
14931
+ return collectWebViews(descriptor).filter((s) => isBridged(s.props)).map((s) => ({ id: s.id, path: s.path, props: s.props, inTemplate: s.inTemplate }));
14932
+ }
14929
14933
  var isBridged = (props) => props.bridge === "worker";
14930
14934
  var isPrimary = (props) => props.role === "primary";
14931
14935
  var configOf = (props) => isRec2(props.config) ? props.config : {};
@@ -16613,6 +16617,7 @@ export {
16613
16617
  availableLocales,
16614
16618
  bakeLegacyImport,
16615
16619
  baselineMediaCapabilities,
16620
+ bridgedWebViews,
16616
16621
  bucket,
16617
16622
  buildHimiPreviewUrl,
16618
16623
  buildPackageShareUrl,