New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@openfin/cloud-api

Package Overview
Dependencies
Maintainers
0
Versions
471
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openfin/cloud-api - npm Package Compare versions

Comparing version

to
0.0.1-alpha.7fb525b

336

dist/index.d.ts
import * as OpenFin from '@openfin/core';
import OpenFin__default from '@openfin/core';
import * as NotificationsTypes from '@openfin/workspace/notifications';
import { CLIDispatchedSearchResult, CLISearchListenerRequest, CLISearchListenerResponse, CLISearchResponse, SearchResult as SearchResult$1 } from '@openfin/workspace';

@@ -301,45 +300,306 @@ /**

type ActionedSearchResult = CLIDispatchedSearchResult;
type SearchActionResponse = {
url: string;
/**
* Function that is called when the Search Agent receives an action from Here™’s search UI that has been triggered by the user on one of the Agent’s search results.
*
* @param action The action that was triggered.
* @param result The search result that the action was triggered on.
*
* @returns Result that includes the URL that Here™ should navigate to, or `undefined` if no navigation is required.
*/
type OnActionListener = (action: SearchAction, result: SearchResult) => SearchResultActionResponse | Promise<SearchResultActionResponse>;
/**
* Function that is called when the Search Agent receives a query from Here™’s search UI
*
* @param request Search request data that includes the query.
*
* @returns Search response data that includes the search results.
*/
type OnSearchListener = (request: SearchListenerRequest) => SearchResponse | Promise<SearchResponse>;
/**
* An action that can be triggered by a user on a search result returned by a Search Agent.
*
* Actions are displayed as buttons alongside search results in Here™’s search UI. That is, except for the first action, which is hidden as it is triggered automatically when the user selects the search result.
*/
type SearchAction = {
/**
* URL or data URI of an icon that will be displayed within the action button when Here™ is in Light mode.
*/
darkIcon?: string;
/**
* A fuller description of the action that will be displayed in Here™’s search UI when the user hovers over the action button.
*/
description?: string;
/**
* URL or data URI of an icon that will be displayed within the action button when Here™ is in Dark mode.
*/
lightIcon?: string;
/**
* Internal identifier for the action which is used to identify the action in the {@link OnActionListener}.
*/
name: string;
/**
* Compact title of the action displayed within the action button.
*/
title?: string;
};
type SearchListenerRequest = CLISearchListenerRequest;
type SearchListenerResponse = CLISearchListenerResponse;
type SearchProvider = {
readonly configData: unknown;
hideWindow: () => Promise<void>;
readonly id: string;
/**
* A Search Agent returns search results to Here™’s search UI in response to user input, and acts on the user’s actions regarding those results.
*/
type SearchAgent = {
/**
* Sets whether or not the Search Agent is ready to provide search results.
*
* When a Search Agent is first registered, it will not receive search queries until it is set as ready by calling this function.
*
* @param ready Whether the Search Agent is ready to provide search results (defaults to `true`).
*/
isReady: (ready?: boolean) => Promise<void>;
readonly name: string;
showWindow: (options?: ShowWindowOptions) => Promise<void>;
};
type SearchProviderRegistrationConfig = {
onAction(result: ActionedSearchResult): Promise<SearchActionResponse | undefined>;
onSearch(request: SearchListenerRequest, response: SearchListenerResponse): Promise<SearchResponse>;
/**
* The Search Agent’s configuration data as configured in the Here™ Admin Console.
*
* @typeParam T Type definition for the `customData` property, containing any custom configuration data specific to the Search Agent.
*/
type SearchAgentConfigurationData<T> = {
/**
* Custom configuration data specific to the Search Agent.
*/
customData?: T;
/**
* Optional description of the Search Agent.
*/
description?: string;
/**
* Unique identifier for the Search Agent.
*/
id: string;
/**
* The display title of the Search Agent.
*/
title: string;
/**
* The URL of the Search Agent.
*/
url: string;
};
type SearchResponse = CLISearchResponse;
type SearchResult = SearchResult$1;
type ShowWindowOptions = {
center?: boolean;
height?: number;
left?: number;
resizable?: boolean;
top?: number;
width?: number;
/**
* Configuration provided when registering a Search Agent.
*/
type SearchAgentRegistrationConfig = {
/**
* This listener is called when the Search Agent receives an action from Here™’s search UI that has been triggered by the user on one of the Agent’s search results.
*
* The listener returns a response back to Here™ that includes a URL to navigate to.
*/
onAction: OnActionListener;
/**
* This listener is called when the Search Agent receives a query from Here™’s search UI and returns relevant search results.
*
* Note: When the Search Agent is not ready this listener will not be called.
*/
onSearch: OnSearchListener;
};
/**
* Search request data provided to the {@link OnSearchListener}.
*/
type SearchListenerRequest = {
/**
* Provides additional context for the search request.
*/
context: SearchRequestContext;
/**
* The query entered by the user in Here™’s search UI.
*/
query: string;
/**
* Provide this signal to any `fetch` requests executed in the {@link OnSearchListener} function as a result of this search request, so that they will be automatically cancelled if a new search request is received before they complete.
*/
signal: AbortSignal;
};
/**
* Context data included with a search request.
*/
type SearchRequestContext = {
/**
* The page number of the search results to return.
*/
pageNumber: number;
/**
* The number of search results to return per page.
*/
pageSize: number;
/**
* The unique ID of the query.
*/
queryId: string;
};
/**
* Return type of the {@link OnSearchListener}.
*/
type SearchResponse = {
/**
* The search results to display in Here™’s search UI.
*/
results: SearchResult[];
};
/**
* A search result returned by a Search Agent in response to a search request.
*/
type SearchResult = {
/**
* Actions that can be triggered by the user against the search result.
*/
actions: SearchAction[];
/**
* Additional data that can be used by the {@link OnActionListener} when an action is triggered.
*/
data?: Record<string, unknown>;
/**
* URL or data URI of an icon that will be displayed with the search result in Here™’s search UI.
*/
icon?: string;
/**
* Unique identifier for the search result.
*/
key: string;
/**
* Secondary text that will be displayed with the search result in Here™’s search UI.
*/
label?: string;
/**
* Primary text that will be displayed with the search result in Here™’s search UI.
*/
title: string;
};
/**
* Return type of the {@link OnActionListener}.
*/
type SearchResultActionResponse = {
/**
* URL that Here™ should navigate to.
*/
url: string;
} | undefined;
declare const register: (config: SearchProviderRegistrationConfig) => Promise<SearchProvider>;
/**
* Retrieves the Search Agent’s configuration data, as has been configured in the Here™ Admin Console.
*
* @returns A promise that resolves with an object containing properties that match the Search Agent’s configuration.
*
* @example Retrieving the Search Agent’s configuration data:
* ```ts
* import { Search } from "@openfin/cloud-api";
*
* // Get the configuration data
* const configData = await Search.getAgentConfiguration<{ customField1: string, customField2: string }>();
*
* // Pick out the standard configuration properties
* const { customData, description, id, title, url } = configData;
*
* // Pick out the custom configuration properties
* if (customData) {
* const { customField1, customField2 } = customData;
* }
* ```
*/
declare function getAgentConfiguration<T extends object>(): Promise<SearchAgentConfigurationData<T>>;
/**
* Registers a Search Agent that will provide search results to Here™’s search UI in response to user input and act on the user’s actions regarding those results.
*
* @param config The configuration for the Search Agent.
*
* @returns A promise that resolves with the Search Agent.
*
* @example Registering a basic Search Agent:
* ```ts
* import { Search } from "@openfin/cloud-api";
*
* // Handle incoming action and return a response that includes the URL to navigate to
* const onAction: Search.OnActionListener = (action, result) => {
* const { name } = action;
* const { data, key } = result;
* const { owner, searchResultHostUrl } = data as { owner: { id: string, name: string }, searchResultHostUrl: string };
* const { id: ownerId } = owner;
* console.log(`Action "${name}" triggered on search result with key "${key}"`);
* switch (name) {
* case "view-owner":
* return { url: `${searchResultHostUrl}/people/${ownerId}` };
* case "view-result":
* return { url: `${searchResultHostUrl}/record/${key}` };
* default:
* console.warn(`Unknown action: ${name}`);
* }
* };
*
* // Handle incoming search request and return relevant search results
* const onSearch: Search.OnSearchListener = ({ context, query, signal }) => {
* const { pageNumber, pageSize } = context;
* try {
* let results: Search.SearchResult[] = [];
* const url = `https://my-web-app.com/search?q=${query}&page=${pageNumber}&limit=${pageSize}`;
* const response = await fetch(url, { signal });
* if (!response.ok) {
* throw new Error(`Request failed: ${response.status}`);
* }
* const { searchResults } = await response.json();
* results = searchResults.map((result) => {
* const { iconUrl, id: key, owner, subTitle, title } = result;
* const { name: ownerName } = owner as { id: string, name: string };
* return {
* actions: [
* {
* name: "view-result",
* description: `Go to ${title} in My Web App`,
* },
* {
* name: "view-owner",
* description: `Go to ${ownerName} in My Web App`,
* title: "View Owner",
* },
* ],
* data: {
* owner,
* searchResultHostUrl: `https://my-web-app.com`,
* },
* icon: iconUrl,
* key,
* label: subTitle,
* title,
* };
* });
* console.log("Returning results", results);
* return { results };
* } catch (err) {
* if ((err as Error).name === "AbortError") {
* // Ignore errors for cancelled requests
* return { results: [] };
* }
* throw err;
* }
* };
*
* // Register the search agent
* const searchAgent = await Search.register({ onAction, onSearch });
*
* // Set the Search Agent as ready to receive search requests
* await searchAgent.isReady();
* ```
*/
declare function register(config: SearchAgentRegistrationConfig): Promise<SearchAgent>;
type search_ActionedSearchResult = ActionedSearchResult;
type search_SearchActionResponse = SearchActionResponse;
type search_SearchListenerRequest = SearchListenerRequest;
type search_SearchListenerResponse = SearchListenerResponse;
type search_SearchProvider = SearchProvider;
type search_SearchProviderRegistrationConfig = SearchProviderRegistrationConfig;
type search_SearchResponse = SearchResponse;
type search_SearchResult = SearchResult;
type search_ShowWindowOptions = ShowWindowOptions;
declare const search_register: typeof register;
declare namespace search {
export { type search_ActionedSearchResult as ActionedSearchResult, type search_SearchActionResponse as SearchActionResponse, type search_SearchListenerRequest as SearchListenerRequest, type search_SearchListenerResponse as SearchListenerResponse, type search_SearchProvider as SearchProvider, type search_SearchProviderRegistrationConfig as SearchProviderRegistrationConfig, type search_SearchResponse as SearchResponse, type search_SearchResult as SearchResult, type search_ShowWindowOptions as ShowWindowOptions, search_register as register };
type index_OnActionListener = OnActionListener;
type index_OnSearchListener = OnSearchListener;
type index_SearchAction = SearchAction;
type index_SearchAgent = SearchAgent;
type index_SearchAgentConfigurationData<T> = SearchAgentConfigurationData<T>;
type index_SearchAgentRegistrationConfig = SearchAgentRegistrationConfig;
type index_SearchListenerRequest = SearchListenerRequest;
type index_SearchRequestContext = SearchRequestContext;
type index_SearchResponse = SearchResponse;
type index_SearchResult = SearchResult;
type index_SearchResultActionResponse = SearchResultActionResponse;
declare const index_getAgentConfiguration: typeof getAgentConfiguration;
declare const index_register: typeof register;
declare namespace index {
export { type index_OnActionListener as OnActionListener, type index_OnSearchListener as OnSearchListener, type index_SearchAction as SearchAction, type index_SearchAgent as SearchAgent, type index_SearchAgentConfigurationData as SearchAgentConfigurationData, type index_SearchAgentRegistrationConfig as SearchAgentRegistrationConfig, type index_SearchListenerRequest as SearchListenerRequest, type index_SearchRequestContext as SearchRequestContext, type index_SearchResponse as SearchResponse, type index_SearchResult as SearchResult, type index_SearchResultActionResponse as SearchResultActionResponse, index_getAgentConfiguration as getAgentConfiguration, index_register as register };
}

@@ -353,2 +613,2 @@

export { type AppPermissions, type LaunchContentOptions, search as Search, type FlannelChannelProvider as __INTERNAL_FlannelChannelProvider, type FlannelClearNotificationRequest as __INTERNAL_FlannelClearNotificationRequest, type FlannelClearNotificationResponse as __INTERNAL_FlannelClearNotificationResponse, type FlannelCreateNotificationRequest as __INTERNAL_FlannelCreateNotificationRequest, type FlannelCreateNotificationResponse as __INTERNAL_FlannelCreateNotificationResponse, type FlannelUpdateNotificationRequest as __INTERNAL_FlannelUpdateNotificationRequest, type FlannelUpdateNotificationResponse as __INTERNAL_FlannelUpdateNotificationResponse, getAppSettings, getAppUserPermissions, getAppUserSettings, getNotificationsClient, launchContent, launchSupertab, launchWorkspace, setAppUserSettings };
export { type AppPermissions, type LaunchContentOptions, index as Search, type FlannelChannelProvider as __INTERNAL_FlannelChannelProvider, type FlannelClearNotificationRequest as __INTERNAL_FlannelClearNotificationRequest, type FlannelClearNotificationResponse as __INTERNAL_FlannelClearNotificationResponse, type FlannelCreateNotificationRequest as __INTERNAL_FlannelCreateNotificationRequest, type FlannelCreateNotificationResponse as __INTERNAL_FlannelCreateNotificationResponse, type FlannelUpdateNotificationRequest as __INTERNAL_FlannelUpdateNotificationRequest, type FlannelUpdateNotificationResponse as __INTERNAL_FlannelUpdateNotificationResponse, getAppSettings, getAppUserPermissions, getAppUserSettings, getNotificationsClient, launchContent, launchSupertab, launchWorkspace, setAppUserSettings };

2

dist/index.js

@@ -1,2 +0,2 @@

var v=Object.defineProperty;var E=(n,o)=>{for(var e in o)v(n,e,{get:o[e],enumerable:!0})};var t="@openfin/cloud-api";async function r(){try{return await window.fin.View.getCurrentSync().getInfo(),!0}catch{return!1}}function y(n){if(n.name.startsWith("internal-generated"))throw new Error("Cannot extract app UUID from identity");return/\/[\d,a-z-]{36}$/.test(n.name)?n.name.split("/")[0]||"":n.name}var c="@openfin/cloud-api";function F(){return`${window.fin.me.uuid}-cloud-api-notifications`}var d=null;async function U(){return d||(d=P()),d}async function P(){if(!window.fin)throw new Error(`\`${c}\`: \`getNotificationsClient\` cannot be used in a non-OpenFin environment`);if(await r()===!1)throw new Error(`${c}: \`getNotificationsClient\` cannot be used in a non-OpenFin environment`);y(window.fin.me);let n=await S();console.log(n),n.register("openfin-cloud-event",e=>{for(let i of o.get(e.type)??[])typeof e.payload.timestamp=="string"&&(e.payload.timestamp=new Date(e.payload.timestamp)),i(e.payload)});let o=new Map;return{addEventListener:(e,i)=>{let a=o.get(e)||new Set;a.add(i),o.set(e,a)},removeEventListener:(e,i)=>{let a=o.get(e);if(!a){console.warn(`\`${c}\`: Listener was not found for event. Did you pass a function directly instead of a reference or forget to add the listener?`,e);return}a.delete(i)===!1&&console.warn(`\`${c}\`: Listener was not found for event. Did you pass a function directly instead of a reference?`,e)},update:async e=>(await n.dispatch("openfin-cloud-update-notification",{version:1,payload:{notification:e}})).payload.response,clear:async e=>(await n.dispatch("openfin-cloud-clear-notification",{version:1,payload:{notificationId:e}})).payload.response,createNotification:async e=>(e.id&&console.warn(`\`${c}\`: The \`id\` property is not supported and will be ignored. If you need to use the \`id\` property, you should use the \`id\` property of the returned notification object.`),(await n.dispatch("openfin-cloud-create-notification",{version:1,payload:{notification:{...e,id:void 0}}})).payload.response)}}var u=null;async function S(){return u||(u=$()),u}async function $(){let n=await window.fin.InterApplicationBus.Channel.connect(F());return n.onDisconnection(o=>{console.warn(`\`${c}\`: Channel Disconnected from`,o,"Reconnecting..."),u=null}),n}var f;function b(){return`${window.fin.me.uuid}-client-api`}async function s(){return f||(f=window.fin.InterApplicationBus.Channel.connect(b())),f}async function q(){if(!window.fin)throw new Error(`\`${t}\`: \`getAppSettings\` cannot be used in a non-OpenFin environment`);if(await r()===!1)throw new Error(`${t}: \`getAppSettings\` cannot be used in a non-OpenFin environment`);return(await s()).dispatch("get-settings")}async function D(){if(!window.fin)throw new Error(`\`${t}\`: \`getAppUserSettings\` cannot be used in a non-OpenFin environment`);if(await r()===!1)throw new Error(`${t}: \`getAppUserSettings\` cannot be used in a non-OpenFin environment`);return(await s()).dispatch("get-user-settings")}async function V(n){if(!window.fin)throw new Error(`\`${t}\`: \`setAppUserSettings\` cannot be used in a non-OpenFin environment`);if(await r()===!1)throw new Error(`${t}: \`setAppUserSettings\` cannot be used in a non-OpenFin environment`);return(await s()).dispatch("set-user-settings",n)}async function B(){if(!window.fin)throw new Error(`\`${t}\`: \`getAppUserPermissions\` cannot be used in a non-OpenFin environment`);if(await r()===!1)throw new Error(`${t}: \`getAppUserPermissions\` cannot be used in a non-OpenFin environment`);return(await s()).dispatch("get-user-permissions")}async function G(n,o){if(!window.fin)throw new Error(`\`${t}\`: \`launchContent\` cannot be used in a non-OpenFin environment`);if(await r()===!1)throw new Error(`${t}: \`launchContent\` cannot be used in a outside of an OpenFin View context`);let e=await s();try{await e.dispatch("launch-content",{id:n,options:o})}catch(i){switch(i instanceof Error?i.message:String(i)){case"UnableToLookup":throw new Error(`${t}: \`launchContent\` was unable to lookup content with id: ${n}`);case"UnableToLaunch":throw new Error(`${t}: \`launchContent\` was unable to launch content with id: ${n}`);case"NoContentFound":throw new Error(`${t}: \`launchContent\` did not find content with id: ${n}`);default:throw new Error(`${t}: \`launchContent\` was unable to look up or launch content with id: ${n} or the content did not exist.`)}}}async function K(n){if(!window.fin)throw new Error(`\`${t}\`: \`launchSupertab\` cannot be used in a non-OpenFin environment`);if(await r()===!1)throw new Error(`${t}: \`launchSupertab\` cannot be used in a outside of an OpenFin View context`);let o=await s();try{await o.dispatch("launch-supertab",{id:n})}catch(e){switch(e instanceof Error?e.message:String(e)){case"UnableToLookup":throw new Error(`${t}: \`launchSupertab\` was unable to lookup content with id: ${n}`);case"UnableToLaunch":throw new Error(`${t}: \`launchSupertab\` was unable to launch content with id: ${n}`);case"NoContentFound":throw new Error(`${t}: \`launchSupertab\` did not find content with id: ${n}`);default:throw new Error(`${t}: \`launchSupertab\` was unable to look up or launch content with id: ${n} or the content did not exist.`)}}}async function j(n){if(!window.fin)throw new Error(`\`${t}\`: \`launchWorkspace\` cannot be used in a non-OpenFin environment`);if(await r()===!1)throw new Error(`${t}: \`launchWorkspace\` cannot be used in a outside of an OpenFin View context`);let o=await s();try{await o.dispatch("launch-workspace",{id:n})}catch(e){switch(e instanceof Error?e.message:String(e)){case"UnableToLookup":throw new Error(`${t}: \`launchWorkspace\` was unable to lookup content with id: ${n}`);case"UnableToLaunch":throw new Error(`${t}: \`launchWorkspace\` was unable to launch content with id: ${n}`);case"NoContentFound":throw new Error(`${t}: \`launchWorkspace\` did not find content with id: ${n}`);default:throw new Error(`${t}: \`launchWorkspace\` was unable to look up or launch content with id: ${n} or the content did not exist.`)}}}var g={};E(g,{register:()=>k});var A="get-results",R="handle-action",T={id:"",onClose:function(n){console.warn("Function not implemented.")},removeListener:function(n){console.warn("Function not implemented.")},query:""},O={open:function(){console.warn("Function not implemented.")},close:function(){console.warn("Function not implemented.")},respond:function(n){console.warn("Function not implemented.")},revoke:function(...n){console.warn("Function not implemented.")},updateContext:function(n){console.warn("Function not implemented.")}},k=async n=>{let o=await window.fin.me.getOptions(),{configuration:e,id:i,name:a}=o.customData,w=`search-provider-${o.customData.id}`;console.debug(`creating channel ${w}`);let h=await window.fin.InterApplicationBus.Channel.create(w);return h.register(R,async l=>{let{searchResult:p,actionId:m,viewIdentity:C}=l,N={action:{name:m,trigger:"user-action"},dispatcherIdentity:C,key:"",title:p.title,actions:[],data:p};return await n.onAction(N)}),h.register(A,async l=>{let p=Object.assign({},T,l);return(await n.onSearch(p,O)).results}),{configData:e,hideWindow:async function(){console.warn("Function not implemented.")},id:i,isReady:async function(l){console.warn("Function not implemented.")},name:a,showWindow:async function(){console.warn("Function not implemented.")}}};export{g as Search,q as getAppSettings,B as getAppUserPermissions,D as getAppUserSettings,U as getNotificationsClient,G as launchContent,K as launchSupertab,j as launchWorkspace,V as setAppUserSettings};
var Ve=Object.create;var mn=Object.defineProperty;var qe=Object.getOwnPropertyDescriptor;var He=Object.getOwnPropertyNames;var Ke=Object.getPrototypeOf,je=Object.prototype.hasOwnProperty;var Ge=(o,u)=>()=>(u||o((u={exports:{}}).exports,u),u.exports),Xe=(o,u)=>{for(var a in u)mn(o,a,{get:u[a],enumerable:!0})},ze=(o,u,a,l)=>{if(u&&typeof u=="object"||typeof u=="function")for(let f of He(u))!je.call(o,f)&&f!==a&&mn(o,f,{get:()=>u[f],enumerable:!(l=qe(u,f))||l.enumerable});return o};var Je=(o,u,a)=>(a=o!=null?Ve(Ke(o)):{},ze(u||!o||!o.__esModule?mn(a,"default",{value:o,enumerable:!0}):a,o));var Hn=Ge((It,qn)=>{"use strict";(()=>{"use strict";var o={d:(n,e)=>{for(var t in e)o.o(e,t)&&!o.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})},o:(n,e)=>Object.prototype.hasOwnProperty.call(n,e),r:n=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})}},u={};o.r(u),o.d(u,{SearchTagBackground:()=>on,create:()=>Un,defaultTopic:()=>Bn,subscribe:()=>Dn});var a={};o.r(a),o.d(a,{B:()=>de});var l={};o.r(l),o.d(l,{v:()=>De});let f="deregistered or does not exist",m=new Error(`provider ${f}`),A=new Error("provider with name already exists"),v=new Error("bad payload"),b=new Error("subscription rejected"),R=new Error(`channel ${f}`),x;function O(){if(x)return x;throw R}function K(){return x}function Sn(n){x=n}var S,$,tn,on;(function(n){n[n.Initial=0]="Initial",n[n.Open=1]="Open",n[n.Close=2]="Close"})(S||(S={})),function(n){n.Fetching="fetching",n.Fetched="fetched",n.Complete="complete"}($||($={})),function(n){n.UserAction="user-action",n.FocusChange="focus-change",n.Reload="reload"}(tn||(tn={})),function(n){n.Active="active",n.Default="default"}(on||(on={}));let j="0",Rn="1",En="2",bn="3",An="4",G="5",X="6",Jn=()=>{},rn=new Set;function Qn(n){rn.add(n)}function Yn(n){rn.delete(n)}let sn=new Set;function Zn(n){sn.add(n)}function ne(n){sn.delete(n)}let q=new Map;async function an(n){q.set(n.id,n);let e=[...rn].map(t=>t());await Promise.all(e)}async function z(n){q.delete(n);let e=[...sn].map(t=>t());await Promise.all(e)}function cn(){return[...q.values()]}function Pn(){q.clear()}function I(n){return q.get(n)}function On(n,e,t){return{...n,action:t||{...n.actions[0],trigger:tn.UserAction},dispatcherIdentity:e}}function un(n,e,t="ascending"){let i=n||[];if(!e?.length)return i;let r=[],s=new Map;e.forEach(d=>{if(d.key)return s.set(d.key,d);r.push(d)});let c=i.map(d=>{let{key:h}=d;if(h&&s.has(h)){let C=s.get(h);return s.delete(h),C}return d});return c.push(...s.values(),...r),c=t==="ascending"?c.sort((d,h)=>(d?.score??1/0)-(h?.score??1/0)):c.sort((d,h)=>(h?.score??1/0)-(d?.score??1/0)),c}function In(n){let e={},t=[],i=[],r=null,s=S.Initial;e.getStatus=()=>s,e.getResultBuffer=()=>t,e.setResultBuffer=d=>{t=d,t?.length&&e.onChange()},e.getRevokedBuffer=()=>i,e.setRevokedBuffer=d=>{i=d,i?.length&&e.onChange()},e.setUpdatedContext=d=>{r=d,e.onChange()},e.getUpdatedContext=()=>r,e.onChange=Jn;let c={};return e.res=c,c.close=()=>{s!==S.Close&&(s=S.Close,e.onChange())},c.open=()=>{s!==S.Open&&(s=S.Open,e.onChange())},c.respond=d=>{let h=un(e.getResultBuffer(),d,n);e.setResultBuffer(h)},c.revoke=(...d)=>{let h=new Set(d),C=e.getResultBuffer().filter(({key:p})=>{let g=h.has(p);return g&&h.delete(p),!g});e.setResultBuffer(C),h.size&&(e.getRevokedBuffer().forEach(p=>h.add(p)),e.setRevokedBuffer([...h]))},c.updateContext=d=>{e.setUpdatedContext(d)},e}function Ln(n,e){let t=new Set,i=!1;return{close:()=>{i=!0;for(let r of t)r()},req:{id:n,...e,context:e?.context||{},onClose:r=>{t.add(r),i&&r()},removeListener:r=>{t.delete(r)}}}}function J(){return{name:fin.me.name,uuid:fin.me.uuid}}let Nn=50,ee=1e3,te=new Map;function ln(){return te}let oe=100;function ie(){return async n=>{if(!n||!n.id||!n.providerId){let p=v;return console.error(p),{error:p.message}}let{id:e,providerId:t}=n,i=I(t);if(!i){let p=m;return console.error(p),{error:p.message}}let r=ln(),s=r.get(n.id);s||(s=Ln(e,n),r.set(n.id,s));let c=In(),d=()=>{let p=c.getResultBuffer();c.setResultBuffer([]);let g=c.getRevokedBuffer();c.setRevokedBuffer([]);let L=c.getUpdatedContext();c.setUpdatedContext(null);let k=c.getStatus();(async function(D){(await O()).dispatch(j,D)})({id:e,providerId:t,results:p,revoked:g,status:k,context:L})},h=!0,C=!1;c.onChange=()=>{if(h)return h=!1,void d();C||(C=!0,setTimeout(()=>{C=!1,d()},oe))};try{let{results:p,context:g}=await i.onUserInput(s.req,c.res),L=c.getStatus();return{id:e,providerId:t,status:L,results:p,context:g}}catch(p){return console.error(`OpenFin/Workspace/Home. Uncaught exception in search provider ${t} for search ${e}`,"This is likely a bug in the implementation of the search provider.",p),{id:e,providerId:t,error:p?.message}}}}async function Fn(n,e){let t=e||await O(),i=J(),r={...n,identity:i,onResultDispatch:void 0},s=await t.dispatch(En,r);return await an({identity:i,...n}),s}async function re(n){return await(await O()).dispatch(bn,n),z(n)}async function se(n,e,t,i){let r=On(e,i??J(),t),s=I(n);if(s){let{onResultDispatch:d}=s;return d?d(r):void 0}let c={providerId:n,result:r};return(await O()).dispatch(G,c)}async function ae(n){let e={...n,context:n?.context||{}},t={},i=async function*(s,{setState:c}){let d=await O();for(;;){let h=await d.dispatch(Rn,s),C=h.error;if(C)throw new Error(C);let p=h;if(s.id=p.id,c(p.state),p.done)return p.value;yield p.value}}(e,{setState:s=>{t.state=s}}),r=await i.next();return t.id=e.id||"",t.close=()=>{(async function(s){(await O()).dispatch(X,{id:s})})(t.id)},t.next=()=>{if(r){let s=r;return r=void 0,s}return i.next()},t}async function ce(){return(await O()).dispatch(An,null)}async function ue(){let n=await O();x=void 0,Pn(),await n.disconnect()}let le=async n=>{let e=await xn(n);for(let t of cn())await Fn(t,e);return e};async function xn(n){let e=await async function(t){for(let i=0;i<Nn;i++)try{return await fin.InterApplicationBus.Channel.connect(t,{wait:!1})}catch(r){if(i===Nn-1)throw r;await new Promise(s=>setTimeout(s,ee))}}(n);return e.register(j,ie()),e.register(X,t=>{let i=ln(),r=i.get(t.id);r&&(r.close(),i.delete(t.id))}),e.register(G,async(t,i)=>{if(!t||!t.providerId||!t.result)return void console.error(v);let r=I(t.providerId);if(!r)return void console.error(m);let{onResultDispatch:s}=r;return s?(t.result.dispatcherIdentity=t.result.dispatcherIdentity??i,s(t.result)):void 0}),e.onDisconnection(function(t){return async()=>{if(!K())return;let i=ln();for(let{req:r,close:s}of i.values())s(),i.delete(r.id);Sn(le(t))}}(n)),e}async function de(n){let e=K();e||(e=xn(n),Sn(e));let t=await e;return{getAllProviders:ce.bind(null),register:Fn.bind(null),search:ae.bind(null),deregister:re.bind(null),dispatch:se.bind(null),disconnect:ue.bind(null),channel:t}}let H;function Q(){if(H)return H;throw R}function pe(){return H}function fe(n){H=n}function he(){H=void 0}let dn=new Set;function we(n){dn.add(n)}function ge(n){dn.delete(n)}var T;(function(n){n.Local="local",n.Dev="dev",n.Staging="staging",n.Prod="prod"})(T||(T={}));let pn=typeof window<"u"&&typeof fin<"u",ye=(typeof process>"u"||process.env,typeof window<"u"),me=ye?window.origin:T.Local,Y=(pn&&fin.me.uuid,pn&&fin.me.name,pn&&fin.me.entityType,T.Local,T.Dev,T.Staging,T.Prod,n=>n.startsWith("http://")||n.startsWith("https://")?n:me+n),$n=(Y("http://localhost:4002"),Y("http://localhost:4002"),typeof WORKSPACE_DOCS_PLATFORM_URL<"u"&&Y(WORKSPACE_DOCS_PLATFORM_URL),typeof WORKSPACE_DOCS_CLIENT_URL<"u"&&Y(WORKSPACE_DOCS_CLIENT_URL),"20.3.6");typeof WORKSPACE_BUILD_SHA<"u"&&WORKSPACE_BUILD_SHA;async function Tn(){return[...cn()].map(n=>({...n,onUserInput:void 0,onResultDispatch:void 0}))}async function Ce(n){if(I(n.id))throw new Error("provider with name already exists");let e=J();return await an({identity:e,...n}),{workspaceVersion:$n||"",clientAPIVersion:n.clientAPIVersion||""}}async function ve(n){await z(n)}async function Se(n,e,t,i){let r=I(n);if(!r)throw m;let{onResultDispatch:s}=r;if(s)return s(On(e,i??J(),t))}async function*Re(n,e){let t=function(g,L){let k=[],D=[],B=[],E=[];for(let y of g){let N=In(y.scoreOrder),F={results:[],provider:{id:y.id,identity:y.identity,title:y.title,scoreOrder:y.scoreOrder,icon:y.icon,dispatchFocusEvents:y.dispatchFocusEvents}};k.push(F),D.push(N);let M=(async()=>{try{let{results:W,context:nn}=await y.onUserInput(L,N.res);F.results=un(F.results||[],W,y.scoreOrder),F.context={...F.context,...nn}}catch(W){F.error=W}})();M.finally(()=>{M.done=!0}),E.push(M),B.push(B.length)}return{providerResponses:k,listenerResponses:D,openListenerResponses:B,initialResponsePromises:E}}(n.targets?n.targets.map(g=>I(g)).filter(g=>!!g):[...cn().filter(g=>!g.hidden)],n),{providerResponses:i,listenerResponses:r}=t,{openListenerResponses:s,initialResponsePromises:c}=t,d=$.Fetching,h=g=>{d=g,e.setState(d)},C,p=!1;n.onClose(()=>{p=!0,C&&C()});do{let g=!1;if(c.length){let E=[];for(let y of c)y.done?g=!0:E.push(y);c=E,c.length||(h($.Fetched),g=!0)}let L,k=!1,D=()=>{k=!0,L&&L()},B=[];for(let E of s){let y=r[E],N=i[E],F=y.getStatus();(F===S.Open||d===$.Fetching&&F===S.Initial)&&(B.push(E),y.onChange=D);let M=y.getResultBuffer();M.length&&(y.setResultBuffer([]),N.results=un(N.results||[],M),g=!0);let W=y.getRevokedBuffer();if(W.length){y.setRevokedBuffer([]);let Me=new Set(W);N.results=(N.results||[]).filter(({key:We})=>!Me.has(We)),g=!0}let nn=y.getUpdatedContext();nn&&(y.setUpdatedContext(null),N.context={...N.context,...nn},g=!0)}if(s=B,g&&(yield i),p)break;k||(s.length||c.length)&&await Promise.race([...c,new Promise(E=>{L=E}),new Promise(E=>{C=E})])}while(s.length||c.length);return h($.Complete),i}let fn=0;async function kn(n){fn+=1;let e=Ln(fn.toString(),n),t=Re(e.req,{setState:i=>{t.state=i}});return t.id=fn.toString(),t.close=e.close,t.state=$.Fetching,t}let Z=new Map,Ee=1e4;function be(){return async n=>{if(!n)return console.error(v),{error:v.message};let e;if(n.id)e=n.id;else{let r=await kn(n);e=r.id,n.id=r.id,Z.set(e,{generator:r})}let t=Z.get(e);clearTimeout(t.timeout);let i=await t.generator.next();return t.timeout=function(r){return window.setTimeout(()=>{Z.delete(r)},Ee)}(e),{...i,id:n.id,state:t.generator.state}}}function Ae(n,e){return Q().dispatch(n,X,{id:e})}function Pe(){return n=>function(e){let t=Z.get(e);t&&t.generator.close()}(n.id)}async function Oe(n,{id:e,query:t,context:i,targets:r=[]}){let s=Q(),c={id:e,query:t,context:i,targets:r,providerId:n.id},d=await s.dispatch(n.identity,j,c),h=d.error;if(h)throw new Error(h);return d}let hn=new Map;function Ie(n,e){return`${n.name}:${n.uuid}:${e}`}let wn=new Map;function _n(n,e){return`${n}:${e}`}function Le(n){let e=Ie.bind(null,n.identity),t=Ae.bind(null,n.identity),i=Oe.bind(null,n);return async(r,s)=>{let c=e(r.id);if(!hn.has(c)){let p=()=>{t(r.id),hn.delete(c)};hn.set(c,p),r.onClose(p)}let d=_n(n.id,r.id),h=()=>{wn.delete(d),s.close()};r.onClose(h),wn.set(d,p=>{p.results?.length&&s.respond(p.results),p.revoked?.length&&s.revoke(...p.revoked),p.context&&s.updateContext(p.context),p.status===S.Open&&s.open(),p.status===S.Close&&h()});let C=await i(r);return C.status===S.Open&&s.open(),C.status!==S.Close&&C.status!==S.Initial||h(),C}}function Ne(n){return async e=>{let t=Q(),i={providerId:n.id,result:e};return t.dispatch(n.identity,G,i)}}let U=new Map;function gn(n){return`${n.name}-${n.uuid}`}function Fe(){return async(n,e)=>{if(!n||!n.id)return console.error(new Error(JSON.stringify(n))),void console.error(v);if(I(n.id))throw A;return n.identity=e,await async function(t){let i=gn(t.identity);U.has(i)||U.set(i,[]),U.get(i).push(t.id),await an({...t,onUserInput:Le(t),onResultDispatch:Ne(t)})}(n),{workspaceVersion:$n||"",clientAPIVersion:n.clientAPIVersion||""}}}function xe(){return(n,e)=>{n?function(t,i){let r=I(t);if(!r)return;if(r.identity.uuid!==i.uuid||r.identity.name!==i.name)throw m;let s=gn(r.identity),c=U.get(s);if(c){let d=c.findIndex(h=>h===t);d!==-1&&(c.splice(d,1),z(t))}}(n,e):console.error(v)}}let yn=new Set;function $e(n){yn.add(n)}function Te(n){yn.delete(n)}function ke(){return async n=>{(function(e){let t=gn(e),i=U.get(t);if(i){for(let r of i)z(r);U.delete(t)}})(n),yn.forEach(e=>e(n))}}async function _e(n){let e=await(t=n,fin.InterApplicationBus.Channel.create(t));var t;return e.onConnection(async i=>{for(let r of dn)if(!await r(i))throw b}),e.onDisconnection(ke()),e.register(X,Pe()),e.register(j,i=>{let r=_n(i.providerId,i.id),s=wn.get(r);s&&s(i)}),e.register(En,Fe()),e.register(bn,xe()),e.register(An,async()=>Tn()),e.register(Rn,be()),e.register(G,async(i,r)=>{if(!i||!i.providerId||!i.result)return void console.error(v);let s=I(i.providerId);if(!s)throw m;let{onResultDispatch:c}=s;return c?(i.result.dispatcherIdentity=i.result.dispatcherIdentity??r,c(i.result)):void 0}),e}async function Ue(){let n=Q();he(),await n.destroy(),Pn()}async function De(n){let e=pe();e||(e=await _e(n),fe(e));let t=ge.bind(null),i=Te.bind(null),r=Yn.bind(null),s=ne.bind(null);return{getAllProviders:Tn.bind(null),search:kn.bind(null),register:Ce.bind(null),deregister:ve.bind(null),onSubscription:we.bind(null),onDisconnect:$e.bind(null),onRegister:Qn.bind(null),onDeregister:Zn.bind(null),dispatch:Se.bind(null),disconnect:Ue.bind(null),removeListener:c=>{t(c),i(c),r(c),s(c)},channel:e}}let{v:Un}=l,{B:Dn}=a,Bn="all",Be={create:Un,subscribe:Dn,defaultTopic:Bn},Mn=()=>{window.search=Be},Wn=n=>{let e=()=>{Mn(),window.removeEventListener(n,e)};return e};if(typeof window<"u"){Mn();let n="load",e=Wn(n);window.addEventListener(n,e);let t="DOMContentLoaded",i=Wn(t);window.addEventListener(t,i)}qn.exports=u})()});var w="@openfin/cloud-api";async function P(){try{return await window.fin.View.getCurrentSync().getInfo(),!0}catch{return!1}}function Vn(o){if(o.name.startsWith("internal-generated"))throw new Error("Cannot extract app UUID from identity");return/\/[\d,a-z-]{36}$/.test(o.name)?o.name.split("/")[0]||"":o.name}var V="@openfin/cloud-api";function Qe(){return`${window.fin.me.uuid}-cloud-api-notifications`}var Cn=null;async function yt(){return Cn||(Cn=Ye()),Cn}async function Ye(){if(!window.fin)throw new Error(`\`${V}\`: \`getNotificationsClient\` cannot be used in a non-OpenFin environment`);if(await P()===!1)throw new Error(`${V}: \`getNotificationsClient\` cannot be used in a non-OpenFin environment`);Vn(window.fin.me);let o=await Ze();console.log(o),o.register("openfin-cloud-event",a=>{for(let l of u.get(a.type)??[])typeof a.payload.timestamp=="string"&&(a.payload.timestamp=new Date(a.payload.timestamp)),l(a.payload)});let u=new Map;return{addEventListener:(a,l)=>{let f=u.get(a)||new Set;f.add(l),u.set(a,f)},removeEventListener:(a,l)=>{let f=u.get(a);if(!f){console.warn(`\`${V}\`: Listener was not found for event. Did you pass a function directly instead of a reference or forget to add the listener?`,a);return}f.delete(l)===!1&&console.warn(`\`${V}\`: Listener was not found for event. Did you pass a function directly instead of a reference?`,a)},update:async a=>(await o.dispatch("openfin-cloud-update-notification",{version:1,payload:{notification:a}})).payload.response,clear:async a=>(await o.dispatch("openfin-cloud-clear-notification",{version:1,payload:{notificationId:a}})).payload.response,createNotification:async a=>(a.id&&console.warn(`\`${V}\`: The \`id\` property is not supported and will be ignored. If you need to use the \`id\` property, you should use the \`id\` property of the returned notification object.`),(await o.dispatch("openfin-cloud-create-notification",{version:1,payload:{notification:{...a,id:void 0}}})).payload.response)}}var en=null;async function Ze(){return en||(en=nt()),en}async function nt(){let o=await window.fin.InterApplicationBus.Channel.connect(Qe());return o.onDisconnection(u=>{console.warn(`\`${V}\`: Channel Disconnected from`,u,"Reconnecting..."),en=null}),o}var vn;function et(){return`${window.fin.me.uuid}-client-api`}async function _(){return vn||(vn=window.fin.InterApplicationBus.Channel.connect(et())),vn}async function vt(){if(!window.fin)throw new Error(`\`${w}\`: \`getAppSettings\` cannot be used in a non-OpenFin environment`);if(await P()===!1)throw new Error(`${w}: \`getAppSettings\` cannot be used in a non-OpenFin environment`);return(await _()).dispatch("get-settings")}async function St(){if(!window.fin)throw new Error(`\`${w}\`: \`getAppUserSettings\` cannot be used in a non-OpenFin environment`);if(await P()===!1)throw new Error(`${w}: \`getAppUserSettings\` cannot be used in a non-OpenFin environment`);return(await _()).dispatch("get-user-settings")}async function Rt(o){if(!window.fin)throw new Error(`\`${w}\`: \`setAppUserSettings\` cannot be used in a non-OpenFin environment`);if(await P()===!1)throw new Error(`${w}: \`setAppUserSettings\` cannot be used in a non-OpenFin environment`);return(await _()).dispatch("set-user-settings",o)}async function Et(){if(!window.fin)throw new Error(`\`${w}\`: \`getAppUserPermissions\` cannot be used in a non-OpenFin environment`);if(await P()===!1)throw new Error(`${w}: \`getAppUserPermissions\` cannot be used in a non-OpenFin environment`);return(await _()).dispatch("get-user-permissions")}async function bt(o,u){if(!window.fin)throw new Error(`\`${w}\`: \`launchContent\` cannot be used in a non-OpenFin environment`);if(await P()===!1)throw new Error(`${w}: \`launchContent\` cannot be used in a outside of an OpenFin View context`);let a=await _();try{await a.dispatch("launch-content",{id:o,options:u})}catch(l){switch(l instanceof Error?l.message:String(l)){case"UnableToLookup":throw new Error(`${w}: \`launchContent\` was unable to lookup content with id: ${o}`);case"UnableToLaunch":throw new Error(`${w}: \`launchContent\` was unable to launch content with id: ${o}`);case"NoContentFound":throw new Error(`${w}: \`launchContent\` did not find content with id: ${o}`);default:throw new Error(`${w}: \`launchContent\` was unable to look up or launch content with id: ${o} or the content did not exist.`)}}}async function At(o){if(!window.fin)throw new Error(`\`${w}\`: \`launchSupertab\` cannot be used in a non-OpenFin environment`);if(await P()===!1)throw new Error(`${w}: \`launchSupertab\` cannot be used in a outside of an OpenFin View context`);let u=await _();try{await u.dispatch("launch-supertab",{id:o})}catch(a){switch(a instanceof Error?a.message:String(a)){case"UnableToLookup":throw new Error(`${w}: \`launchSupertab\` was unable to lookup content with id: ${o}`);case"UnableToLaunch":throw new Error(`${w}: \`launchSupertab\` was unable to launch content with id: ${o}`);case"NoContentFound":throw new Error(`${w}: \`launchSupertab\` did not find content with id: ${o}`);default:throw new Error(`${w}: \`launchSupertab\` was unable to look up or launch content with id: ${o} or the content did not exist.`)}}}async function Pt(o){if(!window.fin)throw new Error(`\`${w}\`: \`launchWorkspace\` cannot be used in a non-OpenFin environment`);if(await P()===!1)throw new Error(`${w}: \`launchWorkspace\` cannot be used in a outside of an OpenFin View context`);let u=await _();try{await u.dispatch("launch-workspace",{id:o})}catch(a){switch(a instanceof Error?a.message:String(a)){case"UnableToLookup":throw new Error(`${w}: \`launchWorkspace\` was unable to lookup content with id: ${o}`);case"UnableToLaunch":throw new Error(`${w}: \`launchWorkspace\` was unable to launch content with id: ${o}`);case"NoContentFound":throw new Error(`${w}: \`launchWorkspace\` did not find content with id: ${o}`);default:throw new Error(`${w}: \`launchWorkspace\` was unable to look up or launch content with id: ${o} or the content did not exist.`)}}}var zn={};Xe(zn,{getAgentConfiguration:()=>Gn,register:()=>Xn});var jn=Je(Hn(),1),tt="log-message-",ot="open-url",it="provider-status-",rt="registered-",st="1.0";function at(o,u){let{data:a,...l}=o;return{...l,data:{customData:a,providerId:u,resultType:"app"}}}function Kn(o){return{...o,data:o.data.customData}}async function Gn(){let{customData:o}=await window.fin.me.getOptions();return o}function ct(){return`${window.fin.me.identity.uuid}-cloud-api-search`}async function ut(o,u,a,l=!0){await u("info",`Setting status as ${l?"ready":"not ready"}`);try{await o.dispatch(`${it}${a}`,{isReady:l})}catch(f){let m=["Error setting provider status",f];console.error(...m),u("error",...m)}}async function lt(o,u,a,...l){try{await o.dispatch(`${tt}${u}`,{level:a,message:l})}catch(f){console.error("Error logging message",f)}}async function dt(o,u,a,l,f){let{action:m,dispatcherIdentity:A,...v}=f;await a("info","Handling action",{action:m,dispatcherIdentity:A,result:v});let b;try{let x=Kn(f).actions?.find(({name:K})=>K===m.name);if(!x)throw new Error("Original action not found in search result");b=(await l(x,Kn(f)))?.url}catch(R){throw await a("error","Error handling dispatch",R),R}if(!b){await a("warn","OnActionListener did not return a URL");return}await ft(o,a,u,b,A)}async function pt(o,u,a,l){await u("info","Getting search results",{request:l});try{let f=new AbortController;l.onClose(()=>f.abort());let{context:m,query:A}=l,{results:v}=await a({context:m,query:A,signal:f.signal}),b=v.map(R=>at(R,o));return await u("info","Returning results",b),{results:b}}catch(f){let m=["Error handling search",f];throw console.error(...m),u("error",...m),f}}async function ft(o,u,a,l,f){await u("info","Opening URL",{url:l,targetIdentity:f});try{await o.dispatch(ot,{url:l,targetIdentity:f,providerId:a})}catch(m){let A=["Error opening URL",m];console.error(...A),u("error",...A)}}async function Xn(o){let a=(await window.fin.me.getOptions()).customData,{id:l,title:f}=a,{onAction:m,onSearch:A}=o,v=await jn.subscribe(ct()),b=v.channel,R=lt.bind(null,b,l);return await v.register({icon:"",id:l,onResultDispatch:dt.bind(null,b,l,R,m),onUserInput:pt.bind(null,l,R,A),title:f}),await v.channel.dispatch(`${rt}${l}`,{version:st}),R("info","Registered search topic",{id:l,title:f}),{isReady:ut.bind(null,b,R,l)}}export{zn as Search,vt as getAppSettings,Et as getAppUserPermissions,St as getAppUserSettings,yt as getNotificationsClient,bt as launchContent,At as launchSupertab,Pt as launchWorkspace,Rt as setAppUserSettings};
//# sourceMappingURL=index.js.map
{
"name": "@openfin/cloud-api",
"version": "0.0.1-alpha.7f66509",
"version": "0.0.1-alpha.7fb525b",
"sideEffects": false,

@@ -21,3 +21,4 @@ "description": "",

"lint": "eslint . --max-warnings 0",
"lint:fix": "eslint . --fix --max-warnings 0"
"lint:fix": "eslint . --fix --max-warnings 0",
"docs": "typedoc --treatWarningsAsErrors"
},

@@ -27,9 +28,9 @@ "files": [

],
"dependencies": {
"@openfin/core": "38.83.84"
},
"devDependencies": {
"@openfin/workspace": "19.3.9",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "^7.15.0",
"@openfin/core": "40.104.1",
"@openfin/search-api": "^2.0.1",
"@openfin/typedoc-theme": "^2.0.0",
"@openfin/workspace": "20.5.1",
"@typescript-eslint/eslint-plugin": "^8.20.0",
"@typescript-eslint/parser": "^8.20.0",
"eslint": "^8.57.0",

@@ -43,2 +44,3 @@ "eslint-config-prettier": "^9.1.0",

"tsup": "^8.3.0",
"typedoc": "^0.26.11",
"typescript": "^5.6.3"

@@ -45,0 +47,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet