@mapomodule/uikit 1.0.0-alpha.51 → 1.0.0-alpha.53

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
@@ -3,6 +3,30 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.0.0-alpha.53](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.52...v1.0.0-alpha.53) (2024-07-11)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **editor config:** added iframe configuration allowing js execution ([2d7b729](https://github.com/lotrekagency/mapo/commit/2d7b729279c5bec8f08344f884360e184c30d508))
12
+ * **editor config:** now using props conf object, allowing component customization ([aed3c05](https://github.com/lotrekagency/mapo/commit/aed3c053bfbc9bb75648f5b0688d26232e07d4a9))
13
+ * **mapField:** added hasErrors computed missing property ([36e9049](https://github.com/lotrekagency/mapo/commit/36e90496068ed56f2fa1eb2508e531ab0b03df90))
14
+
15
+
16
+
17
+
18
+
19
+ # [1.0.0-alpha.52](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.51...v1.0.0-alpha.52) (2024-07-04)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * **ckeditor config:** disabled versionCheck to avoid warning popup ([9b8efcf](https://github.com/lotrekagency/mapo/commit/9b8efcf08eb444d5c1ca8a28581b6dbc663a55f2))
25
+
26
+
27
+
28
+
29
+
6
30
  # [1.0.0-alpha.51](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.50...v1.0.0-alpha.51) (2024-06-24)
7
31
 
8
32
 
@@ -119,6 +119,7 @@ export default {
119
119
  // V-model property.
120
120
  value: {
121
121
  type: Array,
122
+ default: () => [],
122
123
  },
123
124
  // This label will be shown at the top of the editor.
124
125
  label: String,
@@ -325,6 +326,7 @@ export default {
325
326
  hasTemplates() {
326
327
  return typeof this.fields == "object" && !Array.isArray(this.fields);
327
328
  },
329
+ hasErrors () { return this.errorMessages && this.errorMessages.length },
328
330
  templates() {
329
331
  const templates = {};
330
332
  if (this.hasTemplates) {
@@ -7,7 +7,10 @@ const defaultConfig = ({ assetsBasePath, isDark }) => {
7
7
  resize_enabled: false,
8
8
  removePlugins: "image,exportpdf",
9
9
  extraPlugins: "image2",
10
-
10
+ versionCheck: false,
11
+ iframe_attributes: {
12
+ sandbox: "allow-same-origin allow-scripts allow-popups allow-forms",
13
+ },
11
14
  toolbar: [
12
15
  {
13
16
  name: "clipboard",
@@ -113,7 +113,7 @@ a.cke_button_off:hover, a.cke_button_disabled:hover {
113
113
  import injectScript from "./utils/ckeditor.injector.js";
114
114
  import defaultConfig from "./defaults.js";
115
115
  import ThemeToggle from "../../../ThemeToggle.vue";
116
-
116
+ import _ from "lodash";
117
117
  /**
118
118
 
119
119
  */
@@ -158,7 +158,7 @@ export default {
158
158
  const { base } = this.$router.options;
159
159
  const assetsBasePath = `${base}mapo/ckeditor/`;
160
160
  const { isDark } = this.$vuetify.theme;
161
- return defaultConfig({ assetsBasePath, isDark });
161
+ return _.merge(defaultConfig({ assetsBasePath, isDark }), this.conf);
162
162
  },
163
163
  },
164
164
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mapomodule/uikit",
3
- "version": "1.0.0-alpha.51",
3
+ "version": "1.0.0-alpha.53",
4
4
  "license": "MIT",
5
5
  "description": "This is part of Mapo nuxt module. Injects Mapo ui components in the nuxt component discovery system.",
6
6
  "author": "bnznamco <gabriele.baldi.01@gmail.com>",
@@ -15,5 +15,5 @@
15
15
  "publishConfig": {
16
16
  "access": "public"
17
17
  },
18
- "gitHead": "5c6aa45341d63852f7cd55df09b6eefd56a57d5e"
18
+ "gitHead": "82342f858c0279e2557b51d84ca084410fd771af"
19
19
  }