@noodleseed/assistant 1.19.0 → 1.20.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.
- package/README.md +68 -0
- package/dist/{chunk-S373FCAI.js → chunk-52XT7BLR.js} +9 -4
- package/dist/{chunk-S373FCAI.js.map → chunk-52XT7BLR.js.map} +1 -1
- package/dist/{chunk-RFETV5KQ.js → chunk-DLUINP4W.js} +9 -9
- package/dist/{chunk-RFETV5KQ.js.map → chunk-DLUINP4W.js.map} +1 -1
- package/dist/{client-BQ30Fq-c.d.cts → client-7o7n2nqw.d.cts} +6 -4
- package/dist/{client-B6pnBmF8.d.ts → client-CysBQBdd.d.ts} +6 -4
- package/dist/client.cjs +8 -3
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +1 -1
- package/dist/embed.global.js +4 -4
- package/dist/index.cjs +15 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/react/client.cjs +8 -3
- package/dist/react/client.cjs.map +1 -1
- package/dist/react/client.d.cts +1 -1
- package/dist/react/client.d.ts +1 -1
- package/dist/react/client.js +1 -1
- package/dist/react.cjs +15 -10
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +2 -2
- package/dist/server.cjs +47 -1
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +60 -7
- package/dist/server.d.ts +60 -7
- package/dist/server.js +45 -1
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
copyAssistantPageContext,
|
|
5
5
|
createAssistantClient,
|
|
6
6
|
sessionSourceKey
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-52XT7BLR.js";
|
|
8
8
|
import {
|
|
9
9
|
_enum,
|
|
10
10
|
_null,
|
|
@@ -6844,11 +6844,11 @@ var AssistantElementEventController = class {
|
|
|
6844
6844
|
);
|
|
6845
6845
|
return;
|
|
6846
6846
|
}
|
|
6847
|
-
if (name === "auth_requested" && typeof data.
|
|
6847
|
+
if (name === "auth_requested" && typeof data.signInTicket === "string") {
|
|
6848
6848
|
this.#appendSignInRequest(
|
|
6849
6849
|
String(data.id ?? ""),
|
|
6850
6850
|
String(data.tool ?? "this"),
|
|
6851
|
-
data.
|
|
6851
|
+
data.signInTicket,
|
|
6852
6852
|
String(data.expiresAt ?? "")
|
|
6853
6853
|
);
|
|
6854
6854
|
return;
|
|
@@ -6941,15 +6941,15 @@ var AssistantElementEventController = class {
|
|
|
6941
6941
|
/**
|
|
6942
6942
|
* The host application owns the login. This renders the prompt and raises
|
|
6943
6943
|
* `assistant-sign-in-requested`; the page signs the visitor in however it already does, then its
|
|
6944
|
-
* backend spends the
|
|
6944
|
+
* backend spends the sign-in ticket. Nothing here talks to an identity provider.
|
|
6945
6945
|
*/
|
|
6946
|
-
#appendSignInRequest(id, tool,
|
|
6946
|
+
#appendSignInRequest(id, tool, signInTicket, expiresAt) {
|
|
6947
6947
|
const messages = this.#host.messages();
|
|
6948
6948
|
if (!messages) return;
|
|
6949
6949
|
this.#proposalCards.get(id)?.remove();
|
|
6950
6950
|
const card = createSignInCard({
|
|
6951
6951
|
tool,
|
|
6952
|
-
|
|
6952
|
+
signInTicket,
|
|
6953
6953
|
expiresAt,
|
|
6954
6954
|
labels: {
|
|
6955
6955
|
heading: "Sign in to continue",
|
|
@@ -6957,7 +6957,7 @@ var AssistantElementEventController = class {
|
|
|
6957
6957
|
},
|
|
6958
6958
|
onSignIn: () => this.#host.element.dispatchEvent(
|
|
6959
6959
|
new CustomEvent("assistant-sign-in-requested", {
|
|
6960
|
-
detail: { id, tool,
|
|
6960
|
+
detail: { id, tool, signInTicket, expiresAt },
|
|
6961
6961
|
bubbles: true,
|
|
6962
6962
|
composed: true
|
|
6963
6963
|
})
|
|
@@ -6968,7 +6968,7 @@ var AssistantElementEventController = class {
|
|
|
6968
6968
|
this.#host.revealLatest();
|
|
6969
6969
|
this.#host.element.dispatchEvent(
|
|
6970
6970
|
new CustomEvent("assistant-sign-in-required", {
|
|
6971
|
-
detail: { id, tool,
|
|
6971
|
+
detail: { id, tool, signInTicket, expiresAt }
|
|
6972
6972
|
})
|
|
6973
6973
|
);
|
|
6974
6974
|
}
|
|
@@ -8465,4 +8465,4 @@ export {
|
|
|
8465
8465
|
dompurify/dist/purify.es.mjs:
|
|
8466
8466
|
(*! @license DOMPurify 3.4.11 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.11/LICENSE *)
|
|
8467
8467
|
*/
|
|
8468
|
-
//# sourceMappingURL=chunk-
|
|
8468
|
+
//# sourceMappingURL=chunk-DLUINP4W.js.map
|