@concretecms/bedrock 1.2.7 → 1.3.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.
@@ -150,7 +150,7 @@ export default {
150
150
  new ConcreteAjaxRequest({
151
151
  url: my.saveStylesAction,
152
152
  data: {
153
- styles: my.customizerStyles,
153
+ styles: JSON.stringify(my.customizerStyles),
154
154
  customCss: my.customizerCustomCss,
155
155
  applyTo: my.applyTo,
156
156
  ccm_token: CCM_SECURITY_TOKEN
@@ -11,8 +11,7 @@ import { icons } from '../iconlist'
11
11
  export default {
12
12
  data() {
13
13
  return {
14
- selectedOption: this.selected,
15
- emptyOptionLabel: this.emptyOptionLabel
14
+ selectedOption: this.selected
16
15
  }
17
16
  },
18
17
  props: {
@@ -14,7 +14,7 @@
14
14
  })
15
15
 
16
16
  function onDialogCreate($dialog) {
17
- $dialog.parent().addClass('animated fadeIn')
17
+ // $dialog.parent().addClass('animated fadeIn')
18
18
  }
19
19
 
20
20
  function onDialogOpen($dialog) {
@@ -33,7 +33,11 @@
33
33
  var overlays = $('.ui-widget-overlay').length
34
34
 
35
35
  if (overlays == 1) {
36
- $('.ui-widget-overlay').addClass('ui-widget-overlay-active')
36
+ var overlayFunction = function() {
37
+ var overlay = $('.ui-widget-overlay').get(0)
38
+ overlay.classList.add('ui-widget-overlay-active')
39
+ }
40
+ requestAnimationFrame(overlayFunction)
37
41
  }
38
42
 
39
43
  var $close = $dialog.parent().find('.ui-dialog-titlebar-close')
@@ -75,6 +75,12 @@ ConcreteTree.prototype = {
75
75
  ajaxData.allowFolderSelection = 1
76
76
  }
77
77
 
78
+ if (typeof CCM_CID !== 'undefined') {
79
+ ajaxData.cID = CCM_CID
80
+ } else {
81
+ ajaxData.cID = 0
82
+ }
83
+
78
84
  var persist = true
79
85
 
80
86
  if (options.chooseNodeInForm) {
@@ -514,3 +514,11 @@ div.ccm-block-edit[data-block-type-handle=core_container] {
514
514
  }
515
515
  }
516
516
  }
517
+
518
+ /**
519
+ * Dragging performance. We have to change this because BS5 sets it to to smooth which botches drag operations. See
520
+ * issue https://github.com/concretecms/concretecms/issues/10701
521
+ */
522
+ html.ccm-edit-mode {
523
+ scroll-behavior: auto;
524
+ }
@@ -120,7 +120,8 @@ html.ccm-toolbar-visible {
120
120
 
121
121
  .ui-widget-overlay {
122
122
  opacity: 0;
123
- transition: $transition-fade;
123
+ transition: opacity 0.2s linear;
124
+ will-change: opacity;
124
125
 
125
126
  &.ui-widget-overlay-active {
126
127
  background: $modal-backdrop-bg;
@@ -242,11 +242,7 @@ a.ui-button:active,
242
242
  }
243
243
 
244
244
  /* Overlays */
245
- .ui-widget-overlay {
246
- background: #aaa;
247
- filter: Alpha(Opacity=30)/*{opacityFilterOverlay}*/; /* support: IE8 */
248
- opacity: 0.3;
249
- }
245
+ /* Removed because it's screwing up CSS animation performance due to our CSS overrides of the property elsewhere */
250
246
 
251
247
  .ui-widget-shadow {
252
248
  -webkit-box-shadow: 0 0 5px #666#666;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@concretecms/bedrock",
3
- "version": "1.2.7",
3
+ "version": "1.3.0",
4
4
  "description": "The asset framework and dependencies for Concrete CMS.",
5
5
  "scripts": {
6
6
  "lint": "standardx \"**/*.{js,vue}\" && stylelint assets/**/*.{scss,vue}",