@sparkvault/sdk-js 16.4.0 → 16.5.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.
@@ -7,8 +7,9 @@
7
7
  * neutrals. The published bundle cannot read those CSS files, so the values
8
8
  * the widgets use are mirrored here, each naming the token it mirrors.
9
9
  * tests/ds-tokens.test.ts holds every value to the design system's own, and
10
- * refuses a hex color anywhere else in the SDK's source (provider logos keep
11
- * their owners' colors) and an rgba() whose color is not the design system's.
10
+ * refuses a hex color anywhere else in the SDK's source and an rgba() whose
11
+ * color is not the design system's. The sign-in providers' marks keep their
12
+ * owners' colors, which live in @sparkvault/app-sdk/brand-marks.
12
13
  */
13
14
  /** The design-system token each mirrored value is. */
14
15
  export declare const DS_TOKEN_SOURCES: Readonly<{
@@ -0,0 +1,15 @@
1
+ export interface LiveRegion {
2
+ /** The region, empty until it announces; the caller places it, styled by its class. */
3
+ readonly element: HTMLDivElement;
4
+ /** Say `words` a moment from now, in place of any still waiting; empty words clear the region at once. */
5
+ announce(words: string): void;
6
+ /** Drop any words still waiting and remove the region. */
7
+ destroy(): void;
8
+ }
9
+ /**
10
+ * A polite status region for words said as a view changes. It is placed
11
+ * empty and kept, and every announcement waits a moment, so the words never
12
+ * land in the same change as the region or the view that holds them: a
13
+ * region created with its words already in it is often never announced.
14
+ */
15
+ export declare function createLiveRegion(className: string): LiveRegion;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sparkvault/sdk-js",
3
- "version": "16.4.0",
3
+ "version": "16.5.0",
4
4
  "description": "SparkVault JavaScript SDK - Identity, Secure Help Desk, Notifications and Encrypted Vaults",
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,7 +0,0 @@
1
- /**
2
- * The subject a support issue prefills: its first line or sentence that holds
3
- * a word and says more than a greeting (its first one when none does),
4
- * shortened at a word boundary with an ellipsis to fit MAX_SUBJECT_LEN. The
5
- * message carries the whole issue, so the subject only needs to name it.
6
- */
7
- export declare function issueSubject(issue: string): string;