unlayer-types 1.531.0 → 1.532.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.
Files changed (2) hide show
  1. package/embed.d.ts +14 -3
  2. package/package.json +1 -1
package/embed.d.ts CHANGED
@@ -4238,14 +4238,25 @@ declare module "packages/editor/src/embed/iframeBackground" {
4238
4238
  }
4239
4239
  declare module "packages/editor/src/embed/agent/agentHint" {
4240
4240
  export const EDITOR_NAME = "Design editor";
4241
- export const AGENT_HINT = "AI agents: skip the UI, call unlayer.agent.describe() or unlayer_describe_editor";
4241
+ export const AGENT_HINT = "Also editable as JSON via window.unlayer.agent: describe() returns the API guide.";
4242
4242
  /**
4243
4243
  * Names the editor iframe and, when this editor answers agent calls, appends
4244
- * the pointer to `unlayer.agent`. The `title` attribute is not rendered as a
4245
- * tooltip on iframes, so nothing changes on screen. The host page script owns
4244
+ * the pointer to `unlayer.agent`. The name goes in `aria-label`, never
4245
+ * `title`: browsers show an iframe's `title` as a hover tooltip (customers saw
4246
+ * this one while the editor reloaded), while `aria-label` gives the same
4247
+ * accessible name and nothing changes on screen. The host page script owns
4246
4248
  * these strings, so they are not localized. `EDITOR_NAME` has no vendor
4247
4249
  * branding; the pointer does name `unlayer`, because that is the global
4248
4250
  * (and the site tool prefix) agents have to call.
4251
+ *
4252
+ * `aria-label` outranks `title`, so the name starts from a title the embed
4253
+ * already gave the iframe (a name for the display mode, or the embedder's
4254
+ * localized `editor.title`) instead of replacing it.
4255
+ *
4256
+ * Claude in Chrome's default page read lists only elements with an explicit
4257
+ * `tabindex` (or a control tag), so without one it skips the iframe and never
4258
+ * sees the name. An iframe is already focusable at tab index 0, so setting it
4259
+ * changes nothing for keyboard users. A tabindex already on the iframe is kept.
4249
4260
  */
4250
4261
  export function applyAgentHint(iframe: HTMLIFrameElement | undefined, { agentApi }: {
4251
4262
  agentApi: boolean;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "unlayer-types",
3
- "version": "1.531.0",
3
+ "version": "1.532.0",
4
4
  "license": "MIT"
5
5
  }