@salesforcedevs/docs-components 0.0.5-edit → 0.0.6-edit

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.0.5-edit",
3
+ "version": "0.0.6-edit",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -1,13 +1 @@
1
1
  @import "docHelpers/contentLayoutStyle";
2
-
3
- /* Position edit file component in top-right corner */
4
- /* .content-body {
5
- position: relative;
6
- }
7
-
8
- .edit-file-positioned {
9
- position: absolute;
10
- top: 0;
11
- right: 0;
12
- z-index: 10;
13
- } */
@@ -43,11 +43,6 @@
43
43
  <slot name="version-banner"></slot>
44
44
  <div class="content-body-container">
45
45
  <div class="content-body">
46
- <!-- <doc-edit-file
47
- class="edit-file-positioned"
48
- file-name={sidebarValue}
49
- title="Edit File"
50
- ></doc-edit-file> -->
51
46
  <doc-breadcrumbs
52
47
  lwc:if={showBreadcrumbs}
53
48
  breadcrumbs={breadcrumbs}
@@ -3,6 +3,10 @@
3
3
  font-family: "Salesforce Sans", -apple-system, BlinkMacSystemFont,
4
4
  "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
5
5
  sans-serif;
6
+ position: absolute;
7
+ top: 0;
8
+ right: 0;
9
+ z-index: 1000;
6
10
  }
7
11
 
8
12
  /* Edit File Trigger Button */
@@ -21,6 +25,8 @@
21
25
  font-size: 14px;
22
26
  font-weight: 500;
23
27
  letter-spacing: 0.02em;
28
+ width: 200px;
29
+ justify-content: center;
24
30
  }
25
31
 
26
32
  .edit-file-trigger:hover:not(:disabled) {
@@ -32,7 +32,7 @@
32
32
  <div class={popoverClass}>
33
33
  <!-- Popover Header -->
34
34
  <div class="edit-file-header">
35
- <h2 class="edit-file-title">{title}</h2>
35
+ <h2 class="edit-file-title">{project}</h2>
36
36
  <template lwc:if={fileName}>
37
37
  <p class="edit-file-filename">
38
38
  <svg
@@ -11,8 +11,9 @@ interface ApiResponse {
11
11
 
12
12
  export default class EditFile extends LightningElement {
13
13
  @api fileName: string = "";
14
+ @api repoName: string = "";
14
15
  @api apiEndpoint: string = "/api/edit-file";
15
- @api title: string = "Edit File";
16
+ @api project: string = "Edit File";
16
17
 
17
18
  @api
18
19
  get disabled() {