@safe-ugc-ui/schema 0.3.0 → 0.4.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Safe UGC UI Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,14 @@
1
+ // src/index.ts
2
+ import { ugcCardSchema } from "@safe-ugc-ui/types";
3
+ import { zodToJsonSchema } from "zod-to-json-schema";
4
+ function generateCardSchema() {
5
+ return zodToJsonSchema(ugcCardSchema, {
6
+ name: "UGCCard",
7
+ nameStrategy: "title"
8
+ });
9
+ }
10
+
11
+ export {
12
+ generateCardSchema
13
+ };
14
+ //# sourceMappingURL=chunk-R2QYKPJJ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * @safe-ugc-ui/schema — Public API\n *\n * Provides programmatic access to the UGC Card JSON Schema.\n *\n * For the static JSON file (editor / ajv integration), import from:\n * `@safe-ugc-ui/schema/ugc-card.schema.json`\n *\n * For runtime generation:\n * `import { generateCardSchema } from '@safe-ugc-ui/schema';`\n *\n * IMPORTANT: JSON Schema covers structural validation only.\n * Security rules, resource limits, and context-dependent checks require\n * the @safe-ugc-ui/validator package.\n */\n\nimport { ugcCardSchema } from '@safe-ugc-ui/types';\nimport { zodToJsonSchema } from 'zod-to-json-schema';\n\n/**\n * Generate the UGC Card JSON Schema at runtime.\n *\n * Returns a plain object conforming to JSON Schema Draft 7.\n * Equivalent to the static `ugc-card.schema.json` file produced at build time.\n */\nexport function generateCardSchema(): Record<string, unknown> {\n return zodToJsonSchema(ugcCardSchema, {\n name: 'UGCCard',\n nameStrategy: 'title',\n }) as Record<string, unknown>;\n}\n"],"mappings":";AAgBA,SAAS,qBAAqB;AAC9B,SAAS,uBAAuB;AAQzB,SAAS,qBAA8C;AAC5D,SAAO,gBAAgB,eAAe;AAAA,IACpC,MAAM;AAAA,IACN,cAAc;AAAA,EAChB,CAAC;AACH;","names":[]}
@@ -1,2 +1,19 @@
1
+ /**
2
+ * @safe-ugc-ui/schema — JSON Schema Generator (build-time script)
3
+ *
4
+ * Converts the Zod-based UGCCard schema from @safe-ugc-ui/types into a
5
+ * standard JSON Schema document and writes it to dist/ugc-card.schema.json.
6
+ *
7
+ * Run via: `node dist/generate.js` (called automatically by the build script).
8
+ *
9
+ * NOTE: This produces a *structural* schema only. Context-dependent rules
10
+ * (position constraints, security checks, resource limits, etc.) cannot be
11
+ * expressed in JSON Schema and require the validator package.
12
+ */
13
+ declare function generateCardSchemaJson(): string;
14
+ declare function getDefaultOutputPath(moduleUrl?: string): string;
15
+ declare function writeGeneratedSchema(outputPath: string): string;
16
+ declare function runGenerateScript(moduleUrl?: string): string;
17
+ declare function isDirectExecution(moduleUrl?: string, argv1?: string | undefined): boolean;
1
18
 
2
- export { }
19
+ export { generateCardSchemaJson, getDefaultOutputPath, isDirectExecution, runGenerateScript, writeGeneratedSchema };
package/dist/generate.js CHANGED
@@ -1,15 +1,40 @@
1
+ import {
2
+ generateCardSchema
3
+ } from "./chunk-R2QYKPJJ.js";
4
+
1
5
  // src/generate.ts
2
6
  import { writeFileSync } from "fs";
3
7
  import { dirname, resolve } from "path";
4
8
  import { fileURLToPath } from "url";
5
- import { ugcCardSchema } from "@safe-ugc-ui/types";
6
- import { zodToJsonSchema } from "zod-to-json-schema";
7
- var jsonSchema = zodToJsonSchema(ugcCardSchema, {
8
- name: "UGCCard",
9
- nameStrategy: "title"
10
- });
11
- var __dirname = dirname(fileURLToPath(import.meta.url));
12
- var outputPath = resolve(__dirname, "ugc-card.schema.json");
13
- writeFileSync(outputPath, JSON.stringify(jsonSchema, null, 2), "utf-8");
14
- console.log(`Generated ${outputPath}`);
9
+ function generateCardSchemaJson() {
10
+ return JSON.stringify(generateCardSchema(), null, 2);
11
+ }
12
+ function getDefaultOutputPath(moduleUrl = import.meta.url) {
13
+ const moduleDir = dirname(fileURLToPath(moduleUrl));
14
+ return resolve(moduleDir, "ugc-card.schema.json");
15
+ }
16
+ function writeGeneratedSchema(outputPath) {
17
+ writeFileSync(outputPath, generateCardSchemaJson(), "utf-8");
18
+ return outputPath;
19
+ }
20
+ function runGenerateScript(moduleUrl = import.meta.url) {
21
+ return writeGeneratedSchema(getDefaultOutputPath(moduleUrl));
22
+ }
23
+ function isDirectExecution(moduleUrl = import.meta.url, argv1 = process.argv[1]) {
24
+ if (!argv1) {
25
+ return false;
26
+ }
27
+ return fileURLToPath(moduleUrl) === resolve(argv1);
28
+ }
29
+ if (isDirectExecution()) {
30
+ const outputPath = runGenerateScript();
31
+ console.log(`Generated ${outputPath}`);
32
+ }
33
+ export {
34
+ generateCardSchemaJson,
35
+ getDefaultOutputPath,
36
+ isDirectExecution,
37
+ runGenerateScript,
38
+ writeGeneratedSchema
39
+ };
15
40
  //# sourceMappingURL=generate.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/generate.ts"],"sourcesContent":["/**\n * @safe-ugc-ui/schema — JSON Schema Generator (build-time script)\n *\n * Converts the Zod-based UGCCard schema from @safe-ugc-ui/types into a\n * standard JSON Schema document and writes it to dist/ugc-card.schema.json.\n *\n * Run via: `node dist/generate.js` (called automatically by the build script).\n *\n * NOTE: This produces a *structural* schema only. Context-dependent rules\n * (position constraints, security checks, resource limits, etc.) cannot be\n * expressed in JSON Schema and require the validator package.\n */\n\nimport { writeFileSync } from 'node:fs';\nimport { dirname, resolve } from 'node:path';\nimport { fileURLToPath } from 'node:url';\n\nimport { ugcCardSchema } from '@safe-ugc-ui/types';\nimport { zodToJsonSchema } from 'zod-to-json-schema';\n\nconst jsonSchema = zodToJsonSchema(ugcCardSchema, {\n name: 'UGCCard',\n nameStrategy: 'title',\n});\n\nconst __dirname = dirname(fileURLToPath(import.meta.url));\nconst outputPath = resolve(__dirname, 'ugc-card.schema.json');\n\nwriteFileSync(outputPath, JSON.stringify(jsonSchema, null, 2), 'utf-8');\n\nconsole.log(`Generated ${outputPath}`);\n"],"mappings":";AAaA,SAAS,qBAAqB;AAC9B,SAAS,SAAS,eAAe;AACjC,SAAS,qBAAqB;AAE9B,SAAS,qBAAqB;AAC9B,SAAS,uBAAuB;AAEhC,IAAM,aAAa,gBAAgB,eAAe;AAAA,EAChD,MAAM;AAAA,EACN,cAAc;AAChB,CAAC;AAED,IAAM,YAAY,QAAQ,cAAc,YAAY,GAAG,CAAC;AACxD,IAAM,aAAa,QAAQ,WAAW,sBAAsB;AAE5D,cAAc,YAAY,KAAK,UAAU,YAAY,MAAM,CAAC,GAAG,OAAO;AAEtE,QAAQ,IAAI,aAAa,UAAU,EAAE;","names":[]}
1
+ {"version":3,"sources":["../src/generate.ts"],"sourcesContent":["/**\n * @safe-ugc-ui/schema — JSON Schema Generator (build-time script)\n *\n * Converts the Zod-based UGCCard schema from @safe-ugc-ui/types into a\n * standard JSON Schema document and writes it to dist/ugc-card.schema.json.\n *\n * Run via: `node dist/generate.js` (called automatically by the build script).\n *\n * NOTE: This produces a *structural* schema only. Context-dependent rules\n * (position constraints, security checks, resource limits, etc.) cannot be\n * expressed in JSON Schema and require the validator package.\n */\n\nimport { writeFileSync } from 'node:fs';\nimport { dirname, resolve } from 'node:path';\nimport { fileURLToPath } from 'node:url';\n\nimport { generateCardSchema } from './index.js';\n\nexport function generateCardSchemaJson(): string {\n return JSON.stringify(generateCardSchema(), null, 2);\n}\n\nexport function getDefaultOutputPath(moduleUrl: string = import.meta.url): string {\n const moduleDir = dirname(fileURLToPath(moduleUrl));\n return resolve(moduleDir, 'ugc-card.schema.json');\n}\n\nexport function writeGeneratedSchema(outputPath: string): string {\n writeFileSync(outputPath, generateCardSchemaJson(), 'utf-8');\n return outputPath;\n}\n\nexport function runGenerateScript(moduleUrl: string = import.meta.url): string {\n return writeGeneratedSchema(getDefaultOutputPath(moduleUrl));\n}\n\nexport function isDirectExecution(\n moduleUrl: string = import.meta.url,\n argv1: string | undefined = process.argv[1],\n): boolean {\n if (!argv1) {\n return false;\n }\n\n return fileURLToPath(moduleUrl) === resolve(argv1);\n}\n\nif (isDirectExecution()) {\n const outputPath = runGenerateScript();\n console.log(`Generated ${outputPath}`);\n}\n"],"mappings":";;;;;AAaA,SAAS,qBAAqB;AAC9B,SAAS,SAAS,eAAe;AACjC,SAAS,qBAAqB;AAIvB,SAAS,yBAAiC;AAC/C,SAAO,KAAK,UAAU,mBAAmB,GAAG,MAAM,CAAC;AACrD;AAEO,SAAS,qBAAqB,YAAoB,YAAY,KAAa;AAChF,QAAM,YAAY,QAAQ,cAAc,SAAS,CAAC;AAClD,SAAO,QAAQ,WAAW,sBAAsB;AAClD;AAEO,SAAS,qBAAqB,YAA4B;AAC/D,gBAAc,YAAY,uBAAuB,GAAG,OAAO;AAC3D,SAAO;AACT;AAEO,SAAS,kBAAkB,YAAoB,YAAY,KAAa;AAC7E,SAAO,qBAAqB,qBAAqB,SAAS,CAAC;AAC7D;AAEO,SAAS,kBACd,YAAoB,YAAY,KAChC,QAA4B,QAAQ,KAAK,CAAC,GACjC;AACT,MAAI,CAAC,OAAO;AACV,WAAO;AAAA,EACT;AAEA,SAAO,cAAc,SAAS,MAAM,QAAQ,KAAK;AACnD;AAEA,IAAI,kBAAkB,GAAG;AACvB,QAAM,aAAa,kBAAkB;AACrC,UAAQ,IAAI,aAAa,UAAU,EAAE;AACvC;","names":[]}
package/dist/index.js CHANGED
@@ -1,12 +1,6 @@
1
- // src/index.ts
2
- import { ugcCardSchema } from "@safe-ugc-ui/types";
3
- import { zodToJsonSchema } from "zod-to-json-schema";
4
- function generateCardSchema() {
5
- return zodToJsonSchema(ugcCardSchema, {
6
- name: "UGCCard",
7
- nameStrategy: "title"
8
- });
9
- }
1
+ import {
2
+ generateCardSchema
3
+ } from "./chunk-R2QYKPJJ.js";
10
4
  export {
11
5
  generateCardSchema
12
6
  };
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * @safe-ugc-ui/schema — Public API\n *\n * Provides programmatic access to the UGC Card JSON Schema.\n *\n * For the static JSON file (editor / ajv integration), import from:\n * `@safe-ugc-ui/schema/ugc-card.schema.json`\n *\n * For runtime generation:\n * `import { generateCardSchema } from '@safe-ugc-ui/schema';`\n *\n * IMPORTANT: JSON Schema covers structural validation only.\n * Security rules, resource limits, and context-dependent checks require\n * the @safe-ugc-ui/validator package.\n */\n\nimport { ugcCardSchema } from '@safe-ugc-ui/types';\nimport { zodToJsonSchema } from 'zod-to-json-schema';\n\n/**\n * Generate the UGC Card JSON Schema at runtime.\n *\n * Returns a plain object conforming to JSON Schema Draft 7.\n * Equivalent to the static `ugc-card.schema.json` file produced at build time.\n */\nexport function generateCardSchema(): Record<string, unknown> {\n return zodToJsonSchema(ugcCardSchema, {\n name: 'UGCCard',\n nameStrategy: 'title',\n }) as Record<string, unknown>;\n}\n"],"mappings":";AAgBA,SAAS,qBAAqB;AAC9B,SAAS,uBAAuB;AAQzB,SAAS,qBAA8C;AAC5D,SAAO,gBAAgB,eAAe;AAAA,IACpC,MAAM;AAAA,IACN,cAAc;AAAA,EAChB,CAAC;AACH;","names":[]}
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -53,18 +53,6 @@
53
53
  "$ref"
54
54
  ],
55
55
  "additionalProperties": false
56
- },
57
- {
58
- "type": "object",
59
- "properties": {
60
- "$expr": {
61
- "type": "string"
62
- }
63
- },
64
- "required": [
65
- "$expr"
66
- ],
67
- "additionalProperties": false
68
56
  }
69
57
  ]
70
58
  },
@@ -81,9 +69,6 @@
81
69
  },
82
70
  {
83
71
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
84
- },
85
- {
86
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
87
72
  }
88
73
  ]
89
74
  },
@@ -93,8 +78,10 @@
93
78
  "type": "string",
94
79
  "enum": [
95
80
  "start",
81
+ "flex-start",
96
82
  "center",
97
83
  "end",
84
+ "flex-end",
98
85
  "space-between",
99
86
  "space-around",
100
87
  "space-evenly"
@@ -102,9 +89,6 @@
102
89
  },
103
90
  {
104
91
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
105
- },
106
- {
107
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
108
92
  }
109
93
  ]
110
94
  },
@@ -114,17 +98,16 @@
114
98
  "type": "string",
115
99
  "enum": [
116
100
  "start",
101
+ "flex-start",
117
102
  "center",
118
103
  "end",
104
+ "flex-end",
119
105
  "stretch",
120
106
  "baseline"
121
107
  ]
122
108
  },
123
109
  {
124
110
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
125
- },
126
- {
127
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
128
111
  }
129
112
  ]
130
113
  },
@@ -135,16 +118,15 @@
135
118
  "enum": [
136
119
  "auto",
137
120
  "start",
121
+ "flex-start",
138
122
  "center",
139
123
  "end",
124
+ "flex-end",
140
125
  "stretch"
141
126
  ]
142
127
  },
143
128
  {
144
129
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
145
- },
146
- {
147
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
148
130
  }
149
131
  ]
150
132
  },
@@ -160,9 +142,6 @@
160
142
  },
161
143
  {
162
144
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
163
- },
164
- {
165
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
166
145
  }
167
146
  ]
168
147
  },
@@ -173,9 +152,6 @@
173
152
  },
174
153
  {
175
154
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
176
- },
177
- {
178
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
179
155
  }
180
156
  ]
181
157
  },
@@ -189,9 +165,6 @@
189
165
  },
190
166
  {
191
167
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
192
- },
193
- {
194
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
195
168
  }
196
169
  ]
197
170
  },
@@ -213,9 +186,6 @@
213
186
  },
214
187
  {
215
188
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
216
- },
217
- {
218
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
219
189
  }
220
190
  ]
221
191
  },
@@ -226,9 +196,6 @@
226
196
  },
227
197
  {
228
198
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
229
- },
230
- {
231
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
232
199
  }
233
200
  ]
234
201
  },
@@ -246,9 +213,6 @@
246
213
  },
247
214
  {
248
215
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
249
- },
250
- {
251
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
252
216
  }
253
217
  ]
254
218
  },
@@ -266,9 +230,6 @@
266
230
  },
267
231
  {
268
232
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
269
- },
270
- {
271
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
272
233
  }
273
234
  ]
274
235
  },
@@ -286,9 +247,6 @@
286
247
  },
287
248
  {
288
249
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
289
- },
290
- {
291
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
292
250
  }
293
251
  ]
294
252
  },
@@ -306,9 +264,6 @@
306
264
  },
307
265
  {
308
266
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
309
- },
310
- {
311
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
312
267
  }
313
268
  ]
314
269
  },
@@ -319,9 +274,6 @@
319
274
  },
320
275
  {
321
276
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
322
- },
323
- {
324
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
325
277
  }
326
278
  ]
327
279
  },
@@ -332,9 +284,6 @@
332
284
  },
333
285
  {
334
286
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
335
- },
336
- {
337
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
338
287
  }
339
288
  ]
340
289
  },
@@ -345,9 +294,6 @@
345
294
  },
346
295
  {
347
296
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
348
- },
349
- {
350
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
351
297
  }
352
298
  ]
353
299
  },
@@ -358,9 +304,6 @@
358
304
  },
359
305
  {
360
306
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
361
- },
362
- {
363
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
364
307
  }
365
308
  ]
366
309
  },
@@ -371,9 +314,6 @@
371
314
  },
372
315
  {
373
316
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
374
- },
375
- {
376
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
377
317
  }
378
318
  ]
379
319
  },
@@ -384,9 +324,6 @@
384
324
  },
385
325
  {
386
326
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
387
- },
388
- {
389
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
390
327
  }
391
328
  ]
392
329
  },
@@ -397,9 +334,6 @@
397
334
  },
398
335
  {
399
336
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
400
- },
401
- {
402
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
403
337
  }
404
338
  ]
405
339
  },
@@ -410,9 +344,6 @@
410
344
  },
411
345
  {
412
346
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
413
- },
414
- {
415
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
416
347
  }
417
348
  ]
418
349
  },
@@ -423,9 +354,6 @@
423
354
  },
424
355
  {
425
356
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
426
- },
427
- {
428
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
429
357
  }
430
358
  ]
431
359
  },
@@ -436,9 +364,6 @@
436
364
  },
437
365
  {
438
366
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
439
- },
440
- {
441
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
442
367
  }
443
368
  ]
444
369
  },
@@ -449,9 +374,6 @@
449
374
  },
450
375
  {
451
376
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
452
- },
453
- {
454
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
455
377
  }
456
378
  ]
457
379
  },
@@ -462,9 +384,6 @@
462
384
  },
463
385
  {
464
386
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
465
- },
466
- {
467
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
468
387
  }
469
388
  ]
470
389
  },
@@ -475,9 +394,6 @@
475
394
  },
476
395
  {
477
396
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
478
- },
479
- {
480
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
481
397
  }
482
398
  ]
483
399
  },
@@ -488,9 +404,6 @@
488
404
  },
489
405
  {
490
406
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
491
- },
492
- {
493
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
494
407
  }
495
408
  ]
496
409
  },
@@ -501,9 +414,6 @@
501
414
  },
502
415
  {
503
416
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
504
- },
505
- {
506
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
507
417
  }
508
418
  ]
509
419
  },
@@ -514,9 +424,6 @@
514
424
  },
515
425
  {
516
426
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
517
- },
518
- {
519
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
520
427
  }
521
428
  ]
522
429
  },
@@ -527,9 +434,6 @@
527
434
  },
528
435
  {
529
436
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
530
- },
531
- {
532
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
533
437
  }
534
438
  ]
535
439
  },
@@ -540,9 +444,6 @@
540
444
  },
541
445
  {
542
446
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
543
- },
544
- {
545
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
546
447
  }
547
448
  ]
548
449
  },
@@ -557,6 +458,42 @@
557
458
  "bold"
558
459
  ]
559
460
  },
461
+ {
462
+ "type": "string",
463
+ "const": "100"
464
+ },
465
+ {
466
+ "type": "string",
467
+ "const": "200"
468
+ },
469
+ {
470
+ "type": "string",
471
+ "const": "300"
472
+ },
473
+ {
474
+ "type": "string",
475
+ "const": "400"
476
+ },
477
+ {
478
+ "type": "string",
479
+ "const": "500"
480
+ },
481
+ {
482
+ "type": "string",
483
+ "const": "600"
484
+ },
485
+ {
486
+ "type": "string",
487
+ "const": "700"
488
+ },
489
+ {
490
+ "type": "string",
491
+ "const": "800"
492
+ },
493
+ {
494
+ "type": "string",
495
+ "const": "900"
496
+ },
560
497
  {
561
498
  "type": "number",
562
499
  "const": 100
@@ -597,9 +534,6 @@
597
534
  },
598
535
  {
599
536
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
600
- },
601
- {
602
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
603
537
  }
604
538
  ]
605
539
  },
@@ -614,9 +548,6 @@
614
548
  },
615
549
  {
616
550
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
617
- },
618
- {
619
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
620
551
  }
621
552
  ]
622
553
  },
@@ -633,9 +564,6 @@
633
564
  },
634
565
  {
635
566
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
636
- },
637
- {
638
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
639
567
  }
640
568
  ]
641
569
  },
@@ -651,9 +579,6 @@
651
579
  },
652
580
  {
653
581
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
654
- },
655
- {
656
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
657
582
  }
658
583
  ]
659
584
  },
@@ -671,9 +596,6 @@
671
596
  },
672
597
  {
673
598
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
674
- },
675
- {
676
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
677
599
  }
678
600
  ]
679
601
  },
@@ -684,9 +606,6 @@
684
606
  },
685
607
  {
686
608
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
687
- },
688
- {
689
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
690
609
  }
691
610
  ]
692
611
  },
@@ -697,9 +616,6 @@
697
616
  },
698
617
  {
699
618
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
700
- },
701
- {
702
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
703
619
  }
704
620
  ]
705
621
  },
@@ -713,7 +629,14 @@
713
629
  "const": "linear"
714
630
  },
715
631
  "direction": {
716
- "type": "string"
632
+ "anyOf": [
633
+ {
634
+ "type": "string"
635
+ },
636
+ {
637
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
638
+ }
639
+ ]
717
640
  },
718
641
  "stops": {
719
642
  "type": "array",
@@ -721,10 +644,24 @@
721
644
  "type": "object",
722
645
  "properties": {
723
646
  "color": {
724
- "type": "string"
647
+ "anyOf": [
648
+ {
649
+ "type": "string"
650
+ },
651
+ {
652
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
653
+ }
654
+ ]
725
655
  },
726
656
  "position": {
727
- "type": "string"
657
+ "anyOf": [
658
+ {
659
+ "type": "string"
660
+ },
661
+ {
662
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
663
+ }
664
+ ]
728
665
  }
729
666
  },
730
667
  "required": [
@@ -770,19 +707,54 @@
770
707
  "type": "object",
771
708
  "properties": {
772
709
  "offsetX": {
773
- "type": "number"
710
+ "anyOf": [
711
+ {
712
+ "type": "number"
713
+ },
714
+ {
715
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
716
+ }
717
+ ]
774
718
  },
775
719
  "offsetY": {
776
- "type": "number"
720
+ "anyOf": [
721
+ {
722
+ "type": "number"
723
+ },
724
+ {
725
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
726
+ }
727
+ ]
777
728
  },
778
729
  "blur": {
779
- "type": "number"
730
+ "anyOf": [
731
+ {
732
+ "type": "number"
733
+ },
734
+ {
735
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
736
+ }
737
+ ]
780
738
  },
781
739
  "spread": {
782
- "type": "number"
740
+ "anyOf": [
741
+ {
742
+ "type": "number"
743
+ },
744
+ {
745
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
746
+ }
747
+ ]
783
748
  },
784
749
  "color": {
785
- "type": "string"
750
+ "anyOf": [
751
+ {
752
+ "type": "string"
753
+ },
754
+ {
755
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
756
+ }
757
+ ]
786
758
  }
787
759
  },
788
760
  "required": [
@@ -804,19 +776,40 @@
804
776
  "type": "object",
805
777
  "properties": {
806
778
  "width": {
807
- "type": "number"
779
+ "anyOf": [
780
+ {
781
+ "type": "number"
782
+ },
783
+ {
784
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
785
+ }
786
+ ]
808
787
  },
809
788
  "style": {
810
- "type": "string",
811
- "enum": [
812
- "solid",
813
- "dashed",
814
- "dotted",
815
- "none"
789
+ "anyOf": [
790
+ {
791
+ "type": "string",
792
+ "enum": [
793
+ "solid",
794
+ "dashed",
795
+ "dotted",
796
+ "none"
797
+ ]
798
+ },
799
+ {
800
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
801
+ }
816
802
  ]
817
803
  },
818
804
  "color": {
819
- "type": "string"
805
+ "anyOf": [
806
+ {
807
+ "type": "string"
808
+ },
809
+ {
810
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
811
+ }
812
+ ]
820
813
  }
821
814
  },
822
815
  "required": [
@@ -842,16 +835,44 @@
842
835
  "type": "object",
843
836
  "properties": {
844
837
  "rotate": {
845
- "type": "string"
838
+ "anyOf": [
839
+ {
840
+ "type": "string"
841
+ },
842
+ {
843
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
844
+ }
845
+ ]
846
846
  },
847
847
  "scale": {
848
- "type": "number"
848
+ "anyOf": [
849
+ {
850
+ "type": "number"
851
+ },
852
+ {
853
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
854
+ }
855
+ ]
849
856
  },
850
857
  "translateX": {
851
- "type": "number"
858
+ "anyOf": [
859
+ {
860
+ "type": "number"
861
+ },
862
+ {
863
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
864
+ }
865
+ ]
852
866
  },
853
867
  "translateY": {
854
- "type": "number"
868
+ "anyOf": [
869
+ {
870
+ "type": "number"
871
+ },
872
+ {
873
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
874
+ }
875
+ ]
855
876
  }
856
877
  },
857
878
  "additionalProperties": false
@@ -898,9 +919,6 @@
898
919
  },
899
920
  {
900
921
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
901
- },
902
- {
903
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
904
922
  }
905
923
  ]
906
924
  },
@@ -911,9 +929,6 @@
911
929
  },
912
930
  {
913
931
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
914
- },
915
- {
916
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
917
932
  }
918
933
  ]
919
934
  },
@@ -924,9 +939,6 @@
924
939
  },
925
940
  {
926
941
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
927
- },
928
- {
929
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
930
942
  }
931
943
  ]
932
944
  },
@@ -937,9 +949,6 @@
937
949
  },
938
950
  {
939
951
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
940
- },
941
- {
942
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
943
952
  }
944
953
  ]
945
954
  },
@@ -950,9 +959,6 @@
950
959
  },
951
960
  {
952
961
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
953
- },
954
- {
955
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
956
962
  }
957
963
  ]
958
964
  },
@@ -963,9 +969,6 @@
963
969
  },
964
970
  {
965
971
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
966
- },
967
- {
968
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
969
972
  }
970
973
  ]
971
974
  },
@@ -1158,6 +1161,9 @@
1158
1161
  "zIndex": {
1159
1162
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/zIndex"
1160
1163
  },
1164
+ "$style": {
1165
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/$style"
1166
+ },
1161
1167
  "transition": {
1162
1168
  "anyOf": [
1163
1169
  {
@@ -1253,9 +1259,6 @@
1253
1259
  },
1254
1260
  "style": {
1255
1261
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties"
1256
- },
1257
- "condition": {
1258
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
1259
1262
  }
1260
1263
  },
1261
1264
  "required": [
@@ -1275,9 +1278,6 @@
1275
1278
  },
1276
1279
  "style": {
1277
1280
  "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/style"
1278
- },
1279
- "condition": {
1280
- "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/condition"
1281
1281
  }
1282
1282
  },
1283
1283
  "required": [
@@ -1297,9 +1297,6 @@
1297
1297
  },
1298
1298
  "style": {
1299
1299
  "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/style"
1300
- },
1301
- "condition": {
1302
- "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/condition"
1303
1300
  }
1304
1301
  },
1305
1302
  "required": [
@@ -1319,9 +1316,6 @@
1319
1316
  },
1320
1317
  "style": {
1321
1318
  "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/style"
1322
- },
1323
- "condition": {
1324
- "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/condition"
1325
1319
  }
1326
1320
  },
1327
1321
  "required": [
@@ -1341,9 +1335,6 @@
1341
1335
  },
1342
1336
  "style": {
1343
1337
  "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/style"
1344
- },
1345
- "condition": {
1346
- "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/condition"
1347
1338
  }
1348
1339
  },
1349
1340
  "required": [
@@ -1365,17 +1356,11 @@
1365
1356
  },
1366
1357
  {
1367
1358
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
1368
- },
1369
- {
1370
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
1371
1359
  }
1372
1360
  ]
1373
1361
  },
1374
1362
  "style": {
1375
1363
  "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/style"
1376
- },
1377
- "condition": {
1378
- "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/condition"
1379
1364
  }
1380
1365
  },
1381
1366
  "required": [
@@ -1409,17 +1394,11 @@
1409
1394
  },
1410
1395
  {
1411
1396
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
1412
- },
1413
- {
1414
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
1415
1397
  }
1416
1398
  ]
1417
1399
  },
1418
1400
  "style": {
1419
1401
  "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/style"
1420
- },
1421
- "condition": {
1422
- "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/condition"
1423
1402
  }
1424
1403
  },
1425
1404
  "required": [
@@ -1442,9 +1421,6 @@
1442
1421
  },
1443
1422
  {
1444
1423
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
1445
- },
1446
- {
1447
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
1448
1424
  }
1449
1425
  ]
1450
1426
  },
@@ -1455,9 +1431,6 @@
1455
1431
  },
1456
1432
  {
1457
1433
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
1458
- },
1459
- {
1460
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
1461
1434
  }
1462
1435
  ]
1463
1436
  },
@@ -1468,17 +1441,11 @@
1468
1441
  },
1469
1442
  {
1470
1443
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
1471
- },
1472
- {
1473
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
1474
1444
  }
1475
1445
  ]
1476
1446
  },
1477
1447
  "style": {
1478
1448
  "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/style"
1479
- },
1480
- "condition": {
1481
- "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/condition"
1482
1449
  }
1483
1450
  },
1484
1451
  "required": [
@@ -1512,17 +1479,11 @@
1512
1479
  },
1513
1480
  {
1514
1481
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
1515
- },
1516
- {
1517
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
1518
1482
  }
1519
1483
  ]
1520
1484
  },
1521
1485
  "style": {
1522
1486
  "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/style"
1523
- },
1524
- "condition": {
1525
- "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/condition"
1526
1487
  }
1527
1488
  },
1528
1489
  "required": [
@@ -1539,7 +1500,14 @@
1539
1500
  "const": "Icon"
1540
1501
  },
1541
1502
  "name": {
1542
- "type": "string"
1503
+ "anyOf": [
1504
+ {
1505
+ "type": "string"
1506
+ },
1507
+ {
1508
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
1509
+ }
1510
+ ]
1543
1511
  },
1544
1512
  "size": {
1545
1513
  "anyOf": [
@@ -1548,9 +1516,6 @@
1548
1516
  },
1549
1517
  {
1550
1518
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
1551
- },
1552
- {
1553
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
1554
1519
  }
1555
1520
  ]
1556
1521
  },
@@ -1561,17 +1526,11 @@
1561
1526
  },
1562
1527
  {
1563
1528
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
1564
- },
1565
- {
1566
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
1567
1529
  }
1568
1530
  ]
1569
1531
  },
1570
1532
  "style": {
1571
1533
  "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/style"
1572
- },
1573
- "condition": {
1574
- "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/condition"
1575
1534
  }
1576
1535
  },
1577
1536
  "required": [
@@ -1594,9 +1553,6 @@
1594
1553
  },
1595
1554
  {
1596
1555
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
1597
- },
1598
- {
1599
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
1600
1556
  }
1601
1557
  ]
1602
1558
  },
@@ -1607,17 +1563,11 @@
1607
1563
  },
1608
1564
  {
1609
1565
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
1610
- },
1611
- {
1612
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
1613
1566
  }
1614
1567
  ]
1615
1568
  },
1616
1569
  "style": {
1617
1570
  "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/style"
1618
- },
1619
- "condition": {
1620
- "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/condition"
1621
1571
  }
1622
1572
  },
1623
1573
  "required": [
@@ -1640,9 +1590,6 @@
1640
1590
  },
1641
1591
  {
1642
1592
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
1643
- },
1644
- {
1645
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
1646
1593
  }
1647
1594
  ]
1648
1595
  },
@@ -1653,17 +1600,11 @@
1653
1600
  },
1654
1601
  {
1655
1602
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
1656
- },
1657
- {
1658
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
1659
1603
  }
1660
1604
  ]
1661
1605
  },
1662
1606
  "style": {
1663
1607
  "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/style"
1664
- },
1665
- "condition": {
1666
- "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/condition"
1667
1608
  }
1668
1609
  },
1669
1610
  "required": [
@@ -1686,9 +1627,6 @@
1686
1627
  },
1687
1628
  {
1688
1629
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
1689
- },
1690
- {
1691
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
1692
1630
  }
1693
1631
  ]
1694
1632
  },
@@ -1699,17 +1637,11 @@
1699
1637
  },
1700
1638
  {
1701
1639
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
1702
- },
1703
- {
1704
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
1705
1640
  }
1706
1641
  ]
1707
1642
  },
1708
1643
  "style": {
1709
1644
  "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/style"
1710
- },
1711
- "condition": {
1712
- "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/condition"
1713
1645
  }
1714
1646
  },
1715
1647
  "required": [
@@ -1731,17 +1663,11 @@
1731
1663
  },
1732
1664
  {
1733
1665
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
1734
- },
1735
- {
1736
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
1737
1666
  }
1738
1667
  ]
1739
1668
  },
1740
1669
  "style": {
1741
1670
  "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/style"
1742
- },
1743
- "condition": {
1744
- "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/condition"
1745
1671
  }
1746
1672
  },
1747
1673
  "required": [
@@ -1763,9 +1689,6 @@
1763
1689
  },
1764
1690
  {
1765
1691
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
1766
- },
1767
- {
1768
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
1769
1692
  }
1770
1693
  ]
1771
1694
  },
@@ -1774,9 +1697,6 @@
1774
1697
  },
1775
1698
  "style": {
1776
1699
  "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/style"
1777
- },
1778
- "condition": {
1779
- "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/condition"
1780
1700
  }
1781
1701
  },
1782
1702
  "required": [
@@ -1800,9 +1720,6 @@
1800
1720
  },
1801
1721
  {
1802
1722
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
1803
- },
1804
- {
1805
- "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/2"
1806
1723
  }
1807
1724
  ]
1808
1725
  },
@@ -1811,9 +1728,6 @@
1811
1728
  },
1812
1729
  "style": {
1813
1730
  "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/style"
1814
- },
1815
- "condition": {
1816
- "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/condition"
1817
1731
  }
1818
1732
  },
1819
1733
  "required": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@safe-ugc-ui/schema",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -11,16 +11,18 @@
11
11
  },
12
12
  "./ugc-card.schema.json": "./dist/ugc-card.schema.json"
13
13
  },
14
- "files": ["dist"],
15
- "scripts": {
16
- "build": "tsup && node dist/generate.js",
17
- "test": "vitest run"
18
- },
14
+ "files": [
15
+ "dist"
16
+ ],
19
17
  "dependencies": {
20
- "@safe-ugc-ui/types": "workspace:*",
21
- "zod-to-json-schema": "^3.24.0"
18
+ "zod-to-json-schema": "^3.24.0",
19
+ "@safe-ugc-ui/types": "0.4.0"
22
20
  },
23
21
  "devDependencies": {
24
22
  "@types/node": "^22.0.0"
23
+ },
24
+ "scripts": {
25
+ "build": "tsup && node dist/generate.js",
26
+ "test": "vitest run"
25
27
  }
26
- }
28
+ }