@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 CHANGED
@@ -361,8 +361,11 @@ const support = sv.products.helpDesk.createSupport({
361
361
  void support.open();
362
362
  ```
363
363
 
364
- `target` changes layout only: the page has no floating overlay, widget close
365
- controls or widget-owned phone history. Both presentations use
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 subject/message edits
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
- The subject and message are editable. A verified website session appears without
405
- another login. Anonymous visitors provide first name, last name and email, then
406
- confirm their address through the native auth.SV Identity window before the
407
- request is sent. “Not you?” changes only the support account; it preserves idle,
408
- unsent subject/message text, drops the previous account's draft/files and
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 subject/description, screenshots and files, the desk's email-code flow (pasted
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 file picker appears when the
477
- desk permits customer attachments; pass `attachments: false` to hide it. It uses
478
- the shared file policy (20 files, up to 25 MiB each) and handles server quota
479
- refusals visibly. Files wait for sign-in, then upload directly to Forge through
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