@salesforcedevs/docs-components 0.66.0 → 0.66.2-syntax-highlighting-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/docs-components",
3
- "version": "0.66.0",
3
+ "version": "0.66.2-syntax-highlighting-1",
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": "730749fb1dcc6ff8e60897c01890fcab514f972d"
27
+ "gitHead": "4629fdd9ca18a13480044ad43515b91945d16aad"
28
28
  }
@@ -8,12 +8,14 @@
8
8
 
9
9
  dx-tooltip {
10
10
  line-height: var(--button-size);
11
+ padding-right: var(--dx-g-spacing-xs);
11
12
  }
12
13
 
13
14
  .button-container {
14
15
  height: 100%;
15
16
  margin-right: calc(var(--dx-g-spacing-xl) - 4px);
16
17
  position: relative;
18
+ padding-right: var(--dx-g-spacing-xs);
17
19
  }
18
20
 
19
21
  button {
@@ -34,12 +36,8 @@ dx-icon {
34
36
  --dx-c-icon-size: var(--doc-c-heading-anchor-icon-size);
35
37
  }
36
38
 
37
- span:last-of-type {
38
- padding-right: var(--dx-g-spacing-xs);
39
- }
40
-
41
- .nowrap {
42
- white-space: nowrap;
39
+ .title {
40
+ word-break: break-word;
43
41
  }
44
42
 
45
43
  button:focus {
@@ -49,7 +47,7 @@ button:focus {
49
47
  button:focus,
50
48
  button:hover,
51
49
  span:hover dx-tooltip button,
52
- span:hover ~ span dx-tooltip button {
50
+ span:hover ~ dx-tooltip button {
53
51
  opacity: 1;
54
52
  outline: none;
55
53
  }
@@ -1,19 +1,13 @@
1
1
  <template>
2
2
  <template if:false={hash}>{title}</template>
3
3
  <template if:true={hash}>
4
- <template if:true={needsSpace}>
5
- <span>{titleToWrap}</span>
6
- <span>&#32;</span>
7
- </template>
8
- <span class="nowrap">
9
- {titleNoWrap}&nbsp;
10
- <dx-tooltip placement="top" label={label}>
11
- <span class="button-container">
12
- <button onclick={copy} aria-label="copy">
13
- <dx-icon size="override" symbol="link"></dx-icon>
14
- </button>
15
- </span>
16
- </dx-tooltip>
17
- </span>
4
+ <span class="title">{title}&nbsp;</span>
5
+ <dx-tooltip placement="top" label={label}>
6
+ <span class="button-container">
7
+ <button onclick={copy} aria-label="copy">
8
+ <dx-icon size="override" symbol="link"></dx-icon>
9
+ </button>
10
+ </span>
11
+ </dx-tooltip>
18
12
  </template>
19
13
  </template>
@@ -7,18 +7,6 @@ export default class HeadingContent extends LightningElement {
7
7
  label: string = "Copy link to clipboard";
8
8
  timeout: number | null = null;
9
9
 
10
- private get titleToWrap(): string {
11
- return this.title.substring(0, this.title.lastIndexOf(" "));
12
- }
13
-
14
- private get needsSpace(): boolean {
15
- return this.titleToWrap.length > 0;
16
- }
17
-
18
- private get titleNoWrap(): string {
19
- return this.title.substring(this.title.lastIndexOf(" ") + 1);
20
- }
21
-
22
10
  private async copy() {
23
11
  if (this.timeout) {
24
12
  window.clearTimeout(this.timeout);
@@ -197,20 +197,6 @@ api-security-documentation {
197
197
  --http-code-snippet-variable-color: rgb(24, 24, 24);
198
198
  --http-code-snippet-container-padding: var(--dx-g-spacing-md);
199
199
 
200
- /* prism */
201
- --code-background-color: rgb(250, 250, 250);
202
- --code-color: rgb(24, 24, 24);
203
- --code-token-comment-value-color: rgb(24, 24, 24);
204
- --code-punctuation-value-color: rgb(24, 24, 24);
205
- --code-property-value-color: rgb(24, 24, 24);
206
- --code-type-number-value-color: rgb(24, 24, 24);
207
- --code-type-boolean-value-color: rgb(24, 24, 24);
208
- --code-type-text-value-color: rgb(24, 24, 24);
209
- --code-operator-value-color: rgb(24, 24, 24);
210
- --code-keyword-value-color: rgb(24, 24, 24);
211
- --code-function-value-color: rgb(24, 24, 24);
212
- --code-variable-value-color: rgb(24, 24, 24);
213
-
214
200
  /* --code-operator-value-background-color */
215
201
  }
216
202
 
package/LICENSE DELETED
@@ -1,12 +0,0 @@
1
- Copyright (c) 2020, Salesforce.com, Inc.
2
- All rights reserved.
3
-
4
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5
-
6
- * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7
-
8
- * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9
-
10
- * Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
11
-
12
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.