@pacp/spec 3.0.0 → 3.1.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/dist/index.d.cts CHANGED
@@ -5,6 +5,8 @@ type ImageType = "MAIN" | "DETAIL" | "AMBIANCE" | "TECHNICAL" | "OTHER";
5
5
  interface Image {
6
6
  url: string;
7
7
  label?: string;
8
+ alt?: string;
9
+ position?: number;
8
10
  type?: ImageType;
9
11
  }
10
12
  interface Measure {
@@ -31,6 +33,7 @@ interface Option {
31
33
  attribute_id: string;
32
34
  value: ScalarValue;
33
35
  label?: string;
36
+ images?: Image[];
34
37
  }
35
38
  interface LotPolicy {
36
39
  required: boolean;
package/dist/index.d.ts CHANGED
@@ -5,6 +5,8 @@ type ImageType = "MAIN" | "DETAIL" | "AMBIANCE" | "TECHNICAL" | "OTHER";
5
5
  interface Image {
6
6
  url: string;
7
7
  label?: string;
8
+ alt?: string;
9
+ position?: number;
8
10
  type?: ImageType;
9
11
  }
10
12
  interface Measure {
@@ -31,6 +33,7 @@ interface Option {
31
33
  attribute_id: string;
32
34
  value: ScalarValue;
33
35
  label?: string;
36
+ images?: Image[];
34
37
  }
35
38
  interface LotPolicy {
36
39
  required: boolean;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://cdn.jsdelivr.net/npm/@pacp/spec@latest/dist/pacp.schema.json",
4
- "title": "PACP v3.0.0",
4
+ "title": "PACP v3.1.0",
5
5
  "oneOf": [
6
6
  {
7
7
  "$ref": "#/$defs/catalog_document"
@@ -586,6 +586,12 @@
586
586
  },
587
587
  "value": {
588
588
  "$ref": "#/$defs/scalar_value"
589
+ },
590
+ "images": {
591
+ "type": "array",
592
+ "items": {
593
+ "$ref": "#/$defs/image"
594
+ }
589
595
  }
590
596
  }
591
597
  },
@@ -1153,6 +1159,15 @@
1153
1159
  "label": {
1154
1160
  "type": "string"
1155
1161
  },
1162
+ "alt": {
1163
+ "type": "string",
1164
+ "description": "Texto alternativo descritivo da imagem (acessibilidade)."
1165
+ },
1166
+ "position": {
1167
+ "type": "integer",
1168
+ "minimum": 0,
1169
+ "description": "Ordem explícita de exibição; quando presente, consumidores DEVEM ordenar por position crescente."
1170
+ },
1156
1171
  "type": {
1157
1172
  "type": "string",
1158
1173
  "enum": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pacp/spec",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "PACP - Padrão Aberto de Catálogo e Precificação. Schema, profiles e validador para catálogos de produtos.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",