mod-build 4.0.29 → 4.0.30-beta.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 4.0.30
2
+
3
+ - Reverting back to old version of `stylelint`
4
+
1
5
  ## 4.0.29
2
6
 
3
7
  - Removing all the `!window.Modalytics.privacyPreferencesDetected` conditionals (as we are no longer moving forward with this integration).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "4.0.29",
3
+ "version": "4.0.30-beta.2",
4
4
  "description": "Share components for S3 sites.",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -22,7 +22,7 @@
22
22
  "lodash.merge": "^4.6.2",
23
23
  "lodash.mergewith": "^4.6.2",
24
24
  "sass": "^1.69.5",
25
- "stylelint": "^16.6.1",
25
+ "stylelint": "16.9.0",
26
26
  "stylelint-config-standard-scss": "^13.1.0",
27
27
  "stylelint-order": "^6.0.4",
28
28
  "vite": "^5.0.0",
@@ -144,6 +144,17 @@ export const handlebarsHelpers = [
144
144
  return index;
145
145
  }
146
146
  },
147
+ // Adding helper to check if mobile (< 768px)
148
+ {
149
+ name: 'isMobile',
150
+ fn: function(expression, options) {
151
+ if (window.innerWidth < 768) {
152
+ return options.fn(expression);
153
+ } else {
154
+ return options.inverse(expression);
155
+ }
156
+ }
157
+ },
147
158
  // Loop to go through and add each attribute defined in the attributes: {} object
148
159
  {
149
160
  name: 'addAttributes',