lhasa-ligand-builder 0.2.1 → 0.3.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/dist/Lhasa.d.ts CHANGED
@@ -10,10 +10,11 @@ export interface LhasaComponentProps {
10
10
  }[];
11
11
  name_of_host_program?: string;
12
12
  smiles_callback?: (internal_id: number, id_from_prop: string | null, smiles: string) => void;
13
+ on_smiles_updated?: (smiles_array: [number, string | null, string, [string, string]?][]) => void;
13
14
  bansu_endpoint?: string | undefined;
14
15
  data_path_prefix?: string;
15
16
  dark_mode?: boolean;
16
17
  max_width?: number | null;
17
18
  max_height?: number | null;
18
19
  }
19
- export declare function LhasaComponent({ Lhasa, show_top_panel, show_footer, icons_path_prefix, rdkit_molecule_pickle_list, name_of_host_program, smiles_callback, bansu_endpoint, data_path_prefix, dark_mode, max_width, max_height }: LhasaComponentProps): import("react/jsx-runtime").JSX.Element;
20
+ export declare function LhasaComponent({ Lhasa, show_top_panel, show_footer, icons_path_prefix, rdkit_molecule_pickle_list, name_of_host_program, smiles_callback, on_smiles_updated, bansu_endpoint, data_path_prefix, dark_mode, max_width, max_height }: LhasaComponentProps): import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,7 @@
1
1
  import { LhasaComponentProps } from './Lhasa';
2
2
  export interface LhasaEmbedderProps extends Omit<LhasaComponentProps, 'Lhasa'> {
3
- /** Base URL where lhasa.js, lhasa.wasm, icons/, and Components-inchikey.ich are served from. */
4
3
  assetsBaseUrl?: string;
5
- /** Custom loading indicator. Defaults to a simple "Loading Lhasa..." div. */
6
4
  loadingComponent?: React.ReactNode;
7
- /** Custom error display. Receives the Error object. */
8
5
  errorComponent?: (error: Error) => React.ReactNode;
9
6
  }
10
7
  export declare function LhasaEmbedder({ assetsBaseUrl, loadingComponent, errorComponent, icons_path_prefix, data_path_prefix, ...lhasaProps }: LhasaEmbedderProps): import("react/jsx-runtime").JSX.Element | null;