document-schema 7.6.0 → 7.7.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.
Files changed (50) hide show
  1. package/README.md +1 -1
  2. package/dist/codec.d.cts +1 -1
  3. package/dist/codec.d.ts +1 -1
  4. package/dist/{content-JIKLIrji.d.cts → content-BlTHCDvF.d.cts} +192 -46
  5. package/dist/{content-PPcQWl8e.d.ts → content-BqSMRlSK.d.ts} +192 -46
  6. package/dist/content-json-schema-defs.cjs +32 -0
  7. package/dist/content-json-schema-defs.js +32 -0
  8. package/dist/content.cjs +37 -11
  9. package/dist/content.d.cts +2 -2
  10. package/dist/content.d.ts +2 -2
  11. package/dist/content.js +33 -12
  12. package/dist/decompose.d.cts +2 -2
  13. package/dist/decompose.d.ts +2 -2
  14. package/dist/definitions.cjs +1 -10
  15. package/dist/definitions.d.cts +4 -4
  16. package/dist/definitions.d.ts +4 -4
  17. package/dist/definitions.js +2 -11
  18. package/dist/factor-styles.cjs +1 -0
  19. package/dist/factor-styles.d.cts +1 -1
  20. package/dist/factor-styles.d.ts +1 -1
  21. package/dist/factor-styles.js +1 -0
  22. package/dist/flatten.cjs +1 -0
  23. package/dist/flatten.d.cts +1 -1
  24. package/dist/flatten.d.ts +1 -1
  25. package/dist/flatten.js +1 -0
  26. package/dist/index.cjs +5 -0
  27. package/dist/index.d.cts +4 -4
  28. package/dist/index.d.ts +4 -4
  29. package/dist/index.js +2 -2
  30. package/dist/{package-node-duDMdOvH.d.cts → package-node-Btm9VsaX.d.cts} +43 -30
  31. package/dist/{package-node-B4CHgiVQ.d.ts → package-node-DPm8hWYt.d.ts} +43 -30
  32. package/dist/package-node.d.cts +1 -1
  33. package/dist/package-node.d.ts +1 -1
  34. package/dist/package.cjs +1 -0
  35. package/dist/package.d.cts +11 -6
  36. package/dist/package.d.ts +11 -6
  37. package/dist/package.js +2 -1
  38. package/dist/schema-io.cjs +2 -2
  39. package/dist/schema-io.d.cts +1 -1
  40. package/dist/schema-io.d.ts +1 -1
  41. package/dist/schema-io.js +2 -2
  42. package/dist/{style-BGMcYrD2.d.cts → style-D06NwxAJ.d.cts} +1 -1
  43. package/dist/{style-BGMcYrD2.d.ts → style-D06NwxAJ.d.ts} +1 -1
  44. package/dist/style.d.cts +1 -1
  45. package/dist/style.d.ts +1 -1
  46. package/dist/text-layout.d.cts +1 -1
  47. package/dist/text-layout.d.ts +1 -1
  48. package/package.json +1 -1
  49. package/schemas/content-document.schema.json +171 -13
  50. package/schemas/document-tree.schema.json +87 -3
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://cdn.jsdelivr.net/npm/document-schema.js@7.6.0/schemas/document-tree.schema.json",
3
+ "$id": "https://cdn.jsdelivr.net/npm/document-schema.js@7.7.0/schemas/document-tree.schema.json",
4
4
  "oneOf": [
5
5
  {
6
6
  "type": "object",
@@ -576,6 +576,30 @@
576
576
  "additionalProperties": false
577
577
  }
578
578
  },
579
+ "names": {
580
+ "type": "array",
581
+ "items": {
582
+ "type": "object",
583
+ "properties": {
584
+ "name": {
585
+ "type": "string"
586
+ },
587
+ "refersTo": {
588
+ "type": "string"
589
+ },
590
+ "scopeSheetIndex": {
591
+ "type": "integer",
592
+ "minimum": 0,
593
+ "maximum": 9007199254740991
594
+ }
595
+ },
596
+ "required": [
597
+ "name",
598
+ "refersTo"
599
+ ],
600
+ "additionalProperties": false
601
+ }
602
+ },
579
603
  "children": {
580
604
  "type": "array",
581
605
  "items": {
@@ -1580,6 +1604,29 @@
1580
1604
  ],
1581
1605
  "additionalProperties": false
1582
1606
  },
1607
+ "ContentImageOriginal": {
1608
+ "type": "object",
1609
+ "properties": {
1610
+ "filter": {
1611
+ "type": "string",
1612
+ "enum": [
1613
+ "jbig2",
1614
+ "jpeg2000"
1615
+ ]
1616
+ },
1617
+ "base64": {
1618
+ "type": "string"
1619
+ },
1620
+ "jbig2GlobalsBase64": {
1621
+ "type": "string"
1622
+ }
1623
+ },
1624
+ "required": [
1625
+ "filter",
1626
+ "base64"
1627
+ ],
1628
+ "additionalProperties": false
1629
+ },
1583
1630
  "ContentImageBlock": {
1584
1631
  "type": "object",
1585
1632
  "properties": {
@@ -1610,6 +1657,9 @@
1610
1657
  "altText": {
1611
1658
  "type": "string"
1612
1659
  },
1660
+ "original": {
1661
+ "$ref": "#/$defs/ContentImageOriginal"
1662
+ },
1613
1663
  "floatPosition": {
1614
1664
  "$ref": "#/$defs/ContentFloatPosition"
1615
1665
  },
@@ -1799,7 +1849,7 @@
1799
1849
  ]
1800
1850
  },
1801
1851
  "document": {
1802
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.6.0/schemas/content-document.schema.json"
1852
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.7.0/schemas/content-document.schema.json"
1803
1853
  },
1804
1854
  "frame": {
1805
1855
  "$ref": "#/$defs/Box"
@@ -2374,6 +2424,34 @@
2374
2424
  ],
2375
2425
  "additionalProperties": false
2376
2426
  },
2427
+ "ContentFont": {
2428
+ "type": "object",
2429
+ "properties": {
2430
+ "bold": {
2431
+ "type": "boolean"
2432
+ },
2433
+ "italic": {
2434
+ "type": "boolean"
2435
+ },
2436
+ "underline": {
2437
+ "type": "boolean"
2438
+ },
2439
+ "strike": {
2440
+ "type": "boolean"
2441
+ },
2442
+ "fontFamily": {
2443
+ "type": "string"
2444
+ },
2445
+ "sizePt": {
2446
+ "type": "number",
2447
+ "exclusiveMinimum": 0
2448
+ },
2449
+ "color": {
2450
+ "$ref": "#/$defs/Color"
2451
+ }
2452
+ },
2453
+ "additionalProperties": false
2454
+ },
2377
2455
  "ContentSheetCell": {
2378
2456
  "type": "object",
2379
2457
  "properties": {
@@ -2399,6 +2477,9 @@
2399
2477
  "numberFormatCode": {
2400
2478
  "type": "string"
2401
2479
  },
2480
+ "font": {
2481
+ "$ref": "#/$defs/ContentFont"
2482
+ },
2402
2483
  "runs": {
2403
2484
  "type": "array",
2404
2485
  "items": {
@@ -3467,6 +3548,9 @@
3467
3548
  "altText": {
3468
3549
  "type": "string"
3469
3550
  },
3551
+ "original": {
3552
+ "$ref": "#/$defs/ContentImageOriginal"
3553
+ },
3470
3554
  "floatPosition": {
3471
3555
  "$ref": "#/$defs/ContentFloatPosition"
3472
3556
  },
@@ -3994,7 +4078,7 @@
3994
4078
  ]
3995
4079
  },
3996
4080
  "document": {
3997
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.6.0/schemas/content-document.schema.json"
4081
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.7.0/schemas/content-document.schema.json"
3998
4082
  },
3999
4083
  "frame": {
4000
4084
  "$ref": "#/$defs/Box"