You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: schema.json
+46Lines changed: 46 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -372,6 +372,13 @@
372
372
},
373
373
"type": "array"
374
374
},
375
+
"icons": {
376
+
"description": "The icons that represent this element.",
377
+
"items": {
378
+
"$ref": "#/definitions/Icon"
379
+
},
380
+
"type": "array"
381
+
},
375
382
"kind": {
376
383
"enum": [
377
384
"class"
@@ -522,6 +529,13 @@
522
529
},
523
530
"type": "array"
524
531
},
532
+
"icons": {
533
+
"description": "The icons that represent this element.",
534
+
"items": {
535
+
"$ref": "#/definitions/Icon"
536
+
},
537
+
"type": "array"
538
+
},
525
539
"kind": {
526
540
"enum": [
527
541
"mixin"
@@ -714,6 +728,31 @@
714
728
],
715
729
"type": "object"
716
730
},
731
+
"Icon": {
732
+
"description": "Represents an icon for a Package or CustomElement to be used in a specific\ncontext. For example, you can add icons to represent your elements in\ndifferent tools such as documentation viewers, catalogs, or IDEs.\n\nThis interface follows the [Web App Manifest icons\nmember](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Manifest/Reference/icons).",
733
+
"properties": {
734
+
"purpose": {
735
+
"description": "A case-sensitive keyword string that specifies one or more contexts in\nwhich the icon can be used a tool. The value can be a single keyword or\nmultiple space-separated keywords. If omitted, the tool can use the icon\nfor any purpose.\n\nTools use these values as hints to determine where and how an icon is\ndisplayed. For example, a monochrome icon might be used as a badge or\npinned icon with a solid fill, which is visually distinct from a full-color\nlaunch icon. With multiple keywords, say monochrome maskable, the tool\ncan use the icon for any of those purposes. If an unrecognized purpose is\nincluded along with valid values (e.g., monochrome fizzbuzz), the icon can\nstill be used for the valid purposes. However, if only unrecognized\npurposes are specified (e.g., fizzbuzz), then it will be ignored.\n\nValid values include:\n\n- `monochrome` Indicates that the icon is intended to be used as a\n monochrome icon with a solid fill. With this value, a browser discards\n the color information in the icon and uses only the alpha channel as a\n mask over any solid fill.\n\n- `maskable` Indicates that the icon is designed with icon masks and safe\n zone in mind, such that any part of the image outside the safe zone can\n be ignored and masked away.\n\n- `any` Indicates that the icon can be used in any context. This is the\n default value.",
736
+
"type": "string"
737
+
},
738
+
"sizes": {
739
+
"description": "A string that specifies one or more sizes at which the icon file can be\nused. Each size is specified as `<width in pixels>x<height in pixels>`. If\nmultiple sizes are specified, they are separated by spaces; for example,\n`48x48 96x96`. When multiple icons are available, tools may select the\nmost suitable icon for a particular display context. For raster formats\nlike PNG, specifying the exact available sizes is recommended. For vector\nformats like SVG, you can use any to indicate scalability. If `sizes` is\nnot specified, the selection and display of the icon may vary depending on\nthe tools's implementation.",
740
+
"type": "string"
741
+
},
742
+
"src": {
743
+
"description": "A string that specifies the path to the icon image file. The path is\nrelative to the package root. Icon files should be included in the\npackage.",
744
+
"type": "string"
745
+
},
746
+
"type": {
747
+
"description": "A string that specifies the MIME type of the icon. The value should be in\nthe format image/<subtype>, where <subtype> is a specific image format; for\nexample, image/png indicates a PNG image. If omitted, tools typically\ninfer the image type from the file extension.",
748
+
"type": "string"
749
+
}
750
+
},
751
+
"required": [
752
+
"src"
753
+
],
754
+
"type": "object"
755
+
},
717
756
"JavaScriptExport": {
718
757
"properties": {
719
758
"declaration": {
@@ -1114,6 +1153,13 @@
1114
1153
"boolean"
1115
1154
]
1116
1155
},
1156
+
"icons": {
1157
+
"description": "The icons that represent this package.",
1158
+
"items": {
1159
+
"$ref": "#/definitions/Icon"
1160
+
},
1161
+
"type": "array"
1162
+
},
1117
1163
"modules": {
1118
1164
"description": "An array of the modules this package contains.",
0 commit comments