@singlebase/elements 0.7.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/authui-display-C2o9gApg.cjs +961 -0
  2. package/dist/authui-display-C2o9gApg.cjs.map +1 -0
  3. package/dist/{authui-display-BM_F3-5e.js → authui-display-CRUABt43.js} +1009 -862
  4. package/dist/authui-display-CRUABt43.js.map +1 -0
  5. package/dist/authui.cjs +1 -1
  6. package/dist/authui.js +2 -2
  7. package/dist/{chat-ezUmd9II.cjs → chat-Bj6DrOaW.cjs} +237 -168
  8. package/dist/chat-Bj6DrOaW.cjs.map +1 -0
  9. package/dist/{chat-BH_3e1jT.js → chat-DNiqYF6F.js} +1098 -825
  10. package/dist/chat-DNiqYF6F.js.map +1 -0
  11. package/dist/chat-messages.d.ts +5 -0
  12. package/dist/chat.cjs +1 -1
  13. package/dist/chat.js +1 -1
  14. package/dist/elements/authui-account.d.ts +0 -1
  15. package/dist/elements/authui-buttons.d.ts +1 -1
  16. package/dist/elements/authui.d.ts +25 -1
  17. package/dist/elements/chat.d.ts +76 -4
  18. package/dist/index.cjs +1 -1
  19. package/dist/index.js +3 -3
  20. package/dist/messages.d.ts +34 -3
  21. package/dist/singlebase-elements.min.js +3113 -2664
  22. package/dist/singlebase-elements.min.js.map +1 -1
  23. package/dist/{uploader-COP8PkJ6.cjs → uploader-C57vgFME.cjs} +27 -1
  24. package/dist/uploader-C57vgFME.cjs.map +1 -0
  25. package/dist/{uploader-tdMU9Gxv.js → uploader-Cz9yfzfV.js} +27 -1
  26. package/dist/uploader-Cz9yfzfV.js.map +1 -0
  27. package/dist/uploader.cjs +1 -1
  28. package/dist/uploader.js +1 -1
  29. package/dist/utils/auth-errors.d.ts +7 -0
  30. package/dist/utils/oauth.d.ts +24 -0
  31. package/dist/utils/password.d.ts +16 -0
  32. package/package.json +3 -3
  33. package/dist/authui-display-BM_F3-5e.js.map +0 -1
  34. package/dist/authui-display-CMVHTNFz.cjs +0 -956
  35. package/dist/authui-display-CMVHTNFz.cjs.map +0 -1
  36. package/dist/chat-BH_3e1jT.js.map +0 -1
  37. package/dist/chat-ezUmd9II.cjs.map +0 -1
  38. package/dist/uploader-COP8PkJ6.cjs.map +0 -1
  39. package/dist/uploader-tdMU9Gxv.js.map +0 -1
@@ -52,6 +52,10 @@ export interface SinglebaseChatMessages {
52
52
  restore: string;
53
53
  minimize: string;
54
54
  exportHeading: string;
55
+ viewOptions: string;
56
+ viewHeading: string;
57
+ viewFollowups: string;
58
+ viewSources: string;
55
59
  exportMarkdown: string;
56
60
  exportJson: string;
57
61
  exportText: string;
@@ -80,6 +84,7 @@ export interface SinglebaseChatMessages {
80
84
  sourceLabel: string;
81
85
  openSource: string;
82
86
  citedPassage: string;
87
+ passageCount: string;
83
88
  copyReference: string;
84
89
  alsoCited: string;
85
90
  close: string;
package/dist/chat.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chat-ezUmd9II.cjs");Object.defineProperty(exports,"SinglebaseChat",{enumerable:!0,get:()=>e.SinglebaseChat});exports.adaptBlocks=e.adaptBlocks;exports.citedNumbers=e.citedNumbers;exports.defaultChatMessages=e.defaultChatMessages;exports.describeSource=e.describeSource;exports.parseInline=e.parseInline;exports.parseMarkdown=e.parseMarkdown;exports.resolveChatMessages=e.resolveChatMessages;exports.settleStreaming=e.settleStreaming;exports.splitFollowups=e.splitFollowups;exports.svgDataUrl=e.svgDataUrl;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chat-Bj6DrOaW.cjs");Object.defineProperty(exports,"SinglebaseChat",{enumerable:!0,get:()=>e.SinglebaseChat});exports.adaptBlocks=e.adaptBlocks;exports.citedNumbers=e.citedNumbers;exports.defaultChatMessages=e.defaultChatMessages;exports.describeSource=e.describeSource;exports.parseInline=e.parseInline;exports.parseMarkdown=e.parseMarkdown;exports.resolveChatMessages=e.resolveChatMessages;exports.settleStreaming=e.settleStreaming;exports.splitFollowups=e.splitFollowups;exports.svgDataUrl=e.svgDataUrl;
2
2
  //# sourceMappingURL=chat.cjs.map
package/dist/chat.js CHANGED
@@ -1,4 +1,4 @@
1
- import { S as e, a as r, c as t, d as l, b as o, p, e as d, r as g, s as i, f as c, g as n } from "./chat-BH_3e1jT.js";
1
+ import { S as e, a as r, c as t, d as l, b as o, p, e as d, r as g, s as i, f as c, g as n } from "./chat-DNiqYF6F.js";
2
2
  export {
3
3
  e as SinglebaseChat,
4
4
  r as adaptBlocks,
@@ -38,7 +38,6 @@ export declare class SinglebaseAccountScreen extends SinglebaseFormBase {
38
38
  private accessor emailCode;
39
39
  private accessor emailError;
40
40
  private accessor emailSaved;
41
- private accessor curPass;
42
41
  private accessor newPass;
43
42
  private accessor confirmPass;
44
43
  private settingsCtl;
@@ -20,7 +20,7 @@ export declare class SinglebaseAuthButtons extends SinglebaseFormBase {
20
20
  accessor intent: OAuthIntent;
21
21
  /** link: the provider to connect to the signed-in account. */
22
22
  accessor provider: string;
23
- /** link: display name, when it differs from the provider id. */
23
+ /** link: label override. By default it's the project's `provider_name`. */
24
24
  accessor providerName: string;
25
25
  /** Inside a card that already supplies chrome, drop this element's own. */
26
26
  accessor embedded: boolean;
@@ -108,7 +108,6 @@ export declare class SinglebaseAuthScreen extends SinglebaseElementBase {
108
108
  private accessor emailError;
109
109
  private accessor passError;
110
110
  private accessor newPassError;
111
- private accessor attempts;
112
111
  private accessor needsMfaCode;
113
112
  private settingsCtl;
114
113
  private bridge;
@@ -153,8 +152,16 @@ export declare class SinglebaseAuthScreen extends SinglebaseElementBase {
153
152
  private get redirectParam();
154
153
  /** Navigates to the post-login destination if there is a safe one. */
155
154
  private followRedirect;
155
+ /**
156
+ * Only the OAuth return counts: `?access_code=`, `?error=oauth_denied` or
157
+ * `?oauth_error=<CODE>`. Any other `?error=` belongs to the host page.
158
+ */
156
159
  private get isOAuthCallback();
157
160
  private accessor callbackDone;
161
+ /** Where the OAuth return stands once its URL has been cleaned. */
162
+ private accessor callbackPhase;
163
+ /** "{name} is now connected", after a provider link completes. */
164
+ private accessor linkNotice;
158
165
  /** Strips the provider's parameters so a reload cannot replay the exchange. */
159
166
  private cleanCallbackUrl;
160
167
  /**
@@ -173,6 +180,17 @@ export declare class SinglebaseAuthScreen extends SinglebaseElementBase {
173
180
  private setScreen;
174
181
  private withLoading;
175
182
  private describeError;
183
+ /**
184
+ * The message for a code the backend sent back on the redirect. The code is
185
+ * only ever looked up, never shown, so a crafted URL can't put text on the page.
186
+ */
187
+ private describeOAuthError;
188
+ /** The requirements hint under a field that creates a password. */
189
+ private get passwordHint();
190
+ /** The placeholder for a field that creates a password. */
191
+ private get newPasswordHint();
192
+ /** The project's password rules, checked wherever a password is created. */
193
+ private checkNewPassword;
176
194
  private get codeValue();
177
195
  private onSubmit;
178
196
  private abortController;
@@ -206,6 +224,12 @@ export declare class SinglebaseAuthScreen extends SinglebaseElementBase {
206
224
  private onInterstitialSignOut;
207
225
  /** The Terms/Privacy consent line, rendered only when the host supplies a link. */
208
226
  private renderConsent;
227
+ /**
228
+ * The OAuth return is handled after the first render, not during it: state
229
+ * set while rendering is dropped, so the widget wouldn't leave the callback
230
+ * screen once the URL is cleaned.
231
+ */
232
+ protected updated(changed: PropertyValues): void;
209
233
  protected render(): typeof nothing | import("lit").TemplateResult<1>;
210
234
  }
211
235
  declare global {
@@ -23,6 +23,8 @@ export type ChatClient = {
23
23
  export interface ChatSummary {
24
24
  _id: string;
25
25
  title: string | null;
26
+ /** The caller-chosen key this chat can also be opened by. */
27
+ key?: string | null;
26
28
  bookmarked?: boolean;
27
29
  message_count?: number;
28
30
  _created_at?: string;
@@ -97,6 +99,7 @@ export interface ChatConfig {
97
99
  client: ChatClient | null;
98
100
  /** Opens this saved chat. */
99
101
  chatId: string;
102
+ chatKey: string;
100
103
  embed: ChatEmbed;
101
104
  mode: ChatMode;
102
105
  format: ChatFormat;
@@ -135,6 +138,7 @@ export interface ChatConfig {
135
138
  saveAttachments: boolean;
136
139
  showFollowups: boolean;
137
140
  showSources: boolean;
141
+ allowViewOptions: boolean;
138
142
  showNewChat: boolean;
139
143
  showBookmarked: boolean;
140
144
  allowSearch: boolean;
@@ -151,6 +155,7 @@ export interface ChatConfig {
151
155
  /** A readable view of whatever shape the server recorded for a source. */
152
156
  export declare function describeSource(source: Record<string, unknown>, n: number): {
153
157
  n: number;
158
+ doc: string;
154
159
  title: string;
155
160
  section: string;
156
161
  path: string;
@@ -159,6 +164,20 @@ export declare function describeSource(source: Record<string, unknown>, n: numbe
159
164
  text: string;
160
165
  score: number | null;
161
166
  };
167
+ type DescribedSource = ReturnType<typeof describeSource>;
168
+ /** One document and the passages of it that a reply used. */
169
+ export interface SourceGroup {
170
+ doc: string;
171
+ /** The first passage: it supplies the title, path and preview. */
172
+ first: DescribedSource;
173
+ items: DescribedSource[];
174
+ }
175
+ /**
176
+ * Groups passages by the document they come from, keeping first-seen order.
177
+ * A file split into passages comes back as several numbered sources; shown one
178
+ * by one it looks like the same document repeated.
179
+ */
180
+ export declare function groupSources(sources: DescribedSource[]): SourceGroup[];
162
181
  /**
163
182
  * An AI chat workspace backed by the `llm.*` service.
164
183
  *
@@ -204,9 +223,9 @@ export declare class SinglebaseChat extends LitElement {
204
223
  */
205
224
  accessor docsets: string | string[];
206
225
  /**
207
- * How attached files reach the service: `retrieval` (this message only;
208
- * works with every service version) or `payload` (as `attachments`, which
209
- * the service keeps on the chat for later turns).
226
+ * How attached files reach the service: `payload` (as `attachments`, which
227
+ * the service keeps on the chat for later turns) or `retrieval` (with this
228
+ * message only).
210
229
  */
211
230
  accessor attachmentsMode: "retrieval" | "payload";
212
231
  /** With attachments-mode="payload": keep attached files on the chat. */
@@ -221,6 +240,11 @@ export declare class SinglebaseChat extends LitElement {
221
240
  accessor showBookmarked: boolean;
222
241
  /** Show the follow-up questions under the latest reply. */
223
242
  accessor showFollowups: boolean;
243
+ /**
244
+ * Adds a header menu where the reader can hide suggested questions and
245
+ * sources for a cleaner view. Their choice is remembered in this browser.
246
+ */
247
+ accessor allowViewOptions: boolean;
224
248
  /** The search box in the chat list. */
225
249
  accessor allowSearch: boolean;
226
250
  /** Replace the provisional title with a model-written one after the first reply. */
@@ -245,6 +269,12 @@ export declare class SinglebaseChat extends LitElement {
245
269
  accessor showTitle: boolean;
246
270
  /** Opens this chat on load. */
247
271
  accessor chatIdAttr: string;
272
+ /**
273
+ * A key of your own for this conversation, unique per signed-in user. The
274
+ * chat with this key is opened if there is one; otherwise the first message
275
+ * creates it, so the same key reopens it later. `chat-id` wins if both are set.
276
+ */
277
+ accessor chatKey: string;
248
278
  /** Used in placeholders, exports and labels. Never shown above messages. */
249
279
  accessor assistantName: string;
250
280
  accessor logoUrl: string;
@@ -254,7 +284,9 @@ export declare class SinglebaseChat extends LitElement {
254
284
  accessor eyebrow: string | undefined;
255
285
  /**
256
286
  * Suggested prompts: `|`-separated in markup, an array in JavaScript.
257
- * `"none"` or `[]` shows no suggestions.
287
+ * `"none"` or `[]` shows no suggestions. `"auto"` asks the service for
288
+ * starter questions drawn from the chat's context (`retrieval`, `docsets`
289
+ * and saved attachments); they're stored on the chat and reused on reload.
258
290
  */
259
291
  accessor prompts: string | (string | ChatPrompt)[];
260
292
  accessor bubbleText: string;
@@ -306,6 +338,9 @@ export declare class SinglebaseChat extends LitElement {
306
338
  private accessor width;
307
339
  private accessor panel;
308
340
  private accessor menuOpen;
341
+ private accessor viewOpen;
342
+ /** What the reader chose to hide, when `allow-view-options` lets them. */
343
+ private accessor viewHidden;
309
344
  private accessor editingKey;
310
345
  private accessor editDraft;
311
346
  private accessor editingTitle;
@@ -335,10 +370,22 @@ export declare class SinglebaseChat extends LitElement {
335
370
  private renamed;
336
371
  private observer;
337
372
  private observed;
373
+ private resizeTimer;
374
+ private shownPassage;
338
375
  private media;
339
376
  private focusNext;
340
377
  private bubbleScheduled;
341
378
  private pendingChatId;
379
+ /** Starter questions the service generated for this chat's context. */
380
+ private accessor starterList;
381
+ private accessor startersLoading;
382
+ /** The key the open conversation is created under, until the user leaves it. */
383
+ private boundKey;
384
+ /** The open chat was prepared but has no messages yet. */
385
+ private prepared;
386
+ private syncedKey;
387
+ private syncSignature;
388
+ private syncRun;
342
389
  get msg(): SinglebaseChatMessages;
343
390
  /** An explicit `.client`, else the page default. */
344
391
  get resolvedClient(): ChatClient | null;
@@ -346,6 +393,8 @@ export declare class SinglebaseChat extends LitElement {
346
393
  get chatId(): string | null;
347
394
  /** The open conversation's messages. */
348
395
  get thread(): readonly ChatMessage[];
396
+ /** The starter questions from `prompts="auto"`, if any. */
397
+ get starters(): readonly string[];
349
398
  /** `format`, falling back to the default for anything unknown. */
350
399
  /** `docsets` as a clean list of ids. */
351
400
  private get docsetIds();
@@ -386,6 +435,26 @@ export declare class SinglebaseChat extends LitElement {
386
435
  newChat(): void;
387
436
  /** Opens a saved conversation. */
388
437
  openChat(id: string): Promise<void>;
438
+ /** Suggested questions under answers: the page's setting, then the reader's. */
439
+ private get followupsVisible();
440
+ /** Source cards and the "searched" row: the page's setting, then the reader's. */
441
+ private get sourcesVisible();
442
+ private toggleView;
443
+ /** Puts a chat from `llm.get_chat` (or `llm.prepare_chat`) on screen. */
444
+ private showChat;
445
+ private get wantsStarters();
446
+ /** The user moved to another conversation: stop tying messages to the key. */
447
+ private leaveKeyedChat;
448
+ /** Docsets first, then the page's own retrieval entries. */
449
+ private baseRetrieval;
450
+ /**
451
+ * Opens the chat for `chat-key`, and with `prompts="auto"` prepares the chat
452
+ * with its context so the service returns stored starter questions.
453
+ *
454
+ * It runs when the key or the context changes. A change of context alone
455
+ * never replaces a conversation that already has messages.
456
+ */
457
+ private syncKeyedChat;
389
458
  /** Sends a message; with no argument, sends the composer's text. */
390
459
  send(text?: string): Promise<void>;
391
460
  /** Stops waiting for, or revealing, the current reply. */
@@ -465,6 +534,8 @@ export declare class SinglebaseChat extends LitElement {
465
534
  private renderSidebar;
466
535
  private renderThreadRow;
467
536
  private renderHeader;
537
+ /** Lets the reader hide suggested questions and sources for a cleaner view. */
538
+ private renderViewMenu;
468
539
  private renderExportMenu;
469
540
  /** The suggestion cards. `[]` or `"none"` shows none; unset uses the mode's. */
470
541
  private promptList;
@@ -491,3 +562,4 @@ declare global {
491
562
  "singlebase-chat": SinglebaseChat;
492
563
  }
493
564
  }
565
+ export {};
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./authui-display-CMVHTNFz.cjs"),r=require("./uploader-COP8PkJ6.cjs"),s=require("@singlebase/core"),a=require("./files-4T62wkwj.cjs"),t=require("./chat-ezUmd9II.cjs");exports.AuthController=e.AuthController;exports.SettingsController=e.SettingsController;Object.defineProperty(exports,"SinglebaseAccountScreen",{enumerable:!0,get:()=>e.SinglebaseAccountScreen});Object.defineProperty(exports,"SinglebaseAuthButtons",{enumerable:!0,get:()=>e.SinglebaseAuthButtons});Object.defineProperty(exports,"SinglebaseAuthDisplay",{enumerable:!0,get:()=>e.SinglebaseAuthDisplay});Object.defineProperty(exports,"SinglebaseAuthGuard",{enumerable:!0,get:()=>e.SinglebaseAuthGuard});Object.defineProperty(exports,"SinglebaseAuthScreen",{enumerable:!0,get:()=>e.SinglebaseAuthScreen});exports.defaultMessages=e.defaultMessages;exports.fullNameOf=e.fullNameOf;exports.initialsOf=e.initialsOf;exports.isGuestScreen=e.isGuestScreen;exports.isProtectedScreen=e.isProtectedScreen;exports.isScreen=e.isScreen;exports.resolveMessages=e.resolveMessages;Object.defineProperty(exports,"SinglebaseUploader",{enumerable:!0,get:()=>r.SinglebaseUploader});exports.inspectFile=r.inspectFile;exports.isInspectable=r.isInspectable;exports.resolveRedirectTarget=r.resolveRedirectTarget;Object.defineProperty(exports,"OPERATORS",{enumerable:!0,get:()=>s.OPERATORS});Object.defineProperty(exports,"matchesPredicate",{enumerable:!0,get:()=>s.matchesPredicate});Object.defineProperty(exports,"validatePredicate",{enumerable:!0,get:()=>s.validatePredicate});exports.TOKEN_DEFAULTS=a.TOKEN_DEFAULTS;exports.defaultUploadMessages=a.defaultUploadMessages;exports.resolveUploadMessages=a.resolveUploadMessages;Object.defineProperty(exports,"SinglebaseChat",{enumerable:!0,get:()=>t.SinglebaseChat});exports.adaptBlocks=t.adaptBlocks;exports.citedNumbers=t.citedNumbers;exports.defaultChatMessages=t.defaultChatMessages;exports.describeSource=t.describeSource;exports.parseInline=t.parseInline;exports.parseMarkdown=t.parseMarkdown;exports.resolveChatMessages=t.resolveChatMessages;exports.settleStreaming=t.settleStreaming;exports.splitFollowups=t.splitFollowups;exports.svgDataUrl=t.svgDataUrl;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./authui-display-C2o9gApg.cjs"),r=require("./uploader-C57vgFME.cjs"),s=require("@singlebase/core"),a=require("./files-4T62wkwj.cjs"),t=require("./chat-Bj6DrOaW.cjs");exports.AuthController=e.AuthController;exports.SettingsController=e.SettingsController;Object.defineProperty(exports,"SinglebaseAccountScreen",{enumerable:!0,get:()=>e.SinglebaseAccountScreen});Object.defineProperty(exports,"SinglebaseAuthButtons",{enumerable:!0,get:()=>e.SinglebaseAuthButtons});Object.defineProperty(exports,"SinglebaseAuthDisplay",{enumerable:!0,get:()=>e.SinglebaseAuthDisplay});Object.defineProperty(exports,"SinglebaseAuthGuard",{enumerable:!0,get:()=>e.SinglebaseAuthGuard});Object.defineProperty(exports,"SinglebaseAuthScreen",{enumerable:!0,get:()=>e.SinglebaseAuthScreen});exports.defaultMessages=e.defaultMessages;exports.fullNameOf=e.fullNameOf;exports.initialsOf=e.initialsOf;exports.isGuestScreen=e.isGuestScreen;exports.isProtectedScreen=e.isProtectedScreen;exports.isScreen=e.isScreen;exports.resolveMessages=e.resolveMessages;Object.defineProperty(exports,"SinglebaseUploader",{enumerable:!0,get:()=>r.SinglebaseUploader});exports.inspectFile=r.inspectFile;exports.isInspectable=r.isInspectable;exports.resolveRedirectTarget=r.resolveRedirectTarget;Object.defineProperty(exports,"OPERATORS",{enumerable:!0,get:()=>s.OPERATORS});Object.defineProperty(exports,"matchesPredicate",{enumerable:!0,get:()=>s.matchesPredicate});Object.defineProperty(exports,"validatePredicate",{enumerable:!0,get:()=>s.validatePredicate});exports.TOKEN_DEFAULTS=a.TOKEN_DEFAULTS;exports.defaultUploadMessages=a.defaultUploadMessages;exports.resolveUploadMessages=a.resolveUploadMessages;Object.defineProperty(exports,"SinglebaseChat",{enumerable:!0,get:()=>t.SinglebaseChat});exports.adaptBlocks=t.adaptBlocks;exports.citedNumbers=t.citedNumbers;exports.defaultChatMessages=t.defaultChatMessages;exports.describeSource=t.describeSource;exports.parseInline=t.parseInline;exports.parseMarkdown=t.parseMarkdown;exports.resolveChatMessages=t.resolveChatMessages;exports.settleStreaming=t.settleStreaming;exports.splitFollowups=t.splitFollowups;exports.svgDataUrl=t.svgDataUrl;
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- import { A as a, S as r, a as t, b as l, c as i, d as o, e as n, f as c, g as S, i as d, h as g, j as p, k as u, r as f } from "./authui-display-BM_F3-5e.js";
2
- import { S as h, i as m, a as A, r as M } from "./uploader-tdMU9Gxv.js";
1
+ import { A as a, S as r, a as t, b as l, c as i, d as o, e as n, f as c, g as S, i as d, h as g, j as p, k as u, r as f } from "./authui-display-CRUABt43.js";
2
+ import { S as h, i as m, a as A, r as M } from "./uploader-Cz9yfzfV.js";
3
3
  import { OPERATORS as x, matchesPredicate as C, validatePredicate as O } from "@singlebase/core";
4
4
  import { T as U, d as P, r as k } from "./files-DS-H-3yN.js";
5
- import { S as E, a as F, c as N, d as R, b as w, p as B, e as G, r as I, s as j, f as y, g as K } from "./chat-BH_3e1jT.js";
5
+ import { S as E, a as F, c as N, d as R, b as w, p as B, e as G, r as I, s as j, f as y, g as K } from "./chat-DNiqYF6F.js";
6
6
  export {
7
7
  a as AuthController,
8
8
  x as OPERATORS,
@@ -45,9 +45,16 @@ export interface SinglebaseAuthMessages {
45
45
  passwordPlaceholder: string;
46
46
  newPasswordLabel: string;
47
47
  newPasswordPlaceholder: string;
48
+ newPasswordPlaceholderPlain: string;
49
+ passwordRulesLabel: string;
50
+ passwordRuleLength: string;
51
+ passwordRuleMinLength: string;
52
+ passwordRuleLowercase: string;
53
+ passwordRuleUppercase: string;
54
+ passwordRuleNumber: string;
55
+ passwordRuleSymbol: string;
48
56
  confirmPasswordLabel: string;
49
57
  confirmPasswordPlaceholder: string;
50
- currentPasswordLabel: string;
51
58
  firstNameLabel: string;
52
59
  firstNamePlaceholder: string;
53
60
  lastNameLabel: string;
@@ -63,7 +70,6 @@ export interface SinglebaseAuthMessages {
63
70
  footActionSignUp: string;
64
71
  resendQuestion: string;
65
72
  resendCta: string;
66
- oauthPrimaryLabel: string;
67
73
  oauthContinueWith: string;
68
74
  blockedTitleDisabled: string;
69
75
  blockedTitleUnavailable: string;
@@ -115,10 +121,28 @@ export interface SinglebaseAuthMessages {
115
121
  codeSentNeutral: string;
116
122
  invalidEmailError: string;
117
123
  requiredError: string;
118
- passwordMinError: string;
124
+ passwordTooShortError: string;
125
+ passwordTooLongError: string;
126
+ passwordNeedsLowercaseError: string;
127
+ passwordNeedsUppercaseError: string;
128
+ passwordNeedsNumberError: string;
129
+ passwordNeedsSymbolError: string;
130
+ invalidPasswordMessage: string;
119
131
  passwordMatchError: string;
132
+ invalidCodeError: string;
133
+ invalidCredentialsError: string;
134
+ codeResentNotice: string;
135
+ confirmNewPasswordLabel: string;
136
+ notSignedInNote: string;
137
+ connectProviderLabel: string;
138
+ digitLabel: string;
139
+ accountCreatedNotice: string;
140
+ inviteCodeLabel: string;
141
+ submittingStatus: string;
142
+ doneStatus: string;
120
143
  codeIncompleteError: string;
121
144
  invalidPhoneError: string;
145
+ firstNameRequiredError: string;
122
146
  notYetSupported: string;
123
147
  alreadySignedInTitle: string;
124
148
  alreadySignedInSub: string;
@@ -140,6 +164,13 @@ export interface SinglebaseAuthMessages {
140
164
  oauthCallbackTitle: string;
141
165
  oauthCallbackSub: string;
142
166
  oauthDenied: string;
167
+ oauthRetryMessage: string;
168
+ oauthUnavailableMessage: string;
169
+ oauthVerifiedEmailMessage: string;
170
+ providerConnectedNotice: string;
171
+ signInToLinkMessage: string;
172
+ providerAlreadyLinkedMessage: string;
173
+ oauthNoAccountMessage: string;
143
174
  }
144
175
  export declare const defaultMessages: SinglebaseAuthMessages;
145
176
  export declare function resolveMessages(overrides?: Partial<SinglebaseAuthMessages>): SinglebaseAuthMessages;