@inploi/plugin-feedback 5.0.0 → 6.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/cdn/index.js +13 -13
- package/dist/feedback.d.ts +13 -0
- package/dist/plugin-feedback.cjs +307 -221
- package/dist/plugin-feedback.js +307 -221
- package/dist/style/tokens.d.ts +8 -1
- package/dist/style/tokens.test.d.ts +1 -0
- package/package.json +3 -3
package/dist/feedback.d.ts
CHANGED
|
@@ -18,6 +18,15 @@ export type FeedbackPluginParams = {
|
|
|
18
18
|
corners: 'rounded' | 'soft' | 'sharp';
|
|
19
19
|
highlights: 'stroke' | 'fill';
|
|
20
20
|
accent: PaletteParams;
|
|
21
|
+
/**
|
|
22
|
+
* Paint the solid accent fill (the submit button) in this exact CSS colour, with `text` on it, instead of the
|
|
23
|
+
* palette shade generated from `accent`. Text and focus rings keep the palette's shades; `accent` still tints the
|
|
24
|
+
* neutrals. Both values must each be a single CSS colour (as `getComputedStyle` returns for a custom property).
|
|
25
|
+
*/
|
|
26
|
+
exactAccent?: {
|
|
27
|
+
color: string;
|
|
28
|
+
text: string;
|
|
29
|
+
};
|
|
21
30
|
positive: PaletteParams;
|
|
22
31
|
negative: PaletteParams;
|
|
23
32
|
};
|
|
@@ -28,6 +37,8 @@ export type FeedbackPluginParams = {
|
|
|
28
37
|
};
|
|
29
38
|
export interface FeedbackPluginRenderParams extends FeedbackPluginParams {
|
|
30
39
|
host?: HTMLElement;
|
|
40
|
+
/** Explicit render target for widgets that share the same analytics key. */
|
|
41
|
+
target?: HTMLElement;
|
|
31
42
|
}
|
|
32
43
|
export declare const createFeedbackDomManager: (logger: Logger) => {
|
|
33
44
|
getRenderTargetElement: (key: string) => Element;
|
|
@@ -51,6 +62,8 @@ export declare const feedbackPlugin: () => ({ apiClient, logger, analytics }: {
|
|
|
51
62
|
}>;
|
|
52
63
|
/** Renders the Job Alerts Plugin inside the container element. */
|
|
53
64
|
render: (params: FeedbackPluginRenderParams) => Promise<void>;
|
|
65
|
+
/** Release components, portals and document listeners when an owning widget unmounts. */
|
|
66
|
+
destroy: () => void;
|
|
54
67
|
'~brand': "@inploi/plugin-feedback";
|
|
55
68
|
};
|
|
56
69
|
export type FeedbackPlugin = ReturnType<typeof feedbackPlugin>;
|