@windward/integrations 0.7.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.
@@ -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
@@ -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'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windward/integrations",
3
- "version": "0.7.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",