@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.mjs CHANGED
@@ -20199,6 +20199,8 @@ function injectHelpDeskSupportStyles() {
20199
20199
  .svhs-copy{margin:0 0 24px;color:${DS.slate600};font-size:14px;line-height:1.55}
20200
20200
  .svhs-label{display:block;margin:0 0 7px;font-size:13px;font-weight:600;color:${DS.slate600}}
20201
20201
  .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}
20202
+ /* The heading is the field's label, so the field follows it at a label's distance from a question this large. */
20203
+ .svhs-heading+.svhs-issue{margin-top:16px}
20202
20204
  .svhs-issue::placeholder{color:${DS.slate500};opacity:1}
20203
20205
  .svhs-issue:focus{border-color:var(--hd-focus,var(--hd-accent-ink,${DS.action}))}
20204
20206
  .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)}
@@ -20848,10 +20850,11 @@ class SupportView {
20848
20850
  this.identityNotice.hidden = true;
20849
20851
  this.panel.append(this.identityNotice);
20850
20852
  const intro = this.screen('issue', 'How can we help?');
20851
- intro.append(element('p', 'svhs-copy', 'Describe your question or issue.'));
20852
- const issueLabel = element('label', 'svhs-label', 'What’s your question?');
20853
- issueLabel.htmlFor = `${this.prefix}-issue`;
20854
- this.issue.id = issueLabel.htmlFor;
20853
+ // The heading asks the question once, so it names the field too.
20854
+ const issueHeading = this.headings.get('issue');
20855
+ issueHeading.id = `${this.prefix}-issue-title`;
20856
+ this.issue.id = `${this.prefix}-issue`;
20857
+ this.issue.setAttribute('aria-labelledby', issueHeading.id);
20855
20858
  this.issue.name = 'support_issue';
20856
20859
  this.issue.placeholder = 'Describe what you need help with…';
20857
20860
  this.issue.autocomplete = 'off';
@@ -20871,7 +20874,7 @@ class SupportView {
20871
20874
  this.search();
20872
20875
  }
20873
20876
  });
20874
- intro.append(issueLabel, this.issue, this.issueError);
20877
+ intro.append(this.issue, this.issueError);
20875
20878
  this.find = button('svhs-primary', 'Continue', () => this.search());
20876
20879
  this.footer('issue', 'svhs-start-bottom').append(this.find);
20877
20880
  const results = this.screen('results', 'These articles may help');
@@ -27098,7 +27101,7 @@ class SparkVault {
27098
27101
  }
27099
27102
  /** Get the SDK version */
27100
27103
  static get version() {
27101
- return '15.15.1';
27104
+ return '15.16.1';
27102
27105
  }
27103
27106
  }
27104
27107
  if (typeof window !== 'undefined') {