@inploi/plugin-job-search 2.0.3 → 2.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.
@@ -1,4 +1,4 @@
1
- import { FeedbackPlugin, FeedbackPluginParams } from '@inploi/plugin-feedback';
1
+ import { FeedbackPlugin, FeedbackPluginParams, feedbackPlugin } from '@inploi/plugin-feedback';
2
2
  import { JobAlertsPluginParams, jobAlertsPlugin } from '@inploi/plugin-job-alerts';
3
3
  import { Logger } from '@inploi/sdk';
4
4
  import { TargetedEvent } from 'preact/compat';
@@ -155,12 +155,16 @@ export interface JobSearchPluginParams {
155
155
  };
156
156
  /** Provide a plugin instance to enable job alerts. */
157
157
  alerts?: {
158
- plugin: ReturnType<typeof jobAlertsPlugin>;
158
+ plugin: ReturnType<typeof jobAlertsPlugin> | Promise<{
159
+ jobAlertsPlugin: typeof jobAlertsPlugin;
160
+ }>;
159
161
  params: Pick<JobAlertsPluginParams, 'config'>;
160
162
  };
161
163
  /** Provide a plugin instance to enable feedback. */
162
164
  feedback?: {
163
- plugin: FeedbackPlugin;
165
+ plugin: FeedbackPlugin | Promise<{
166
+ feedbackPlugin: typeof feedbackPlugin;
167
+ }>;
164
168
  params?: {
165
169
  terms?: FeedbackPluginParams['terms'];
166
170
  theme: Partial<FeedbackPluginParams['theme']>;
@@ -215,6 +219,9 @@ export declare const jobSearchPlugin: () => ({ apiClient, logger, analytics }: {
215
219
  id: number;
216
220
  createdAt: string | null;
217
221
  company: {
222
+ /** Hides the property from the UI
223
+ * You can use this property to hard-code searches without allowing the user to modify or view them.
224
+ */
218
225
  name: string;
219
226
  logo: string | null;
220
227
  };
@@ -1,4 +1,4 @@
1
- import { e as ib, h as rb, u as nb, _ as Ju, j as ob, m as sb, p as Km, o as Fs } from "./utils-ca1fcf05.js";
1
+ import { e as ib, h as rb, u as nb, _ as Ju, j as ob, m as sb, p as Km, o as Fs } from "./utils-79c4f2b7.js";
2
2
  var q0 = { exports: {} };
3
3
  (function(Lr, oh) {
4
4
  (function(Bs, Ns) {