@syntrologie/adapt-nav 2.25.2 → 2.26.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.
@@ -1,3 +1,16 @@
1
+ // ../../sdk-contracts/dist/mount-plumbing.js
2
+ var MOUNT_PLUMBING_KEYS = ["instanceId", "runtime", "tileId"];
3
+ function stripMountPlumbing(config) {
4
+ if (!config || typeof config !== "object") {
5
+ return {};
6
+ }
7
+ const out = { ...config };
8
+ for (const key of MOUNT_PLUMBING_KEYS) {
9
+ delete out[key];
10
+ }
11
+ return out;
12
+ }
13
+
1
14
  // ../../sdk-contracts/dist/schemas.js
2
15
  import { z } from "zod";
3
16
  var AnchorIdZ = z.object({
@@ -5,6 +18,7 @@ var AnchorIdZ = z.object({
5
18
  route: z.union([z.string(), z.array(z.string())])
6
19
  }).strict();
7
20
  var AuthoringFieldsZ = {
21
+ id: z.string().optional().describe('Stable action identifier (e.g. "act_3db6a14d2ab0").'),
8
22
  title: z.string().max(200).optional().describe("Authoring-only: short label shown on the action plan dashboard. Stripped before serving to the runtime SDK."),
9
23
  description: z.string().max(1e3).optional().describe("Authoring-only: one-sentence explanation of what this action does and why. Stripped before serving to the runtime SDK."),
10
24
  validation: z.array(z.string().max(500)).max(10).optional().describe("Authoring-only: ordered steps a reviewer can follow to trigger this action and visually confirm it works. Each entry is one step. Stripped before serving to the runtime SDK.")
@@ -439,9 +453,10 @@ function renderIcon(emoji, options = {}) {
439
453
 
440
454
  export {
441
455
  renderIcon,
456
+ stripMountPlumbing,
442
457
  AnchorIdZ,
443
458
  AuthoringFieldsZ,
444
459
  TriggerWhenZ,
445
460
  NotifyZ
446
461
  };
447
- //# sourceMappingURL=chunk-ZYHZ6JAD.js.map
462
+ //# sourceMappingURL=chunk-CAJZJCHL.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../sdk-contracts/dist/mount-plumbing.js", "../../../sdk-contracts/dist/schemas.js", "../../../sdk-contracts/dist/icons.js"],
4
+ "sourcesContent": ["/**\n * Mount contract types and helper for adaptive widget mountables.\n *\n * The `WidgetRegistry` in `@syntrologie/runtime-sdk` delivers props to each\n * mountable as `{ ...tile.props, instanceId, runtime, tileId? }` spread flat\n * (see `MountableContract.test.ts` in runtime-sdk for the end-to-end lockdown).\n *\n * Adaptives that strip plumbing manually maintain private blacklists that\n * silently drift when the contract grows (PR #2234 and #2238 documented this).\n * `stripMountPlumbing` centralizes the list so adding a new plumbing key in\n * the future is a one-line change here that every adaptive picks up automatically.\n *\n * Adaptives whose widget schemas use Zod `.strict()` MUST call this before\n * validating, or strict-mode will reject the runtime-injected keys and the\n * widget will silently render its empty/error state.\n */\nexport const MOUNT_PLUMBING_KEYS = ['instanceId', 'runtime', 'tileId'];\nexport function stripMountPlumbing(config) {\n if (!config || typeof config !== 'object') {\n return {};\n }\n const out = { ...config };\n for (const key of MOUNT_PLUMBING_KEYS) {\n delete out[key];\n }\n return out;\n}\n", "/**\n * Shared Zod schemas for decision strategies, conditions, and event scoping.\n *\n * These are the canonical definitions \u2014 runtime-sdk and all adaptive packages\n * should import from here instead of duplicating.\n */\nimport { z } from 'zod';\n// =============================================================================\n// ANCHOR ID SCHEMA\n// =============================================================================\nexport const AnchorIdZ = z\n .object({\n selector: z.string(),\n route: z.union([z.string(), z.array(z.string())]),\n})\n .strict();\n// =============================================================================\n// AUTHORING FIELDS \u2014 id / title / description / validation\n//\n// Shared fields every action carries. `id` is the action identifier the\n// runtime uses to dispatch, dedupe, and drop/replace actions \u2014 it is NOT\n// stripped before serving. `title` / `description` / `validation` are\n// authoring-only metadata stripped server-side in `to_runtime_config`\n// (platform/backend/app/domains/experiments/helpers.py).\n//\n// They all appear in the JSON Schema (and therefore in the tactician's\n// prompt) because the LLM needs to know they are valid action properties \u2014\n// otherwise schema validation would reject what the prompt commands.\n//\n// Each action variant should `.extend(AuthoringFieldsZ)` alongside any\n// triggerWhen/condition extensions.\n// =============================================================================\nexport const AuthoringFieldsZ = {\n id: z.string().optional().describe('Stable action identifier (e.g. \"act_3db6a14d2ab0\").'),\n title: z\n .string()\n .max(200)\n .optional()\n .describe('Authoring-only: short label shown on the action plan dashboard. Stripped before serving to the runtime SDK.'),\n description: z\n .string()\n .max(1000)\n .optional()\n .describe('Authoring-only: one-sentence explanation of what this action does and why. Stripped before serving to the runtime SDK.'),\n validation: z\n .array(z.string().max(500))\n .max(10)\n .optional()\n .describe('Authoring-only: ordered steps a reviewer can follow to trigger this action and visually confirm it works. Each entry is one step. Stripped before serving to the runtime SDK.'),\n};\n// =============================================================================\n// TRIGGER VOCABULARY \u2014 canonical lists of valid event names, metric keys, etc.\n// These flow through to the JSON schema as enums and are used by the LLM prompt.\n// =============================================================================\n/** Events that can be counted in event_count conditions. */\nexport const COUNTABLE_EVENTS = [\n // User interactions (from PostHog autocapture normalization)\n 'ui.click',\n 'ui.scroll',\n 'ui.input',\n 'ui.change',\n 'ui.submit',\n // Behavioral detectors (from event-processor)\n 'ui.hover',\n 'ui.idle',\n 'ui.scroll_thrash',\n 'ui.focus_bounce',\n // Navigation\n 'nav.page_view',\n 'nav.page_leave',\n // Derived behavioral signals\n 'behavior.rage_click',\n 'behavior.hesitation',\n 'behavior.confusion',\n];\nexport const CountableEventZ = z\n .enum(COUNTABLE_EVENTS)\n .describe('Event name to count. ui.* = user interactions and behavioral detectors, nav.* = page navigation, behavior.* = derived behavioral signals.');\n/** Valid session metric keys. */\nexport const SESSION_METRIC_KEYS = ['time_on_page', 'page_views', 'scroll_depth'];\nexport const SessionMetricKeyZ = z\n .enum(SESSION_METRIC_KEYS)\n .describe('Session metric key. time_on_page = seconds on current page, page_views = pages visited this session, scroll_depth = 0-100 percentage.');\n/** Element chain match field prefixes for counter filters. */\nexport const ELEMENT_MATCH_FIELDS = ['tag_name', '$el_text'];\n// Note: attr__* is a dynamic prefix (attr__data-id, attr__class, attr__href, etc.)\n// and cannot be enumerated. The match key is either one of ELEMENT_MATCH_FIELDS\n// or starts with \"attr__\".\n// =============================================================================\n// CONDITION SCHEMAS\n// =============================================================================\nexport const PageUrlConditionZ = z\n .object({\n type: z.literal('page_url'),\n url: z.string().describe('URL path to match (e.g. \"/pricing\", \"/dashboard\")'),\n})\n .describe('Fires when the current page URL matches. Use for page-specific actions. ' +\n 'Example: {\"type\": \"page_url\", \"url\": \"/pricing\"}');\nexport const RouteConditionZ = z\n .object({\n type: z.literal('route'),\n routeId: z.string().describe('Named route ID from the route filter'),\n})\n .describe('Fires when the current route matches a named route ID.');\nexport const AnchorVisibleConditionZ = z\n .object({\n type: z.literal('anchor_visible'),\n anchorId: z.string().describe('CSS selector of the anchor element'),\n state: z\n .enum(['visible', 'present', 'absent'])\n .describe('\"visible\" = in viewport, \"present\" = in DOM, \"absent\" = not in DOM'),\n})\n .describe(\"Fires based on a DOM element's visibility state. \" +\n 'Example: {\"type\": \"anchor_visible\", \"anchorId\": \"#cta-button\", \"state\": \"visible\"}');\nexport const EventOccurredConditionZ = z\n .object({\n type: z.literal('event_occurred'),\n eventName: z.string().describe('Event name (e.g. \"ui.click\", \"$pageview\")'),\n withinMs: z.number().optional().describe('Time window in ms. Omit = any time this session.'),\n})\n .describe('Fires when a specific event has occurred during this session. ' +\n 'Example: {\"type\": \"event_occurred\", \"eventName\": \"ui.click\", \"withinMs\": 5000}');\nexport const StateEqualsConditionZ = z\n .object({\n type: z.literal('state_equals'),\n key: z\n .string()\n .describe('Key in the SDK persistent state store (localStorage). Only valid for keys the host app explicitly sets via syntro.state.set().'),\n value: z.unknown().describe('Expected value to match against'),\n})\n .describe('Checks the SDK persistent state store (localStorage). ONLY for host-app state set via syntro.state.set() \u2014 ' +\n 'NOT for user attributes like region, device, or UTM params (those are handled by segment targeting). ' +\n 'Do NOT use this for targeting. If you do not know the valid state keys, do not use this condition type.');\nexport const ViewportConditionZ = z\n .object({\n type: z.literal('viewport'),\n minWidth: z.number().optional().describe('Minimum viewport width in pixels'),\n maxWidth: z.number().optional().describe('Maximum viewport width in pixels'),\n minHeight: z.number().optional().describe('Minimum viewport height in pixels'),\n maxHeight: z.number().optional().describe('Maximum viewport height in pixels'),\n})\n .describe('Fires based on viewport (screen) size. Use for responsive behavior. ' +\n 'Example: {\"type\": \"viewport\", \"minWidth\": 768} \u2014 fires on tablet and larger.');\nexport const SessionMetricConditionZ = z\n .object({\n type: z.literal('session_metric'),\n key: SessionMetricKeyZ,\n operator: z.enum(['gte', 'lte', 'eq', 'gt', 'lt']),\n threshold: z.number().describe('Numeric threshold to compare against'),\n})\n .describe('Fires when a session metric crosses a threshold. Valid keys: \"time_on_page\" (seconds), ' +\n '\"page_views\" (count), \"scroll_depth\" (0-100). ' +\n 'Example: {\"type\": \"session_metric\", \"key\": \"time_on_page\", \"operator\": \"gte\", \"threshold\": 30}');\nexport const DismissedConditionZ = z\n .object({\n type: z.literal('dismissed'),\n key: z.string().describe('Dismissal key (usually a tile or action ID)'),\n inverted: z\n .boolean()\n .optional()\n .describe('When true, fires if NOT dismissed (default behavior)'),\n})\n .describe('Checks if an item has been dismissed by the user. Use with inverted: true to show only if not dismissed.');\nexport const CooldownActiveConditionZ = z\n .object({\n type: z.literal('cooldown_active'),\n key: z.string().describe('Cooldown key'),\n inverted: z.boolean().optional().describe('When true, fires if cooldown is NOT active'),\n})\n .describe('Checks if a cooldown timer is currently active. Use to prevent showing the same intervention too frequently.');\nexport const FrequencyLimitConditionZ = z\n .object({\n type: z.literal('frequency_limit'),\n key: z.string().describe('Frequency counter key'),\n limit: z.number().describe('Maximum allowed count'),\n inverted: z.boolean().optional().describe('When true, fires if limit NOT reached'),\n})\n .describe('Checks if a frequency limit has been reached. Use to cap how many times an action fires per session.');\nexport const MatchOpZ = z\n .object({\n equals: z.union([z.string(), z.number(), z.boolean()]).optional(),\n contains: z.string().optional(),\n})\n .describe('Match operator for counter filters. Exactly one of equals or contains must be specified.');\nexport const CounterDefZ = z\n .object({\n events: z\n .array(CountableEventZ)\n .min(1)\n .describe('Event names to count. Use values from the countable events enum.'),\n match: z\n .record(z.string(), MatchOpZ)\n .optional()\n .describe('Property filters. Keys are event prop names or element-chain fields ' +\n '(tag_name, $el_text, attr__*). All entries AND together.'),\n})\n .describe('Defines what events to count. Registered as an accumulator predicate at config-load time.');\nexport const EventCountConditionZ = z\n .object({\n type: z.literal('event_count'),\n key: z.string().describe('Unique key for this counter (used for accumulator registration)'),\n operator: z.enum(['gte', 'lte', 'eq', 'gt', 'lt']),\n count: z.number().int().min(0).describe('Target count threshold'),\n withinMs: z\n .number()\n .positive()\n .optional()\n .describe('Time window in ms. Omit = count across entire session.'),\n counter: CounterDefZ.optional().describe('Inline counter definition. Defines what events to count.'),\n})\n .describe('Fires when accumulated event count crosses a threshold. Most powerful trigger type. ' +\n 'Example: {\"type\": \"event_count\", \"key\": \"pricing-clicks\", \"operator\": \"gte\", \"count\": 3, ' +\n '\"counter\": {\"events\": [\"ui.click\"], \"match\": {\"attr__data-cta\": {\"contains\": \"pricing\"}}}}');\nexport const ConditionZ = z.discriminatedUnion('type', [\n PageUrlConditionZ,\n RouteConditionZ,\n AnchorVisibleConditionZ,\n EventOccurredConditionZ,\n StateEqualsConditionZ,\n ViewportConditionZ,\n SessionMetricConditionZ,\n DismissedConditionZ,\n CooldownActiveConditionZ,\n FrequencyLimitConditionZ,\n EventCountConditionZ,\n]);\n// =============================================================================\n// STRATEGY SCHEMAS\n// =============================================================================\nexport const RuleZ = z\n .object({\n conditions: z\n .array(ConditionZ)\n .describe('Array of conditions \u2014 ALL must match (AND logic) for this rule to fire.'),\n value: z\n .unknown()\n .describe('Value returned when all conditions match. For triggerWhen: true = fire the action.'),\n})\n .describe('A single rule. ALL conditions must match (AND logic). Rules in a strategy are evaluated ' +\n 'top-to-bottom \u2014 first rule where all conditions match wins and returns its value.');\nexport const RuleStrategyZ = z\n .object({\n type: z.literal('rules'),\n rules: z\n .array(RuleZ)\n .describe('Ordered list of rules. Evaluated top-to-bottom \u2014 first match wins.'),\n default: z\n .unknown()\n .describe('Fallback value when no rule matches. For triggerWhen: false = do not fire by default.'),\n})\n .describe('Rule-based strategy. Evaluates rules top-to-bottom. First rule where ALL conditions match ' +\n 'returns its value. If no rule matches, returns default. ' +\n 'For triggerWhen: set value=true on matching rules, default=false.');\nexport const ScoreStrategyZ = z\n .object({\n type: z.literal('score'),\n field: z.string(),\n threshold: z.number(),\n above: z.unknown(),\n below: z.unknown(),\n})\n .describe('Score-based strategy. Compares a field value against a threshold.');\nexport const ModelStrategyZ = z\n .object({\n type: z.literal('model'),\n modelId: z.string(),\n inputs: z.array(z.string()),\n outputMapping: z.record(z.string(), z.unknown()),\n default: z.unknown(),\n})\n .describe('ML model strategy. Sends inputs to a model and maps outputs.');\nexport const ExternalStrategyZ = z\n .object({\n type: z.literal('external'),\n endpoint: z.string(),\n method: z.enum(['GET', 'POST']).optional(),\n default: z.unknown(),\n timeoutMs: z.number().optional(),\n})\n .describe('External API strategy. Calls an endpoint to determine the value.');\nexport const DecisionStrategyZ = z.discriminatedUnion('type', [\n RuleStrategyZ,\n ScoreStrategyZ,\n ModelStrategyZ,\n ExternalStrategyZ,\n]);\n/** Canonical Zod schema for the optional triggerWhen field on actions and adaptive items. */\nexport const TriggerWhenZ = DecisionStrategyZ.nullable().optional();\n// =============================================================================\n// TRIGGER DOCUMENTATION \u2014 examples and match field docs\n// Exported as constants so the schema generator can inject them into the\n// JSON schema. The Python prompt builder reads them from the schema.\n// =============================================================================\n/** Complete triggerWhen examples showing the full rules wrapper structure. */\nexport const TRIGGER_EXAMPLES = [\n {\n name: 'Click count on a specific element',\n description: 'Fire when user clicks an element with data-id=\"hero-cta\" 2+ times',\n triggerWhen: {\n type: 'rules',\n rules: [\n {\n conditions: [\n {\n type: 'event_count',\n key: 'cta-clicks',\n operator: 'gte',\n count: 2,\n counter: {\n events: ['ui.click'],\n match: { 'attr__data-id': { equals: 'hero-cta' } },\n },\n },\n ],\n value: true,\n },\n ],\n default: false,\n },\n },\n {\n name: 'Time on page threshold',\n description: 'Fire after user spends 30+ seconds on the page',\n triggerWhen: {\n type: 'rules',\n rules: [\n {\n conditions: [\n {\n type: 'session_metric',\n key: 'time_on_page',\n operator: 'gte',\n threshold: 30,\n },\n ],\n value: true,\n },\n ],\n default: false,\n },\n },\n {\n name: 'Element visible in viewport',\n description: 'Fire when a DOM element becomes visible',\n triggerWhen: {\n type: 'rules',\n rules: [\n {\n conditions: [\n {\n type: 'anchor_visible',\n anchorId: '#pricing-section',\n state: 'visible',\n },\n ],\n value: true,\n },\n ],\n default: false,\n },\n },\n {\n name: 'No trigger (fire immediately)',\n description: 'Action fires as soon as the segment matches \u2014 no in-session condition needed',\n triggerWhen: null,\n },\n];\n/** Documentation for counter.match field keys. */\nexport const MATCH_FIELD_DOCS = {\n tag_name: 'HTML tag name (e.g. \"button\", \"a\", \"input\")',\n $el_text: 'Visible text content of the element',\n 'attr__*': 'HTML attribute prefixed with attr__. Example: attr__data-id matches the data-id attribute, ' +\n 'attr__class matches the class attribute, attr__href matches the href attribute.',\n};\n// =============================================================================\n// EVENT SCOPE SCHEMA\n// =============================================================================\n/** Scopes a widget to specific events/URLs. */\nexport const EventScopeZ = z.object({\n events: z.array(z.string()),\n urlContains: z.string().optional(),\n props: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),\n});\n// =============================================================================\n// NOTIFY SCHEMA\n// =============================================================================\n/** Toast notification config for triggerWhen transitions. */\nexport const NotifyZ = z\n .object({\n title: z.string().optional(),\n body: z.string().optional(),\n icon: z.string().optional(),\n})\n .nullable()\n .optional();\n", "/**\n * Centralized emoji \u2192 Lucide SVG icon mapping.\n *\n * Adaptives and the runtime can render config-supplied emoji icons as inline\n * Lucide SVGs without depending on `lucide-react`. Sourced from\n * https://lucide.dev (ISC license).\n *\n * Each entry is an array of inner SVG elements (`<path>`, `<polygon>`,\n * `<circle>`, etc.) for the canonical 24\u00D724 viewBox. `renderIcon()` wraps\n * them in a `<svg>` of the requested size + colour.\n *\n * If you add a new emoji to a config (action plan icon, FAQ icon, nav tip\n * icon, \u2026) add a matching entry here so it renders as a Lucide SVG instead\n * of falling back to the raw glyph.\n */\nconst PREFIX = '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"';\n/** Inner-SVG path/shape data keyed by emoji character. */\nexport const EMOJI_SVG_PATHS = {\n // \u2500\u2500 existing in adaptive-nav \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n '\uD83D\uDCB5': [\n '<rect width=\"20\" height=\"12\" x=\"2\" y=\"6\" rx=\"2\"/>',\n '<circle cx=\"12\" cy=\"12\" r=\"2\"/>',\n '<path d=\"M6 12h.01M18 12h.01\"/>',\n ],\n '\uD83C\uDFDB\uFE0F': [\n '<line x1=\"3\" x2=\"21\" y1=\"22\" y2=\"22\"/>',\n '<line x1=\"6\" x2=\"6\" y1=\"18\" y2=\"11\"/>',\n '<line x1=\"10\" x2=\"10\" y1=\"18\" y2=\"11\"/>',\n '<line x1=\"14\" x2=\"14\" y1=\"18\" y2=\"11\"/>',\n '<line x1=\"18\" x2=\"18\" y1=\"18\" y2=\"11\"/>',\n '<polygon points=\"12 2 20 7 4 7\"/>',\n ],\n '\u23ED\uFE0F': ['<polygon points=\"5 4 15 12 5 20 5 4\"/>', '<line x1=\"19\" x2=\"19\" y1=\"5\" y2=\"19\"/>'],\n '\u27A1\uFE0F': ['<path d=\"M5 12h14\"/>', '<path d=\"m12 5 7 7-7 7\"/>'],\n '\uD83D\uDCA1': [\n '<path d=\"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5\"/>',\n '<path d=\"M9 18h6\"/>',\n '<path d=\"M10 22h4\"/>',\n ],\n '\uD83D\uDCB0': [\n '<rect width=\"20\" height=\"12\" x=\"2\" y=\"6\" rx=\"2\"/>',\n '<circle cx=\"12\" cy=\"12\" r=\"2\"/>',\n '<path d=\"M6 12h.01M18 12h.01\"/>',\n ],\n '\uD83D\uDCCB': [\n '<rect width=\"8\" height=\"4\" x=\"8\" y=\"2\" rx=\"1\" ry=\"1\"/>',\n '<path d=\"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2\"/>',\n '<path d=\"M12 11h4\"/>',\n '<path d=\"M12 16h4\"/>',\n '<path d=\"M8 11h.01\"/>',\n '<path d=\"M8 16h.01\"/>',\n ],\n '\u2705': ['<path d=\"M22 11.08V12a10 10 0 1 1-5.93-9.14\"/>', '<path d=\"m9 11 3 3L22 4\"/>'],\n '\u26A0\uFE0F': [\n '<path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\"/>',\n '<path d=\"M12 9v4\"/>',\n '<path d=\"M12 17h.01\"/>',\n ],\n // \u2500\u2500 added for healthmaxxer action_plans \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n '\uD83D\uDEE1\uFE0F': [\n '<path d=\"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z\"/>',\n ],\n '\uD83D\uDCC8': [\n '<polyline points=\"22 7 13.5 15.5 8.5 10.5 2 17\"/>',\n '<polyline points=\"16 7 22 7 22 13\"/>',\n ],\n '\uD83D\uDD2C': [\n '<path d=\"M6 18h8\"/>',\n '<path d=\"M3 22h18\"/>',\n '<path d=\"M14 22a7 7 0 1 0 0-14h-1\"/>',\n '<path d=\"M9 14h2\"/>',\n '<path d=\"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z\"/>',\n '<path d=\"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3\"/>',\n ],\n '\uD83D\uDC8A': [\n '<path d=\"m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z\"/>',\n '<path d=\"m8.5 8.5 7 7\"/>',\n ],\n '\uD83D\uDCC4': [\n '<path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\"/>',\n '<path d=\"M14 2v4a2 2 0 0 0 2 2h4\"/>',\n '<path d=\"M10 9H8\"/>',\n '<path d=\"M16 13H8\"/>',\n '<path d=\"M16 17H8\"/>',\n ],\n '\uD83E\uDDEA': [\n '<path d=\"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2\"/>',\n '<path d=\"M6.453 15h11.094\"/>',\n '<path d=\"M8.5 2h7\"/>',\n ],\n '\uD83D\uDD01': [\n '<path d=\"m17 2 4 4-4 4\"/>',\n '<path d=\"M3 11v-1a4 4 0 0 1 4-4h14\"/>',\n '<path d=\"m7 22-4-4 4-4\"/>',\n '<path d=\"M21 13v1a4 4 0 0 1-4 4H3\"/>',\n ],\n '\uD83E\uDDE0': [\n '<path d=\"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z\"/>',\n '<path d=\"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z\"/>',\n '<path d=\"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4\"/>',\n '<path d=\"M17.599 6.5a3 3 0 0 0 .399-1.375\"/>',\n '<path d=\"M6.003 5.125A3 3 0 0 0 6.401 6.5\"/>',\n '<path d=\"M3.477 10.896a4 4 0 0 1 .585-.396\"/>',\n '<path d=\"M19.938 10.5a4 4 0 0 1 .585.396\"/>',\n '<path d=\"M6 18a4 4 0 0 1-1.967-.516\"/>',\n '<path d=\"M19.967 17.484A4 4 0 0 1 18 18\"/>',\n ],\n '\uD83C\uDF19': ['<path d=\"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z\"/>'],\n '\uD83D\uDCE6': [\n '<path d=\"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z\"/>',\n '<path d=\"M12 22V12\"/>',\n '<path d=\"m3.3 7 8.7 5 8.7-5\"/>',\n '<path d=\"m7.5 4.27 9 5.15\"/>',\n ],\n '\uD83D\uDE9A': [\n // Lucide truck\n '<path d=\"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2\"/>',\n '<path d=\"M15 18H9\"/>',\n '<path d=\"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14\"/>',\n '<circle cx=\"17\" cy=\"18\" r=\"2\"/>',\n '<circle cx=\"7\" cy=\"18\" r=\"2\"/>',\n ],\n '\uD83C\uDF31': [\n '<path d=\"M7 20h10\"/>',\n '<path d=\"M10 20c5.5-2.5.8-6.4 3-10\"/>',\n '<path d=\"M9.5 9.4c1.1.8 1.8 2.2 2.3 3.7-2 .4-3.5.4-4.8-.3-1.2-.6-2.3-1.9-3-4.2 2.8-.5 4.4 0 5.5.8z\"/>',\n '<path d=\"M14.1 6a7 7 0 0 0-1.1 4c1.9-.1 3.3-.6 4.3-1.4 1-1 1.6-2.3 1.7-4.6-2.7.1-4 1-4.9 2z\"/>',\n ],\n '\u26A1': [\n '<path d=\"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z\"/>',\n ],\n '\uD83D\uDD25': [\n // Lucide flame\n '<path d=\"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z\"/>',\n ],\n '\uD83C\uDF33': [\n '<path d=\"M12 22V8\"/>',\n '<path d=\"m17 8-5-6-5 6\"/>',\n '<path d=\"M12 12c-2-2-4-2-4-2 0 0 0 4 2 6 1.5 1.5 3 1 4 0\"/>',\n '<path d=\"M12 12c2-2 4-2 4-2 0 0 0 4-2 6-1.5 1.5-3 1-4 0\"/>',\n ],\n '\uD83C\uDF3F': [\n '<path d=\"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19.2 2.96a1 1 0 0 1 1.8.5c0 6-2 11-9 16.5\"/>',\n '<path d=\"M2 21c0-3 1.85-5.36 5.08-6\"/>',\n ],\n // \u2500\u2500 added for runtime-sdk SyntroTileCard / SyntroToastStack \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n '\u2753': [\n // HelpCircle\n '<circle cx=\"12\" cy=\"12\" r=\"10\"/>',\n '<path d=\"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3\"/>',\n '<path d=\"M12 17h.01\"/>',\n ],\n '\uD83E\uDDED': [\n // Compass\n '<circle cx=\"12\" cy=\"12\" r=\"10\"/>',\n '<polygon points=\"16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76\"/>',\n ],\n '\uD83D\uDCDD': [\n // FileText\n '<path d=\"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z\"/>',\n '<polyline points=\"14 2 14 8 20 8\"/>',\n '<line x1=\"16\" y1=\"13\" x2=\"8\" y2=\"13\"/>',\n '<line x1=\"16\" y1=\"17\" x2=\"8\" y2=\"17\"/>',\n '<line x1=\"10\" y1=\"9\" x2=\"8\" y2=\"9\"/>',\n ],\n '\uD83C\uDFAF': [\n // Layers (bullseye-shaped emoji rendered as Lucide Layers \u2014 historical)\n '<polygon points=\"12 2 2 7 12 12 22 7 12 2\"/>',\n '<polyline points=\"2 17 12 22 22 17\"/>',\n '<polyline points=\"2 12 12 17 22 12\"/>',\n ],\n '\uD83C\uDFC6': [\n // Trophy\n '<path d=\"M6 9H4.5a2.5 2.5 0 0 1 0-5H6\"/>',\n '<path d=\"M18 9h1.5a2.5 2.5 0 0 0 0-5H18\"/>',\n '<path d=\"M4 22h16\"/>',\n '<path d=\"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22\"/>',\n '<path d=\"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22\"/>',\n '<path d=\"M18 2H6v7a6 6 0 0 0 12 0V2Z\"/>',\n ],\n '\u2728': [\n // Sparkles\n '<path d=\"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z\"/>',\n '<path d=\"M5 3v4\"/>',\n '<path d=\"M19 17v4\"/>',\n '<path d=\"M3 5h4\"/>',\n '<path d=\"M17 19h4\"/>',\n ],\n '\uD83D\uDCAC': [\n // MessageCircle\n '<path d=\"M7.9 20A9 9 0 1 0 4 16.1L2 22Z\"/>',\n ],\n '\uD83C\uDFAE': [\n // Gamepad2\n '<line x1=\"6\" y1=\"11\" x2=\"10\" y2=\"11\"/>',\n '<line x1=\"8\" y1=\"9\" x2=\"8\" y2=\"13\"/>',\n '<line x1=\"15\" y1=\"12\" x2=\"15.01\" y2=\"12\"/>',\n '<line x1=\"18\" y1=\"10\" x2=\"18.01\" y2=\"10\"/>',\n '<path d=\"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z\"/>',\n ],\n '\u23F1\uFE0F': [\n // Timer\n '<line x1=\"10\" y1=\"2\" x2=\"14\" y2=\"2\"/>',\n '<line x1=\"12\" y1=\"14\" x2=\"12\" y2=\"8\"/>',\n '<circle cx=\"12\" cy=\"14\" r=\"8\"/>',\n ],\n '\uD83D\uDCD6': [\n // BookOpen\n '<path d=\"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z\"/>',\n '<path d=\"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z\"/>',\n ],\n '\uD83D\uDD14': [\n // Bell\n '<path d=\"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9\"/>',\n '<path d=\"M10.3 21a1.94 1.94 0 0 0 3.4 0\"/>',\n ],\n // \u2500\u2500 common UI icons \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n '\uD83C\uDF93': [\n // GraduationCap\n '<path d=\"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z\"/>',\n '<path d=\"M22 10v6\"/>',\n '<path d=\"M6 12.5V16a6 3 0 0 0 12 0v-3.5\"/>',\n ],\n '\u23F0': [\n // AlarmClock\n '<circle cx=\"12\" cy=\"13\" r=\"8\"/>',\n '<path d=\"M12 9v4l2 2\"/>',\n '<path d=\"M5 3 2 6\"/>',\n '<path d=\"m22 6-3-3\"/>',\n '<path d=\"M6.38 18.7 4 21\"/>',\n '<path d=\"M17.64 18.67 20 21\"/>',\n ],\n '\uD83D\uDD04': [\n // RefreshCw\n '<path d=\"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8\"/>',\n '<path d=\"M21 3v5h-5\"/>',\n '<path d=\"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16\"/>',\n '<path d=\"M8 16H3v5\"/>',\n ],\n '\uD83D\uDC64': [\n // User\n '<path d=\"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2\"/>',\n '<circle cx=\"12\" cy=\"7\" r=\"4\"/>',\n ],\n '\uD83C\uDFE0': [\n // House\n '<path d=\"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8\"/>',\n '<path d=\"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\"/>',\n ],\n '\uD83D\uDED2': [\n // ShoppingCart\n '<circle cx=\"8\" cy=\"21\" r=\"1\"/>',\n '<circle cx=\"19\" cy=\"21\" r=\"1\"/>',\n '<path d=\"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12\"/>',\n ],\n // \u2500\u2500 viz / chart icons (paired with adaptive-viz) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n '\uD83D\uDCCA': [\n // BarChart3 \u2014 pairs with \uD83D\uDCC8 (TrendingUp)\n '<path d=\"M3 3v18h18\"/>',\n '<path d=\"M18 17V9\"/>',\n '<path d=\"M13 17V5\"/>',\n '<path d=\"M8 17v-3\"/>',\n ],\n '\uD83D\uDCC9': [\n // TrendingDown\n '<polyline points=\"22 17 13.5 8.5 8.5 13.5 2 7\"/>',\n '<polyline points=\"16 17 22 17 22 11\"/>',\n ],\n '\uD83E\uDD67': [\n // PieChart\n '<path d=\"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z\"/>',\n '<path d=\"M21.21 15.89A10 10 0 1 1 8 2.83\"/>',\n ],\n '\uD83D\uDCB9': [\n // Activity \u2014 line-chart-style waveform\n '<path d=\"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.5.5 0 0 1-.96 0L9.24 2.18a.5.5 0 0 0-.96 0l-2.35 8.36A2 2 0 0 1 4.02 12H2\"/>',\n ],\n '\uD83C\uDF21\uFE0F': [\n // Thermometer \u2014 gauge-style indicator\n '<path d=\"M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z\"/>',\n ],\n};\n/**\n * Render a Lucide SVG for the given emoji. Returns the inline `<svg>` string.\n * If the emoji isn't mapped, returns an empty string \u2014 caller should fall back\n * to rendering the raw emoji glyph (e.g. via text or HTML escape).\n */\nexport function renderIcon(emoji, options = {}) {\n const paths = EMOJI_SVG_PATHS[emoji];\n if (!paths)\n return '';\n const size = options.size ?? 14;\n const stroke = options.color ?? 'currentColor';\n return `${PREFIX} width=\"${size}\" height=\"${size}\" stroke=\"${stroke}\">${paths.join('')}</svg>`;\n}\n/** Whether an emoji has a Lucide SVG mapping. */\nexport function hasIcon(emoji) {\n // biome-ignore lint/suspicious/noPrototypeBuiltins: tsconfig target ES2020 doesn't include Object.hasOwn\n return Object.prototype.hasOwnProperty.call(EMOJI_SVG_PATHS, emoji);\n}\n"],
5
+ "mappings": ";AAgBO,IAAM,sBAAsB,CAAC,cAAc,WAAW,QAAQ;AAC9D,SAAS,mBAAmB,QAAQ;AACvC,MAAI,CAAC,UAAU,OAAO,WAAW,UAAU;AACvC,WAAO,CAAC;AAAA,EACZ;AACA,QAAM,MAAM,EAAE,GAAG,OAAO;AACxB,aAAW,OAAO,qBAAqB;AACnC,WAAO,IAAI,GAAG;AAAA,EAClB;AACA,SAAO;AACX;;;ACpBA,SAAS,SAAS;AAIX,IAAM,YAAY,EACpB,OAAO;AAAA,EACR,UAAU,EAAE,OAAO;AAAA,EACnB,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AACpD,CAAC,EACI,OAAO;AAiBL,IAAM,mBAAmB;AAAA,EAC5B,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,qDAAqD;AAAA,EACxF,OAAO,EACF,OAAO,EACP,IAAI,GAAG,EACP,SAAS,EACT,SAAS,6GAA6G;AAAA,EAC3H,aAAa,EACR,OAAO,EACP,IAAI,GAAI,EACR,SAAS,EACT,SAAS,wHAAwH;AAAA,EACtI,YAAY,EACP,MAAM,EAAE,OAAO,EAAE,IAAI,GAAG,CAAC,EACzB,IAAI,EAAE,EACN,SAAS,EACT,SAAS,+KAA+K;AACjM;AAMO,IAAM,mBAAmB;AAAA;AAAA,EAE5B;AAAA,EACA;AAAA,E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C5C,QAAM,QAAQ,gBAAgB,KAAK;AACnC,MAAI,CAAC;AACD,WAAO;AACX,QAAM,OAAO,QAAQ,QAAQ;AAC7B,QAAM,SAAS,QAAQ,SAAS;AAChC,SAAO,GAAG,MAAM,WAAW,IAAI,aAAa,IAAI,aAAa,MAAM,KAAK,MAAM,KAAK,EAAE,CAAC;AAC1F;",
6
+ "names": []
7
+ }
package/dist/editor.js CHANGED
@@ -3794,7 +3794,7 @@ var INTERACTIVE_TAGS = new Set(action_step_field_mapping_default.interactive_tag
3794
3794
  var INTERACTIVE_ROLES = new Set(action_step_field_mapping_default.interactive_roles);
3795
3795
 
3796
3796
  // src/editor.ts
3797
- import { html as html14, LitElement as LitElement13, nothing as nothing9 } from "lit";
3797
+ import { html as html15, LitElement as LitElement14, nothing as nothing10 } from "lit";
3798
3798
 
3799
3799
  // src/summarize.ts
3800
3800
  var MAX_TITLE_LEN = 30;
@@ -5269,8 +5269,85 @@ if (!customElements.get("se-group-header")) {
5269
5269
  customElements.define("se-group-header", GroupHeaderLit);
5270
5270
  }
5271
5271
 
5272
+ // ../../shared-editor-ui/src/components/InspectToggleLit.ts
5273
+ import { html as html11, LitElement as LitElement10, nothing as nothing6 } from "lit";
5274
+ var InspectToggleLit = class extends LitElement10 {
5275
+ constructor() {
5276
+ super(...arguments);
5277
+ this.inspecting = false;
5278
+ this.accent = "purple";
5279
+ this.inspectLabel = "Inspect";
5280
+ }
5281
+ createRenderRoot() {
5282
+ return this;
5283
+ }
5284
+ _emit(next) {
5285
+ this.inspecting = next;
5286
+ this.dispatchEvent(
5287
+ new CustomEvent("se-inspect-toggle", {
5288
+ detail: { inspecting: next },
5289
+ bubbles: true,
5290
+ composed: true
5291
+ })
5292
+ );
5293
+ }
5294
+ _accentClasses() {
5295
+ if (this.accent === "blue") {
5296
+ return {
5297
+ track: "se-bg-blue-4",
5298
+ activeText: "se-text-blue-4",
5299
+ kbd: "se-border-blue-4/40 se-bg-blue-4/15 se-text-blue-4"
5300
+ };
5301
+ }
5302
+ return {
5303
+ track: "se-bg-purple-4",
5304
+ activeText: "se-text-purple-4",
5305
+ kbd: "se-border-purple-4/40 se-bg-purple-4/15 se-text-purple-4"
5306
+ };
5307
+ }
5308
+ render() {
5309
+ const c = this._accentClasses();
5310
+ const inspecting = this.inspecting;
5311
+ return html11`
5312
+ <div class="se-flex se-items-center se-gap-3 se-text-xs se-text-text-secondary">
5313
+ <button
5314
+ type="button"
5315
+ role="switch"
5316
+ aria-checked=${inspecting ? "true" : "false"}
5317
+ aria-label="Toggle inspect mode"
5318
+ @click=${() => this._emit(!inspecting)}
5319
+ class=${`se-relative se-inline-flex se-h-5 se-w-9 se-shrink-0 se-cursor-pointer se-rounded-full se-border-none se-transition-colors se-duration-150 ${inspecting ? c.track : "se-bg-border-primary"}`}
5320
+ >
5321
+ <span
5322
+ aria-hidden="true"
5323
+ class=${`se-pointer-events-none se-inline-block se-h-4 se-w-4 se-rounded-full se-bg-white se-shadow-sm se-transition-transform se-duration-150 ${inspecting ? "se-translate-x-4" : "se-translate-x-0.5"}`}
5324
+ style="margin-top:2px"
5325
+ ></span>
5326
+ </button>
5327
+ <span class=${inspecting ? c.activeText : ""}>
5328
+ ${inspecting ? this.inspectLabel : "Navigate"}
5329
+ </span>
5330
+ ${inspecting ? nothing6 : html11`<span class="se-ml-auto se-flex se-items-center se-gap-1">
5331
+ or press
5332
+ <kbd
5333
+ class=${`se-px-1.5 se-py-0.5 se-rounded se-border se-text-[10px] se-font-semibold ${c.kbd}`}
5334
+ >Ctrl</kbd>
5335
+ </span>`}
5336
+ </div>
5337
+ `;
5338
+ }
5339
+ };
5340
+ InspectToggleLit.properties = {
5341
+ inspecting: { type: Boolean },
5342
+ accent: { type: String },
5343
+ inspectLabel: { type: String }
5344
+ };
5345
+ if (!customElements.get("se-inspect-toggle")) {
5346
+ customElements.define("se-inspect-toggle", InspectToggleLit);
5347
+ }
5348
+
5272
5349
  // ../../shared-editor-ui/src/components/TileChromeEditorLit.ts
5273
- import { css as css2, html as html11, LitElement as LitElement10, nothing as nothing6 } from "lit";
5350
+ import { css as css2, html as html12, LitElement as LitElement11, nothing as nothing7 } from "lit";
5274
5351
  var EMOJI_LIST2 = [
5275
5352
  "\u{1F4B5}",
5276
5353
  "\u{1F4B0}",
@@ -5320,7 +5397,7 @@ var EMOJI_LIST2 = [
5320
5397
  "\u{1F4B9}",
5321
5398
  "\u{1F321}\uFE0F"
5322
5399
  ];
5323
- var TileChromeEditorLit2 = class extends LitElement10 {
5400
+ var TileChromeEditorLit2 = class extends LitElement11 {
5324
5401
  constructor() {
5325
5402
  super(...arguments);
5326
5403
  this.tileMeta = { title: "", subtitle: "", icon: "" };
@@ -5338,7 +5415,7 @@ var TileChromeEditorLit2 = class extends LitElement10 {
5338
5415
  this._patch("icon", value);
5339
5416
  }
5340
5417
  render() {
5341
- return html11`
5418
+ return html12`
5342
5419
  <form @submit=${(e) => e.preventDefault()}>
5343
5420
  <label>
5344
5421
  <span>Title</span>
@@ -5371,13 +5448,13 @@ var TileChromeEditorLit2 = class extends LitElement10 {
5371
5448
  this._pickerOpen = !this._pickerOpen;
5372
5449
  }}
5373
5450
  >
5374
- ${this.tileMeta.icon ? html11`<span style="font-size: 20px">${this.tileMeta.icon}</span>` : html11`<span style="color: var(--syntro-text-tertiary, #87919f)">Choose icon…</span>`}
5451
+ ${this.tileMeta.icon ? html12`<span style="font-size: 20px">${this.tileMeta.icon}</span>` : html12`<span style="color: var(--syntro-text-tertiary, #87919f)">Choose icon…</span>`}
5375
5452
  </button>
5376
5453
 
5377
- ${this._pickerOpen ? html11`
5454
+ ${this._pickerOpen ? html12`
5378
5455
  <div data-emoji-grid class="emoji-grid">
5379
5456
  ${EMOJI_LIST2.map(
5380
- (emoji) => html11`
5457
+ (emoji) => html12`
5381
5458
  <button
5382
5459
  type="button"
5383
5460
  data-emoji=${emoji}
@@ -5388,7 +5465,7 @@ var TileChromeEditorLit2 = class extends LitElement10 {
5388
5465
  `
5389
5466
  )}
5390
5467
  </div>
5391
- ` : nothing6}
5468
+ ` : nothing7}
5392
5469
  </div>
5393
5470
  </form>
5394
5471
  `;
@@ -5502,8 +5579,8 @@ if (!customElements.get("syntro-tile-chrome-editor")) {
5502
5579
  }
5503
5580
 
5504
5581
  // src/nav-item-editor.ts
5505
- import { css as css3, html as html12, LitElement as LitElement11, nothing as nothing7 } from "lit";
5506
- var NavItemEditorLit = class extends LitElement11 {
5582
+ import { css as css3, html as html13, LitElement as LitElement12, nothing as nothing8 } from "lit";
5583
+ var NavItemEditorLit = class extends LitElement12 {
5507
5584
  constructor() {
5508
5585
  super(...arguments);
5509
5586
  this.itemId = "";
@@ -5541,10 +5618,10 @@ var NavItemEditorLit = class extends LitElement11 {
5541
5618
  render() {
5542
5619
  const item = this._findItem();
5543
5620
  if (!item) {
5544
- return html12`<p>Item not found</p>`;
5621
+ return html13`<p>Item not found</p>`;
5545
5622
  }
5546
5623
  const tip = item;
5547
- return html12`
5624
+ return html13`
5548
5625
  <form @submit=${(e) => e.preventDefault()}>
5549
5626
  <div>
5550
5627
  <label>
@@ -5621,12 +5698,12 @@ var NavItemEditorLit = class extends LitElement11 {
5621
5698
  </label>
5622
5699
  </div>
5623
5700
 
5624
- ${tip.rationale ? html12`
5701
+ ${tip.rationale ? html13`
5625
5702
  <div>
5626
5703
  <span>AI Rationale</span>
5627
5704
  <div data-rationale>${tip.rationale.why}</div>
5628
5705
  </div>
5629
- ` : nothing7}
5706
+ ` : nothing8}
5630
5707
  </form>
5631
5708
  `;
5632
5709
  }
@@ -5693,7 +5770,7 @@ NavItemEditorLit.properties = {
5693
5770
  customElements.define("syntro-nav-item-editor", NavItemEditorLit);
5694
5771
 
5695
5772
  // src/NavWidgetLit.editable.ts
5696
- import { html as html13, LitElement as LitElement12, nothing as nothing8 } from "lit";
5773
+ import { html as html14, LitElement as LitElement13, nothing as nothing9 } from "lit";
5697
5774
  import { styleMap as styleMap4 } from "lit/directives/style-map.js";
5698
5775
  function sm(styles) {
5699
5776
  return styles;
@@ -5818,7 +5895,7 @@ var TILE_EDIT_BTN_VISIBLE_STYLE = {
5818
5895
  ...TILE_EDIT_BTN_STYLE,
5819
5896
  opacity: "1"
5820
5897
  };
5821
- var NavTipsEditableElement = class extends LitElement12 {
5898
+ var NavTipsEditableElement = class extends LitElement13 {
5822
5899
  constructor() {
5823
5900
  super(...arguments);
5824
5901
  // -------------------------------------------------------------------------
@@ -5927,7 +6004,7 @@ var NavTipsEditableElement = class extends LitElement12 {
5927
6004
  const isHovered = this._hoveredId === id;
5928
6005
  const rowStyle = isHovered ? ROW_HOVER_STYLE : ROW_STYLE;
5929
6006
  const pencilStyle = isHovered ? PENCIL_VISIBLE_STYLE : PENCIL_STYLE;
5930
- return html13`
6007
+ return html14`
5931
6008
  <div
5932
6009
  data-nav-editable-row
5933
6010
  data-item-id=${id}
@@ -5939,18 +6016,18 @@ var NavTipsEditableElement = class extends LitElement12 {
5939
6016
  this._hoveredId = null;
5940
6017
  }}
5941
6018
  >
5942
- ${showHandles ? html13`
6019
+ ${showHandles ? html14`
5943
6020
  <span
5944
6021
  data-drag-handle
5945
6022
  style=${styleMap4(sm(DRAG_HANDLE_STYLE))}
5946
6023
  title="Drag to reorder"
5947
6024
  aria-hidden="true"
5948
6025
  >⠿</span>
5949
- ` : nothing8}
6026
+ ` : nothing9}
5950
6027
 
5951
6028
  <span style=${styleMap4(sm(CONTENT_STYLE))}>
5952
6029
  <span style=${styleMap4(sm(TITLE_STYLE))}>${title}</span>
5953
- ${description ? html13`<span style=${styleMap4(sm(DESCRIPTION_STYLE))}>${description}</span>` : nothing8}
6030
+ ${description ? html14`<span style=${styleMap4(sm(DESCRIPTION_STYLE))}>${description}</span>` : nothing9}
5954
6031
  </span>
5955
6032
 
5956
6033
  <button
@@ -5973,7 +6050,7 @@ var NavTipsEditableElement = class extends LitElement12 {
5973
6050
  const hasController = this.controller !== null;
5974
6051
  const showHandles = hasController && items.length >= 2;
5975
6052
  if (items.length === 0) {
5976
- return html13`
6053
+ return html14`
5977
6054
  <div
5978
6055
  style=${styleMap4(sm(CONTAINER_STYLE))}
5979
6056
  data-adaptive-id="nav-editable"
@@ -5987,7 +6064,7 @@ var NavTipsEditableElement = class extends LitElement12 {
5987
6064
  }
5988
6065
  if (hasController) {
5989
6066
  const editBtnStyle = this._containerHovered ? TILE_EDIT_BTN_VISIBLE_STYLE : TILE_EDIT_BTN_STYLE;
5990
- return html13`
6067
+ return html14`
5991
6068
  <div
5992
6069
  style=${styleMap4(sm({ ...CONTAINER_STYLE, position: "relative" }))}
5993
6070
  data-adaptive-id="nav-editable"
@@ -6011,21 +6088,21 @@ var NavTipsEditableElement = class extends LitElement12 {
6011
6088
  </div>
6012
6089
  `;
6013
6090
  }
6014
- return html13`
6091
+ return html14`
6015
6092
  <div
6016
6093
  style=${styleMap4(sm(CONTAINER_STYLE))}
6017
6094
  data-adaptive-id="nav-editable"
6018
6095
  data-adaptive-type="adaptive-nav"
6019
6096
  >
6020
6097
  ${items.map(
6021
- (item) => html13`
6098
+ (item) => html14`
6022
6099
  <div
6023
6100
  style=${styleMap4(sm(ROW_STYLE))}
6024
6101
  data-nav-tip-id=${item.config.id}
6025
6102
  >
6026
6103
  <span style=${styleMap4(sm(CONTENT_STYLE))}>
6027
6104
  <span style=${styleMap4(sm(TITLE_STYLE))}>${item.config.title}</span>
6028
- ${item.config.description ? html13`<span style=${styleMap4(sm(DESCRIPTION_STYLE))}>${item.config.description}</span>` : nothing8}
6105
+ ${item.config.description ? html14`<span style=${styleMap4(sm(DESCRIPTION_STYLE))}>${item.config.description}</span>` : nothing9}
6029
6106
  </span>
6030
6107
  </div>
6031
6108
  `
@@ -6133,7 +6210,7 @@ var runDetection = (items) => {
6133
6210
  for (const item of items) map.set(item.key, detectItem(item));
6134
6211
  return map;
6135
6212
  };
6136
- var NavEditorLit = class extends LitElement13 {
6213
+ var NavEditorLit = class extends LitElement14 {
6137
6214
  constructor() {
6138
6215
  super(...arguments);
6139
6216
  this.config = null;
@@ -6184,7 +6261,7 @@ var NavEditorLit = class extends LitElement13 {
6184
6261
  // ---- Render ----
6185
6262
  this._renderAnchorButton = (item) => {
6186
6263
  const state = this._detectionMap.get(item.key)?.state ?? "missing";
6187
- return html14`<se-anchor-pill
6264
+ return html15`<se-anchor-pill
6188
6265
  .state=${state}
6189
6266
  .selector=${item.selector}
6190
6267
  .route=${item.route}
@@ -6195,8 +6272,8 @@ var NavEditorLit = class extends LitElement13 {
6195
6272
  ></se-anchor-pill>`;
6196
6273
  };
6197
6274
  this._renderEditMode = (item) => {
6198
- if (!this.config) return nothing9;
6199
- return html14`
6275
+ if (!this.config) return nothing10;
6276
+ return html15`
6200
6277
  <div class="se-py-1">
6201
6278
  <div class="se-flex se-items-center se-gap-2 se-mb-3 se-text-[13px] se-font-semibold se-text-text-primary">
6202
6279
  <span>🧭</span>
@@ -6212,7 +6289,7 @@ var NavEditorLit = class extends LitElement13 {
6212
6289
  </div>
6213
6290
  `;
6214
6291
  };
6215
- this._renderItemCard = (item) => html14`
6292
+ this._renderItemCard = (item) => html15`
6216
6293
  <div
6217
6294
  data-item-key=${item.key}
6218
6295
  data-card-body
@@ -6226,38 +6303,38 @@ var NavEditorLit = class extends LitElement13 {
6226
6303
  deleteTestid: `delete-nav-${item.key}`,
6227
6304
  deleteLabel: "Delete tip"
6228
6305
  })}
6229
- ${item.description ? html14`<div
6306
+ ${item.description ? html15`<div
6230
6307
  data-testid=${`nav-description-${item.key}`}
6231
6308
  class="se-text-[11px] se-text-text-secondary se-mt-1.5 se-line-clamp-2"
6232
- >${item.description}</div>` : nothing9}
6233
- ${item.trigger !== "All pages" ? html14`
6309
+ >${item.description}</div>` : nothing10}
6310
+ ${item.trigger !== "All pages" ? html15`
6234
6311
  <div
6235
6312
  data-testid=${`nav-trigger-${item.key}`}
6236
6313
  class="se-text-[10px] se-text-text-tertiary se-mt-1"
6237
6314
  >📍 ${item.trigger}</div>
6238
- ` : nothing9}
6239
- ${item.validation && item.validation.length > 0 ? html14`<div
6315
+ ` : nothing10}
6316
+ ${item.validation && item.validation.length > 0 ? html15`<div
6240
6317
  data-testid=${`nav-validation-${item.key}`}
6241
6318
  class="se-mt-1.5 se-flex se-flex-col se-gap-0.5"
6242
6319
  >
6243
6320
  ${item.validation.map(
6244
- (line) => html14`<div
6321
+ (line) => html15`<div
6245
6322
  class="se-text-[10px] se-text-text-tertiary se-flex se-items-start se-gap-1"
6246
6323
  ><span class="se-text-text-tertiary">✓</span><span>${line}</span></div>`
6247
6324
  )}
6248
- </div>` : nothing9}
6249
- ${item.rationale ? html14`
6325
+ </div>` : nothing10}
6326
+ ${item.rationale ? html15`
6250
6327
  <div class="se-text-[10px] se-text-text-tertiary se-mt-1">WHY: ${item.rationale}</div>
6251
- ` : nothing9}
6328
+ ` : nothing10}
6252
6329
  </div>
6253
6330
  `;
6254
6331
  this._renderListMode = (items) => {
6255
6332
  if (items.length === 0) {
6256
- return html14`<div class="se-text-center se-py-8 se-px-4 se-text-text-secondary se-text-sm">
6333
+ return html15`<div class="se-text-center se-py-8 se-px-4 se-text-text-secondary se-text-sm">
6257
6334
  No tips configured.
6258
6335
  </div>`;
6259
6336
  }
6260
- return html14`
6337
+ return html15`
6261
6338
  <div class="se-text-[11px] se-font-semibold se-uppercase se-tracking-wider se-text-text-secondary se-mb-2 se-px-1">
6262
6339
  TIPS <span class="se-text-text-tertiary se-font-normal">${items.length}</span>
6263
6340
  </div>
@@ -6290,11 +6367,11 @@ var NavEditorLit = class extends LitElement13 {
6290
6367
  }
6291
6368
  render() {
6292
6369
  if (!this.config) {
6293
- return html14`<div class="se-p-8 se-text-center se-text-text-secondary se-text-sm">Loading...</div>`;
6370
+ return html15`<div class="se-p-8 se-text-center se-text-text-secondary se-text-sm">Loading...</div>`;
6294
6371
  }
6295
6372
  const items = flattenItems(this.config);
6296
6373
  const editItem = this._editingKey !== null ? items.find((it) => it.key === this._editingKey) : null;
6297
- return html14`
6374
+ return html15`
6298
6375
  <div class="se-flex se-flex-col se-h-full">
6299
6376
  <!-- Header (no Back button — panel provides that) -->
6300
6377
  <div class="se-px-4 se-pt-3 se-pb-1">
@@ -6305,7 +6382,7 @@ var NavEditorLit = class extends LitElement13 {
6305
6382
  </div>
6306
6383
 
6307
6384
  <div class="se-flex-1 se-overflow-auto se-p-4">
6308
- ${editItem ? html14`
6385
+ ${editItem ? html15`
6309
6386
  <button type="button" @click=${() => {
6310
6387
  this._editingKey = null;
6311
6388
  }}