@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.
- package/README.md +21 -13
- package/dist/index.cjs +1148 -457
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +31 -4
- package/dist/index.mjs +1148 -457
- 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/products/identity/views/icons.d.ts +4 -4
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/dist/ui/ds-tokens.d.ts +3 -2
- 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
package/README.md
CHANGED
|
@@ -361,8 +361,11 @@ const support = sv.products.helpDesk.createSupport({
|
|
|
361
361
|
void support.open();
|
|
362
362
|
```
|
|
363
363
|
|
|
364
|
-
`target` changes layout
|
|
365
|
-
controls or widget-owned phone history
|
|
364
|
+
`target` changes layout: the page has no floating overlay, widget close
|
|
365
|
+
controls or widget-owned phone history, and while the ticket form holds an
|
|
366
|
+
unsent request (text or files the visitor added, or the second step), leaving
|
|
367
|
+
or reloading the page asks the browser to confirm. The floating panel never
|
|
368
|
+
asks, since it overlays a page the website owns. Both presentations use
|
|
366
369
|
`/v1/hd/desks/{desk_id}/kb/widget/*`, then the same draft and ticket endpoints.
|
|
367
370
|
The hosted `/login` is for request history/company sign-in links, not a parallel
|
|
368
371
|
creation wizard. Existing customer/company sessions are honored; anonymous
|
|
@@ -379,7 +382,7 @@ Dark fills deepen by 10% on hover; light fills keep their accessible pairing.
|
|
|
379
382
|
Links and focus rings use product ink when a light brand color is unreadable
|
|
380
383
|
on the support surface. Without a valid brand color, existing defaults apply.
|
|
381
384
|
|
|
382
|
-
With `persist: true`, recoverable issue text, anonymous
|
|
385
|
+
With `persist: true`, recoverable issue text, anonymous summary and details edits
|
|
383
386
|
and verified requester drafts stay in this browser tab for 30 minutes. The
|
|
384
387
|
shared form reads existing portal drafts and preserves exact uncertain
|
|
385
388
|
submissions. No credentials or file bytes enter
|
|
@@ -401,11 +404,16 @@ is `ticket_contact_note` (one line, up to 160 characters); null or omission
|
|
|
401
404
|
shows no note. It is rendered as text, never HTML.
|
|
402
405
|
|
|
403
406
|
Contact reuses the ticket form's draft, attachment and uncertain-send handling.
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
407
|
+
Its first step holds an editable Summary and Additional details: a short,
|
|
408
|
+
one-line question starts as the Summary, a longer one as the details. Files
|
|
409
|
+
attach from the details composer by its Attach control, paste or drop. A
|
|
410
|
+
verified website session sends from that step, named in a "Posting as" line,
|
|
411
|
+
without another login. Anonymous visitors continue to a second step (an email
|
|
412
|
+
on a Secure Identity desk; otherwise first name, optional last name and email)
|
|
413
|
+
and confirm their address through the native auth.SV Identity window before
|
|
414
|
+
the request is sent. An inline (`target`) wizard asks before its page is left
|
|
415
|
+
with an unsent request. “Not you?” changes only the support account; it preserves idle,
|
|
416
|
+
unsent summary and details, drops the previous account's draft/files and
|
|
409
417
|
suppresses website sign-in until “Use website account” is chosen. This does not
|
|
410
418
|
sign the visitor out of the host website. Destroy/recreate the widget when the
|
|
411
419
|
host's actual customer changes.
|
|
@@ -459,7 +467,7 @@ const form = await sv.products.helpDesk.mountForm({
|
|
|
459
467
|
|
|
460
468
|
Call `form.destroy()` when your component unmounts or your website customer changes.
|
|
461
469
|
|
|
462
|
-
The form handles
|
|
470
|
+
The form handles a summary and details, screenshots and files, the desk's email-code flow (pasted
|
|
463
471
|
codes, sending a new code, using a different email), a missing display name,
|
|
464
472
|
submitting once, and retrying the same draft after an uncertain response.
|
|
465
473
|
`onSuccess` runs only after the service confirms a ticket number; the form then
|
|
@@ -473,10 +481,10 @@ omission uses the default. Administrators can clear the setting with null, an
|
|
|
473
481
|
empty string or whitespace. HTML and template interpolation are not applied.
|
|
474
482
|
`onStateChange` observes `authenticating`, `editing`, `verifying`, `submitting`, `uncertain`, `success` and
|
|
475
483
|
`destroyed`; `reset()` clears an idle/completed form. Observer callback errors
|
|
476
|
-
do not turn an accepted ticket into a retry. The
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
refusals
|
|
484
|
+
do not turn an accepted ticket into a retry. The details composer's Attach
|
|
485
|
+
control, paste and drop take files when the desk permits customer attachments;
|
|
486
|
+
pass `attachments: false` to turn them off. The shared file policy applies
|
|
487
|
+
(20 files, up to 25 MiB each), and server quota refusals are shown. Files wait for sign-in, then upload directly to Forge through
|
|
480
488
|
the standard resumable ceremony, with progress, cancellation and retry. Only a
|
|
481
489
|
confirmed publication receipt adds a file to the ticket. A received file still
|
|
482
490
|
being stored offers Check upload, resuming the same upload instead of sending
|