@windward/integrations 0.6.0 → 0.8.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,4 +1,11 @@
1
1
  # Changelog
2
2
 
3
- ### Release [0.6.0] created - 2024-07-30
3
+ ## Release [0.7.0] - 2024-08-29
4
+
5
+ * Version bump to 0.7.0
6
+
4
7
 
8
+ ### Release [0.7.0] created - 2024-08-29
9
+
10
+
11
+ ### Release [0.6.0] created - 2024-07-30
@@ -1,10 +1,15 @@
1
1
  <template>
2
2
  <div>
3
3
  <div v-if="!missing && consumer">
4
- <h3>{{ block.metadata.config.title }}</h3>
4
+ <h2 v-if="block.metadata.config.title" tabindex="0">
5
+ {{ block.metadata.config.title }}
6
+ </h2>
5
7
 
6
8
  <TextViewer
9
+ v-if="block.metadata.config.instructions"
7
10
  v-model="block.metadata.config.instructions"
11
+ tabindex="0"
12
+ class="pt-3"
8
13
  ></TextViewer>
9
14
 
10
15
  <v-row
@@ -220,14 +225,10 @@ export default {
220
225
  this.block.metadata.config.tool_id = null
221
226
  }
222
227
  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
- )
228
+ this.block.metadata.config.title = ''
226
229
  }
227
230
  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
- )
231
+ this.block.metadata.config.instructions = ''
231
232
  }
232
233
  },
233
234
  mounted() {
@@ -30,7 +30,7 @@
30
30
  'windward.integrations.components.external_integration.target_url'
31
31
  )
32
32
  "
33
- :rules="validation.existsRules"
33
+ :rules="$Validation.getRule('exists')"
34
34
  ></v-text-field>
35
35
 
36
36
  <v-switch
@@ -30,7 +30,7 @@
30
30
  'windward.integrations.components.external_integration.target_url'
31
31
  )
32
32
  "
33
- :rules="validation.existsRules"
33
+ :rules="$Validation.getRule('exists')"
34
34
  ></v-text-field>
35
35
 
36
36
  <v-switch
@@ -29,7 +29,7 @@
29
29
  'windward.integrations.components.integration.driver.atutor.url_hint'
30
30
  )
31
31
  "
32
- :rules="validation.urlRules"
32
+ :rules="$Validation.getRule('url')"
33
33
  ></v-text-field>
34
34
  <v-text-field
35
35
  id="atutor-username"
@@ -39,7 +39,7 @@
39
39
  'windward.integrations.components.integration.driver.atutor.username'
40
40
  )
41
41
  "
42
- :rules="validation.existsRules"
42
+ :rules="$Validation.getRule('exists')"
43
43
  ></v-text-field>
44
44
  <v-text-field
45
45
  id="atutor-password"
@@ -50,7 +50,7 @@
50
50
  )
51
51
  "
52
52
  type="password"
53
- :rules="validation.existsRules"
53
+ :rules="$Validation.getRule('exists')"
54
54
  ></v-text-field>
55
55
 
56
56
  <v-text-field
@@ -66,7 +66,7 @@
66
66
  'windward.integrations.components.integration.driver.atutor.aws_secure_url_hint'
67
67
  )
68
68
  "
69
- :rules="validation.urlRules"
69
+ :rules="$Validation.getRule('url')"
70
70
  ></v-text-field>
71
71
 
72
72
  <v-switch
@@ -28,7 +28,7 @@
28
28
  'windward.integrations.components.integration.driver.resourcespace.url_hint'
29
29
  )
30
30
  "
31
- :rules="validation.urlRules"
31
+ :rules="$Validation.getRule('url')"
32
32
  ></v-text-field>
33
33
  <v-text-field
34
34
  id="resourcespace-username"
@@ -38,7 +38,7 @@
38
38
  'windward.integrations.components.integration.driver.resourcespace.username'
39
39
  )
40
40
  "
41
- :rules="validation.existsRules"
41
+ :rules="$Validation.getRule('exists')"
42
42
  ></v-text-field>
43
43
  <v-text-field
44
44
  id="resourcespace-key"
@@ -49,7 +49,7 @@
49
49
  )
50
50
  "
51
51
  type="password"
52
- :rules="validation.existsRules"
52
+ :rules="$Validation.getRule('exists')"
53
53
  ></v-text-field>
54
54
 
55
55
  <v-switch
@@ -1,10 +1,11 @@
1
1
  <template>
2
2
  <v-container>
3
3
  <v-text-field
4
+ id="block-settings-title"
4
5
  v-model="block.metadata.config.title"
5
6
  outlined
6
- :counter="50"
7
- :rules="validation.shortInputRules"
7
+ :rules="$Validation.getRule('block.title')"
8
+ :counter="$Validation.getLimit('block.title')"
8
9
  :label="
9
10
  $t(
10
11
  'windward.integrations.components.settings.external_integration.lti_consumer.title'
@@ -13,10 +14,11 @@
13
14
  :disabled="render"
14
15
  ></v-text-field>
15
16
  <v-textarea
17
+ id="block-settings-instructions"
16
18
  v-model="block.metadata.config.instructions"
17
19
  outlined
18
- :rules="validation.instructionRule"
19
- :counter="255"
20
+ :rules="$Validation.getRule('block.instructions')"
21
+ :counter="$Validation.getLimit('block.instructions')"
20
22
  :label="
21
23
  $t(
22
24
  'windward.integrations.components.settings.external_integration.lti_consumer.instructions'
@@ -127,20 +129,28 @@ export default {
127
129
  ],
128
130
  validation: {
129
131
  shortInputRules: [
130
- (v) =>
131
- v.length <= 50 ||
132
- this.$t(
133
- 'windward.integrations.shared.settings.errors.input_limitations',
134
- [50]
135
- ),
132
+ (v) => {
133
+ if (v && v.length >= 50) {
134
+ return this.$t(
135
+ 'windward.integrations.shared.settings.errors.input_limitations',
136
+ [50]
137
+ )
138
+ } else {
139
+ return true
140
+ }
141
+ },
136
142
  ],
137
143
  instructionRule: [
138
- (v) =>
139
- v.length <= 255 ||
140
- this.$t(
141
- 'windward.integrations.shared.settings.errors.input_limitations',
142
- [255]
143
- ),
144
+ (v) => {
145
+ if (v && v.length >= 255) {
146
+ return this.$t(
147
+ 'windward.integrations.shared.settings.errors.input_limitations',
148
+ [255]
149
+ )
150
+ } else {
151
+ return true
152
+ }
153
+ },
144
154
  ],
145
155
  },
146
156
  }
@@ -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',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windward/integrations",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "description": "Windward UI Plugin Integrations for 3rd Party Systems",
5
5
  "main": "plugin.js",
6
6
  "scripts": {
@@ -21,7 +21,7 @@
21
21
  "license": "MIT",
22
22
  "homepage": "https://bitbucket.org/mindedge/windward-ui-plugin-integrations#readme",
23
23
  "dependencies": {
24
- "@windward/core": "^0.3.0",
24
+ "@windward/core": "^0.8.0",
25
25
  "canvas-confetti": "^1.6.0",
26
26
  "eslint": "^8.11.0",
27
27
  "laravel-echo": "^1.15.0",