@uurtech/jdf-cli 0.1.5 → 0.1.8

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.
@@ -162,9 +162,112 @@
162
162
  { "$ref": "#/definitions/ListElement" },
163
163
  { "$ref": "#/definitions/ShapeElement" },
164
164
  { "$ref": "#/definitions/CollapsibleElement" },
165
- { "$ref": "#/definitions/TocElement" }
165
+ { "$ref": "#/definitions/TocElement" },
166
+ { "$ref": "#/definitions/FormInputElement" },
167
+ { "$ref": "#/definitions/FormTextareaElement" },
168
+ { "$ref": "#/definitions/FormCheckboxElement" },
169
+ { "$ref": "#/definitions/FormSelectElement" },
170
+ { "$ref": "#/definitions/FormSignatureElement" }
166
171
  ]
167
172
  },
173
+ "FormInputElement": {
174
+ "type": "object",
175
+ "required": ["type", "name"],
176
+ "properties": {
177
+ "type": { "const": "input" },
178
+ "name": { "type": "string", "minLength": 1 },
179
+ "inputType": { "type": "string", "enum": ["text","number","email","url","tel","date","time","datetime-local","password","color"] },
180
+ "value": { "type": "string" },
181
+ "placeholder": { "type": "string" },
182
+ "readonly": { "type": "boolean" },
183
+ "required": { "type": "boolean" },
184
+ "pattern": { "type": "string" },
185
+ "label": { "type": "string" },
186
+ "position": { "$ref": "#/definitions/Position" },
187
+ "width": { "type": "number" },
188
+ "height": { "type": "number" },
189
+ "style": { "$ref": "#/definitions/StyleRef" }
190
+ }
191
+ },
192
+ "FormTextareaElement": {
193
+ "type": "object",
194
+ "required": ["type", "name"],
195
+ "properties": {
196
+ "type": { "const": "textarea" },
197
+ "name": { "type": "string", "minLength": 1 },
198
+ "value": { "type": "string" },
199
+ "placeholder": { "type": "string" },
200
+ "readonly": { "type": "boolean" },
201
+ "required": { "type": "boolean" },
202
+ "rows": { "type": "integer", "minimum": 1 },
203
+ "label": { "type": "string" },
204
+ "position": { "$ref": "#/definitions/Position" },
205
+ "width": { "type": "number" },
206
+ "height": { "type": "number" },
207
+ "style": { "$ref": "#/definitions/StyleRef" }
208
+ }
209
+ },
210
+ "FormCheckboxElement": {
211
+ "type": "object",
212
+ "required": ["type", "name"],
213
+ "properties": {
214
+ "type": { "const": "checkbox" },
215
+ "name": { "type": "string", "minLength": 1 },
216
+ "checked": { "type": "boolean" },
217
+ "label": { "type": "string" },
218
+ "readonly": { "type": "boolean" },
219
+ "required": { "type": "boolean" },
220
+ "position": { "$ref": "#/definitions/Position" },
221
+ "width": { "type": "number" },
222
+ "height": { "type": "number" },
223
+ "style": { "$ref": "#/definitions/StyleRef" }
224
+ }
225
+ },
226
+ "FormSelectElement": {
227
+ "type": "object",
228
+ "required": ["type", "name", "options"],
229
+ "properties": {
230
+ "type": { "const": "select" },
231
+ "name": { "type": "string", "minLength": 1 },
232
+ "options": {
233
+ "type": "array",
234
+ "items": {
235
+ "type": "object",
236
+ "required": ["value"],
237
+ "properties": {
238
+ "value": { "type": "string" },
239
+ "label": { "type": "string" }
240
+ }
241
+ }
242
+ },
243
+ "value": { "type": "string" },
244
+ "values": { "type": "array", "items": { "type": "string" } },
245
+ "multiple": { "type": "boolean" },
246
+ "label": { "type": "string" },
247
+ "readonly": { "type": "boolean" },
248
+ "required": { "type": "boolean" },
249
+ "position": { "$ref": "#/definitions/Position" },
250
+ "width": { "type": "number" },
251
+ "height": { "type": "number" },
252
+ "style": { "$ref": "#/definitions/StyleRef" }
253
+ }
254
+ },
255
+ "FormSignatureElement": {
256
+ "type": "object",
257
+ "required": ["type", "name"],
258
+ "properties": {
259
+ "type": { "const": "signature" },
260
+ "name": { "type": "string", "minLength": 1 },
261
+ "value": { "type": "string" },
262
+ "label": { "type": "string" },
263
+ "readonly": { "type": "boolean" },
264
+ "required": { "type": "boolean" },
265
+ "position": { "$ref": "#/definitions/Position" },
266
+ "width": { "type": "number" },
267
+ "height": { "type": "number" },
268
+ "style": { "$ref": "#/definitions/StyleRef" }
269
+ }
270
+ },
168
271
  "TextElement": {
169
272
  "type": "object",
170
273
  "required": ["type", "content"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uurtech/jdf-cli",
3
- "version": "0.1.5",
3
+ "version": "0.1.8",
4
4
  "description": "Command-line tool for the JDF (JSON Document Format) — validate and convert documents.",
5
5
  "license": "MIT",
6
6
  "author": "Ugur Kazdal",
@@ -21,7 +21,11 @@
21
21
  "validator",
22
22
  "ajv",
23
23
  "json-schema",
24
- "pdf-alternative"
24
+ "pdf-alternative",
25
+ "pdf-to-json",
26
+ "rag",
27
+ "ai",
28
+ "ci-cd"
25
29
  ],
26
30
  "type": "module",
27
31
  "main": "./dist/index.js",
@@ -44,12 +48,15 @@
44
48
  "prepublishOnly": "pnpm build"
45
49
  },
46
50
  "dependencies": {
51
+ "@napi-rs/canvas": "^0.1.65",
47
52
  "ajv": "^8.17.1",
48
53
  "ajv-formats": "^3.0.1",
49
- "jszip": "^3.10.1"
54
+ "jszip": "^3.10.1",
55
+ "pdfjs-dist": "^4.10.38"
50
56
  },
51
57
  "devDependencies": {
52
58
  "@jdf/core": "workspace:*",
59
+ "@jdf/pdf-import": "workspace:*",
53
60
  "@types/node": "^22.10.0",
54
61
  "tsup": "^8.3.5",
55
62
  "tsx": "^4.19.2",