@doodl/slate 1.23.1 → 1.23.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,6 +1,8 @@
1
1
  # Changelog
2
2
 
3
- All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
3
+ All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
4
+
5
+ ### [1.23.2](https://bitbucket.org/doodlltd/slate/compare/v1.23.1...v1.23.2) (2024-07-19)
4
6
 
5
7
  ### [1.23.1](https://bitbucket.org/doodlltd/slate/compare/v1.23.0...v1.23.1) (2024-01-12)
6
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doodl/slate",
3
- "version": "1.23.1",
3
+ "version": "1.23.2",
4
4
  "description": "",
5
5
  "main": "./js/dist/index.js",
6
6
  "module": "./js/dist/index.js",
@@ -11,7 +11,7 @@
11
11
  "scripts": {
12
12
  "build": "babel js/src --out-dir js/dist",
13
13
  "start": "babel js/src --watch --out-dir js/dist",
14
- "release": "standard-version -a",
14
+ "release": "commit-and-tag-version -a",
15
15
  "prepublishOnly": "rm -rf js/dist && npm run build",
16
16
  "format": "prettier --write .",
17
17
  "lint": "eslint . && stylelint --maxWarnings 0 scss",
@@ -29,9 +29,9 @@
29
29
  "devDependencies": {
30
30
  "@babel/cli": "^7.10.4",
31
31
  "@babel/preset-react": "^7.16.5",
32
- "@doodl/common-js-config": "^1.7.0",
33
- "@doodl/eslint-config": "npm:@doodl/common-js-config@^1.7.0",
34
- "standard-version": "^9.1.1"
32
+ "@doodl/common-js-config": "^1.8.1",
33
+ "@doodl/eslint-config": "npm:@doodl/common-js-config@^1.8.1",
34
+ "commit-and-tag-version": "^9.6.0"
35
35
  },
36
36
  "dependencies": {
37
37
  "classnames": "^2.3.1",
@@ -1,3 +1,11 @@
1
+ /**
2
+ *
3
+ * Defines styles for content generated by the SilverStripe TinyMCE editor in
4
+ * HTMLText field outputs.
5
+ *
6
+ */
7
+
8
+
1
9
  @import '../mixins';
2
10
  @import '../variables/silverstripe-editor';
3
11
 
@@ -62,8 +70,6 @@
62
70
  .captionImage,
63
71
  .embed {
64
72
  display: block;
65
- padding: $slate-silverstripe-editor-caption-padding;
66
- background-color: $slate-silverstripe-editor-caption-image-background-colour;
67
73
  .image,
68
74
  iframe {
69
75
  @include align-all {
@@ -75,8 +81,31 @@
75
81
  padding: 0;
76
82
  }
77
83
  .caption {
78
- padding: 0 $slate-default-spacing/2;
79
- color: $slate-muted;
84
+ padding: $slate-silverstripe-editor--caption-padding;
85
+ color: $slate-silverstripe-editor--caption-color;
86
+ @if $slate-silverstripe-editor--caption-font-size != 0 {
87
+ font-size: $slate-silverstripe-editor--caption-font-size;
88
+ }
89
+ @if $slate-silverstripe-editor--caption-font-style != 0 {
90
+ font-style: $slate-silverstripe-editor--caption-font-style;
91
+ }
92
+ @if mixin-exists(slate-silverstripe-editor--caption) {
93
+ @include slate-silverstripe-editor--caption;
94
+ }
95
+ }
96
+ }
97
+
98
+ .captionImage {
99
+ padding: $slate-silverstripe-editor--captioned-image-padding;
100
+ background-color: $slate-silverstripe-editor--captioned-image-background-colour;
101
+ @if mixin-exists(slate-silverstripe-editor--captioned-image) {
102
+ @include slate-silverstripe-editor--captioned-image;
103
+ }
104
+ }
105
+
106
+ @if mixin-exists(slate-silverstripe-editor--embed) {
107
+ .embed {
108
+ @include slate-silverstripe-editor--embed;
80
109
  }
81
110
  }
82
111
 
@@ -87,4 +116,8 @@
87
116
  margin-top: $slate-silverstripe-editor-image-floated-margin-top--trailing;
88
117
  }
89
118
  }
119
+
120
+ @if mixin-exists(slate-silverstripe-typography-partial) {
121
+ @include slate-silverstripe-typography-partial;
122
+ }
90
123
  }
@@ -7,5 +7,10 @@ $slate-silverstripe-editor-image-floated-margin-horizontal: $slate-default-spaci
7
7
  $slate-silverstripe-editor-image-max-width: 60% !default;
8
8
  $slate-silverstripe-editor-image-max-width--mobile: 90% !default;
9
9
 
10
- $slate-silverstripe-editor-caption-image-background-colour: #f0f0f0 !default;
11
- $slate-silverstripe-editor-caption-padding: (0.25 * $slate-default-spacing) (0.25 * $slate-default-spacing) (0.5 * $slate-default-spacing) !default;
10
+ $slate-silverstripe-editor--captioned-image-background-colour: #f0f0f0 !default;
11
+ $slate-silverstripe-editor--captioned-image-padding: (0.25 * $slate-default-spacing) (0.25 * $slate-default-spacing) (0.5 * $slate-default-spacing) !default;
12
+
13
+ $slate-silverstripe-editor--caption-padding: 0 (0.5 * $slate-default-spacing) !default;
14
+ $slate-silverstripe-editor--caption-color: $slate-muted !default;
15
+ $slate-silverstripe-editor--caption-font-size: 0 !default; // Property excluded when == 0
16
+ $slate-silverstripe-editor--caption-font-style: 0 !default; // Property excluded when == 0