@inploi/plugin-job-alerts 0.3.1 → 1.0.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/job-alerts.constants.d.ts +2 -0
- package/dist/job-alerts.d.ts +8 -2
- package/dist/plugin-job-alerts.cjs +733 -57
- package/dist/plugin-job-alerts.js +734 -58
- package/package.json +10 -8
package/dist/job-alerts.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { JobAlertsTranslationTerms } from './lib/i18n';
|
|
2
|
+
|
|
1
3
|
export type JobAlertsConfig = {
|
|
2
4
|
/** Button label */
|
|
3
5
|
label: string;
|
|
@@ -18,13 +20,15 @@ export type JobAlertsPluginParams = {
|
|
|
18
20
|
};
|
|
19
21
|
config: JobAlertsConfig;
|
|
20
22
|
initialFilters: Record<string, string | string[]>;
|
|
23
|
+
terms?: JobAlertsTranslationTerms;
|
|
21
24
|
};
|
|
22
25
|
export declare const createJobAlertsDomManager: () => {
|
|
23
26
|
getRenderTargetElement: () => Element;
|
|
24
27
|
};
|
|
25
|
-
export type
|
|
26
|
-
export declare const jobAlertsPlugin: () => ({
|
|
28
|
+
export type JobAlertsDomManager = ReturnType<typeof createJobAlertsDomManager>;
|
|
29
|
+
export declare const jobAlertsPlugin: () => ({ rpcClient, logger, analytics }: {
|
|
27
30
|
apiClient: import('@inploi/sdk').ApiClient;
|
|
31
|
+
rpcClient: import('@inploi/sdk').InploiRpcClient;
|
|
28
32
|
logger: import('@inploi/sdk').Logger;
|
|
29
33
|
analytics: import('@inploi/sdk').AnalyticsService;
|
|
30
34
|
}) => {
|
|
@@ -38,4 +42,6 @@ export declare const jobAlertsPlugin: () => ({ apiClient, logger, analytics }: {
|
|
|
38
42
|
render: (params: JobAlertsPluginParams) => Promise<void>;
|
|
39
43
|
setFilters: (newFilters: Record<string, string | string[]>) => Record<string, string | string[]>;
|
|
40
44
|
setConfig: (newConfig: JobAlertsConfig | ((oldConfig: JobAlertsConfig) => JobAlertsConfig)) => JobAlertsConfig;
|
|
45
|
+
'~brand': "@inploi/plugin-job-alerts";
|
|
41
46
|
};
|
|
47
|
+
export type jobAlertsPlugin = ReturnType<typeof jobAlertsPlugin>;
|