@sparkvault/sdk-js 16.4.1 → 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.
- package/README.md +21 -13
- package/dist/index.cjs +1038 -408
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +31 -4
- package/dist/index.mjs +1038 -408
- package/dist/index.mjs.map +1 -1
- package/dist/products/help-desk/form-attachments.d.ts +23 -6
- package/dist/products/help-desk/form-composer.d.ts +34 -0
- package/dist/products/help-desk/form-draft.d.ts +11 -2
- package/dist/products/help-desk/form-types.d.ts +29 -4
- package/dist/products/help-desk/form.d.ts +32 -9
- package/dist/products/help-desk/icons.d.ts +21 -0
- package/dist/products/help-desk/support-types.d.ts +2 -0
- package/dist/products/help-desk/support-view.d.ts +8 -2
- package/dist/products/identity/renderer.d.ts +0 -7
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/dist/ui/live-region.d.ts +15 -0
- package/package.json +1 -1
- package/dist/products/help-desk/support-subject.d.ts +0 -7
|
@@ -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,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;
|