@termwright/conformance 0.5.0 → 0.5.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/index.js CHANGED
@@ -54,7 +54,7 @@ var certified_instrumentation_default = {
54
54
  var BUILTIN_PROFILES = certified_instrumentation_default.profiles;
55
55
  var INK_VERSION = BUILTIN_PROFILES.at(-1)?.version ?? "unsupported";
56
56
 
57
- // ../probe-ink/dist/chunk-CGYUQALB.js
57
+ // ../probe-ink/dist/chunk-I3CA4TJX.js
58
58
  import { validateProbeAnnotations } from "@termwright/protocol";
59
59
 
60
60
  // ../pty/dist/index.js
@@ -155,7 +155,10 @@ var ROLE_BY_CLASS = Object.freeze({
155
155
  ScrollBarRenderable: "scrollbar"
156
156
  });
157
157
  function roleForOpenTuiClass(frameworkType) {
158
- return Object.hasOwn(ROLE_BY_CLASS, frameworkType) ? ROLE_BY_CLASS[frameworkType] : void 0;
158
+ const direct = Object.hasOwn(ROLE_BY_CLASS, frameworkType) ? ROLE_BY_CLASS[frameworkType] : void 0;
159
+ if (direct !== void 0) return direct;
160
+ const bundledBase = frameworkType.match(/^(.*Renderable)\d+$/)?.[1];
161
+ return bundledBase !== void 0 && Object.hasOwn(ROLE_BY_CLASS, bundledBase) ? ROLE_BY_CLASS[bundledBase] : void 0;
159
162
  }
160
163
  var ROLES = new Set(SEMANTIC_ROLES);
161
164
  var UTF8_ENCODER = new TextEncoder();