@salesforcedevs/docs-components 0.54.0-alpha01 → 0.54.0-alpha02

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.54.0-alpha01",
3
+ "version": "0.54.0-alpha02",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -1,4 +1,4 @@
1
- @import "../../helpers/phaseContentLayout/phaseContentLayout.css";
1
+ @import "docHelpers/phaseContentLayout";
2
2
 
3
3
  .version-picker {
4
4
  margin-left: auto;
@@ -1,5 +1,5 @@
1
1
  import { AmfHelperMixin } from "@api-components/amf-helper-mixin";
2
- import { normalizeDomId } from "utils/normalizers";
2
+ import { normalizeDomId } from "dxUtils/normalizers";
3
3
 
4
4
  const ID_PROPERTY = "@id";
5
5
  const TYPE_PROPERTY = "@type";
@@ -1 +1 @@
1
- @import "../../helpers/amfStyle/amfStyle.css";
1
+ @import "docHelpers/amfStyle";
@@ -1,5 +1,5 @@
1
- @import "helpers/reset";
2
- @import "helpers/text";
1
+ @import "dxHelpers/reset";
2
+ @import "dxHelpers/text";
3
3
 
4
4
  :host {
5
5
  display: flex;
@@ -1,5 +1,5 @@
1
- @import "helpers/reset";
2
- @import "helpers/text";
1
+ @import "dxHelpers/reset";
2
+ @import "dxHelpers/text";
3
3
 
4
4
  :host {
5
5
  --dx-c-breadcrumbs-title-color: var(--dx-g-blue-vibrant-20);
@@ -1,6 +1,6 @@
1
1
  import { LightningElement, api } from "lwc";
2
2
  import { Breadcrumb, Option } from "typings/custom";
3
- import { toJson } from "utils/normalizers";
3
+ import { toJson } from "dxUtils/normalizers";
4
4
 
5
5
  type BreadcrumbConfig = {
6
6
  minWidth: number;
@@ -4,10 +4,10 @@
4
4
  * pattern validation cannot be applied
5
5
  */
6
6
 
7
- @import "helpers/text";
8
- @import "helpers/reset";
9
- @import "helpers/card";
10
- @import "helpers/table";
7
+ @import "dxHelpers/text";
8
+ @import "dxHelpers/reset";
9
+ @import "dxHelpers/card";
10
+ @import "dxHelpers/table";
11
11
 
12
12
  .doc-content {
13
13
  width: 100%;
@@ -5,7 +5,7 @@ import ContentCallout from "doc/contentCallout";
5
5
  import CodeBlock from "dx/codeBlock";
6
6
  import ContentMedia from "doc/contentMedia";
7
7
  import Button from "dx/button";
8
- import { highlightTerms } from "utils/highlight";
8
+ import { highlightTerms } from "dxUtils/highlight";
9
9
 
10
10
  const HIGHLIGHTABLE_SELECTOR = [
11
11
  "p",
@@ -1,6 +1,6 @@
1
- @import "helpers/reset";
2
- @import "helpers/text";
3
- @import "helpers/status";
1
+ @import "dxHelpers/reset";
2
+ @import "dxHelpers/text";
3
+ @import "docHelpers/status";
4
4
 
5
5
  .dx-callout {
6
6
  border-radius: 4px;
@@ -1,8 +1,8 @@
1
1
  import { LightningElement, api, track } from "lwc";
2
2
  import { closest } from "kagekiri";
3
- import { toJson } from "utils/normalizers";
4
- import { highlightTerms } from "utils/highlight";
5
- import { SearchSyncer } from "../../utils/SearchSyncer/SearchSyncer";
3
+ import { toJson } from "dxUtils/normalizers";
4
+ import { highlightTerms } from "dxUtils/highlight";
5
+ import { SearchSyncer } from "docUtils/SearchSyncer";
6
6
 
7
7
  type AnchorMap = { [key: string]: { intersect: boolean; id: string } };
8
8
 
@@ -1,4 +1,4 @@
1
- @import "helpers/commonHeader";
1
+ @import "dxHelpers/commonHeader";
2
2
 
3
3
  dx-logo {
4
4
  min-width: fit-content;
@@ -1,8 +1,8 @@
1
1
  import { api } from "lwc";
2
2
  import cx from "classnames";
3
3
  import type { Option } from "typings/custom";
4
- import { HeaderBase } from "base-elements/headerBase";
5
- import { toJson } from "utils/normalizers";
4
+ import { HeaderBase } from "dxBaseElements/headerBase";
5
+ import { toJson } from "dxUtils/normalizers";
6
6
  import get from "lodash.get";
7
7
 
8
8
  const TABLET_MATCH = "980px";
@@ -1,4 +1,4 @@
1
- @import "helpers/reset";
1
+ @import "dxHelpers/reset";
2
2
 
3
3
  button {
4
4
  opacity: 0;
@@ -1,4 +1,4 @@
1
- @import "helpers/reset";
1
+ @import "dxHelpers/reset";
2
2
 
3
3
  :host {
4
4
  --doc-c-heading-anchor-button-bottom: 0;
@@ -1,6 +1,6 @@
1
- @import "helpers/reset";
2
- @import "helpers/text";
3
- @import "helpers/status";
1
+ @import "dxHelpers/reset";
2
+ @import "dxHelpers/text";
3
+ @import "docHelpers/status";
4
4
 
5
5
  .doc-phase-container {
6
6
  display: flex;
@@ -2,7 +2,7 @@ import { LightningElement, api } from "lwc";
2
2
  import cx from "classnames";
3
3
 
4
4
  import { DocPhaseInfo } from "typings/custom";
5
- import { toJson } from "utils/normalizers";
5
+ import { toJson } from "dxUtils/normalizers";
6
6
 
7
7
  export default class Phase extends LightningElement {
8
8
  _docPhaseInfo: DocPhaseInfo | null = null;
@@ -1,5 +1,5 @@
1
1
  import { api, track } from "lwc";
2
- import { toJson } from "utils/normalizers";
2
+ import { toJson } from "dxUtils/normalizers";
3
3
  import { FetchContent } from "./utils";
4
4
  import {
5
5
  CoveoAdvancedQueryXMLConfig,
@@ -11,8 +11,8 @@ import {
11
11
  HistoryState,
12
12
  PageReference
13
13
  } from "./types";
14
- import { SearchSyncer } from "../../utils/SearchSyncer/SearchSyncer";
15
- import { LightningElementWithState } from "../../base-elements/lightningElementWithState/lightningElementWithState";
14
+ import { SearchSyncer } from "docUtils/SearchSyncer";
15
+ import { LightningElementWithState } from "docBaseElements/lightningElementWithState";
16
16
 
17
17
  // TODO: Imitating from actual implementation as doc-content use it like this. We should refactor it later.
18
18
  const handleContentError = (error): void => console.log(error);