@kubohiroya/turbowarp-bubble 0.13.0 → 0.13.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubohiroya/turbowarp-bubble",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "Composable say and think bubbles with portrait layers and animated continue indicators for TurboWarp.",
5
5
  "author": "Hiroya Kubo <hiroya@cuc.ac.jp>",
6
6
  "type": "module",
@@ -39,7 +39,8 @@
39
39
  "README.md",
40
40
  "README.ja.md",
41
41
  "LICENSE",
42
- "THIRD_PARTY_NOTICES.md"
42
+ "THIRD_PARTY_NOTICES.md",
43
+ "schemas/"
43
44
  ],
44
45
  "main": "./dist/composition.js",
45
46
  "unpkg": "./dist/turbowarp-bubble.js",
@@ -75,12 +76,13 @@
75
76
  "pack:check": "npm pack --dry-run --ignore-scripts",
76
77
  "release:check": "pnpm publish --dry-run --access public --no-git-checks",
77
78
  "check": "pnpm run typecheck && pnpm run lint && pnpm run format && pnpm run test && pnpm run docs:check && pnpm run check:dist && pnpm run types:composition:check && pnpm run repo:check && pnpm run pack:check",
78
- "prepack": "pnpm run check"
79
+ "prepack": "pnpm run check",
80
+ "test:fixed-inputs:native": "node --test tests/fixed-inputs.native.mjs"
79
81
  },
80
82
  "peerDependencies": {
81
- "@kubohiroya/turbowarp-asset-cache": ">=0.1.0 <1",
82
- "@kubohiroya/turbowarp-async-input": ">=0.3.0 <1",
83
- "@kubohiroya/turbowarp-runtime-expression": ">=0.3.0 <1"
83
+ "@kubohiroya/turbowarp-asset-cache": "0.2.2",
84
+ "@kubohiroya/turbowarp-async-input": "0.7.1",
85
+ "@kubohiroya/turbowarp-runtime-expression": "0.6.1"
84
86
  },
85
87
  "peerDependenciesMeta": {
86
88
  "@kubohiroya/turbowarp-async-input": {
@@ -95,10 +97,12 @@
95
97
  },
96
98
  "devDependencies": {
97
99
  "@eslint/js": "^10.0.1",
98
- "@kubohiroya/turbowarp-asset-cache": "0.1.0",
99
- "@kubohiroya/turbowarp-async-input": "0.7.0",
100
- "@kubohiroya/turbowarp-runtime-expression": "0.6.0",
101
- "@kubohiroya/vite-plugin-turbowarp-extension": "0.4.0",
100
+ "@kubohiroya/turbowarp-asset-cache": "0.2.2",
101
+ "@kubohiroya/turbowarp-async-input": "0.7.1",
102
+ "@kubohiroya/turbowarp-extension-data-editor": "0.2.1",
103
+ "@kubohiroya/turbowarp-extension-manifest": "0.3.2",
104
+ "@kubohiroya/turbowarp-runtime-expression": "0.6.1",
105
+ "@kubohiroya/vite-plugin-turbowarp-extension": "0.6.1",
102
106
  "@types/node": "^26.1.2",
103
107
  "eslint": "^10.8.0",
104
108
  "happy-dom": "20.0.8",
@@ -123,6 +127,12 @@
123
127
  ],
124
128
  "dependencies": {
125
129
  "@cto.af/linebreak": "4.0.3",
126
- "@kubohiroya/turbowarp-svg-text": "0.10.0"
130
+ "@kubohiroya/turbowarp-svg-text": "0.10.1"
131
+ },
132
+ "gitHead": "2b91f80ecc39eabb59db33fbc3d285a213f9cbcc",
133
+ "x-turbowarp-source": {
134
+ "revision": "2b91f80ecc39eabb59db33fbc3d285a213f9cbcc",
135
+ "revisionRole": "base-commit",
136
+ "sourceState": "local-release-overlay"
127
137
  }
128
138
  }
@@ -0,0 +1,316 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://kubohiroya.github.io/turbowarp-bubble/schemas/block-editor-fixed-inputs.schema.json",
4
+ "title": "turbowarp-bubble fixed editing contracts",
5
+ "$defs": {
6
+ "defineBubbleClosePolicy": {
7
+ "type": "object",
8
+ "properties": {
9
+ "TRIGGER": {
10
+ "type": "string",
11
+ "enum": ["condition", "timeout", "condition-or-timeout"]
12
+ },
13
+ "TIMEOUT": {
14
+ "type": "number",
15
+ "exclusiveMinimum": 0
16
+ }
17
+ },
18
+ "additionalProperties": false
19
+ },
20
+ "setPortraitLayout": {
21
+ "type": "object",
22
+ "properties": {
23
+ "PLACEMENT": {
24
+ "type": "string",
25
+ "enum": [
26
+ "none",
27
+ "left",
28
+ "right",
29
+ "top-left",
30
+ "top-right",
31
+ "bottom-left",
32
+ "bottom-right"
33
+ ]
34
+ },
35
+ "X": {
36
+ "type": "number"
37
+ },
38
+ "Y": {
39
+ "type": "number"
40
+ },
41
+ "ZOOM": {
42
+ "type": "number",
43
+ "exclusiveMinimum": 0
44
+ },
45
+ "RADIUS": {
46
+ "type": "number",
47
+ "minimum": 0
48
+ }
49
+ },
50
+ "additionalProperties": false
51
+ },
52
+ "setBubbleDistance": {
53
+ "type": "object",
54
+ "properties": {
55
+ "DISTANCE": {
56
+ "type": "number",
57
+ "minimum": 0
58
+ }
59
+ },
60
+ "additionalProperties": false
61
+ },
62
+ "setBubbleVisualStyle": {
63
+ "type": "object",
64
+ "properties": {
65
+ "VISUAL_STYLE": {
66
+ "type": "string",
67
+ "enum": [
68
+ "NORMAL",
69
+ "THINKING",
70
+ "DREAMING",
71
+ "YELLING",
72
+ "OFF_PANEL",
73
+ "WAVY",
74
+ "WHISPERING",
75
+ "ANNOUNCEMENT",
76
+ "NARRATION",
77
+ "NO_BUBBLE"
78
+ ]
79
+ }
80
+ },
81
+ "additionalProperties": false
82
+ },
83
+ "setBubbleTailLength": {
84
+ "type": "object",
85
+ "properties": {
86
+ "LENGTH": {
87
+ "type": "number",
88
+ "exclusiveMinimum": 0
89
+ }
90
+ },
91
+ "additionalProperties": false
92
+ },
93
+ "setBubbleOffset": {
94
+ "type": "object",
95
+ "properties": {
96
+ "X": {
97
+ "type": "number"
98
+ },
99
+ "Y": {
100
+ "type": "number"
101
+ },
102
+ "SCALE": {
103
+ "type": "number",
104
+ "exclusiveMinimum": 0
105
+ }
106
+ },
107
+ "additionalProperties": false
108
+ },
109
+ "setBlinkFrames": {
110
+ "type": "object",
111
+ "properties": {
112
+ "SECONDS": {
113
+ "type": "number",
114
+ "exclusiveMinimum": 0
115
+ }
116
+ },
117
+ "additionalProperties": false
118
+ },
119
+ "setLipSyncFrames": {
120
+ "type": "object",
121
+ "properties": {
122
+ "SECONDS": {
123
+ "type": "number",
124
+ "exclusiveMinimum": 0
125
+ }
126
+ },
127
+ "additionalProperties": false
128
+ },
129
+ "setContinueFrames": {
130
+ "type": "object",
131
+ "properties": {
132
+ "SECONDS": {
133
+ "type": "number",
134
+ "exclusiveMinimum": 0
135
+ }
136
+ },
137
+ "additionalProperties": false
138
+ },
139
+ "setBubbleReveal": {
140
+ "type": "object",
141
+ "properties": {
142
+ "UNIT": {
143
+ "type": "string",
144
+ "enum": ["CHARACTER", "WORD", "LINE", "BLOCK"]
145
+ },
146
+ "SECONDS": {
147
+ "type": "number",
148
+ "minimum": 0
149
+ },
150
+ "LAYOUT": {
151
+ "type": "string",
152
+ "enum": ["DYNAMIC", "RESERVED"]
153
+ }
154
+ },
155
+ "additionalProperties": false
156
+ },
157
+ "setBubbleWordDelimiters": {
158
+ "type": "object",
159
+ "properties": {
160
+ "SHOW": {
161
+ "type": "string",
162
+ "enum": ["false", "true"]
163
+ }
164
+ },
165
+ "additionalProperties": false
166
+ },
167
+ "finishBubbleReveal": {
168
+ "type": "object",
169
+ "properties": {
170
+ "UNIT": {
171
+ "type": "string",
172
+ "enum": ["CHARACTER", "WORD", "LINE", "BLOCK"]
173
+ },
174
+ "TIMEOUT": {
175
+ "type": "number",
176
+ "minimum": 0
177
+ }
178
+ },
179
+ "additionalProperties": false
180
+ },
181
+ "setBubbleShowAnimation": {
182
+ "type": "object",
183
+ "properties": {
184
+ "MOTION": {
185
+ "type": "string",
186
+ "enum": ["fadeIn", "floatIn", "zoomIn", "riseUp"]
187
+ },
188
+ "SECONDS": {
189
+ "type": "number",
190
+ "minimum": 0
191
+ }
192
+ },
193
+ "additionalProperties": false
194
+ },
195
+ "setBubbleHideAnimation": {
196
+ "type": "object",
197
+ "properties": {
198
+ "MOTION": {
199
+ "type": "string",
200
+ "enum": ["fadeOut", "floatOut", "zoomOut", "sink"]
201
+ },
202
+ "SECONDS": {
203
+ "type": "number",
204
+ "minimum": 0
205
+ }
206
+ },
207
+ "additionalProperties": false
208
+ },
209
+ "animateBubble": {
210
+ "type": "object",
211
+ "properties": {
212
+ "MOTION": {
213
+ "type": "string",
214
+ "enum": [
215
+ "fadeIn",
216
+ "floatIn",
217
+ "zoomIn",
218
+ "riseUp",
219
+ "fadeOut",
220
+ "floatOut",
221
+ "zoomOut",
222
+ "sink",
223
+ "shake",
224
+ "explode",
225
+ "animateBubbleShape"
226
+ ]
227
+ }
228
+ },
229
+ "additionalProperties": false
230
+ },
231
+ "shakeBubble": {
232
+ "type": "object",
233
+ "properties": {
234
+ "DIRECTION": {
235
+ "type": "number"
236
+ },
237
+ "COUNT": {
238
+ "type": "integer",
239
+ "minimum": 1
240
+ },
241
+ "EASE": {
242
+ "type": "string",
243
+ "enum": ["linear", "easeIn", "easeOut", "easeInOut"]
244
+ }
245
+ },
246
+ "additionalProperties": false
247
+ },
248
+ "explodeBubble": {
249
+ "type": "object",
250
+ "properties": {
251
+ "SCALE": {
252
+ "type": "number",
253
+ "exclusiveMinimum": 0
254
+ },
255
+ "COUNT": {
256
+ "type": "integer",
257
+ "minimum": 1
258
+ },
259
+ "EASE": {
260
+ "type": "string",
261
+ "enum": ["linear", "easeIn", "easeOut", "easeInOut"]
262
+ }
263
+ },
264
+ "additionalProperties": false
265
+ },
266
+ "animateBubbleShape": {
267
+ "type": "object",
268
+ "properties": {
269
+ "VISUAL_STYLE": {
270
+ "type": "string",
271
+ "enum": [
272
+ "NORMAL",
273
+ "THINKING",
274
+ "DREAMING",
275
+ "YELLING",
276
+ "OFF_PANEL",
277
+ "WAVY",
278
+ "WHISPERING",
279
+ "ANNOUNCEMENT",
280
+ "NARRATION",
281
+ "NO_BUBBLE"
282
+ ]
283
+ },
284
+ "SPEED": {
285
+ "type": "number",
286
+ "minimum": 0
287
+ },
288
+ "SECONDS": {
289
+ "type": "number",
290
+ "minimum": 0
291
+ }
292
+ },
293
+ "additionalProperties": false
294
+ },
295
+ "setBubbleAnimationMode": {
296
+ "type": "object",
297
+ "properties": {
298
+ "MODE": {
299
+ "type": "string",
300
+ "enum": ["talking", "awaiting-continue", "idle"]
301
+ }
302
+ },
303
+ "additionalProperties": false
304
+ },
305
+ "waitForBubbleContinue": {
306
+ "type": "object",
307
+ "properties": {
308
+ "TIMEOUT": {
309
+ "type": "number",
310
+ "minimum": 0
311
+ }
312
+ },
313
+ "additionalProperties": false
314
+ }
315
+ }
316
+ }