@adobe/helix-config 3.10.1 → 3.11.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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/schemas/sidekick.schema.json +80 -6
- package/types/profile-config.d.ts +63 -2
- package/types/site-config.d.ts +63 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [3.11.0](https://github.com/adobe/helix-config/compare/v3.10.1...v3.11.0) (2024-07-29)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* update sidekick plugin schema ([bac329a](https://github.com/adobe/helix-config/commit/bac329a15045ff49e4d58b1e7dc0289a97e6a67b))
|
|
7
|
+
|
|
1
8
|
## [3.10.1](https://github.com/adobe/helix-config/compare/v3.10.0...v3.10.1) (2024-07-27)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -17,19 +17,93 @@
|
|
|
17
17
|
"type": "object",
|
|
18
18
|
"properties": {
|
|
19
19
|
"id": {
|
|
20
|
-
"type": "string"
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "The unique plugin ID"
|
|
21
22
|
},
|
|
22
23
|
"title": {
|
|
23
|
-
"type": "string"
|
|
24
|
+
"type": "string",
|
|
25
|
+
"description": "The button text"
|
|
24
26
|
},
|
|
25
27
|
"url": {
|
|
26
|
-
"type": "string"
|
|
28
|
+
"type": "string",
|
|
29
|
+
"description": "The URL to open when the button is clicked"
|
|
30
|
+
},
|
|
31
|
+
"containerId": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "The ID of the container to add this plugin to"
|
|
34
|
+
},
|
|
35
|
+
"environments": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"items": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"enum": ["any", "dev", "admin", "edit", "preview", "live", "prod"]
|
|
40
|
+
},
|
|
41
|
+
"description": "The environments to display this plugin in",
|
|
42
|
+
"default": "any"
|
|
43
|
+
},
|
|
44
|
+
"event": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"description": "The name of a custom event to fire when the button is clicked (defaults to id)"
|
|
47
|
+
},
|
|
48
|
+
"excludePaths": {
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
"description": "Exclude the plugin from these paths",
|
|
54
|
+
"examples": [
|
|
55
|
+
"/foo/**",
|
|
56
|
+
"**/:x:**"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"includePaths": {
|
|
60
|
+
"type": "array",
|
|
61
|
+
"items": {
|
|
62
|
+
"type": "string"
|
|
63
|
+
},
|
|
64
|
+
"description": "Include the plugin on these paths (overrides excludePaths)",
|
|
65
|
+
"examples": [
|
|
66
|
+
"/foo/bar/**",
|
|
67
|
+
"**.docx**"
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
"isContainer": {
|
|
71
|
+
"type": "boolean",
|
|
72
|
+
"description": "Turns the plugin into a container for other plugins"
|
|
73
|
+
},
|
|
74
|
+
"isPalette": {
|
|
75
|
+
"type": "boolean",
|
|
76
|
+
"description": "Opens the URL in a palette instead of a new tab",
|
|
77
|
+
"dependentRequired": ["url"]
|
|
78
|
+
},
|
|
79
|
+
"paletteRect": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"description": "he dimensions and position of a palette box",
|
|
82
|
+
"dependentRequired": ["isPalette"]
|
|
83
|
+
},
|
|
84
|
+
"titleI18n": {
|
|
85
|
+
"type": "object",
|
|
86
|
+
"description": "The button text in other supported languages",
|
|
87
|
+
"patternProperties": {
|
|
88
|
+
"^[a-z]{2}(-[A-Z]{2})?$": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"description": "ISO language code (`en` or `en-US`) with translated button text"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"minProperties": 1,
|
|
94
|
+
"additionalProperties": false
|
|
95
|
+
},
|
|
96
|
+
"passConfig": {
|
|
97
|
+
"type": "boolean",
|
|
98
|
+
"description": "Append ref, repo, owner, host, and project as query params on new URL button click"
|
|
99
|
+
},
|
|
100
|
+
"passReferrer": {
|
|
101
|
+
"type": "boolean",
|
|
102
|
+
"description": "Append the referrer URL as a query param on new URL button click"
|
|
27
103
|
}
|
|
28
104
|
},
|
|
29
105
|
"required": [
|
|
30
|
-
"id"
|
|
31
|
-
"title",
|
|
32
|
-
"url"
|
|
106
|
+
"id"
|
|
33
107
|
]
|
|
34
108
|
}
|
|
35
109
|
},
|
|
@@ -288,9 +288,70 @@ export interface SidekickConfig {
|
|
|
288
288
|
[k: string]: unknown;
|
|
289
289
|
}
|
|
290
290
|
export interface SidekickPlugin {
|
|
291
|
+
/**
|
|
292
|
+
* The unique plugin ID
|
|
293
|
+
*/
|
|
291
294
|
id: string;
|
|
292
|
-
|
|
293
|
-
|
|
295
|
+
/**
|
|
296
|
+
* The button text
|
|
297
|
+
*/
|
|
298
|
+
title?: string;
|
|
299
|
+
/**
|
|
300
|
+
* The URL to open when the button is clicked
|
|
301
|
+
*/
|
|
302
|
+
url?: string;
|
|
303
|
+
/**
|
|
304
|
+
* The ID of the container to add this plugin to
|
|
305
|
+
*/
|
|
306
|
+
containerId?: string;
|
|
307
|
+
/**
|
|
308
|
+
* The environments to display this plugin in
|
|
309
|
+
*/
|
|
310
|
+
environments?: string & ('any' | 'dev' | 'admin' | 'edit' | 'preview' | 'live' | 'prod')[];
|
|
311
|
+
/**
|
|
312
|
+
* The name of a custom event to fire when the button is clicked (defaults to id)
|
|
313
|
+
*/
|
|
314
|
+
event?: string;
|
|
315
|
+
/**
|
|
316
|
+
* Exclude the plugin from these paths
|
|
317
|
+
*/
|
|
318
|
+
excludePaths?: string[];
|
|
319
|
+
/**
|
|
320
|
+
* Include the plugin on these paths (overrides excludePaths)
|
|
321
|
+
*/
|
|
322
|
+
includePaths?: string[];
|
|
323
|
+
/**
|
|
324
|
+
* Turns the plugin into a container for other plugins
|
|
325
|
+
*/
|
|
326
|
+
isContainer?: boolean;
|
|
327
|
+
/**
|
|
328
|
+
* Opens the URL in a palette instead of a new tab
|
|
329
|
+
*/
|
|
330
|
+
isPalette?: boolean;
|
|
331
|
+
/**
|
|
332
|
+
* he dimensions and position of a palette box
|
|
333
|
+
*/
|
|
334
|
+
paletteRect?: string;
|
|
335
|
+
/**
|
|
336
|
+
* The button text in other supported languages
|
|
337
|
+
*/
|
|
338
|
+
titleI18n?: {
|
|
339
|
+
/**
|
|
340
|
+
* ISO language code (`en` or `en-US`) with translated button text
|
|
341
|
+
*
|
|
342
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
343
|
+
* via the `patternProperty` "^[a-z]{2}(-[A-Z]{2})?$".
|
|
344
|
+
*/
|
|
345
|
+
[k: string]: string;
|
|
346
|
+
};
|
|
347
|
+
/**
|
|
348
|
+
* Append ref, repo, owner, host, and project as query params on new URL button click
|
|
349
|
+
*/
|
|
350
|
+
passConfig?: boolean;
|
|
351
|
+
/**
|
|
352
|
+
* Append the referrer URL as a query param on new URL button click
|
|
353
|
+
*/
|
|
354
|
+
passReferrer?: boolean;
|
|
294
355
|
[k: string]: unknown;
|
|
295
356
|
}
|
|
296
357
|
export interface Metadata {
|
package/types/site-config.d.ts
CHANGED
|
@@ -295,9 +295,70 @@ export interface SidekickConfig {
|
|
|
295
295
|
[k: string]: unknown;
|
|
296
296
|
}
|
|
297
297
|
export interface SidekickPlugin {
|
|
298
|
+
/**
|
|
299
|
+
* The unique plugin ID
|
|
300
|
+
*/
|
|
298
301
|
id: string;
|
|
299
|
-
|
|
300
|
-
|
|
302
|
+
/**
|
|
303
|
+
* The button text
|
|
304
|
+
*/
|
|
305
|
+
title?: string;
|
|
306
|
+
/**
|
|
307
|
+
* The URL to open when the button is clicked
|
|
308
|
+
*/
|
|
309
|
+
url?: string;
|
|
310
|
+
/**
|
|
311
|
+
* The ID of the container to add this plugin to
|
|
312
|
+
*/
|
|
313
|
+
containerId?: string;
|
|
314
|
+
/**
|
|
315
|
+
* The environments to display this plugin in
|
|
316
|
+
*/
|
|
317
|
+
environments?: string & ('any' | 'dev' | 'admin' | 'edit' | 'preview' | 'live' | 'prod')[];
|
|
318
|
+
/**
|
|
319
|
+
* The name of a custom event to fire when the button is clicked (defaults to id)
|
|
320
|
+
*/
|
|
321
|
+
event?: string;
|
|
322
|
+
/**
|
|
323
|
+
* Exclude the plugin from these paths
|
|
324
|
+
*/
|
|
325
|
+
excludePaths?: string[];
|
|
326
|
+
/**
|
|
327
|
+
* Include the plugin on these paths (overrides excludePaths)
|
|
328
|
+
*/
|
|
329
|
+
includePaths?: string[];
|
|
330
|
+
/**
|
|
331
|
+
* Turns the plugin into a container for other plugins
|
|
332
|
+
*/
|
|
333
|
+
isContainer?: boolean;
|
|
334
|
+
/**
|
|
335
|
+
* Opens the URL in a palette instead of a new tab
|
|
336
|
+
*/
|
|
337
|
+
isPalette?: boolean;
|
|
338
|
+
/**
|
|
339
|
+
* he dimensions and position of a palette box
|
|
340
|
+
*/
|
|
341
|
+
paletteRect?: string;
|
|
342
|
+
/**
|
|
343
|
+
* The button text in other supported languages
|
|
344
|
+
*/
|
|
345
|
+
titleI18n?: {
|
|
346
|
+
/**
|
|
347
|
+
* ISO language code (`en` or `en-US`) with translated button text
|
|
348
|
+
*
|
|
349
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
350
|
+
* via the `patternProperty` "^[a-z]{2}(-[A-Z]{2})?$".
|
|
351
|
+
*/
|
|
352
|
+
[k: string]: string;
|
|
353
|
+
};
|
|
354
|
+
/**
|
|
355
|
+
* Append ref, repo, owner, host, and project as query params on new URL button click
|
|
356
|
+
*/
|
|
357
|
+
passConfig?: boolean;
|
|
358
|
+
/**
|
|
359
|
+
* Append the referrer URL as a query param on new URL button click
|
|
360
|
+
*/
|
|
361
|
+
passReferrer?: boolean;
|
|
301
362
|
[k: string]: unknown;
|
|
302
363
|
}
|
|
303
364
|
export interface Metadata {
|