@pontive/pontkit-core 1.50.0 → 1.52.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/catalog.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.50.0",
2
+ "version": "1.52.0",
3
3
  "elements": [
4
4
  {
5
5
  "tag": "pont-otp-resend",
@@ -36,6 +36,7 @@ export declare const KIT_MESSAGES_EN: {
36
36
  readonly continued_elsewhere_title: "You continued in another tab";
37
37
  readonly continued_elsewhere_subtitle: "You can close this one.";
38
38
  readonly continue_here: "Continue here instead";
39
+ readonly scope_not_allowed: "This app isn't allowed to ask for that permission.";
39
40
  readonly show_password: "Show password";
40
41
  readonly hide_password: "Hide password";
41
42
  readonly loading: "Loading";
@@ -298,6 +299,11 @@ export declare function setMessages(messages?: Record<string, string> | null, lo
298
299
  */
299
300
  export declare function msg(code: KitMessageCode): string;
300
301
  export declare function msg(code: string, fallback: string): string;
302
+ /**
303
+ * The text for a code when the kit has some (a set the server sent, else the kit's English), else
304
+ * undefined: for choosing words by a refusal's `error.code` without showing the code itself.
305
+ */
306
+ export declare function lookupMessage(code: string): string | undefined;
301
307
  /** The language the page was last served in, for formatting; undefined until the server has said. */
302
308
  export declare function currentLocale(): string | undefined;
303
309
  /** Calls `listener` whenever a set arrives. Returns the unsubscribe. */