@sparkvault/sdk-js 16.7.0 → 16.8.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/dist/index.cjs +212 -116
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +212 -116
- package/dist/index.mjs.map +1 -1
- package/dist/products/help-desk/form-attachments.d.ts +2 -0
- package/dist/products/help-desk/form-composer.d.ts +9 -5
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/package.json +1 -1
|
@@ -20,6 +20,8 @@ export interface FormAttachments {
|
|
|
20
20
|
readonly attachmentIds: string[];
|
|
21
21
|
readonly unresolved: boolean;
|
|
22
22
|
readonly hasEntries: boolean;
|
|
23
|
+
/** The names of the files it holds, its chips' names. */
|
|
24
|
+
readonly names: string[];
|
|
23
25
|
add(files: ArrayLike<File>): void;
|
|
24
26
|
start(): Promise<void>;
|
|
25
27
|
lock(value: boolean): void;
|
|
@@ -25,10 +25,14 @@ export interface ComposerOptions {
|
|
|
25
25
|
* The details field as a composer. A file pasted into the summary or the
|
|
26
26
|
* details, or dropped anywhere on the request step, joins the form's one
|
|
27
27
|
* attachment pipeline (`attachments.add`), under the same limits and
|
|
28
|
-
* refusals as a picked one; the drop target shows only over the composer.
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
28
|
+
* refusals as a picked one; the drop target shows only over the composer.
|
|
29
|
+
* How a drag, a drop and a paste are answered (which files they carry, the
|
|
30
|
+
* folders a drop leaves out, the names of pasted pictures, when the drop
|
|
31
|
+
* target shows) is @sparkvault/app-sdk/composer-files' to decide; this says
|
|
32
|
+
* what a file brought now does. A paste or drag of text alone stays the
|
|
33
|
+
* browser's. A file brought over the form is never the browser's to open in
|
|
34
|
+
* place of the unsent request: on the sign-in step, or while the form takes
|
|
35
|
+
* no files, it is refused outright, and a desk that takes no files says so
|
|
36
|
+
* when the file is dropped.
|
|
33
37
|
*/
|
|
34
38
|
export declare function createComposer(options: ComposerOptions): FormComposer;
|