@pontive/pontkit-core 1.34.0 → 1.34.1

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.
@@ -0,0 +1,19 @@
1
+ /**
2
+ * A stopped instance: paused, or its owner's Pontive account paused, cancelled
3
+ * or deleted. Pontive refuses everything it serves to end users with this one
4
+ * code and no reason (pontive-spec 01, Who is told why), so every widget says
5
+ * the same thing: "This app isn't available right now."
6
+ */
7
+ export declare const INSTANCE_UNAVAILABLE = "instance_unavailable";
8
+ /** Whether a failed call was refused because the instance has stopped. */
9
+ export declare function isInstanceUnavailable(error: unknown): boolean;
10
+ /**
11
+ * Keep the sentence a stopped instance's auth domain refused with. Once the
12
+ * instance has stopped, the page can no longer ask for its text, so the auth
13
+ * service words the refusal itself, in the page's language and the instance's
14
+ * copy; kept here, it is what msg("instance_unavailable") says from then on,
15
+ * including for refusals from services that send only English.
16
+ */
17
+ export declare function rememberUnavailable(sentence?: string): void;
18
+ /** The sentence to show for a refusal of a stopped instance. */
19
+ export declare function instanceUnavailableMessage(): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pontive/pontkit-core",
3
- "version": "1.34.0",
3
+ "version": "1.34.1",
4
4
  "license": "MIT",
5
5
  "description": "A collection of core components for Pontive",
6
6
  "main": "dist/index.js",