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

@nuclia/widget

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuclia/widget - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

1

common/dropdown/Dropdown.svelte.d.ts

@@ -7,2 +7,3 @@ import { SvelteComponentTyped } from "svelte";

left: number;
width?: number;
} | undefined;

@@ -9,0 +10,0 @@ secondary?: boolean | undefined;

4

core/api.d.ts

@@ -1,5 +0,5 @@

import type { Classification, IResource, KBStates, LabelSets, NucliaOptions, SearchOptions } from '@nuclia/core';
import type { Classification, FieldFullId, IResource, KBStates, LabelSets, NucliaOptions, SearchOptions } from '@nuclia/core';
import { Resource, ResourceField, ResourceProperties, Search } from '@nuclia/core';
import type { Observable } from 'rxjs';
import type { EntityGroup, FieldFullId, WidgetOptions } from './models';
import type { EntityGroup, WidgetOptions } from './models';
import type { Annotation } from './stores/annotation.store';

@@ -6,0 +6,0 @@ export declare const initNuclia: (options: NucliaOptions, state: KBStates, widgetOptions: WidgetOptions) => void;

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

import type { Classification, CloudLink, FIELD_TYPE, FieldId, Paragraph, Search, SHORT_FIELD_TYPE, WidgetFeatures } from '@nuclia/core';
import type { Classification, CloudLink, FIELD_TYPE, FieldFullId, Paragraph, Search, SHORT_FIELD_TYPE, WidgetFeatures } from '@nuclia/core';
export declare const NO_RESULTS: Search.Results;

@@ -11,3 +11,3 @@ export interface WidgetOptions {

destructive?: boolean;
action: (uid: string) => void;
action: (fullId: FieldFullId) => void;
}

@@ -22,5 +22,2 @@ /**

}
export interface FieldFullId extends FieldId {
resourceId: string;
}
export declare enum PreviewKind {

@@ -27,0 +24,0 @@ NONE = 0,

@@ -1,4 +0,4 @@

import type { FieldFullId, MediaWidgetParagraph, PreviewKind } from '../models';
import type { MediaWidgetParagraph, PreviewKind } from '../models';
import { SvelteState } from '../state-lib';
import type { IFieldData, ResourceField } from '@nuclia/core';
import type { FieldFullId, IFieldData, ResourceField } from '@nuclia/core';
import { FIELD_TYPE } from '@nuclia/core';

@@ -5,0 +5,0 @@ import type { Observable } from 'rxjs';

{
"name": "@nuclia/widget",
"version": "1.0.0",
"version": "1.1.0",
"description": "Nuclia search widgets",

@@ -21,3 +21,3 @@ "module": "nuclia.mjs",

"peerDependencies": {
"@nuclia/core": "^1.1.4",
"@nuclia/core": "^1.1.5",
"@nuclia/prediction": "^1.0.0",

@@ -24,0 +24,0 @@ "date-fns": "^2.29.3",

@@ -7,1 +7,2 @@ import type { MediaWidgetParagraph } from '../core/models';

export declare const filterParagraphs: (query: string, paragraphs: MediaWidgetParagraph[]) => MediaWidgetParagraph[];
export declare function onClosePreview(): void;
import { SHORT_FIELD_TYPE } from '@nuclia/core';
import { viewerState } from '../core/stores/viewer.store';
export const markRegex = new RegExp(/<\/*mark>/, 'g');

@@ -23,1 +24,4 @@ export function getUnMarked(paragraph) {

};
export function onClosePreview() {
viewerState.reset();
}

@@ -19,2 +19,3 @@ import { SvelteComponentTyped } from "svelte";

search?: ((query: string) => void) | undefined;
reloadSearch?: (() => void) | undefined;
};

@@ -31,3 +32,4 @@ events: {

get search(): (query: string) => void;
get reloadSearch(): () => void;
}
export {};
import { SvelteComponentTyped } from "svelte";
declare const __propDef: {
props: Record<string, never>;
props: {
setTileMenu?: ((actions: import("../../core/models").WidgetAction[]) => void) | undefined;
closePreview?: (() => void) | undefined;
};
events: {

@@ -13,3 +16,5 @@ [evt: string]: CustomEvent<any>;

export default class SearchResults extends SvelteComponentTyped<SearchResultsProps, SearchResultsEvents, SearchResultsSlots> {
get setTileMenu(): (actions: import("../../core/models").WidgetAction[]) => void;
get closePreview(): () => void;
}
export {};
import { SvelteComponentTyped } from "svelte";
import type { KBStates } from '@nuclia/core';
import type { FieldFullId, KBStates } from '@nuclia/core';
import { Observable } from 'rxjs';
import type { FieldFullId } from '../../core/models';
declare const __propDef: {

@@ -20,2 +19,3 @@ props: {

field_type?: string | undefined;
setTileMenu?: ((actions: import("../../core/models").WidgetAction[]) => void) | undefined;
openPreview?: ((fullId: FieldFullId, title?: string) => Observable<boolean>) | undefined;

@@ -34,2 +34,3 @@ closePreview?: (() => void) | undefined;

export default class ViewerWidget extends SvelteComponentTyped<ViewerWidgetProps, ViewerWidgetEvents, ViewerWidgetSlots> {
get setTileMenu(): (actions: import("../../core/models").WidgetAction[]) => void;
get openPreview(): (fullId: FieldFullId, title?: string | undefined) => Observable<boolean>;

@@ -36,0 +37,0 @@ get closePreview(): () => void;

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

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc