@windward/integrations 0.5.0 → 0.7.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 ADDED
@@ -0,0 +1,11 @@
1
+ # Changelog
2
+
3
+ ## Release [0.7.0] - 2024-08-29
4
+
5
+ * Version bump to 0.7.0
6
+
7
+
8
+ ### Release [0.7.0] created - 2024-08-29
9
+
10
+
11
+ ### Release [0.6.0] created - 2024-07-30
@@ -0,0 +1,14 @@
1
+ image: atlassian/default-image:3
2
+
3
+ pipelines:
4
+ custom:
5
+ create-release:
6
+ import: infrastructure-automation:master:create-release
7
+ publish-release:
8
+ import: infrastructure-automation:master:publish-release
9
+
10
+ branches:
11
+ "release/*":
12
+ import: infrastructure-automation:master:auto-update
13
+ "hotfix/*":
14
+ import: infrastructure-automation:master:auto-update
@@ -220,14 +220,10 @@ export default {
220
220
  this.block.metadata.config.tool_id = null
221
221
  }
222
222
  if (_.isEmpty(this.block.metadata.config.title)) {
223
- this.block.metadata.config.title = this.$t(
224
- 'windward.integrations.components.content.blocks.external_integration.lti_consumer.title'
225
- )
223
+ this.block.metadata.config.title = ''
226
224
  }
227
225
  if (_.isEmpty(this.block.metadata.config.instructions)) {
228
- this.block.metadata.config.instructions = this.$t(
229
- 'windward.integrations.components.content.blocks.external_integration.lti_consumer.instructions'
230
- )
226
+ this.block.metadata.config.instructions = ''
231
227
  }
232
228
  },
233
229
  mounted() {
@@ -94,7 +94,7 @@
94
94
  </v-col>
95
95
  <v-col cols="10">
96
96
  <v-progress-linear
97
- v-model="item.progress"
97
+ :value="item.progress"
98
98
  buffer-value="0"
99
99
  height="15"
100
100
  color="primary"
@@ -4,7 +4,7 @@
4
4
  v-model="block.metadata.config.title"
5
5
  outlined
6
6
  :counter="50"
7
- maxlength="50"
7
+ :rules="validation.shortInputRules"
8
8
  :label="
9
9
  $t(
10
10
  'windward.integrations.components.settings.external_integration.lti_consumer.title'
@@ -15,8 +15,8 @@
15
15
  <v-textarea
16
16
  v-model="block.metadata.config.instructions"
17
17
  outlined
18
+ :rules="validation.instructionRule"
18
19
  :counter="255"
19
- maxlength="255"
20
20
  :label="
21
21
  $t(
22
22
  'windward.integrations.components.settings.external_integration.lti_consumer.instructions'
@@ -125,6 +125,32 @@ export default {
125
125
  value: 'modal',
126
126
  },
127
127
  ],
128
+ validation: {
129
+ shortInputRules: [
130
+ (v) => {
131
+ if (v && v.length >= 50) {
132
+ return this.$t(
133
+ 'windward.integrations.shared.settings.errors.input_limitations',
134
+ [50]
135
+ )
136
+ } else {
137
+ return true
138
+ }
139
+ },
140
+ ],
141
+ instructionRule: [
142
+ (v) => {
143
+ if (v && v.length >= 255) {
144
+ return this.$t(
145
+ 'windward.integrations.shared.settings.errors.input_limitations',
146
+ [255]
147
+ )
148
+ } else {
149
+ return true
150
+ }
151
+ },
152
+ ],
153
+ },
128
154
  }
129
155
  },
130
156
  async fetch() {
@@ -1,6 +1,6 @@
1
1
  export default {
2
- title: 'title',
3
- instructions: 'instructions',
2
+ title: 'Title',
3
+ instructions: 'Instructions',
4
4
  launch_type: 'Launch Type',
5
5
  launch_type_new_window: 'New Window',
6
6
  launch_type_inline_frame: 'Inline Frame',
@@ -2,4 +2,7 @@ export default {
2
2
  title: {
3
3
  lti_consumer: 'LTI Consumer',
4
4
  },
5
+ errors: {
6
+ input_limitations: 'Must be less than {0} characters.'
7
+ },
5
8
  }
@@ -2,4 +2,7 @@ export default {
2
2
  title: {
3
3
  lti_consumer: 'Consumidor LTI',
4
4
  },
5
+ errors: {
6
+ input_limitations: 'Debe tener menos de {0} caracteres.'
7
+ },
5
8
  }
@@ -2,4 +2,7 @@ export default {
2
2
  title: {
3
3
  lti_consumer: 'LTI konsument',
4
4
  },
5
+ errors: {
6
+ input_limitations: 'Måste vara mindre än {0} tecken.',
7
+ },
5
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windward/integrations",
3
- "version": "0.5.0",
3
+ "version": "0.7.0",
4
4
  "description": "Windward UI Plugin Integrations for 3rd Party Systems",
5
5
  "main": "plugin.js",
6
6
  "scripts": {