@jxsuite/schema 6.0.0 → 6.0.2

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.
@@ -1,7 +1,15 @@
1
1
  export const imageConfigSchema = {
2
2
  description: "Image optimization configuration for the project.",
3
3
  properties: {
4
- formats: { items: { type: "string" }, type: "array" },
4
+ formats: {
5
+ description:
6
+ 'Output formats, each one of "avif", "jpeg", "png" or "webp" (default ["avif", "jpeg"]). ' +
7
+ "AVIF and JPEG are lossy; PNG and WebP are written losslessly, so listing WebP produces " +
8
+ "larger files than either. A source with transparency is written as PNG wherever JPEG is " +
9
+ "listed.",
10
+ items: { type: "string" },
11
+ type: "array",
12
+ },
5
13
  lazyLoad: { type: "boolean" },
6
14
  optimize: { type: "boolean" },
7
15
  picture: {
@@ -12,6 +20,10 @@ export const imageConfigSchema = {
12
20
  type: "boolean",
13
21
  },
14
22
  quality: {
23
+ description:
24
+ "Lossy quality per format, 1 to 100 (defaults: avif 65, jpeg 80). The build writes png " +
25
+ "and webp losslessly, so png is never read and webp is read only by the cloudflare " +
26
+ "service, as the quality of its transform URLs (default 80).",
15
27
  properties: {
16
28
  avif: { type: "number" },
17
29
  jpeg: { type: "number" },
@@ -30,7 +42,7 @@ export const imageConfigSchema = {
30
42
  },
31
43
  service: {
32
44
  description:
33
- 'How images are optimized: "build" runs Sharp at build time; "cloudflare" emits ' +
45
+ 'How images are optimized: "build" encodes variants at build time; "cloudflare" emits ' +
34
46
  "/cdn-cgi/image transform URLs served by Cloudflare Image Transformations (requires " +
35
47
  "the feature to be enabled on the serving zone).",
36
48
  enum: ["build", "cloudflare"],
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "dependencies": {
3
- "@bgotink/kdl": "0.4.1",
4
- "@webref/css": "^8.7.8",
3
+ "@bgotink/kdl": "0.4.2",
4
+ "@webref/css": "^8.7.9",
5
5
  "@webref/elements": "^2.9.2",
6
- "@webref/idl": "^3.86.0",
6
+ "@webref/idl": "^3.87.0",
7
7
  "ajv": "^8.20.0",
8
8
  "ajv-formats": "^3.0.1"
9
9
  },
@@ -72,7 +72,7 @@
72
72
  "upgrade": "bun update --latest && bun install"
73
73
  },
74
74
  "type": "module",
75
- "version": "6.0.0",
75
+ "version": "6.0.2",
76
76
  "devDependencies": {
77
77
  "json-schema-to-ts": "^3.1.1"
78
78
  }
@@ -4,6 +4,7 @@
4
4
  "description": "Image optimization configuration for the project.",
5
5
  "properties": {
6
6
  "formats": {
7
+ "description": "Output formats, each one of \"avif\", \"jpeg\", \"png\" or \"webp\" (default [\"avif\", \"jpeg\"]). AVIF and JPEG are lossy; PNG and WebP are written losslessly, so listing WebP produces larger files than either. A source with transparency is written as PNG wherever JPEG is listed.",
7
8
  "items": {
8
9
  "type": "string"
9
10
  },
@@ -20,6 +21,7 @@
20
21
  "type": "boolean"
21
22
  },
22
23
  "quality": {
24
+ "description": "Lossy quality per format, 1 to 100 (defaults: avif 65, jpeg 80). The build writes png and webp losslessly, so png is never read and webp is read only by the cloudflare service, as the quality of its transform URLs (default 80).",
23
25
  "properties": {
24
26
  "avif": {
25
27
  "type": "number"
@@ -44,7 +46,7 @@
44
46
  "type": "array"
45
47
  },
46
48
  "service": {
47
- "description": "How images are optimized: \"build\" runs Sharp at build time; \"cloudflare\" emits /cdn-cgi/image transform URLs served by Cloudflare Image Transformations (requires the feature to be enabled on the serving zone).",
49
+ "description": "How images are optimized: \"build\" encodes variants at build time; \"cloudflare\" emits /cdn-cgi/image transform URLs served by Cloudflare Image Transformations (requires the feature to be enabled on the serving zone).",
48
50
  "enum": [
49
51
  "build",
50
52
  "cloudflare"
package/schema.json CHANGED
@@ -2789,6 +2789,20 @@
2789
2789
  }
2790
2790
  ]
2791
2791
  },
2792
+ "oncsrcchange": {
2793
+ "description": "Event handler for the \"csrcchange\" event.",
2794
+ "oneOf": [
2795
+ {
2796
+ "$ref": "#/$defs/RefObject"
2797
+ },
2798
+ {
2799
+ "$ref": "#/$defs/ExpressionEntry"
2800
+ },
2801
+ {
2802
+ "$ref": "#/$defs/FunctionDef"
2803
+ }
2804
+ ]
2805
+ },
2792
2806
  "oncuechange": {
2793
2807
  "description": "Event handler for the \"cuechange\" event.",
2794
2808
  "oneOf": [
@@ -3503,6 +3517,48 @@
3503
3517
  }
3504
3518
  ]
3505
3519
  },
3520
+ "onicecandidatepairadd": {
3521
+ "description": "Event handler for the \"icecandidatepairadd\" event.",
3522
+ "oneOf": [
3523
+ {
3524
+ "$ref": "#/$defs/RefObject"
3525
+ },
3526
+ {
3527
+ "$ref": "#/$defs/ExpressionEntry"
3528
+ },
3529
+ {
3530
+ "$ref": "#/$defs/FunctionDef"
3531
+ }
3532
+ ]
3533
+ },
3534
+ "onicecandidatepairnominate": {
3535
+ "description": "Event handler for the \"icecandidatepairnominate\" event.",
3536
+ "oneOf": [
3537
+ {
3538
+ "$ref": "#/$defs/RefObject"
3539
+ },
3540
+ {
3541
+ "$ref": "#/$defs/ExpressionEntry"
3542
+ },
3543
+ {
3544
+ "$ref": "#/$defs/FunctionDef"
3545
+ }
3546
+ ]
3547
+ },
3548
+ "onicecandidatepairremove": {
3549
+ "description": "Event handler for the \"icecandidatepairremove\" event.",
3550
+ "oneOf": [
3551
+ {
3552
+ "$ref": "#/$defs/RefObject"
3553
+ },
3554
+ {
3555
+ "$ref": "#/$defs/ExpressionEntry"
3556
+ },
3557
+ {
3558
+ "$ref": "#/$defs/FunctionDef"
3559
+ }
3560
+ ]
3561
+ },
3506
3562
  "oniceconnectionstatechange": {
3507
3563
  "description": "Event handler for the \"iceconnectionstatechange\" event.",
3508
3564
  "oneOf": [
@@ -5407,6 +5463,20 @@
5407
5463
  }
5408
5464
  ]
5409
5465
  },
5466
+ "onssrcchange": {
5467
+ "description": "Event handler for the \"ssrcchange\" event.",
5468
+ "oneOf": [
5469
+ {
5470
+ "$ref": "#/$defs/RefObject"
5471
+ },
5472
+ {
5473
+ "$ref": "#/$defs/ExpressionEntry"
5474
+ },
5475
+ {
5476
+ "$ref": "#/$defs/FunctionDef"
5477
+ }
5478
+ ]
5479
+ },
5410
5480
  "onstalled": {
5411
5481
  "description": "Event handler for the \"stalled\" event.",
5412
5482
  "oneOf": [
@@ -28258,6 +28328,7 @@
28258
28328
  "description": "Image optimization configuration for the project.",
28259
28329
  "properties": {
28260
28330
  "formats": {
28331
+ "description": "Output formats, each one of \"avif\", \"jpeg\", \"png\" or \"webp\" (default [\"avif\", \"jpeg\"]). AVIF and JPEG are lossy; PNG and WebP are written losslessly, so listing WebP produces larger files than either. A source with transparency is written as PNG wherever JPEG is listed.",
28261
28332
  "items": {
28262
28333
  "type": "string"
28263
28334
  },
@@ -28274,6 +28345,7 @@
28274
28345
  "type": "boolean"
28275
28346
  },
28276
28347
  "quality": {
28348
+ "description": "Lossy quality per format, 1 to 100 (defaults: avif 65, jpeg 80). The build writes png and webp losslessly, so png is never read and webp is read only by the cloudflare service, as the quality of its transform URLs (default 80).",
28277
28349
  "properties": {
28278
28350
  "avif": {
28279
28351
  "type": "number"
@@ -28298,7 +28370,7 @@
28298
28370
  "type": "array"
28299
28371
  },
28300
28372
  "service": {
28301
- "description": "How images are optimized: \"build\" runs Sharp at build time; \"cloudflare\" emits /cdn-cgi/image transform URLs served by Cloudflare Image Transformations (requires the feature to be enabled on the serving zone).",
28373
+ "description": "How images are optimized: \"build\" encodes variants at build time; \"cloudflare\" emits /cdn-cgi/image transform URLs served by Cloudflare Image Transformations (requires the feature to be enabled on the serving zone).",
28302
28374
  "enum": [
28303
28375
  "build",
28304
28376
  "cloudflare"
@@ -4,6 +4,7 @@
4
4
  "description": "Image optimization configuration for the project.",
5
5
  "properties": {
6
6
  "formats": {
7
+ "description": "Output formats, each one of \"avif\", \"jpeg\", \"png\" or \"webp\" (default [\"avif\", \"jpeg\"]). AVIF and JPEG are lossy; PNG and WebP are written losslessly, so listing WebP produces larger files than either. A source with transparency is written as PNG wherever JPEG is listed.",
7
8
  "items": {
8
9
  "type": "string"
9
10
  },
@@ -20,6 +21,7 @@
20
21
  "type": "boolean"
21
22
  },
22
23
  "quality": {
24
+ "description": "Lossy quality per format, 1 to 100 (defaults: avif 65, jpeg 80). The build writes png and webp losslessly, so png is never read and webp is read only by the cloudflare service, as the quality of its transform URLs (default 80).",
23
25
  "properties": {
24
26
  "avif": {
25
27
  "type": "number"
@@ -44,7 +46,7 @@
44
46
  "type": "array"
45
47
  },
46
48
  "service": {
47
- "description": "How images are optimized: \"build\" runs Sharp at build time; \"cloudflare\" emits /cdn-cgi/image transform URLs served by Cloudflare Image Transformations (requires the feature to be enabled on the serving zone).",
49
+ "description": "How images are optimized: \"build\" encodes variants at build time; \"cloudflare\" emits /cdn-cgi/image transform URLs served by Cloudflare Image Transformations (requires the feature to be enabled on the serving zone).",
48
50
  "enum": ["build", "cloudflare"],
49
51
  "type": "string"
50
52
  },
@@ -71,6 +71,7 @@ export const EVENT_HANDLER_NAMES: ReadonlySet<string> = new Set([
71
71
  "oncontrollerchange",
72
72
  "oncookiechange",
73
73
  "oncopy",
74
+ "oncsrcchange",
74
75
  "oncuechange",
75
76
  "oncurrententrychange",
76
77
  "oncurrentscreenchange",
@@ -122,6 +123,9 @@ export const EVENT_HANDLER_NAMES: ReadonlySet<string> = new Set([
122
123
  "onhashchange",
123
124
  "onicecandidate",
124
125
  "onicecandidateerror",
126
+ "onicecandidatepairadd",
127
+ "onicecandidatepairnominate",
128
+ "onicecandidatepairremove",
125
129
  "oniceconnectionstatechange",
126
130
  "onicegatheringstatechange",
127
131
  "oninput",
@@ -258,6 +262,7 @@ export const EVENT_HANDLER_NAMES: ReadonlySet<string> = new Set([
258
262
  "onsqueeze",
259
263
  "onsqueezeend",
260
264
  "onsqueezestart",
265
+ "onssrcchange",
261
266
  "onstalled",
262
267
  "onstart",
263
268
  "onstartstreaming",