@pluno/product-agent-web 0.1.213 → 0.1.215

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.
@@ -1967,7 +1967,10 @@ class mo {
1967
1967
  attachments: o.length > 0 ? o.map(xs) : void 0,
1968
1968
  page: a,
1969
1969
  model: this.options.model,
1970
- metadata: Ur(this.options.metadata)
1970
+ metadata: {
1971
+ ...Ur(this.options.metadata),
1972
+ ...n.automationOnboarding ? { automationOnboarding: !0 } : {}
1973
+ }
1971
1974
  };
1972
1975
  return n.initiatedBy || (this.lastUserMessagePageUrl = a.url), this.pendingClientMessageId = r, this.pendingUserMessageEvent = z, this.stagedProactiveSuggestionQuestionMessageId = null, this.send(z), this.schedulePendingDeliveryAck(r), r;
1973
1976
  } });
@@ -6700,7 +6703,7 @@ function Wg(t) {
6700
6703
  e ^= t.charCodeAt(n), e = Math.imul(e, 16777619);
6701
6704
  return `fnv1a-${(e >>> 0).toString(16).padStart(8, "0")}`;
6702
6705
  }
6703
- const $g = "0.1.213", jg = 80, Kg = 64e3, ra = 60, Ai = 160;
6706
+ const $g = "0.1.215", jg = 80, Kg = 64e3, ra = 60, Ai = 160;
6704
6707
  function Gg(t, e, n, s) {
6705
6708
  const i = [], o = [];
6706
6709
  let a = 0, r = 0, d = 0, c = crypto.randomUUID(), u = s.getState(), h = u.user?.id, f = null, g = "", w = "";
@@ -12031,7 +12034,7 @@ function Ma(t, e) {
12031
12034
  gap: 6px;
12032
12035
  pointer-events: none;
12033
12036
  }
12034
- .pluno-pa-widget__history,
12037
+ :is(.pluno-pa-widget__history, .pluno-pa-widget__toolbar-button),
12035
12038
  .pluno-pa-widget__new-chat {
12036
12039
  position: relative;
12037
12040
  box-sizing: border-box;
@@ -12054,12 +12057,12 @@ function Ma(t, e) {
12054
12057
  transform 120ms ease,
12055
12058
  box-shadow 120ms ease;
12056
12059
  }
12057
- .pluno-pa-widget__history:hover:not(:disabled),
12060
+ :is(.pluno-pa-widget__history, .pluno-pa-widget__toolbar-button):hover:not(:disabled),
12058
12061
  .pluno-pa-widget__new-chat:hover:not(:disabled) {
12059
12062
  background: var(--pluno-pa-surface);
12060
12063
  box-shadow: 0 8px 18px rgba(24, 24, 27, 0.1);
12061
12064
  }
12062
- .pluno-pa-widget__history:active:not(:disabled),
12065
+ :is(.pluno-pa-widget__history, .pluno-pa-widget__toolbar-button):active:not(:disabled),
12063
12066
  .pluno-pa-widget__new-chat:active:not(:disabled) {
12064
12067
  transform: scale(0.96);
12065
12068
  }
@@ -14264,7 +14267,7 @@ function Ma(t, e) {
14264
14267
  .pluno-pa-widget--scribble .pluno-pa-widget__launcher,
14265
14268
  .pluno-pa-widget--scribble .pluno-pa-widget__launcher-minimize,
14266
14269
  .pluno-pa-widget--scribble .pluno-pa-widget__send,
14267
- .pluno-pa-widget--scribble .pluno-pa-widget__history,
14270
+ .pluno-pa-widget--scribble :is(.pluno-pa-widget__history, .pluno-pa-widget__toolbar-button),
14268
14271
  .pluno-pa-widget--scribble .pluno-pa-widget__new-chat,
14269
14272
  .pluno-pa-widget--scribble .pluno-pa-widget__history-close,
14270
14273
  .pluno-pa-widget--scribble .pluno-pa-widget__history-panel,
@@ -14287,7 +14290,7 @@ function Ma(t, e) {
14287
14290
  .pluno-pa-widget--scribble .pluno-pa-widget__launcher::before,
14288
14291
  .pluno-pa-widget--scribble .pluno-pa-widget__launcher-minimize::before,
14289
14292
  .pluno-pa-widget--scribble .pluno-pa-widget__send::before,
14290
- .pluno-pa-widget--scribble .pluno-pa-widget__history::before,
14293
+ .pluno-pa-widget--scribble :is(.pluno-pa-widget__history, .pluno-pa-widget__toolbar-button)::before,
14291
14294
  .pluno-pa-widget--scribble .pluno-pa-widget__new-chat::before,
14292
14295
  .pluno-pa-widget--scribble .pluno-pa-widget__history-close::before,
14293
14296
  .pluno-pa-widget--scribble .pluno-pa-widget__history-panel::before,
@@ -14327,7 +14330,7 @@ function Ma(t, e) {
14327
14330
  .pluno-pa-widget--scribble .pluno-pa-widget__send:disabled::before {
14328
14331
  background: var(--pluno-pa-surface);
14329
14332
  }
14330
- .pluno-pa-widget--scribble .pluno-pa-widget__history::before,
14333
+ .pluno-pa-widget--scribble :is(.pluno-pa-widget__history, .pluno-pa-widget__toolbar-button)::before,
14331
14334
  .pluno-pa-widget--scribble .pluno-pa-widget__new-chat::before,
14332
14335
  .pluno-pa-widget--scribble .pluno-pa-widget__launcher-minimize::before,
14333
14336
  .pluno-pa-widget--scribble .pluno-pa-widget__history-close::before,
@@ -14357,7 +14360,7 @@ function Ma(t, e) {
14357
14360
  }
14358
14361
  .pluno-pa-widget--scribble .pluno-pa-widget__send,
14359
14362
  .pluno-pa-widget--scribble .pluno-pa-widget__launcher-minimize,
14360
- .pluno-pa-widget--scribble .pluno-pa-widget__history,
14363
+ .pluno-pa-widget--scribble :is(.pluno-pa-widget__history, .pluno-pa-widget__toolbar-button),
14361
14364
  .pluno-pa-widget--scribble .pluno-pa-widget__new-chat,
14362
14365
  .pluno-pa-widget--scribble .pluno-pa-widget__message-copy,
14363
14366
  .pluno-pa-widget--scribble .pluno-pa-widget__close,
@@ -14368,7 +14371,7 @@ function Ma(t, e) {
14368
14371
  }
14369
14372
  .pluno-pa-widget--scribble .pluno-pa-widget__send::after,
14370
14373
  .pluno-pa-widget--scribble .pluno-pa-widget__launcher-minimize::after,
14371
- .pluno-pa-widget--scribble .pluno-pa-widget__history::after,
14374
+ .pluno-pa-widget--scribble :is(.pluno-pa-widget__history, .pluno-pa-widget__toolbar-button)::after,
14372
14375
  .pluno-pa-widget--scribble .pluno-pa-widget__new-chat::after,
14373
14376
  .pluno-pa-widget--scribble .pluno-pa-widget__message-copy::after,
14374
14377
  .pluno-pa-widget--scribble .pluno-pa-widget__close::after,
@@ -14415,7 +14418,7 @@ function Ma(t, e) {
14415
14418
  transform: rotate(-8deg);
14416
14419
  filter: url(#pluno-pa-scribble-wobble-2);
14417
14420
  }
14418
- .pluno-pa-widget--scribble .pluno-pa-widget__history::after,
14421
+ .pluno-pa-widget--scribble :is(.pluno-pa-widget__history, .pluno-pa-widget__toolbar-button)::after,
14419
14422
  .pluno-pa-widget--scribble .pluno-pa-widget__new-chat::after {
14420
14423
  transform: rotate(-10deg);
14421
14424
  filter: url(#pluno-pa-scribble-wobble);
@@ -14432,7 +14435,7 @@ function Ma(t, e) {
14432
14435
  transform: rotate(-7deg);
14433
14436
  filter: url(#pluno-pa-scribble-wobble);
14434
14437
  }
14435
- .pluno-pa-widget--scribble .pluno-pa-widget__history::before,
14438
+ .pluno-pa-widget--scribble :is(.pluno-pa-widget__history, .pluno-pa-widget__toolbar-button)::before,
14436
14439
  .pluno-pa-widget--scribble .pluno-pa-widget__new-chat::before {
14437
14440
  transform: rotate(6deg);
14438
14441
  filter: url(#pluno-pa-scribble-wobble-2);
@@ -14489,7 +14492,7 @@ function Ma(t, e) {
14489
14492
  filter: url(#pluno-pa-scribble-wobble-2);
14490
14493
  }
14491
14494
  .pluno-pa-widget--scribble .pluno-pa-widget__send svg,
14492
- .pluno-pa-widget--scribble .pluno-pa-widget__history svg,
14495
+ .pluno-pa-widget--scribble :is(.pluno-pa-widget__history, .pluno-pa-widget__toolbar-button) svg,
14493
14496
  .pluno-pa-widget--scribble .pluno-pa-widget__new-chat svg,
14494
14497
  .pluno-pa-widget--scribble .pluno-pa-widget__message-copy svg,
14495
14498
  .pluno-pa-widget--scribble .pluno-pa-widget__close svg {
@@ -74,6 +74,7 @@ export type ProductAgentRuntimeCommand = {
74
74
  initiatedBy?: "pluno";
75
75
  invocation?: ProductAgentInvocation | "pluno";
76
76
  proactiveSuggestionQuestion?: string;
77
+ automationOnboarding?: boolean;
77
78
  submittedAt?: number;
78
79
  attachments?: ProductAgentAttachment[];
79
80
  };
@@ -103,6 +104,7 @@ export type ProductAgentRuntimeClient = {
103
104
  initiatedBy?: "pluno";
104
105
  invocation?: ProductAgentInvocation | "pluno";
105
106
  proactiveSuggestionQuestion?: string;
107
+ automationOnboarding?: boolean;
106
108
  submittedAt?: number;
107
109
  }): Promise<string | null>;
108
110
  getModel(): ProductAgentModel | undefined;
@@ -168,6 +170,7 @@ export declare class ProductAgentRemoteRuntimeClient implements ProductAgentRunt
168
170
  initiatedBy?: "pluno";
169
171
  invocation?: ProductAgentInvocation | "pluno";
170
172
  proactiveSuggestionQuestion?: string;
173
+ automationOnboarding?: boolean;
171
174
  submittedAt?: number;
172
175
  }): Promise<string | null>;
173
176
  private sendMessageNow;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluno/product-agent-web",
3
- "version": "0.1.213",
3
+ "version": "0.1.215",
4
4
  "description": "Browser SDK and default widget for embedding Pluno Product Agent into customer web apps.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",