wisp-schema 0.14.4 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/wisp-schema.rb +1 -1
  3. data/nouns.json +36 -12
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6809f3d0c3bce926324847b336099a3fb83b7a48c198a449bfba25cd897ade82
4
- data.tar.gz: fbd4482a20bd3ec2f8392cc054dc36abb4dffdee43e2d8bcd925c404298916bb
3
+ metadata.gz: 977b8fbf0af2cbd4cdce4de8c42c0471084c9641716b624af5b5ce986c1ed4ac
4
+ data.tar.gz: a6b561710fad1baf38ba235a359ba30623cd8851e5a9d21ddb3fd1f654cb1473
5
5
  SHA512:
6
- metadata.gz: 71811f88d0febecf5e5a88139746e5f26b000d1942c683da8992b304fbbe6d06c51e785717f4f69755b1ca3d55be16cc090c1d6dc990f87e958a5ea50ea3a4b6
7
- data.tar.gz: c6b96b5081c001cb22f18513cf66f287fa5c1a59c7bb4d6f3bd081b9f4312a3b7c3c5b455708cf4da06ba4411ac93528f63807a91b020d5dd1c680a799d6b488
6
+ metadata.gz: 4c08c38b4f8d9f79a08b2e967f536f44c554772d40c08c65e072cd6982375297625c195bba54008093113ac49dd30d5e8aee6f08ff07758da6ceb5cd73bd955e
7
+ data.tar.gz: 0e31cc4970c190fecf282016c14bddc4942b86dad62d84544afc88d1338be31169f4203de83a6fd77ffb63dfeca54e5dd50d408f7e4336d39fed1056f8fe1a5d
data/lib/wisp-schema.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Wisp
4
- VERSION = '0.14.4'
4
+ VERSION = '0.15.0'
5
5
 
6
6
  SCHEMA_PATH = File.expand_path('../wisp.json', __dir__)
7
7
  NOUNS_PATH = File.expand_path('../nouns.json', __dir__)
data/nouns.json CHANGED
@@ -9,7 +9,9 @@
9
9
  "type": {
10
10
  "enum": ["button"]
11
11
  },
12
- "label": {"title": "Label", "type": "string"}
12
+ "label": {"title": "Label", "type": "string"},
13
+ "focus_x": {"title": "Focus offset for x-axis from top left corner", "type": "integer", "options": {"hidden": true}},
14
+ "focus_y": {"title": "Focus offset for y-axis from top left corner", "type": "integer", "options": {"hidden": true}}
13
15
  },
14
16
  "additionalProperties": false,
15
17
  "required": ["type", "label"]
@@ -22,7 +24,9 @@
22
24
  "type": {
23
25
  "enum": ["text_field"]
24
26
  },
25
- "label": {"title": "Label", "type": "string"}
27
+ "label": {"title": "Label", "type": "string"},
28
+ "focus_x": {"title": "Focus offset for x-axis from top left corner", "type": "integer", "options": {"hidden": true}},
29
+ "focus_y": {"title": "Focus offset for y-axis from top left corner", "type": "integer", "options": {"hidden": true}}
26
30
  },
27
31
  "additionalProperties": false,
28
32
  "required": ["type", "label"]
@@ -35,7 +39,9 @@
35
39
  "type": {
36
40
  "enum": ["dropdown"]
37
41
  },
38
- "label": {"title": "Label", "type": "string"}
42
+ "label": {"title": "Label", "type": "string"},
43
+ "focus_x": {"title": "Focus offset for x-axis from top left corner", "type": "integer", "options": {"hidden": true}},
44
+ "focus_y": {"title": "Focus offset for y-axis from top left corner", "type": "integer", "options": {"hidden": true}}
39
45
  },
40
46
  "additionalProperties": false,
41
47
  "required": ["type", "label"]
@@ -48,7 +54,9 @@
48
54
  "type": {
49
55
  "enum": ["dropdown_option"]
50
56
  },
51
- "label": {"title": "Label", "type": "string"}
57
+ "label": {"title": "Label", "type": "string"},
58
+ "focus_x": {"title": "Focus offset for x-axis from top left corner", "type": "integer", "options": {"hidden": true}},
59
+ "focus_y": {"title": "Focus offset for y-axis from top left corner", "type": "integer", "options": {"hidden": true}}
52
60
  },
53
61
  "additionalProperties": false,
54
62
  "required": ["type", "label"]
@@ -61,7 +69,9 @@
61
69
  "type": {
62
70
  "enum": ["link"]
63
71
  },
64
- "text": {"title": "Text", "type": "string"}
72
+ "text": {"title": "Text", "type": "string"},
73
+ "focus_x": {"title": "Focus offset for x-axis from top left corner", "type": "integer", "options": {"hidden": true}},
74
+ "focus_y": {"title": "Focus offset for y-axis from top left corner", "type": "integer", "options": {"hidden": true}}
65
75
  },
66
76
  "additionalProperties": false,
67
77
  "required": ["type", "text"]
@@ -74,7 +84,9 @@
74
84
  "type": {
75
85
  "enum": ["icon"]
76
86
  },
77
- "description": {"title": "Description", "type": "string"}
87
+ "description": {"title": "Description", "type": "string"},
88
+ "focus_x": {"title": "Focus offset for x-axis from top left corner", "type": "integer", "options": {"hidden": true}},
89
+ "focus_y": {"title": "Focus offset for y-axis from top left corner", "type": "integer", "options": {"hidden": true}}
78
90
  },
79
91
  "additionalProperties": false,
80
92
  "required": ["type", "description"]
@@ -87,7 +99,9 @@
87
99
  "type": {
88
100
  "enum": ["checkbox"]
89
101
  },
90
- "label": {"title": "Label", "type": "string"}
102
+ "label": {"title": "Label", "type": "string"},
103
+ "focus_x": {"title": "Focus offset for x-axis from top left corner", "type": "integer", "options": {"hidden": true}},
104
+ "focus_y": {"title": "Focus offset for y-axis from top left corner", "type": "integer", "options": {"hidden": true}}
91
105
  },
92
106
  "additionalProperties": false,
93
107
  "required": ["type", "label"]
@@ -100,7 +114,9 @@
100
114
  "type": {
101
115
  "enum": ["header"]
102
116
  },
103
- "text": {"title": "Text", "type": "string"}
117
+ "text": {"title": "Text", "type": "string"},
118
+ "focus_x": {"title": "Focus offset for x-axis from top left corner", "type": "integer", "options": {"hidden": true}},
119
+ "focus_y": {"title": "Focus offset for y-axis from top left corner", "type": "integer", "options": {"hidden": true}}
104
120
  },
105
121
  "additionalProperties": false,
106
122
  "required": ["type", "text"]
@@ -113,7 +129,9 @@
113
129
  "type": {
114
130
  "enum": ["window"]
115
131
  },
116
- "description": {"title": "Description", "type": "string"}
132
+ "description": {"title": "Description", "type": "string"},
133
+ "focus_x": {"title": "Focus offset for x-axis from top left corner", "type": "integer", "options": {"hidden": true}},
134
+ "focus_y": {"title": "Focus offset for y-axis from top left corner", "type": "integer", "options": {"hidden": true}}
117
135
  },
118
136
  "additionalProperties": false,
119
137
  "required": ["type", "description"]
@@ -126,7 +144,9 @@
126
144
  "type": {
127
145
  "enum": ["modal"]
128
146
  },
129
- "description": {"title": "Description", "type": "string"}
147
+ "description": {"title": "Description", "type": "string"},
148
+ "focus_x": {"title": "Focus offset for x-axis from top left corner", "type": "integer", "options": {"hidden": true}},
149
+ "focus_y": {"title": "Focus offset for y-axis from top left corner", "type": "integer", "options": {"hidden": true}}
130
150
  },
131
151
  "additionalProperties": false,
132
152
  "required": ["type", "description"]
@@ -139,7 +159,9 @@
139
159
  "type": {
140
160
  "enum": ["text"]
141
161
  },
142
- "text": {"title": "Text", "type": "string"}
162
+ "text": {"title": "Text", "type": "string"},
163
+ "focus_x": {"title": "Focus offset for x-axis from top left corner", "type": "integer", "options": {"hidden": true}},
164
+ "focus_y": {"title": "Focus offset for y-axis from top left corner", "type": "integer", "options": {"hidden": true}}
143
165
  },
144
166
  "additionalProperties": false,
145
167
  "required": ["type", "text"]
@@ -152,7 +174,9 @@
152
174
  "type": {
153
175
  "enum": ["ui_element"]
154
176
  },
155
- "element": {"title": "Element", "type": "string"}
177
+ "element": {"title": "Element", "type": "string"},
178
+ "focus_x": {"title": "Focus offset for x-axis from top left corner", "type": "integer", "options": {"hidden": true}},
179
+ "focus_y": {"title": "Focus offset for y-axis from top left corner", "type": "integer", "options": {"hidden": true}}
156
180
  },
157
181
  "additionalProperties": false,
158
182
  "required": ["type", "element"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wisp-schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.4
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Grodowski