This repository has been archived by the owner on May 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
widget.json
110 lines (103 loc) · 3.73 KB
/
widget.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
{
"name": "laxar-media-widget",
"description": "Displays an image or an external website.",
"integration": {
"technology": "angular",
"type": "widget"
},
"features": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": [ "medium" ],
"properties": {
"medium": {
"type": "object",
"description": "Identifies which media content to display.",
"required": [ "resource" ],
"properties": {
"resource": {
"type": "string",
"format": "topic",
"axRole": "inlet",
"description": "A resource topic under which a document resource can be obtained."
},
"showTitle": {
"type": "boolean",
"description": "If available, show a title above the media content.",
"default": false
},
"showCaption": {
"type": "boolean",
"description": "If available, show a caption below the media content.",
"default": false
},
"onActions": {
"type": "array",
"description": "List of actions, any of which triggers loading media content. If omitted, content is loaded immediately.",
"items": {
"type": "string",
"format": "topic",
"axRole": "inlet",
"description": "An action that triggers loading media content."
}
}
},
"additionalProperties": false
},
"layout": {
"type": "object",
"description": "Tells how the display size is calculated.",
"properties": {
"sizeToContent": {
"type": "boolean",
"description": "If true, the media content determines the rendering size (container otherwise).",
"default": false
}
},
"additionalProperties": false
},
"fallback": {
"type": "object",
"description": "Allow to open content in a new browser-window on specific platforms.",
"properties": {
"i18nHtmlText": {
"type": [
"string",
"object"
],
"description": "Text to display on the fallback-link.",
"default": {
"en": "Please click here to display the document!",
"de": "Bitte klicken, um das Dokument anzuzeigen!"
}
}
}
},
"integration": {
"type": "object",
"description": "Allow to integrate with embedded websites (applicable to website mime-types only).",
"properties": {
"name": {
"type": [ "string", "null" ],
"description": "The window.name that is visible to any embedded website.",
"default": null
}
},
"additionalProperties": false
},
"i18n": {
"description": "Which locale to use for displaying this widget.",
"type": "object",
"properties": {
"locale": {
"type": "string",
"format": "topic",
"axRole": "inlet",
"description": "The topic under which to expect the locale for this widget.",
"default": "default"
}
}
}
}
}
}