@markupai/sidebar-adapter 1.5.0 → 1.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/README.md +2 -0
- package/asyncapi.json +90 -10
- package/dist/adapters/pluginAdapter.d.ts +8 -0
- package/dist/adapters/pluginAdapter.d.ts.map +1 -1
- package/dist/ipc/call-signatures.d.ts +6 -0
- package/dist/ipc/call-signatures.d.ts.map +1 -1
- package/dist/ipc/plugin-ipc-adapter.d.ts +7 -0
- package/dist/ipc/plugin-ipc-adapter.d.ts.map +1 -1
- package/dist/ipc/sidebar-ipc-adapter.d.ts.map +1 -1
- package/dist/main.js +22 -9
- package/dist/main.umd.cjs +3 -3
- package/dist/types/common.d.ts +11 -0
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/pluginInterface.d.ts +21 -0
- package/dist/types/pluginInterface.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -49,6 +49,7 @@ The sidebar runs the **agentic** experience. Its optional `PluginInterface` hook
|
|
|
49
49
|
|
|
50
50
|
- **Receive streaming results** — implement **`onAgenticAgentResults`** and **`onAgenticStreamComplete`** to get issues (each with its suggestions) as they stream plus a completion signal, so you can draw your own underlines or build a context menu (see [PluginInterface](#plugininterface)).
|
|
51
51
|
- **Track issue state** — implement **`onAgenticIssueStatusChanged`**; the sidebar emits it after every Open / Resolved / Dismissed transition so you can keep annotations or other host UI in sync.
|
|
52
|
+
- **Know when a document's check is discarded** — implement **`onAgenticIssuesCleared`**; the sidebar emits it when the user clears a document's data, so you can drop highlights instead of pointing at suggestions that no longer exist.
|
|
52
53
|
- **Drive the sidebar** — call **`activateAgenticIssue`** to expand and scroll to a card (e.g. when the user clicks an underline or picks the issue from a context menu), and **`markAgenticIssueResolved`** / **`restoreAgenticIssue`** / **`invalidateAgenticIssue`** to resolve / restore / dismiss a card — for example after applying a suggestion inline from your own context menu.
|
|
53
54
|
|
|
54
55
|
See [Agentic issue lifecycle](#agentic-issue-lifecycle).
|
|
@@ -513,6 +514,7 @@ Optional (agentic / streaming flows):
|
|
|
513
514
|
- `onAgenticAgentResults?(agentName: string, issues: AgenticIssuePayload[], documentReference: string | null): Promise<void>` — Per-agent results as they stream. `documentReference` is the document the check ran against — the run's _originating_ document, not necessarily whichever one is active when the callback fires, since a check keeps streaming in the background after the active document changes (see [Multi-document hosts](#multi-document-hosts)). `null` when `multiDocument` is not enabled
|
|
514
515
|
- `onAgenticStreamComplete?(documentReference: string | null): Promise<void>` — Stream finished (success or terminal state). Same `documentReference` rule as `onAgenticAgentResults`
|
|
515
516
|
- `onAgenticIssueStatusChanged?(issueId: string, status: "active" | "resolved" | "dismissed", source: "user" | "host"): Promise<void>` — Fired after every successful per-issue status transition. `source` is `"user"` for sidebar-card-driven transitions and `"host"` for transitions driven by the inbound `SidebarInterface` RPCs (`invalidateAgenticIssue` / `markAgenticIssueResolved` / `restoreAgenticIssue`). Best-effort: an absent or throwing handler MUST NOT block sidebar UI transitions. No-op RPC calls do not re-emit this notification.
|
|
517
|
+
- `onAgenticIssuesCleared?(documentReference: string | null): Promise<void>` — Fired when the sidebar discards a document's check entirely, with nothing replacing it: the user cleared the document's data. Drop your highlights and any mirrored issue state for that document. `documentReference` names the cleared document (`null` when `multiDocument` is not enabled). **Not** fired for a re-check, where a fresh result stream replaces the previous set — rebuild from `onAgenticAgentResults` as usual there. Best-effort: an absent or throwing handler does not prevent or roll back the sidebar's own clear.
|
|
516
518
|
|
|
517
519
|
Optional (authentication):
|
|
518
520
|
|
package/asyncapi.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"asyncapi": "3.0.0",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Markup AI Sidebar IPC contract",
|
|
5
|
-
"version": "1.5.
|
|
5
|
+
"version": "1.5.3",
|
|
6
6
|
"description": "Bidirectional RPC-over-postMessage contract between the Markup AI sidebar and its host. Generated from the @markupai/sidebar-adapter TypeScript types — do not hand-edit."
|
|
7
7
|
},
|
|
8
8
|
"channels": {
|
|
@@ -52,6 +52,12 @@
|
|
|
52
52
|
"onAgenticIssueStatusChanged_response": {
|
|
53
53
|
"$ref": "#/components/messages/onAgenticIssueStatusChanged_response"
|
|
54
54
|
},
|
|
55
|
+
"onAgenticIssuesCleared_call": {
|
|
56
|
+
"$ref": "#/components/messages/onAgenticIssuesCleared_call"
|
|
57
|
+
},
|
|
58
|
+
"onAgenticIssuesCleared_response": {
|
|
59
|
+
"$ref": "#/components/messages/onAgenticIssuesCleared_response"
|
|
60
|
+
},
|
|
55
61
|
"openAuthUrl_call": { "$ref": "#/components/messages/openAuthUrl_call" },
|
|
56
62
|
"openAuthUrl_response": { "$ref": "#/components/messages/openAuthUrl_response" },
|
|
57
63
|
"copyToClipboard_call": { "$ref": "#/components/messages/copyToClipboard_call" },
|
|
@@ -150,7 +156,7 @@
|
|
|
150
156
|
"action": "send",
|
|
151
157
|
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
152
158
|
"title": "replaceContent",
|
|
153
|
-
"description": "Replace content over [range.start, range.end).",
|
|
159
|
+
"description": "Replace content over [range.start, range.end). documentReference is the originating document (null when multiDocument is not enabled).",
|
|
154
160
|
"x-optional": false,
|
|
155
161
|
"messages": [{ "$ref": "#/channels/sidebarToPlugin/messages/replaceContent_call" }],
|
|
156
162
|
"reply": {
|
|
@@ -165,7 +171,7 @@
|
|
|
165
171
|
"action": "send",
|
|
166
172
|
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
167
173
|
"title": "selectContent",
|
|
168
|
-
"description": "Select content at [range.start, range.end).",
|
|
174
|
+
"description": "Select content at [range.start, range.end). documentReference is the originating document (null when multiDocument is not enabled).",
|
|
169
175
|
"x-optional": false,
|
|
170
176
|
"messages": [{ "$ref": "#/channels/sidebarToPlugin/messages/selectContent_call" }],
|
|
171
177
|
"reply": {
|
|
@@ -283,6 +289,21 @@
|
|
|
283
289
|
]
|
|
284
290
|
}
|
|
285
291
|
},
|
|
292
|
+
"onAgenticIssuesCleared": {
|
|
293
|
+
"action": "send",
|
|
294
|
+
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
295
|
+
"title": "onAgenticIssuesCleared",
|
|
296
|
+
"description": "Notify plugin that a document's check was discarded with nothing replacing it, so the host can drop its highlights. documentReference is the cleared document (null when multiDocument is not enabled). Not sent for a re-check. Optional.",
|
|
297
|
+
"x-optional": true,
|
|
298
|
+
"messages": [{ "$ref": "#/channels/sidebarToPlugin/messages/onAgenticIssuesCleared_call" }],
|
|
299
|
+
"reply": {
|
|
300
|
+
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
301
|
+
"messages": [
|
|
302
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/onAgenticIssuesCleared_response" },
|
|
303
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/ipc_error" }
|
|
304
|
+
]
|
|
305
|
+
}
|
|
306
|
+
},
|
|
286
307
|
"openAuthUrl": {
|
|
287
308
|
"action": "send",
|
|
288
309
|
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
@@ -349,7 +370,7 @@
|
|
|
349
370
|
"action": "send",
|
|
350
371
|
"channel": { "$ref": "#/channels/pluginToSidebar" },
|
|
351
372
|
"title": "activateAgenticIssue",
|
|
352
|
-
"description": "Activate (expand/scroll to) an issue card.",
|
|
373
|
+
"description": "Activate (expand/scroll to) an issue card. documentReference is the originating document (null when multiDocument is not enabled).",
|
|
353
374
|
"x-optional": false,
|
|
354
375
|
"messages": [{ "$ref": "#/channels/pluginToSidebar/messages/activateAgenticIssue_call" }],
|
|
355
376
|
"reply": {
|
|
@@ -564,10 +585,11 @@
|
|
|
564
585
|
"type": "array",
|
|
565
586
|
"prefixItems": [
|
|
566
587
|
{ "type": "string" },
|
|
567
|
-
{ "$ref": "#/components/schemas/ContentRange" }
|
|
588
|
+
{ "$ref": "#/components/schemas/ContentRange" },
|
|
589
|
+
{ "type": ["string", "null"] }
|
|
568
590
|
],
|
|
569
591
|
"minItems": 2,
|
|
570
|
-
"maxItems":
|
|
592
|
+
"maxItems": 3,
|
|
571
593
|
"items": false
|
|
572
594
|
}
|
|
573
595
|
}
|
|
@@ -603,9 +625,12 @@
|
|
|
603
625
|
"name": { "const": "selectContent" },
|
|
604
626
|
"data": {
|
|
605
627
|
"type": "array",
|
|
606
|
-
"prefixItems": [
|
|
628
|
+
"prefixItems": [
|
|
629
|
+
{ "$ref": "#/components/schemas/ContentRange" },
|
|
630
|
+
{ "type": ["string", "null"] }
|
|
631
|
+
],
|
|
607
632
|
"minItems": 1,
|
|
608
|
-
"maxItems":
|
|
633
|
+
"maxItems": 2,
|
|
609
634
|
"items": false
|
|
610
635
|
}
|
|
611
636
|
}
|
|
@@ -911,6 +936,44 @@
|
|
|
911
936
|
}
|
|
912
937
|
}
|
|
913
938
|
},
|
|
939
|
+
"onAgenticIssuesCleared_call": {
|
|
940
|
+
"name": "onAgenticIssuesCleared_call",
|
|
941
|
+
"title": "call onAgenticIssuesCleared",
|
|
942
|
+
"payload": {
|
|
943
|
+
"title": "onAgenticIssuesCleared_call",
|
|
944
|
+
"type": "object",
|
|
945
|
+
"additionalProperties": false,
|
|
946
|
+
"required": ["type", "id", "name", "data"],
|
|
947
|
+
"properties": {
|
|
948
|
+
"type": { "const": "call" },
|
|
949
|
+
"id": { "type": "integer" },
|
|
950
|
+
"name": { "const": "onAgenticIssuesCleared" },
|
|
951
|
+
"data": {
|
|
952
|
+
"type": "array",
|
|
953
|
+
"prefixItems": [{ "type": ["string", "null"] }],
|
|
954
|
+
"minItems": 1,
|
|
955
|
+
"maxItems": 1,
|
|
956
|
+
"items": false
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
},
|
|
961
|
+
"onAgenticIssuesCleared_response": {
|
|
962
|
+
"name": "onAgenticIssuesCleared_response",
|
|
963
|
+
"title": "response onAgenticIssuesCleared",
|
|
964
|
+
"payload": {
|
|
965
|
+
"title": "onAgenticIssuesCleared_response",
|
|
966
|
+
"type": "object",
|
|
967
|
+
"additionalProperties": false,
|
|
968
|
+
"required": ["type", "id", "name", "data"],
|
|
969
|
+
"properties": {
|
|
970
|
+
"type": { "const": "response" },
|
|
971
|
+
"id": { "type": "integer" },
|
|
972
|
+
"name": { "const": "onAgenticIssuesCleared" },
|
|
973
|
+
"data": { "type": "null" }
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
},
|
|
914
977
|
"openAuthUrl_call": {
|
|
915
978
|
"name": "openAuthUrl_call",
|
|
916
979
|
"title": "call openAuthUrl",
|
|
@@ -1083,9 +1146,9 @@
|
|
|
1083
1146
|
"name": { "const": "activateAgenticIssue" },
|
|
1084
1147
|
"data": {
|
|
1085
1148
|
"type": "array",
|
|
1086
|
-
"prefixItems": [{ "type": "string" }],
|
|
1149
|
+
"prefixItems": [{ "type": "string" }, { "type": ["string", "null"] }],
|
|
1087
1150
|
"minItems": 1,
|
|
1088
|
-
"maxItems":
|
|
1151
|
+
"maxItems": 2,
|
|
1089
1152
|
"items": false
|
|
1090
1153
|
}
|
|
1091
1154
|
}
|
|
@@ -1430,6 +1493,10 @@
|
|
|
1430
1493
|
"type": "string",
|
|
1431
1494
|
"description": "Version string of the host integration (the plugin/add-in build, not the sidebar or this adapter). Display only — e.g. shown on the sidebar's About page next to {@link SidebarConfig.integrationName } . Free-form; hosts typically pass their own package/build version such as `\"1.4.2\"`."
|
|
1432
1495
|
},
|
|
1496
|
+
"hostAppVersion": {
|
|
1497
|
+
"type": "string",
|
|
1498
|
+
"description": "Version string of the host application/editor itself — the surrounding app the plugin/add-in runs inside (e.g. the Figma desktop app build, or the Madcap Flare version), not the plugin's own version ( {@link SidebarConfig.integrationVersion } ) or the sidebar's/adapter's. Display only — appended to the integration name/version line on the sidebar's About page when present. Omit when the host cannot report its own version; the About page leaves it out rather than showing a placeholder."
|
|
1499
|
+
},
|
|
1433
1500
|
"integrationId": {
|
|
1434
1501
|
"type": "string",
|
|
1435
1502
|
"description": "Stable, machine-readable identifier for the integration. Used for everything non-display: the Auth0 mediation login provider, PostHog analytics keys, the `x-integration-id` API header, and per-integration settings storage. Should be a stable slug (lowercase, hyphenated, no spaces) that does not change between releases. Example: `\"madcap-flare-desktop\"`.\n\nOptional for backward compatibility: when omitted the sidebar falls back to `DEFAULT_SIDEBAR_CONFIG.integrationId` (`\"markupai-sidebar-app\"`). Hosts that use mediation login or want per-integration analytics/storage should set it."
|
|
@@ -1727,6 +1794,19 @@
|
|
|
1727
1794
|
},
|
|
1728
1795
|
"description": "Called by the sidebar after every successful status transition for an agentic issue. Fires for transitions driven by sidebar card affordances (`source: \"user\"`) and by host RPC calls ( {@link SidebarInterface.invalidateAgenticIssue } , {@link SidebarInterface.markAgenticIssueResolved } , {@link SidebarInterface.restoreAgenticIssue } , `source: \"host\"`).\n\nBest-effort: the sidebar tolerates a missing or throwing implementation and does not roll back its own UI on failure. No-op calls (e.g. marking an already-resolved issue) MUST NOT emit a duplicate notification."
|
|
1729
1796
|
},
|
|
1797
|
+
"onAgenticIssuesCleared": {
|
|
1798
|
+
"$comment": "(documentReference: string | null) => Promise<void>",
|
|
1799
|
+
"type": "object",
|
|
1800
|
+
"properties": {
|
|
1801
|
+
"namedArgs": {
|
|
1802
|
+
"type": "object",
|
|
1803
|
+
"properties": { "documentReference": { "type": ["string", "null"] } },
|
|
1804
|
+
"required": ["documentReference"],
|
|
1805
|
+
"additionalProperties": false
|
|
1806
|
+
}
|
|
1807
|
+
},
|
|
1808
|
+
"description": "Called when the sidebar discards a document's check entirely — its issues and everything the user decided about them — with nothing replacing it. Hosts that draw their own highlights from {@link PluginInterface.onAgenticAgentResults } should drop them, and any mirrored issue state, for that document.\n\nFires when the user confirms **Clear Document Data**. It does **not** fire for a re-check, nor for the internal reset when a check covers fewer agents than the last one: both are followed immediately by a fresh result stream, so a host clearing there would discard highlights it is about to be handed again.\n\nBest-effort: a missing or throwing implementation does not prevent or roll back the sidebar's own clear."
|
|
1809
|
+
},
|
|
1730
1810
|
"openAuthUrl": {
|
|
1731
1811
|
"$comment": "(url: string) => Promise<void>",
|
|
1732
1812
|
"type": "object",
|
|
@@ -64,6 +64,14 @@ export declare class PluginAdapter {
|
|
|
64
64
|
* swallow that error since the handler is documented as best-effort.
|
|
65
65
|
*/
|
|
66
66
|
onAgenticIssueStatusChanged(issueId: string, status: "active" | "resolved" | "dismissed", source: "user" | "host"): Promise<void>;
|
|
67
|
+
/**
|
|
68
|
+
* Notify plugin that a document's check was discarded with nothing replacing
|
|
69
|
+
* it. Optional on the host side — the returned promise rejects if the host
|
|
70
|
+
* has not implemented `onAgenticIssuesCleared`. Callers should swallow that
|
|
71
|
+
* error, since the handler is documented as best-effort and the clear has
|
|
72
|
+
* already happened.
|
|
73
|
+
*/
|
|
74
|
+
onAgenticIssuesCleared(documentReference?: string | null): Promise<void>;
|
|
67
75
|
/**
|
|
68
76
|
* Ask the host plugin to open an external URL during an auth flow.
|
|
69
77
|
* The returned promise rejects if the host has not implemented the handler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pluginAdapter.d.ts","sourceRoot":"","sources":["../../src/adapters/pluginAdapter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,yBAAyB,EACzB,6BAA6B,EAC9B,MAAM,SAAS,CAAC;AAEjB;;;;;;;GAOG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAmB;gBAElC,OAAO,CAAC,EAAE,gBAAgB,EAAE,MAAM,CAAC,EAAE,SAAS,EAAE,YAAY,CAAC,EAAE,MAAM;IAKjF;;OAEG;IACI,OAAO,IAAI,IAAI;IAKtB;;OAEG;IACU,aAAa,IAAI,OAAO,CAAC,aAAa,CAAC;IAKpD;;;OAGG;IACU,UAAU,CAAC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,IAAI,CAAC;IAIhB;;OAEG;IACI,SAAS,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI;IAIzC;;OAEG;IACI,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI;IAIlD;;OAEG;IACI,eAAe,IAAI,MAAM;CAGjC"}
|
|
@@ -66,6 +66,12 @@ export interface CallSignatures {
|
|
|
66
66
|
* {@link PluginInterface.onAgenticIssueStatusChanged}.
|
|
67
67
|
*/
|
|
68
68
|
onAgenticIssueStatusChanged?(issueId: string, status: "active" | "resolved" | "dismissed", source: "user" | "host"): Promise<void>;
|
|
69
|
+
/**
|
|
70
|
+
* Notify plugin that a document's check was discarded with nothing replacing
|
|
71
|
+
* it. Optional on the plugin side; absent handler is a no-op. See
|
|
72
|
+
* {@link PluginInterface.onAgenticIssuesCleared}.
|
|
73
|
+
*/
|
|
74
|
+
onAgenticIssuesCleared?(documentReference: string | null): Promise<void>;
|
|
69
75
|
/**
|
|
70
76
|
* Ask the plugin to open an external URL during an auth flow.
|
|
71
77
|
* See {@link PluginInterface.openAuthUrl}.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call-signatures.d.ts","sourceRoot":"","sources":["../../src/ipc/call-signatures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,aAAa,EACb,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EACV,yBAAyB,EACzB,6BAA6B,EAC7B,wBAAwB,EACxB,2BAA2B,EAC5B,MAAM,6BAA6B,CAAC;AAErC;;;GAGG;AACH,MAAM,WAAW,cAAc;IAK7B;;OAEG;IACH,UAAU,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC;IAEnC;;OAEG;IACH,kBAAkB,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC;IAE3C;;;;;;OAMG;IACH,cAAc,CACZ,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE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C;IAE/D;;;;;OAKG;IACH,uBAAuB,CAAC,CAAC,iBAAiB,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3E"}
|
|
@@ -64,6 +64,13 @@ export declare class PluginIPCAdapter {
|
|
|
64
64
|
* "No receiver registered" error since the notification is best-effort.
|
|
65
65
|
*/
|
|
66
66
|
onAgenticIssueStatusChanged(issueId: string, status: "active" | "resolved" | "dismissed", source: "user" | "host"): Promise<void>;
|
|
67
|
+
/**
|
|
68
|
+
* Notify plugin that a document's check was discarded with nothing replacing
|
|
69
|
+
* it. Hosts may not have registered a handler — callers swallow the resulting
|
|
70
|
+
* "No receiver registered" error since the notification is best-effort and
|
|
71
|
+
* the clear has already happened.
|
|
72
|
+
*/
|
|
73
|
+
onAgenticIssuesCleared(documentReference?: string | null): Promise<void>;
|
|
67
74
|
/**
|
|
68
75
|
* Ask the plugin to open an external URL during an auth flow.
|
|
69
76
|
* Throws if the plugin has not registered a handler, so callers can fall
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-ipc-adapter.d.ts","sourceRoot":"","sources":["../../src/ipc/plugin-ipc-adapter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAc,MAAM,qBAAqB,CAAC;AAC9E,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,aAAa,EACb,mBAAmB,EAEpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EACV,yBAAyB,EACzB,6BAA6B,EAE9B,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAEjE;;;;;;GAMG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAU;IAC9B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmB;IAC3C,OAAO,CAAC,YAAY,CAAS;gBAEjB,OAAO,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,IAAW,GACtC,OAAO,CAAC,IAAI,CAAC;IAKhB;;OAEG;IACU,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAKnE;;OAEG;IACU,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAKrE;;OAEG;IACU,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAKhE;;;OAGG;IACU,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IAKvF;;OAEG;IACU,wBAAwB,CAAC,KAAK,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC;IAKrF;;OAEG;IACU,sBAAsB,IAAI,OAAO,CAAC,2BAA2B,CAAC;IAK3E;;;;OAIG;IACU,2BAA2B,CAAC,iBAAiB,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAKzF;;OAEG;IACI,SAAS,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI;IAIzC;;OAEG;IACI,OAAO,IAAI,IAAI;CAKvB"}
|
package/dist/main.js
CHANGED
|
@@ -285,6 +285,9 @@ var L = class {
|
|
|
285
285
|
async onAgenticIssueStatusChanged(e, t, i) {
|
|
286
286
|
await this.ipc.call("onAgenticIssueStatusChanged", e, t, i);
|
|
287
287
|
}
|
|
288
|
+
async onAgenticIssuesCleared(e = null) {
|
|
289
|
+
await this.ipc.call("onAgenticIssuesCleared", e);
|
|
290
|
+
}
|
|
288
291
|
async openAuthUrl(e) {
|
|
289
292
|
await this.ipc.call("openAuthUrl", e);
|
|
290
293
|
}
|
|
@@ -354,6 +357,9 @@ var L = class {
|
|
|
354
357
|
onAgenticIssueStatusChanged(e, t, i) {
|
|
355
358
|
return this.ipcAdapter.onAgenticIssueStatusChanged(e, t, i);
|
|
356
359
|
}
|
|
360
|
+
onAgenticIssuesCleared(e = null) {
|
|
361
|
+
return this.ipcAdapter.onAgenticIssuesCleared(e);
|
|
362
|
+
}
|
|
357
363
|
openAuthUrl(e) {
|
|
358
364
|
return this.ipcAdapter.openAuthUrl(e);
|
|
359
365
|
}
|
|
@@ -415,6 +421,13 @@ var L = class {
|
|
|
415
421
|
await n(e, t, i);
|
|
416
422
|
} catch {
|
|
417
423
|
}
|
|
424
|
+
}), this.ipc.receive("onAgenticIssuesCleared", async (e) => {
|
|
425
|
+
const t = this.plugin.onAgenticIssuesCleared;
|
|
426
|
+
if (t)
|
|
427
|
+
try {
|
|
428
|
+
await t(typeof e == "string" ? e : null);
|
|
429
|
+
} catch {
|
|
430
|
+
}
|
|
418
431
|
}), this.plugin.openAuthUrl) {
|
|
419
432
|
const e = this.plugin.openAuthUrl;
|
|
420
433
|
this.ipc.receive("openAuthUrl", async (t) => {
|
|
@@ -635,7 +648,7 @@ var L = class {
|
|
|
635
648
|
} catch {
|
|
636
649
|
return "*";
|
|
637
650
|
}
|
|
638
|
-
}, { overlay: y, button:
|
|
651
|
+
}, { overlay: y, button: I } = J();
|
|
639
652
|
e.appendChild(y);
|
|
640
653
|
let u = !1, h, d;
|
|
641
654
|
const g = (c) => {
|
|
@@ -644,13 +657,13 @@ var L = class {
|
|
|
644
657
|
g(!1);
|
|
645
658
|
const f = () => {
|
|
646
659
|
h && (globalThis.clearTimeout(h), h = void 0);
|
|
647
|
-
},
|
|
660
|
+
}, v = () => {
|
|
648
661
|
f(), h = globalThis.setTimeout(() => {
|
|
649
662
|
u || g(!0);
|
|
650
663
|
}, a);
|
|
651
664
|
}, A = (c) => {
|
|
652
665
|
const m = c?.preserveOverlay ?? !0;
|
|
653
|
-
u = !1, m || g(!1), t.src = p(),
|
|
666
|
+
u = !1, m || g(!1), t.src = p(), v();
|
|
654
667
|
}, B = () => {
|
|
655
668
|
d || o <= 0 || (d = globalThis.setInterval(() => {
|
|
656
669
|
u || A({ preserveOverlay: !0 });
|
|
@@ -666,8 +679,8 @@ var L = class {
|
|
|
666
679
|
}, S = () => {
|
|
667
680
|
A();
|
|
668
681
|
};
|
|
669
|
-
return
|
|
670
|
-
f(), C(), t.removeEventListener("error", w), l.removeEventListener("message", b),
|
|
682
|
+
return I.addEventListener("click", S), t.addEventListener("error", w), l.addEventListener("message", b), v(), B(), () => {
|
|
683
|
+
f(), C(), t.removeEventListener("error", w), l.removeEventListener("message", b), I.removeEventListener("click", S), y.remove();
|
|
671
684
|
};
|
|
672
685
|
}, Z = "Markup AI Sidebar", Q = "clipboard-read; clipboard-write", fe = "markupai.sidebarNextGen.overrideUrl", me = "https://sidebar.markup.ai/";
|
|
673
686
|
function ye(e) {
|
|
@@ -678,7 +691,7 @@ function ye(e) {
|
|
|
678
691
|
}
|
|
679
692
|
}
|
|
680
693
|
var ee = "markupai.sidebarNextGen.authOverride";
|
|
681
|
-
function
|
|
694
|
+
function Ie(e, t) {
|
|
682
695
|
if (!t) return e;
|
|
683
696
|
try {
|
|
684
697
|
if (!("localStorage" in globalThis)) return e;
|
|
@@ -690,7 +703,7 @@ function ve(e, t) {
|
|
|
690
703
|
return e;
|
|
691
704
|
}
|
|
692
705
|
}
|
|
693
|
-
function
|
|
706
|
+
function ve(e, t) {
|
|
694
707
|
try {
|
|
695
708
|
return new URL(e).origin;
|
|
696
709
|
} catch (i) {
|
|
@@ -840,7 +853,7 @@ export {
|
|
|
840
853
|
re as buildSidebarPluginHostHeadInnerHtml,
|
|
841
854
|
Ce as createSidebarHost,
|
|
842
855
|
we as ensureSidebarHostShell,
|
|
843
|
-
|
|
856
|
+
Ie as getAuthConfigWithOverride,
|
|
844
857
|
ye as getSidebarBaseUrlWithOverride,
|
|
845
858
|
P as ipcErrorReconstructors,
|
|
846
859
|
pe as isDocumentReference,
|
|
@@ -849,5 +862,5 @@ export {
|
|
|
849
862
|
ge as isTextLookupError,
|
|
850
863
|
U as reconstructError,
|
|
851
864
|
q as setupSidebarLoadOverlay,
|
|
852
|
-
|
|
865
|
+
ve as sidebarPostMessageTargetOrigin
|
|
853
866
|
};
|
package/dist/main.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(r,g){typeof exports=="object"&&typeof module<"u"?g(exports):typeof define=="function"&&define.amd?define(["exports"],g):(r=typeof globalThis<"u"?globalThis:r||self,g(r.main={}))})(this,function(r){Object.defineProperty(r,Symbol.toStringTag,{value:"Module"});var g=(function(e){return e.TEXT_PLAIN="text/plain",e.TEXT_MARKDOWN="text/markdown",e.TEXT_HTML="text/html",e.APPLICATION_DITA_XML="application/dita+xml",e})({}),K=["text/plain","text/markdown","text/html","application/dita+xml"],X={integrationName:"unknown",integrationVersion:"unknown",integrationId:"markupai-sidebar-app",hideBanner:!1,dialogClosingScript:void 0,useCheckPreviewDialog:!1,supportCheckSelection:!0,multiAgent:!1,multiDocument:!1},q=e=>typeof e!="object"||e===null?!1:Array.isArray(e.fields),Z=e=>{if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.id!="string"||t.id.length===0||typeof t.label!="string"?!1:t.type==="boolean"?typeof t.default=="boolean":t.type==="enum"?typeof t.default!="string"||!Array.isArray(t.options)||t.options.length===0?!1:t.options.every(i=>{if(typeof i!="object"||i===null)return!1;const n=i;return typeof n.value=="string"&&typeof n.label=="string"}):!1},A=class V extends Error{name="TextLookupError";constructor(t){super(t),Object.setPrototypeOf(this,V.prototype)}};function Q(e){return e instanceof A}var v={TextLookupError:e=>new A(e)};function E(e){const t=e.message??"",i=e.name,n=typeof i=="string"&&i in v?v[i]:void 0;return n?n(t,e):Object.assign(new Error(t),i?{name:i}:{})}var P=":",R=/^[a-z][a-z0-9-]*$/;function ee(e){const t=e.indexOf(P);return t<=0||t===e.length-1?!1:R.test(e.slice(0,t))}function te(e,t){const i=e.trim().toLowerCase(),n=t.trim();if(!R.test(i))throw new Error(`Invalid document reference prefix ${JSON.stringify(e)}: expected a lowercase name like "word".`);if(n.length===0)throw new Error("Invalid document reference: the document id is empty.");const a=`${i}${P}`;return n.startsWith(a)?n:`${a}${n}`}var T=class extends Promise{static get[Symbol.species](){return Promise}resolve;reject;constructor(e=()=>{}){let t,i;super((n,a)=>{t=n,i=a,e(n,a)}),this.resolve=t,this.reject=i}},D={timeout:1e4};function ie(e){const t=JSON.stringify(e,Object.getOwnPropertyNames(e)),i=JSON.parse(t);return i.message===void 0||i.message===""?JSON.stringify({message:e instanceof Error?e.message:String(e),name:e instanceof Error?e.name:void 0}):t}var C=class{promisesByID={};receiversByName={};currentID=0;config;postMessage;constructor(e,t){this.postMessage=e,this.config={...D,...t}}configure(e){this.config={...this.config,...e}}call(e,...t){return this.callWithOptions(e,{},...t)}callWithOptions(e,t,...i){const n=this.currentID++,a=new T,o=t.timeout??this.config.timeout,s=setTimeout(()=>{if(n in this.promisesByID){const c=new Error(`IPC call timeout: "${e}" did not respond within ${String(o)}ms`);a.reject(c),Reflect.deleteProperty(this.promisesByID,n)}},o);this.promisesByID[n]={promise:a,timeoutId:s};const l={type:"call",id:n,name:e,data:i};return this.postMessage(l),a}receive(e,t){this.receiversByName[e]=t}ignore(e){delete this.receiversByName[e]}async handleMessage(e){switch(e.type){case"call":await this.handleCall(e);break;case"response":this.handleResponse(e);break;case"error":this.handleError(e);break;default:}}async handleCall(e){const{id:t,name:i,data:n}=e;if(!(i in this.receiversByName)){const o=new Error(`No receiver registered for: ${i}`),s=JSON.stringify({message:o.message,name:o.name});this.postMessage({type:"error",id:t,name:i,errorJSON:s});return}const a=this.receiversByName[i];try{if(!Array.isArray(n))throw new TypeError(`IPC: Expected array of arguments but got ${typeof n}`);const o=await a(...n),s={type:"response",id:t,name:i,data:o};this.postMessage(s)}catch(o){const s={type:"error",id:t,name:i,errorJSON:ie(o)};this.postMessage(s)}}handleResponse(e){const{id:t}=e;if(t in this.promisesByID){const{promise:i,timeoutId:n}=this.promisesByID[t];clearTimeout(n),i.resolve(e.data),Reflect.deleteProperty(this.promisesByID,t)}}handleError(e){const{id:t,errorJSON:i}=e;if(t in this.promisesByID){const{promise:n,timeoutId:a}=this.promisesByID[t];clearTimeout(a);try{const o=E(JSON.parse(i));n.reject(o)}catch{n.reject(new Error("Failed to parse error from IPC"))}Reflect.deleteProperty(this.promisesByID,t)}}destroy(){for(const{promise:e,timeoutId:t}of Object.values(this.promisesByID))clearTimeout(t),e.reject(new Error("IPC destroyed"));this.promisesByID={},this.receiversByName={}}},O=class{ipc;sidebar;targetOrigin;constructor(e,t,i="*"){this.sidebar=e||{},this.targetOrigin=i,this.ipc=new C(n=>{window.parent.postMessage(n,this.targetOrigin)},t),window.addEventListener("message",this.handleMessage),this.registerReceivers()}handleMessage=e=>{const t=globalThis.window.location.origin,i=this.targetOrigin;e.origin!==t&&(i!=="*"&&e.origin!==i||e.data&&typeof e.data=="object"&&this.ipc.handleMessage(e.data))};registerReceivers(){if(this.sidebar.onPluginStatusChange){const e=this.sidebar.onPluginStatusChange;this.ipc.receive("onPluginStatusChange",async(t,i)=>{await e(t,i)})}if(this.sidebar.activateAgenticIssue){const e=this.sidebar.activateAgenticIssue;this.ipc.receive("activateAgenticIssue",async(t,i)=>{await e(t,typeof i=="string"?i:null)})}if(this.sidebar.invalidateAgenticIssue){const e=this.sidebar.invalidateAgenticIssue;this.ipc.receive("invalidateAgenticIssue",async t=>{await e(t)})}if(this.sidebar.markAgenticIssueResolved){const e=this.sidebar.markAgenticIssueResolved;this.ipc.receive("markAgenticIssueResolved",async t=>{await e(t)})}if(this.sidebar.restoreAgenticIssue){const e=this.sidebar.restoreAgenticIssue;this.ipc.receive("restoreAgenticIssue",async t=>{await e(t)})}if(this.sidebar.applyIntegrationSettings){const e=this.sidebar.applyIntegrationSettings;this.ipc.receive("applyIntegrationSettings",async t=>{await e(t)})}if(this.sidebar.getIntegrationSettings){const e=this.sidebar.getIntegrationSettings;this.ipc.receive("getIntegrationSettings",async()=>await e())}if(this.sidebar.onActiveDocumentChanged){const e=this.sidebar.onActiveDocumentChanged;this.ipc.receive("onActiveDocumentChanged",async t=>{await e(t)})}}async getInitConfig(){return await this.ipc.call("getInitConfig")}async getContent(e){return this.ipc.callWithOptions("getContent",e??{})}async getSelectedContent(e){return this.ipc.callWithOptions("getSelectedContent",e??{})}async replaceContent(e,t,i=null){await this.ipc.call("replaceContent",e,t,i)}async selectContent(e,t=null){await this.ipc.call("selectContent",e,t)}async showDialog(e,t,i,n){await this.ipc.call("showDialog",e,t,i,n)}async closeDialog(){await this.ipc.call("closeDialog")}async replaceMultipleContents(e){await this.ipc.call("replaceMultipleContents",e)}async onAgenticAgentResults(e,t,i=null){await this.ipc.call("onAgenticAgentResults",e,t,i)}async onAgenticStreamComplete(e=null){await this.ipc.call("onAgenticStreamComplete",e)}async onAgenticIssueStatusChanged(e,t,i){await this.ipc.call("onAgenticIssueStatusChanged",e,t,i)}async openAuthUrl(e){await this.ipc.call("openAuthUrl",e)}async copyToClipboard(e){await this.ipc.call("copyToClipboard",e)}async onIntegrationSettingsChange(e,t){await this.ipc.call("onIntegrationSettingsChange",e,t)}configure(e){this.ipc.configure(e)}setTargetOrigin(e){if(!e||typeof e!="string")throw new Error("Invalid targetOrigin: must be a non-empty string");try{const t=new URL(e);if(!["http:","https:"].includes(t.protocol)||!t.host)throw new Error("Invalid targetOrigin: protocol must be http or https and must have a host")}catch{throw new Error("Invalid targetOrigin: must be a valid origin (e.g., https://example.com)")}this.targetOrigin=e}getTargetOrigin(){return this.targetOrigin}destroy(){window.removeEventListener("message",this.handleMessage),this.ipc.destroy()}},ne=class{ipcAdapter;constructor(e,t,i){this.ipcAdapter=new O(e,t,i)}destroy(){this.ipcAdapter.destroy()}async getInitConfig(){return await this.ipcAdapter.getInitConfig()}async getContent(e){return await this.ipcAdapter.getContent(e)}async getSelectedContent(e){return await this.ipcAdapter.getSelectedContent(e)}async replaceContent(e,t,i=null){await this.ipcAdapter.replaceContent(e,t,i)}async selectContent(e,t=null){await this.ipcAdapter.selectContent(e,t)}async showDialog(e,t,i,n){await this.ipcAdapter.showDialog(e,t,i,n)}async closeDialog(){await this.ipcAdapter.closeDialog()}async replaceMultipleContents(e){await this.ipcAdapter.replaceMultipleContents(e)}onAgenticAgentResults(e,t,i=null){return this.ipcAdapter.onAgenticAgentResults(e,t,i)}onAgenticStreamComplete(e=null){return this.ipcAdapter.onAgenticStreamComplete(e)}onAgenticIssueStatusChanged(e,t,i){return this.ipcAdapter.onAgenticIssueStatusChanged(e,t,i)}openAuthUrl(e){return this.ipcAdapter.openAuthUrl(e)}copyToClipboard(e){return this.ipcAdapter.copyToClipboard(e)}onIntegrationSettingsChange(e,t){return this.ipcAdapter.onIntegrationSettingsChange(e,t)}configure(e){this.ipcAdapter.configure(e)}setTargetOrigin(e){this.ipcAdapter.setTargetOrigin(e)}getTargetOrigin(){return this.ipcAdapter.getTargetOrigin()}},_=class{ipc;plugin;iframe;window;targetOrigin;constructor(e,t,i,n,a="*"){this.plugin=e,this.iframe=t,this.window=i??window,this.targetOrigin=a,this.ipc=new C(o=>{this.iframe.contentWindow?.postMessage(o,this.targetOrigin)},n),this.window.addEventListener("message",this.handleMessage,!1),this.registerReceivers()}handleMessage=e=>{const t=this.window.location.origin,i=this.targetOrigin;e.origin!==t&&(i!=="*"&&e.origin!==i||e.data&&typeof e.data=="object"&&this.ipc.handleMessage(e.data))};registerReceivers(){if(this.ipc.receive("getInitConfig",async()=>await this.plugin.getInitConfig()),this.ipc.receive("getContent",async()=>await this.plugin.getContent()),this.ipc.receive("getSelectedContent",async()=>await this.plugin.getSelectedContent()),this.ipc.receive("replaceContent",async(e,t,i)=>{await this.plugin.replaceContent(e,t,typeof i=="string"?i:null)}),this.ipc.receive("selectContent",async(e,t)=>{await this.plugin.selectContent(e,typeof t=="string"?t:null)}),this.ipc.receive("showDialog",async(e,t,i,n)=>{if(!this.plugin.showDialog)throw new Error("SidebarIPCAdapter: host does not implement showDialog");await this.plugin.showDialog(e,t,i,n)}),this.ipc.receive("closeDialog",async()=>{if(!this.plugin.closeDialog)throw new Error("SidebarIPCAdapter: host does not implement closeDialog");await this.plugin.closeDialog()}),this.ipc.receive("replaceMultipleContents",async e=>{await this.plugin.replaceMultipleContents(e)}),this.ipc.receive("onAgenticAgentResults",async(e,t,i)=>{if(!Array.isArray(t))return;const n=this.plugin.onAgenticAgentResults;n&&await n(e,t,typeof i=="string"?i:null)}),this.ipc.receive("onAgenticStreamComplete",async e=>{const t=this.plugin.onAgenticStreamComplete;t&&await t(typeof e=="string"?e:null)}),this.ipc.receive("onAgenticIssueStatusChanged",async(e,t,i)=>{const n=this.plugin.onAgenticIssueStatusChanged;if(n&&!(t!=="active"&&t!=="resolved"&&t!=="dismissed"||i!=="user"&&i!=="host"))try{await n(e,t,i)}catch{}}),this.plugin.openAuthUrl){const e=this.plugin.openAuthUrl;this.ipc.receive("openAuthUrl",async t=>{await e(t)})}if(this.plugin.copyToClipboard){const e=this.plugin.copyToClipboard;this.ipc.receive("copyToClipboard",async t=>{await e(t)})}if(this.plugin.onIntegrationSettingsChange){const e=this.plugin.onIntegrationSettingsChange;this.ipc.receive("onIntegrationSettingsChange",async(t,i)=>{await e(t,i)})}}async activateAgenticIssue(e,t=null){await this.ipc.call("activateAgenticIssue",e,t)}async invalidateAgenticIssue(e){await this.ipc.call("invalidateAgenticIssue",e)}async markAgenticIssueResolved(e){await this.ipc.call("markAgenticIssueResolved",e)}async restoreAgenticIssue(e){await this.ipc.call("restoreAgenticIssue",e)}async notifyPluginStatus(e,t){await this.ipc.call("onPluginStatusChange",e,t)}async applyIntegrationSettings(e){await this.ipc.call("applyIntegrationSettings",e)}async getIntegrationSettings(){return await this.ipc.call("getIntegrationSettings")}async notifyActiveDocumentChanged(e){await this.ipc.call("onActiveDocumentChanged",e)}configure(e){this.ipc.configure(e)}destroy(){this.window.removeEventListener("message",this.handleMessage),this.ipc.destroy()}},L=class{ipcAdapter;constructor(e,t,i){this.ipcAdapter=new _(e,t,i?.win,i?.config,i?.targetOrigin)}destroy(){this.ipcAdapter.destroy()}async notifyPluginStatus(e,t){await this.ipcAdapter.notifyPluginStatus(e,t)}async activateAgenticIssue(e,t=null){await this.ipcAdapter.activateAgenticIssue(e,t)}async invalidateAgenticIssue(e){await this.ipcAdapter.invalidateAgenticIssue(e)}async markAgenticIssueResolved(e){await this.ipcAdapter.markAgenticIssueResolved(e)}async restoreAgenticIssue(e){await this.ipcAdapter.restoreAgenticIssue(e)}async applyIntegrationSettings(e){await this.ipcAdapter.applyIntegrationSettings(e)}async getIntegrationSettings(){return await this.ipcAdapter.getIntegrationSettings()}async notifyActiveDocumentChanged(e){await this.ipcAdapter.notifyActiveDocumentChanged(e)}configure(e){this.ipcAdapter.configure(e)}},re=`
|
|
1
|
+
(function(r,g){typeof exports=="object"&&typeof module<"u"?g(exports):typeof define=="function"&&define.amd?define(["exports"],g):(r=typeof globalThis<"u"?globalThis:r||self,g(r.main={}))})(this,function(r){Object.defineProperty(r,Symbol.toStringTag,{value:"Module"});var g=(function(e){return e.TEXT_PLAIN="text/plain",e.TEXT_MARKDOWN="text/markdown",e.TEXT_HTML="text/html",e.APPLICATION_DITA_XML="application/dita+xml",e})({}),K=["text/plain","text/markdown","text/html","application/dita+xml"],X={integrationName:"unknown",integrationVersion:"unknown",integrationId:"markupai-sidebar-app",hideBanner:!1,dialogClosingScript:void 0,useCheckPreviewDialog:!1,supportCheckSelection:!0,multiAgent:!1,multiDocument:!1},q=e=>typeof e!="object"||e===null?!1:Array.isArray(e.fields),Z=e=>{if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.id!="string"||t.id.length===0||typeof t.label!="string"?!1:t.type==="boolean"?typeof t.default=="boolean":t.type==="enum"?typeof t.default!="string"||!Array.isArray(t.options)||t.options.length===0?!1:t.options.every(i=>{if(typeof i!="object"||i===null)return!1;const n=i;return typeof n.value=="string"&&typeof n.label=="string"}):!1},A=class V extends Error{name="TextLookupError";constructor(t){super(t),Object.setPrototypeOf(this,V.prototype)}};function Q(e){return e instanceof A}var v={TextLookupError:e=>new A(e)};function P(e){const t=e.message??"",i=e.name,n=typeof i=="string"&&i in v?v[i]:void 0;return n?n(t,e):Object.assign(new Error(t),i?{name:i}:{})}var E=":",R=/^[a-z][a-z0-9-]*$/;function ee(e){const t=e.indexOf(E);return t<=0||t===e.length-1?!1:R.test(e.slice(0,t))}function te(e,t){const i=e.trim().toLowerCase(),n=t.trim();if(!R.test(i))throw new Error(`Invalid document reference prefix ${JSON.stringify(e)}: expected a lowercase name like "word".`);if(n.length===0)throw new Error("Invalid document reference: the document id is empty.");const a=`${i}${E}`;return n.startsWith(a)?n:`${a}${n}`}var T=class extends Promise{static get[Symbol.species](){return Promise}resolve;reject;constructor(e=()=>{}){let t,i;super((n,a)=>{t=n,i=a,e(n,a)}),this.resolve=t,this.reject=i}},D={timeout:1e4};function ie(e){const t=JSON.stringify(e,Object.getOwnPropertyNames(e)),i=JSON.parse(t);return i.message===void 0||i.message===""?JSON.stringify({message:e instanceof Error?e.message:String(e),name:e instanceof Error?e.name:void 0}):t}var C=class{promisesByID={};receiversByName={};currentID=0;config;postMessage;constructor(e,t){this.postMessage=e,this.config={...D,...t}}configure(e){this.config={...this.config,...e}}call(e,...t){return this.callWithOptions(e,{},...t)}callWithOptions(e,t,...i){const n=this.currentID++,a=new T,o=t.timeout??this.config.timeout,s=setTimeout(()=>{if(n in this.promisesByID){const c=new Error(`IPC call timeout: "${e}" did not respond within ${String(o)}ms`);a.reject(c),Reflect.deleteProperty(this.promisesByID,n)}},o);this.promisesByID[n]={promise:a,timeoutId:s};const l={type:"call",id:n,name:e,data:i};return this.postMessage(l),a}receive(e,t){this.receiversByName[e]=t}ignore(e){delete this.receiversByName[e]}async handleMessage(e){switch(e.type){case"call":await this.handleCall(e);break;case"response":this.handleResponse(e);break;case"error":this.handleError(e);break;default:}}async handleCall(e){const{id:t,name:i,data:n}=e;if(!(i in this.receiversByName)){const o=new Error(`No receiver registered for: ${i}`),s=JSON.stringify({message:o.message,name:o.name});this.postMessage({type:"error",id:t,name:i,errorJSON:s});return}const a=this.receiversByName[i];try{if(!Array.isArray(n))throw new TypeError(`IPC: Expected array of arguments but got ${typeof n}`);const o=await a(...n),s={type:"response",id:t,name:i,data:o};this.postMessage(s)}catch(o){const s={type:"error",id:t,name:i,errorJSON:ie(o)};this.postMessage(s)}}handleResponse(e){const{id:t}=e;if(t in this.promisesByID){const{promise:i,timeoutId:n}=this.promisesByID[t];clearTimeout(n),i.resolve(e.data),Reflect.deleteProperty(this.promisesByID,t)}}handleError(e){const{id:t,errorJSON:i}=e;if(t in this.promisesByID){const{promise:n,timeoutId:a}=this.promisesByID[t];clearTimeout(a);try{const o=P(JSON.parse(i));n.reject(o)}catch{n.reject(new Error("Failed to parse error from IPC"))}Reflect.deleteProperty(this.promisesByID,t)}}destroy(){for(const{promise:e,timeoutId:t}of Object.values(this.promisesByID))clearTimeout(t),e.reject(new Error("IPC destroyed"));this.promisesByID={},this.receiversByName={}}},O=class{ipc;sidebar;targetOrigin;constructor(e,t,i="*"){this.sidebar=e||{},this.targetOrigin=i,this.ipc=new C(n=>{window.parent.postMessage(n,this.targetOrigin)},t),window.addEventListener("message",this.handleMessage),this.registerReceivers()}handleMessage=e=>{const t=globalThis.window.location.origin,i=this.targetOrigin;e.origin!==t&&(i!=="*"&&e.origin!==i||e.data&&typeof e.data=="object"&&this.ipc.handleMessage(e.data))};registerReceivers(){if(this.sidebar.onPluginStatusChange){const e=this.sidebar.onPluginStatusChange;this.ipc.receive("onPluginStatusChange",async(t,i)=>{await e(t,i)})}if(this.sidebar.activateAgenticIssue){const e=this.sidebar.activateAgenticIssue;this.ipc.receive("activateAgenticIssue",async(t,i)=>{await e(t,typeof i=="string"?i:null)})}if(this.sidebar.invalidateAgenticIssue){const e=this.sidebar.invalidateAgenticIssue;this.ipc.receive("invalidateAgenticIssue",async t=>{await e(t)})}if(this.sidebar.markAgenticIssueResolved){const e=this.sidebar.markAgenticIssueResolved;this.ipc.receive("markAgenticIssueResolved",async t=>{await e(t)})}if(this.sidebar.restoreAgenticIssue){const e=this.sidebar.restoreAgenticIssue;this.ipc.receive("restoreAgenticIssue",async t=>{await e(t)})}if(this.sidebar.applyIntegrationSettings){const e=this.sidebar.applyIntegrationSettings;this.ipc.receive("applyIntegrationSettings",async t=>{await e(t)})}if(this.sidebar.getIntegrationSettings){const e=this.sidebar.getIntegrationSettings;this.ipc.receive("getIntegrationSettings",async()=>await e())}if(this.sidebar.onActiveDocumentChanged){const e=this.sidebar.onActiveDocumentChanged;this.ipc.receive("onActiveDocumentChanged",async t=>{await e(t)})}}async getInitConfig(){return await this.ipc.call("getInitConfig")}async getContent(e){return this.ipc.callWithOptions("getContent",e??{})}async getSelectedContent(e){return this.ipc.callWithOptions("getSelectedContent",e??{})}async replaceContent(e,t,i=null){await this.ipc.call("replaceContent",e,t,i)}async selectContent(e,t=null){await this.ipc.call("selectContent",e,t)}async showDialog(e,t,i,n){await this.ipc.call("showDialog",e,t,i,n)}async closeDialog(){await this.ipc.call("closeDialog")}async replaceMultipleContents(e){await this.ipc.call("replaceMultipleContents",e)}async onAgenticAgentResults(e,t,i=null){await this.ipc.call("onAgenticAgentResults",e,t,i)}async onAgenticStreamComplete(e=null){await this.ipc.call("onAgenticStreamComplete",e)}async onAgenticIssueStatusChanged(e,t,i){await this.ipc.call("onAgenticIssueStatusChanged",e,t,i)}async onAgenticIssuesCleared(e=null){await this.ipc.call("onAgenticIssuesCleared",e)}async openAuthUrl(e){await this.ipc.call("openAuthUrl",e)}async copyToClipboard(e){await this.ipc.call("copyToClipboard",e)}async onIntegrationSettingsChange(e,t){await this.ipc.call("onIntegrationSettingsChange",e,t)}configure(e){this.ipc.configure(e)}setTargetOrigin(e){if(!e||typeof e!="string")throw new Error("Invalid targetOrigin: must be a non-empty string");try{const t=new URL(e);if(!["http:","https:"].includes(t.protocol)||!t.host)throw new Error("Invalid targetOrigin: protocol must be http or https and must have a host")}catch{throw new Error("Invalid targetOrigin: must be a valid origin (e.g., https://example.com)")}this.targetOrigin=e}getTargetOrigin(){return this.targetOrigin}destroy(){window.removeEventListener("message",this.handleMessage),this.ipc.destroy()}},ne=class{ipcAdapter;constructor(e,t,i){this.ipcAdapter=new O(e,t,i)}destroy(){this.ipcAdapter.destroy()}async getInitConfig(){return await this.ipcAdapter.getInitConfig()}async getContent(e){return await this.ipcAdapter.getContent(e)}async getSelectedContent(e){return await this.ipcAdapter.getSelectedContent(e)}async replaceContent(e,t,i=null){await this.ipcAdapter.replaceContent(e,t,i)}async selectContent(e,t=null){await this.ipcAdapter.selectContent(e,t)}async showDialog(e,t,i,n){await this.ipcAdapter.showDialog(e,t,i,n)}async closeDialog(){await this.ipcAdapter.closeDialog()}async replaceMultipleContents(e){await this.ipcAdapter.replaceMultipleContents(e)}onAgenticAgentResults(e,t,i=null){return this.ipcAdapter.onAgenticAgentResults(e,t,i)}onAgenticStreamComplete(e=null){return this.ipcAdapter.onAgenticStreamComplete(e)}onAgenticIssueStatusChanged(e,t,i){return this.ipcAdapter.onAgenticIssueStatusChanged(e,t,i)}onAgenticIssuesCleared(e=null){return this.ipcAdapter.onAgenticIssuesCleared(e)}openAuthUrl(e){return this.ipcAdapter.openAuthUrl(e)}copyToClipboard(e){return this.ipcAdapter.copyToClipboard(e)}onIntegrationSettingsChange(e,t){return this.ipcAdapter.onIntegrationSettingsChange(e,t)}configure(e){this.ipcAdapter.configure(e)}setTargetOrigin(e){this.ipcAdapter.setTargetOrigin(e)}getTargetOrigin(){return this.ipcAdapter.getTargetOrigin()}},_=class{ipc;plugin;iframe;window;targetOrigin;constructor(e,t,i,n,a="*"){this.plugin=e,this.iframe=t,this.window=i??window,this.targetOrigin=a,this.ipc=new C(o=>{this.iframe.contentWindow?.postMessage(o,this.targetOrigin)},n),this.window.addEventListener("message",this.handleMessage,!1),this.registerReceivers()}handleMessage=e=>{const t=this.window.location.origin,i=this.targetOrigin;e.origin!==t&&(i!=="*"&&e.origin!==i||e.data&&typeof e.data=="object"&&this.ipc.handleMessage(e.data))};registerReceivers(){if(this.ipc.receive("getInitConfig",async()=>await this.plugin.getInitConfig()),this.ipc.receive("getContent",async()=>await this.plugin.getContent()),this.ipc.receive("getSelectedContent",async()=>await this.plugin.getSelectedContent()),this.ipc.receive("replaceContent",async(e,t,i)=>{await this.plugin.replaceContent(e,t,typeof i=="string"?i:null)}),this.ipc.receive("selectContent",async(e,t)=>{await this.plugin.selectContent(e,typeof t=="string"?t:null)}),this.ipc.receive("showDialog",async(e,t,i,n)=>{if(!this.plugin.showDialog)throw new Error("SidebarIPCAdapter: host does not implement showDialog");await this.plugin.showDialog(e,t,i,n)}),this.ipc.receive("closeDialog",async()=>{if(!this.plugin.closeDialog)throw new Error("SidebarIPCAdapter: host does not implement closeDialog");await this.plugin.closeDialog()}),this.ipc.receive("replaceMultipleContents",async e=>{await this.plugin.replaceMultipleContents(e)}),this.ipc.receive("onAgenticAgentResults",async(e,t,i)=>{if(!Array.isArray(t))return;const n=this.plugin.onAgenticAgentResults;n&&await n(e,t,typeof i=="string"?i:null)}),this.ipc.receive("onAgenticStreamComplete",async e=>{const t=this.plugin.onAgenticStreamComplete;t&&await t(typeof e=="string"?e:null)}),this.ipc.receive("onAgenticIssueStatusChanged",async(e,t,i)=>{const n=this.plugin.onAgenticIssueStatusChanged;if(n&&!(t!=="active"&&t!=="resolved"&&t!=="dismissed"||i!=="user"&&i!=="host"))try{await n(e,t,i)}catch{}}),this.ipc.receive("onAgenticIssuesCleared",async e=>{const t=this.plugin.onAgenticIssuesCleared;if(t)try{await t(typeof e=="string"?e:null)}catch{}}),this.plugin.openAuthUrl){const e=this.plugin.openAuthUrl;this.ipc.receive("openAuthUrl",async t=>{await e(t)})}if(this.plugin.copyToClipboard){const e=this.plugin.copyToClipboard;this.ipc.receive("copyToClipboard",async t=>{await e(t)})}if(this.plugin.onIntegrationSettingsChange){const e=this.plugin.onIntegrationSettingsChange;this.ipc.receive("onIntegrationSettingsChange",async(t,i)=>{await e(t,i)})}}async activateAgenticIssue(e,t=null){await this.ipc.call("activateAgenticIssue",e,t)}async invalidateAgenticIssue(e){await this.ipc.call("invalidateAgenticIssue",e)}async markAgenticIssueResolved(e){await this.ipc.call("markAgenticIssueResolved",e)}async restoreAgenticIssue(e){await this.ipc.call("restoreAgenticIssue",e)}async notifyPluginStatus(e,t){await this.ipc.call("onPluginStatusChange",e,t)}async applyIntegrationSettings(e){await this.ipc.call("applyIntegrationSettings",e)}async getIntegrationSettings(){return await this.ipc.call("getIntegrationSettings")}async notifyActiveDocumentChanged(e){await this.ipc.call("onActiveDocumentChanged",e)}configure(e){this.ipc.configure(e)}destroy(){this.window.removeEventListener("message",this.handleMessage),this.ipc.destroy()}},L=class{ipcAdapter;constructor(e,t,i){this.ipcAdapter=new _(e,t,i?.win,i?.config,i?.targetOrigin)}destroy(){this.ipcAdapter.destroy()}async notifyPluginStatus(e,t){await this.ipcAdapter.notifyPluginStatus(e,t)}async activateAgenticIssue(e,t=null){await this.ipcAdapter.activateAgenticIssue(e,t)}async invalidateAgenticIssue(e){await this.ipcAdapter.invalidateAgenticIssue(e)}async markAgenticIssueResolved(e){await this.ipcAdapter.markAgenticIssueResolved(e)}async restoreAgenticIssue(e){await this.ipcAdapter.restoreAgenticIssue(e)}async applyIntegrationSettings(e){await this.ipcAdapter.applyIntegrationSettings(e)}async getIntegrationSettings(){return await this.ipcAdapter.getIntegrationSettings()}async notifyActiveDocumentChanged(e){await this.ipcAdapter.notifyActiveDocumentChanged(e)}configure(e){this.ipcAdapter.configure(e)}},re=`
|
|
2
2
|
<div class="sidebar-load-overlay-card">
|
|
3
3
|
<div class="sidebar-load-overlay-title">Sidebar failed to load</div>
|
|
4
4
|
<div class="sidebar-load-overlay-description">Check your connection or try again.</div>
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
box-shadow: 0 0 0 2px
|
|
112
112
|
color-mix(in srgb, var(--accent, #ef4640) 60%, transparent);
|
|
113
113
|
}
|
|
114
|
-
`,se=e=>{const t=e??document;if(t.getElementById(M))return;const i=t.createElement("style");i.id=M,i.textContent=oe,t.head.appendChild(i)},le=8e3,ce=12e3,k=(e,t,i={})=>{se(e.ownerDocument);const{sidebarUrl:n,targetOrigin:a,timeoutMs:o=le,retryIntervalMs:s=ce,messageListenWindow:l}=i,c=l??(typeof globalThis.window<"u"?globalThis.window:globalThis),h=()=>n??t.src,we=()=>{if(a)return a;try{return new URL(h()).origin}catch{return"*"}},{overlay:w,button:j}=ae();e.appendChild(w);let f=!1,m,u;const p=d=>{w.style.display=d?"flex":"none"};p(!1);const I=()=>{m&&(globalThis.clearTimeout(m),m=void 0)},$=()=>{I(),m=globalThis.setTimeout(()=>{f||p(!0)},o)},W=d=>{const y=d?.preserveOverlay??!0;f=!1,y||p(!1),t.src=h(),$()},
|
|
114
|
+
`,se=e=>{const t=e??document;if(t.getElementById(M))return;const i=t.createElement("style");i.id=M,i.textContent=oe,t.head.appendChild(i)},le=8e3,ce=12e3,k=(e,t,i={})=>{se(e.ownerDocument);const{sidebarUrl:n,targetOrigin:a,timeoutMs:o=le,retryIntervalMs:s=ce,messageListenWindow:l}=i,c=l??(typeof globalThis.window<"u"?globalThis.window:globalThis),h=()=>n??t.src,we=()=>{if(a)return a;try{return new URL(h()).origin}catch{return"*"}},{overlay:w,button:j}=ae();e.appendChild(w);let f=!1,m,u;const p=d=>{w.style.display=d?"flex":"none"};p(!1);const I=()=>{m&&(globalThis.clearTimeout(m),m=void 0)},$=()=>{I(),m=globalThis.setTimeout(()=>{f||p(!0)},o)},W=d=>{const y=d?.preserveOverlay??!0;f=!1,y||p(!1),t.src=h(),$()},Pe=()=>{u||s<=0||(u=globalThis.setInterval(()=>{f||W({preserveOverlay:!0})},s))},G=()=>{u&&(globalThis.clearInterval(u),u=void 0)},z=d=>{if(!t.contentWindow||d.source!==t.contentWindow)return;const y=we();y!=="*"&&d.origin!==y||(f=!0,I(),G(),p(!1))},J=()=>{I(),p(!0)},Y=()=>{W()};return j.addEventListener("click",Y),t.addEventListener("error",J),c.addEventListener("message",z),$(),Pe(),()=>{I(),G(),t.removeEventListener("error",J),c.removeEventListener("message",z),j.removeEventListener("click",Y),w.remove()}},N="Markup AI Sidebar",H="clipboard-read; clipboard-write",de="markupai.sidebarNextGen.overrideUrl",ge="https://sidebar.markup.ai/";function ue(e){try{return"localStorage"in globalThis&&globalThis.localStorage.getItem("markupai.sidebarNextGen.overrideUrl")?.trim()||e}catch{return e}}var U="markupai.sidebarNextGen.authOverride";function pe(e,t){if(!t)return e;try{if(!("localStorage"in globalThis))return e;const i=globalThis.localStorage.getItem(U)?.trim();if(!i)return e;const n=JSON.parse(i);return n!==null&&typeof n=="object"&&"type"in n&&(n.type==="mediation"||n.type==="popup")?n:e}catch{return e}}function he(e,t){try{return new URL(e).origin}catch(i){return t?.onInvalidUrl?.(e,i),"*"}}function fe(e,t="Expected SidebarAdapter from createSidebarHost"){if(e.adapter===null)throw new Error(t)}function me(e){const{iframe:t,iframeMount:i}=e;if(t!==void 0&&i!==void 0)throw new Error("createSidebarHost: pass only one of `iframe` or `iframeMount`");if(t!==void 0)return{iframe:t,removeMountedIframe:null};if(i===void 0)throw new Error("createSidebarHost: pass either `iframe` or `iframeMount`");const{container:n,src:a,allow:o=H}=i,s=document.createElement("iframe");return s.title=N,s.src=a,o&&s.setAttribute("allow",o),n.appendChild(s),{iframe:s,removeMountedIframe:()=>{s.remove()}}}function Ie(e){const{plugin:t,loadOverlayContainer:i,loadOverlayOptions:n,adapterOptions:a}=e,{iframe:o,removeMountedIframe:s}=me(e),l=i!==void 0?k(i,o,n??{}):null;if(t!==void 0){const c=new L(t,o,a);return{iframe:o,adapter:c,destroy:()=>{l?.(),c.destroy(),s?.()}}}return{iframe:o,adapter:null,destroy:()=>{l?.(),s?.()}}}var b="sidebarContainer",B="markupai-sidebar-host-shell-styles";function x(e){if(typeof CSS<"u"&&typeof CSS.escape=="function")return CSS.escape(e);if(!/^[a-zA-Z_][\w-]*$/.test(e))throw new Error(String.raw`sidebar host shell: containerId must match /^[a-zA-Z_][\w-]*$/ when CSS.escape is unavailable (got ${JSON.stringify(e)})`);return e}function S(e=b){const t=x(e);return`
|
|
115
115
|
html {
|
|
116
116
|
height: 100%;
|
|
117
117
|
}
|
|
@@ -146,4 +146,4 @@ ${c}`:""}
|
|
|
146
146
|
${a}
|
|
147
147
|
</body>
|
|
148
148
|
</html>
|
|
149
|
-
`}function Se(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}r.AUTH_CONFIG_OVERRIDE_STORAGE_KEY=U,r.DEFAULT_IPC_CONFIG=D,r.DEFAULT_SIDEBAR_CONFIG=X,r.DeferredPromise=T,r.IPCCore=C,r.MimeType=g,r.PluginAdapter=ne,r.PluginIPCAdapter=O,r.SIDEBAR_DEFAULT_PRODUCTION_BASE_URL=ge,r.SIDEBAR_HOST_CONTAINER_ID=b,r.SIDEBAR_HOST_SHELL_CSS=ye,r.SIDEBAR_IFRAME_DEFAULT_ALLOW=H,r.SIDEBAR_IFRAME_DEFAULT_TITLE=N,r.SIDEBAR_URL_OVERRIDE_STORAGE_KEY=de,r.SidebarAdapter=L,r.SidebarIPCAdapter=_,r.TEXT_MIME_TYPES=K,r.TextLookupError=A,r.assertSidebarHostAdapter=fe,r.buildDocumentReference=te,r.buildSidebarHostHtmlDocument=be,r.buildSidebarHostShellCss=S,r.buildSidebarPluginHostHeadInnerHtml=F,r.createSidebarHost=Ie,r.ensureSidebarHostShell=Ce,r.getAuthConfigWithOverride=pe,r.getSidebarBaseUrlWithOverride=ue,r.ipcErrorReconstructors=v,r.isDocumentReference=ee,r.isIntegrationSettingField=Z,r.isIntegrationSettingsSchema=q,r.isTextLookupError=Q,r.reconstructError=
|
|
149
|
+
`}function Se(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}r.AUTH_CONFIG_OVERRIDE_STORAGE_KEY=U,r.DEFAULT_IPC_CONFIG=D,r.DEFAULT_SIDEBAR_CONFIG=X,r.DeferredPromise=T,r.IPCCore=C,r.MimeType=g,r.PluginAdapter=ne,r.PluginIPCAdapter=O,r.SIDEBAR_DEFAULT_PRODUCTION_BASE_URL=ge,r.SIDEBAR_HOST_CONTAINER_ID=b,r.SIDEBAR_HOST_SHELL_CSS=ye,r.SIDEBAR_IFRAME_DEFAULT_ALLOW=H,r.SIDEBAR_IFRAME_DEFAULT_TITLE=N,r.SIDEBAR_URL_OVERRIDE_STORAGE_KEY=de,r.SidebarAdapter=L,r.SidebarIPCAdapter=_,r.TEXT_MIME_TYPES=K,r.TextLookupError=A,r.assertSidebarHostAdapter=fe,r.buildDocumentReference=te,r.buildSidebarHostHtmlDocument=be,r.buildSidebarHostShellCss=S,r.buildSidebarPluginHostHeadInnerHtml=F,r.createSidebarHost=Ie,r.ensureSidebarHostShell=Ce,r.getAuthConfigWithOverride=pe,r.getSidebarBaseUrlWithOverride=ue,r.ipcErrorReconstructors=v,r.isDocumentReference=ee,r.isIntegrationSettingField=Z,r.isIntegrationSettingsSchema=q,r.isTextLookupError=Q,r.reconstructError=P,r.setupSidebarLoadOverlay=k,r.sidebarPostMessageTargetOrigin=he});
|
package/dist/types/common.d.ts
CHANGED
|
@@ -117,6 +117,17 @@ export interface SidebarConfig {
|
|
|
117
117
|
* pass their own package/build version such as `"1.4.2"`.
|
|
118
118
|
*/
|
|
119
119
|
integrationVersion: string;
|
|
120
|
+
/**
|
|
121
|
+
* Version string of the host application/editor itself — the surrounding
|
|
122
|
+
* app the plugin/add-in runs inside (e.g. the Figma desktop app build, or
|
|
123
|
+
* the Madcap Flare version), not the plugin's own version
|
|
124
|
+
* ({@link SidebarConfig.integrationVersion}) or the sidebar's/adapter's.
|
|
125
|
+
* Display only — appended to the integration name/version line on the
|
|
126
|
+
* sidebar's About page when present. Omit when the host cannot report its
|
|
127
|
+
* own version; the About page leaves it out rather than showing a
|
|
128
|
+
* placeholder.
|
|
129
|
+
*/
|
|
130
|
+
hostAppVersion?: string;
|
|
120
131
|
/**
|
|
121
132
|
* Stable, machine-readable identifier for the integration. Used for everything
|
|
122
133
|
* non-display: the Auth0 mediation login provider, PostHog analytics keys, the
|
|
@@ -1 +1 @@
|
|
|
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AQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;IACjD,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yGAAyG;IACzG,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB"}
|
|
@@ -104,6 +104,27 @@ export interface PluginInterface {
|
|
|
104
104
|
* an already-resolved issue) MUST NOT emit a duplicate notification.
|
|
105
105
|
*/
|
|
106
106
|
onAgenticIssueStatusChanged?: (issueId: string, status: "active" | "resolved" | "dismissed", source: "user" | "host") => Promise<void>;
|
|
107
|
+
/**
|
|
108
|
+
* Called when the sidebar discards a document's check entirely — its issues
|
|
109
|
+
* and everything the user decided about them — with nothing replacing it.
|
|
110
|
+
* Hosts that draw their own highlights from
|
|
111
|
+
* {@link PluginInterface.onAgenticAgentResults} should drop them, and any
|
|
112
|
+
* mirrored issue state, for that document.
|
|
113
|
+
*
|
|
114
|
+
* Fires when the user confirms **Clear Document Data**. It does **not** fire
|
|
115
|
+
* for a re-check, nor for the internal reset when a check covers fewer agents
|
|
116
|
+
* than the last one: both are followed immediately by a fresh result stream,
|
|
117
|
+
* so a host clearing there would discard highlights it is about to be handed
|
|
118
|
+
* again.
|
|
119
|
+
*
|
|
120
|
+
* Best-effort: a missing or throwing implementation does not prevent or roll
|
|
121
|
+
* back the sidebar's own clear.
|
|
122
|
+
*
|
|
123
|
+
* @param documentReference - The document whose check was discarded, so a
|
|
124
|
+
* host holding state for several documents clears the right one. `null`
|
|
125
|
+
* when `multiDocument` is not enabled, as with the notifications above.
|
|
126
|
+
*/
|
|
127
|
+
onAgenticIssuesCleared?: (documentReference: string | null) => Promise<void>;
|
|
107
128
|
/**
|
|
108
129
|
* Open an external URL during an authentication flow (typically the Auth0
|
|
109
130
|
* `authorizeUrl` returned by the backend-mediated OAuth flow).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pluginInterface.d.ts","sourceRoot":"","sources":["../../src/types/pluginInterface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,aAAa,EACb,mBAAmB,EACpB,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EACV,yBAAyB,EACzB,6BAA6B,EAC9B,MAAM,uBAAuB,CAAC;AAE/B;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;;OAMG;IACH,UAAU,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC;IAEvC;;;;;OAKG;IACH,kBAAkB,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC;IAE/C;;;;;;;;OAQG;IACH,cAAc,EAAE,CACd,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,YAAY,EACnB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,KAC9B,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnB;;;;;;;OAOG;IACH,aAAa,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzF;;;;;;;;;;;;;OAaG;IACH,UAAU,CAAC,EAAE,CACX,UAAU,EAAE,MAAM,EAClB,KAAK,CAAC,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,MAAM,EACf,KAAK,CAAC,EAAE,MAAM,KACX,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAElC;;;;OAIG;IACH,uBAAuB,EAAE,CAAC,YAAY,EAAE,kBAA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