@salesforcedevs/docs-components 1.3.11 → 1.3.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/docs-components",
3
- "version": "1.3.11",
3
+ "version": "1.3.13",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -24,5 +24,5 @@
24
24
  "@types/lodash.orderby": "^4.6.7",
25
25
  "@types/lodash.uniqby": "^4.7.7"
26
26
  },
27
- "gitHead": "14916a65ba061bcfd933be155511042f1f615793"
27
+ "gitHead": "94b6a0ecb51f4bc853ec3083419de8256db2bd6a"
28
28
  }
@@ -35,6 +35,7 @@
35
35
  <div style={docContentStyle}>
36
36
  <slot onslotchange={onSlotChange}></slot>
37
37
  </div>
38
+ <doc-sprig-survey></doc-sprig-survey>
38
39
  </div>
39
40
  <div class="right-nav-bar is-sticky">
40
41
  <dx-toc
@@ -0,0 +1,20 @@
1
+ <template lwc:render-mode="light">
2
+ <hr />
3
+ <div class="survey-container">
4
+ <div class="text-container">
5
+ <b>DID THIS ARTICLE SOLVE YOUR ISSUE?</b>
6
+ <br />
7
+ Let us know so we can improve!
8
+ </div>
9
+ <div class="btn-container">
10
+ <dx-button
11
+ variant="secondary"
12
+ aria-label="Share Your Feedback"
13
+ onclick={openSurvey}
14
+ >
15
+ Share your feedback
16
+ </dx-button>
17
+ </div>
18
+ </div>
19
+ <hr />
20
+ </template>
@@ -0,0 +1,12 @@
1
+ :host .survey-container {
2
+ align-items: center;
3
+ align-content: center;
4
+ width: 100%;
5
+ display: flex;
6
+ flex-direction: row;
7
+ margin: 20px 0 20px 0;
8
+ }
9
+
10
+ .text-container {
11
+ width: 100%;
12
+ }
@@ -0,0 +1,16 @@
1
+ import { LightningElement } from "lwc";
2
+ import cx from "classnames";
3
+
4
+ declare const Sprig: (eventType: string, eventNme: string) => void;
5
+
6
+ export default class Phase extends LightningElement {
7
+ static renderMode = "light";
8
+
9
+ get className() {
10
+ return cx("container");
11
+ }
12
+
13
+ openSurvey() {
14
+ Sprig("track", "ProvideFeedback");
15
+ }
16
+ }