@sparkvault/sdk-js 15.15.1 → 15.16.1

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 CHANGED
@@ -20203,6 +20203,8 @@ function injectHelpDeskSupportStyles() {
20203
20203
  .svhs-copy{margin:0 0 24px;color:${DS.slate600};font-size:14px;line-height:1.55}
20204
20204
  .svhs-label{display:block;margin:0 0 7px;font-size:13px;font-weight:600;color:${DS.slate600}}
20205
20205
  .svhs-issue{display:block;width:100%;min-height:120px;max-height:200px;resize:none;overflow-y:auto;border:1px solid ${DS.slate300};border-radius:8px;padding:12px 14px;background:${DS.white};color:${DS.slate900};font-size:16px!important;line-height:1.5!important;box-shadow:none}
20206
+ /* The heading is the field's label, so the field follows it at a label's distance from a question this large. */
20207
+ .svhs-heading+.svhs-issue{margin-top:16px}
20206
20208
  .svhs-issue::placeholder{color:${DS.slate500};opacity:1}
20207
20209
  .svhs-issue:focus{border-color:var(--hd-focus,var(--hd-accent-ink,${DS.action}))}
20208
20210
  .svhs-primary,.svhs-secondary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border:1px solid transparent;border-radius:6px;font-size:14px!important;font-weight:600!important;line-height:1.4!important;text-decoration:none;transition:background 120ms cubic-bezier(.2,0,0,1)}
@@ -20852,10 +20854,11 @@ class SupportView {
20852
20854
  this.identityNotice.hidden = true;
20853
20855
  this.panel.append(this.identityNotice);
20854
20856
  const intro = this.screen('issue', 'How can we help?');
20855
- intro.append(element('p', 'svhs-copy', 'Describe your question or issue.'));
20856
- const issueLabel = element('label', 'svhs-label', 'What’s your question?');
20857
- issueLabel.htmlFor = `${this.prefix}-issue`;
20858
- this.issue.id = issueLabel.htmlFor;
20857
+ // The heading asks the question once, so it names the field too.
20858
+ const issueHeading = this.headings.get('issue');
20859
+ issueHeading.id = `${this.prefix}-issue-title`;
20860
+ this.issue.id = `${this.prefix}-issue`;
20861
+ this.issue.setAttribute('aria-labelledby', issueHeading.id);
20859
20862
  this.issue.name = 'support_issue';
20860
20863
  this.issue.placeholder = 'Describe what you need help with…';
20861
20864
  this.issue.autocomplete = 'off';
@@ -20875,7 +20878,7 @@ class SupportView {
20875
20878
  this.search();
20876
20879
  }
20877
20880
  });
20878
- intro.append(issueLabel, this.issue, this.issueError);
20881
+ intro.append(this.issue, this.issueError);
20879
20882
  this.find = button('svhs-primary', 'Continue', () => this.search());
20880
20883
  this.footer('issue', 'svhs-start-bottom').append(this.find);
20881
20884
  const results = this.screen('results', 'These articles may help');
@@ -27102,7 +27105,7 @@ class SparkVault {
27102
27105
  }
27103
27106
  /** Get the SDK version */
27104
27107
  static get version() {
27105
- return '15.15.1';
27108
+ return '15.16.1';
27106
27109
  }
27107
27110
  }
27108
27111
  if (typeof window !== 'undefined') {