@windward/core 0.23.0 → 0.24.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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## Release [0.24.0] - 2025-10-06
4
+
5
+ * Merged in bugfix/LE-2134-email-block-show-hide-title (pull request #444)
6
+ * Merged in feature/LE-2097-tabs-and-accordions-hide-backgro (pull request #436)
7
+ * Merged release/0.24.0 into feature/LE-2097-tabs-and-accordions-hide-backgro
8
+ * Merged in bugfix/LE-1841-all-blocks-save-or-cancel-change (pull request #440)
9
+ * Merged release/0.24.0 into bugfix/LE-1841-all-blocks-save-or-cancel-change
10
+ * Merged in feature/LE-2100-edit-in-text-area-update-text-fi (pull request #435)
11
+
12
+
3
13
  ## Release [0.23.0] - 2025-09-18
4
14
 
5
15
  * Merged in feature/LE-2099-track-engagement-on-videos-from- (pull request #439)
@@ -7,7 +7,13 @@
7
7
  "
8
8
  >
9
9
  <v-col cols="12" class="pa-0">
10
- <h2 v-if="block.metadata.config.title" tabindex="0">
10
+ <h2
11
+ v-if="
12
+ block.metadata.config.title &&
13
+ block.metadata.config.display_title
14
+ "
15
+ tabindex="0"
16
+ >
11
17
  {{ block.metadata.config.title }}
12
18
  </h2>
13
19
  <p
@@ -141,7 +147,10 @@
141
147
  )
142
148
  }}: {{ item.cc }}
143
149
  </div>
144
- <div v-if="item.subject" class="div-details-subject">
150
+ <div
151
+ v-if="item.subject"
152
+ class="div-details-subject"
153
+ >
145
154
  {{
146
155
  $t(
147
156
  'windward.core.components.content.blocks.email.subject'
@@ -317,7 +326,7 @@ export default {
317
326
  methods: {
318
327
  onRemoveTags(body) {
319
328
  if (typeof body !== 'string') {
320
- return ''
329
+ return ''
321
330
  }
322
331
  let text = body.replace(/&nbsp;/g, ' ')
323
332
  text = text.replace(/\u00A0/g, ' ')
@@ -96,7 +96,6 @@
96
96
  "
97
97
  :assets.sync="block.assets"
98
98
  :disabled="render"
99
- hide-background
100
99
  hide-decorative
101
100
  hide-modal
102
101
  show-spacing
@@ -77,7 +77,6 @@
77
77
  "
78
78
  :assets.sync="block.assets"
79
79
  :disabled="render"
80
- hide-background
81
80
  hide-decorative
82
81
  hide-modal
83
82
  show-spacing
@@ -5,6 +5,7 @@
5
5
  autofill
6
6
  :disabled="render"
7
7
  allow-read
8
+ :key="updateKey"
8
9
  root-block="p"
9
10
  show-glossary
10
11
  :hide-text-editor="hideTextEditor"
@@ -52,6 +53,7 @@
52
53
  </template>
53
54
 
54
55
  <script>
56
+ import Crypto from '~/helpers/Crypto'
55
57
  import BaseContentSettings from '~/components/Content/Settings/BaseContentSettings.js'
56
58
  import TextEditor from '~/components/Text/TextEditor'
57
59
  export default {
@@ -73,6 +75,7 @@ export default {
73
75
  elevation: 0,
74
76
  },
75
77
  hideTextEditor: false,
78
+ updateKey: Crypto.id(),
76
79
  }
77
80
  },
78
81
  mounted() {
@@ -82,6 +85,7 @@ export default {
82
85
  onExpand() {
83
86
  this.hideTextEditor = !this.hideTextEditor
84
87
  this.block.metadata.config.expand = this.hideTextEditor
88
+ this.updateKey = Crypto.id()
85
89
  },
86
90
  },
87
91
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windward/core",
3
- "version": "0.23.0",
3
+ "version": "0.24.0",
4
4
  "description": "Windward UI Core Plugins",
5
5
  "main": "plugin.js",
6
6
  "scripts": {
package/plugin.js CHANGED
@@ -12,8 +12,6 @@ import Email from './components/Content/Blocks/Email'
12
12
  import BlockQuote from './components/Content/Blocks/BlockQuote.vue'
13
13
  import HorizontalRule from './components/Content/Blocks/HorizontalRule.vue'
14
14
 
15
- import UserUploadNav from './components/Navigation/Items/UserUploadNav.vue'
16
-
17
15
  import OpenResponse from './components/Content/Blocks/OpenResponse'
18
16
  import OpenResponseCollate from './components/Content/Blocks/OpenResponseCollate'
19
17
  import Image from './components/Content/Blocks/Image'
@@ -24,7 +22,6 @@ import GlossaryPage from './pages/glossary.vue'
24
22
  import TinymcePlugin from './pages/plugins/tinymce/_plugin.vue'
25
23
 
26
24
  import CourseGlossaryToolNav from './components/Navigation/Items/CourseGlossaryToolNav.vue'
27
- import GlossaryNav from './components/Navigation/Items/GlossaryNav.vue'
28
25
  import AskTheExpert from './components/Navigation/Items/AskTheExpert.vue'
29
26
 
30
27
  // Entrypoint for npm
@@ -121,7 +118,9 @@ export default {
121
118
  menu: [
122
119
  {
123
120
  tag: 'core-user-upload-nav',
124
- template: UserUploadNav,
121
+ path: '/course/{course.id}/section/{section.id}/user-uploads',
122
+ icon: 'mdi-cloud-upload',
123
+ i18n: 'windward.core.components.navigation.user_upload.title',
125
124
  context: ['course'],
126
125
  display: ['menu'],
127
126
  permissions: {
@@ -132,7 +131,9 @@ export default {
132
131
  },
133
132
  {
134
133
  tag: 'core-user-glossary-nav',
135
- template: GlossaryNav,
134
+ path: '/course/{course.id}/section/{section.id}/glossary',
135
+ icon: 'mdi-comment-text-multiple',
136
+ i18n: 'windward.core.shared.menu.course_glossary',
136
137
  context: ['course'],
137
138
  display: ['menu'],
138
139
  permissions: {
@@ -1,53 +0,0 @@
1
- <template>
2
- <v-tooltip right>
3
- <template #activator="{ on, attrs }">
4
- <v-list-item
5
- :class="color"
6
- :to="
7
- '/course/' +
8
- course.id +
9
- '/section/' +
10
- enrollment.course_section_id +
11
- '/glossary'
12
- "
13
- v-bind="attrs"
14
- v-on="on"
15
- >
16
- <v-list-item-action>
17
- <v-icon v-bind="attrs" v-on="on"
18
- >mdi-comment-text-multiple</v-icon
19
- >
20
- </v-list-item-action>
21
- <v-list-item-content>
22
- <v-list-item-title
23
- >{{ $t('windward.core.shared.menu.course_glossary') }}
24
- </v-list-item-title>
25
- </v-list-item-content>
26
- </v-list-item>
27
- </template>
28
- <span>{{ $t('windward.core.shared.menu.course_glossary') }}</span>
29
- </v-tooltip>
30
- </template>
31
-
32
- <script>
33
- import { mapGetters } from 'vuex'
34
-
35
- export default {
36
- name: 'GlossaryNav',
37
- middleware: ['auth'],
38
- props: {
39
- color: { type: String, required: false, default: '' },
40
- },
41
- data() {
42
- return {}
43
- },
44
- computed: {
45
- ...mapGetters({
46
- course: 'course/get',
47
- enrollment: 'enrollment/get',
48
- }),
49
- },
50
- }
51
- </script>
52
-
53
- <style scoped></style>
@@ -1,58 +0,0 @@
1
- <template>
2
- <v-tooltip right>
3
- <template #activator="{ on, attrs }">
4
- <v-list-item
5
- :class="color"
6
- :to="
7
- '/course/' +
8
- course.id +
9
- '/section/' +
10
- enrollment.course_section_id +
11
- '/user-uploads'
12
- "
13
- v-bind="attrs"
14
- v-on="on"
15
- >
16
- <v-list-item-action>
17
- <v-icon>mdi-cloud-upload</v-icon>
18
- </v-list-item-action>
19
- <v-list-item-content>
20
- <v-list-item-title
21
- >{{
22
- $t(
23
- 'windward.core.components.navigation.user_upload.title'
24
- )
25
- }}
26
- </v-list-item-title>
27
- </v-list-item-content>
28
- </v-list-item>
29
- </template>
30
- <span>{{
31
- $t('windward.core.components.navigation.user_upload.title')
32
- }}</span>
33
- </v-tooltip>
34
- </template>
35
-
36
- <script>
37
- import { mapGetters } from 'vuex'
38
-
39
- export default {
40
- components: {},
41
- middleware: ['auth'],
42
- props: {
43
- color: { type: String, required: false, default: '' },
44
- },
45
- data() {
46
- return {}
47
- },
48
- computed: {
49
- ...mapGetters({
50
- course: 'course/get',
51
- enrollment: 'enrollment/get',
52
- }),
53
- },
54
- created() {},
55
- mounted() {},
56
- methods: {},
57
- }
58
- </script>