@salesforcedevs/mrkt-components 0.74.0-alpha08 → 0.77.0

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/LICENSE ADDED
@@ -0,0 +1,12 @@
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/mrkt-components",
3
- "version": "0.74.0-alpha08",
3
+ "version": "0.77.0",
4
4
  "description": "Marketing Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -14,5 +14,6 @@
14
14
  },
15
15
  "devDependencies": {
16
16
  "@types/classnames": "^2.2.10"
17
- }
17
+ },
18
+ "gitHead": "007a82f3fadc907be5f41ea493fe1ecbe9fdcd6a"
18
19
  }
@@ -109,7 +109,6 @@ a > span {
109
109
 
110
110
  dx-button {
111
111
  flex-shrink: 0;
112
- visibility: hidden;
113
112
  }
114
113
 
115
114
  .subnav.is-sticky {
@@ -121,6 +120,12 @@ dx-button {
121
120
  visibility: visible;
122
121
  }
123
122
 
123
+ @media (min-width: 640px) {
124
+ dx-button {
125
+ visibility: hidden;
126
+ }
127
+ }
128
+
124
129
  @media (max-width: 1024px) {
125
130
  ul > li:not(:last-of-type) {
126
131
  margin-right: var(--dx-g-spacing-md);
@@ -72,11 +72,11 @@ export default class SubNavBar extends MatchMediaElement {
72
72
 
73
73
  disconnectedCallback(): void {
74
74
  super.disconnectedCallback();
75
- this.sectionsObserver.disconnect();
76
- this.stickyNavObserver.disconnect();
75
+ this.sectionsObserver?.disconnect();
76
+ this.stickyNavObserver?.disconnect();
77
77
  }
78
78
 
79
- normalizeItem = (item: OptionWithLink) => ({
79
+ normalizeItem = (item: OptionWithLink): object => ({
80
80
  ...item,
81
81
  className: cx(
82
82
  "nav-item",