@limetech/lime-web-components 6.11.0 → 6.12.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
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [6.12.0](https://github.com/Lundalogik/lime-web-components/compare/v6.11.0...v6.12.0) (2026-02-23)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
* **problem:** add `getViews` to `ProblemProvider` ([54b8190](https://github.com/Lundalogik/lime-web-components/commit/54b8190bddd742f6e251dbc06fce216270d81839))
|
|
8
|
+
|
|
1
9
|
## [6.11.0](https://github.com/Lundalogik/lime-web-components/compare/v6.10.0...v6.11.0) (2026-02-20)
|
|
2
10
|
|
|
3
11
|
|
package/dist/problem/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/problem/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/problem/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Action } from '../action';
|
|
2
2
|
import { ComponentDescriptor, Icon } from '../core';
|
|
3
|
+
import { ProblemView } from './view';
|
|
3
4
|
import { Problem } from './problem';
|
|
4
5
|
import { ProblemQueryOptions, ProblemStatus, ProblemType } from './query';
|
|
5
6
|
/**
|
|
@@ -221,5 +222,49 @@ export interface ProblemProvider {
|
|
|
221
222
|
* @see {@link Problem.metadata}
|
|
222
223
|
*/
|
|
223
224
|
getMetadataComponent?(problem: Problem): ComponentDescriptor | undefined;
|
|
225
|
+
/**
|
|
226
|
+
* Returns additional views to display in the problem detail dialog.
|
|
227
|
+
*
|
|
228
|
+
* Each view appears alongside the default detail panel. The provider
|
|
229
|
+
* controls the label and rendered component for every view; the
|
|
230
|
+
* platform decides how to present them (tabs, panels, etc.).
|
|
231
|
+
*
|
|
232
|
+
* When this method is not implemented or returns an empty array, the
|
|
233
|
+
* detail dialog renders without additional views.
|
|
234
|
+
*
|
|
235
|
+
* @param problem - The problem being viewed in the detail dialog.
|
|
236
|
+
* @returns An array of view descriptors. Return an empty array `[]`
|
|
237
|
+
* if no additional views are needed for this problem.
|
|
238
|
+
*
|
|
239
|
+
* @example
|
|
240
|
+
* ```typescript
|
|
241
|
+
* getViews(problem: Problem): ProblemView[] {
|
|
242
|
+
* return [
|
|
243
|
+
* {
|
|
244
|
+
* id: 'raw-email',
|
|
245
|
+
* label: 'Raw Email',
|
|
246
|
+
* icon: 'email',
|
|
247
|
+
* component: {
|
|
248
|
+
* name: 'email-raw-content',
|
|
249
|
+
* props: { problem },
|
|
250
|
+
* },
|
|
251
|
+
* },
|
|
252
|
+
* {
|
|
253
|
+
* id: 'audit-log',
|
|
254
|
+
* label: 'Audit Log',
|
|
255
|
+
* icon: { name: 'history', color: 'gray' },
|
|
256
|
+
* component: {
|
|
257
|
+
* name: 'email-audit-log',
|
|
258
|
+
* props: { problemId: problem.id },
|
|
259
|
+
* },
|
|
260
|
+
* },
|
|
261
|
+
* ];
|
|
262
|
+
* }
|
|
263
|
+
* ```
|
|
264
|
+
*
|
|
265
|
+
* @see {@link ProblemView}
|
|
266
|
+
* @see {@link ComponentDescriptor}
|
|
267
|
+
*/
|
|
268
|
+
getViews?(problem: Problem): ProblemView[];
|
|
224
269
|
}
|
|
225
270
|
//# sourceMappingURL=provider.d.ts.map
|
|
@@ -1 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AE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,YAAY,CAAC,GAAG,SAAS,CAAC,CAAC;IAElE;;;;;;;;;;;;OAYG;IACH,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,EAAE,CAAC;IAEvC;;;;;;;;;;OAUG;IACH,QAAQ,IAAI,WAAW,EAAE,CAAC;IAE1B;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAAC;IAE/C;;;;;;;;;;;OAWG;IACH,WAAW,IAAI,aAAa,EAAE,CAAC;IAE/B;;;;;;;;;OASG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAAC;IAErD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,oBAAoB,CAAC,CAAC,OAAO,EAAE,OAAO,GAAG,mBAAmB,GAAG,SAAS,CAAC;IAEzE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0CG;IACH,QAAQ,CAAC,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,EAAE,CAAC;CAC9C"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ComponentDescriptor, Icon } from '../core';
|
|
2
|
+
/**
|
|
3
|
+
* Describes additional content a provider contributes to the problem
|
|
4
|
+
* detail dialog.
|
|
5
|
+
*
|
|
6
|
+
* Providers return an array of these from {@link ProblemProvider.getViews}
|
|
7
|
+
* to supply extra sections alongside the default detail panel. The platform
|
|
8
|
+
* decides how to present them (tabs, panels, etc.).
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```typescript
|
|
12
|
+
* const view: ProblemView = {
|
|
13
|
+
* id: 'raw-email',
|
|
14
|
+
* label: 'Raw Email',
|
|
15
|
+
* icon: 'email',
|
|
16
|
+
* component: {
|
|
17
|
+
* name: 'email-raw-content',
|
|
18
|
+
* props: { messageId: 'msg-123' },
|
|
19
|
+
* },
|
|
20
|
+
* };
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @see {@link ProblemProvider.getViews}
|
|
24
|
+
* @see {@link ComponentDescriptor}
|
|
25
|
+
*
|
|
26
|
+
* @alpha
|
|
27
|
+
* @group Problem
|
|
28
|
+
*/
|
|
29
|
+
export interface ProblemView {
|
|
30
|
+
/**
|
|
31
|
+
* Stable identifier for this view.
|
|
32
|
+
*
|
|
33
|
+
* Used by the platform to persist user state (e.g. last selected view)
|
|
34
|
+
* and for deep-linking. Must be unique within a single provider.
|
|
35
|
+
*/
|
|
36
|
+
id: string;
|
|
37
|
+
/**
|
|
38
|
+
* Label identifying this view.
|
|
39
|
+
*/
|
|
40
|
+
label: string;
|
|
41
|
+
/**
|
|
42
|
+
* Icon for this view.
|
|
43
|
+
*
|
|
44
|
+
* @see {@link Icon}
|
|
45
|
+
*/
|
|
46
|
+
icon?: string | Icon;
|
|
47
|
+
/**
|
|
48
|
+
* Descriptor for the web component rendered inside this view.
|
|
49
|
+
*/
|
|
50
|
+
component: ComponentDescriptor;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../src/problem/view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,WAAW,WAAW;IACxB;;;;;OAKG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,SAAS,EAAE,mBAAmB,CAAC;CAClC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@limetech/lime-web-components",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.12.0",
|
|
4
4
|
"description": "Lime Web Components",
|
|
5
5
|
"author": "Lime Technologies",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@commitlint/config-conventional": "^20.4.2",
|
|
39
39
|
"@limetech/eslint-config": "^4.0.0",
|
|
40
|
-
"@microsoft/api-extractor": "^7.
|
|
40
|
+
"@microsoft/api-extractor": "^7.57.2",
|
|
41
41
|
"eslint": "^9.39.2",
|
|
42
42
|
"expect-type": "^1.3.0",
|
|
43
43
|
"globals": "^17.3.0",
|