@rcsb/rcsb-saguaro-app 4.0.2 → 4.0.6
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/README.md +2 -2
- package/build/dist/RcsbFvWeb/RcsbFvBuilder/RcsbFvInstanceBuilder.d.ts +2 -3
- package/build/dist/RcsbFvWeb/WebTools/SelectButton.d.ts +6 -1
- package/build/dist/RcsbFvWeb/WebTools/WebToolsManager.d.ts +2 -3
- package/build/dist/app.js +1 -1
- package/build/dist/app.js.LICENSE.txt +1 -16
- package/build/dist/app.js.map +1 -1
- package/build/dist/worker.js +1 -1
- package/build/dist/worker.js.map +1 -1
- package/package.json +3 -4
- package/CHANGELOG.md +0 -262
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Feature Summaries. The package allows access to RCSB Saguaro methods to add or c
|
|
|
8
8
|
<!---
|
|
9
9
|
<div id="pfvSelect" ></div>
|
|
10
10
|
<div id="pfv" ></div>
|
|
11
|
-
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@rcsb/rcsb-saguaro-app
|
|
11
|
+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@rcsb/rcsb-saguaro-app/build/dist/app.js"></script>
|
|
12
12
|
<script type="text/javascript">
|
|
13
13
|
RcsbFvWebApp.buildInstanceFv("pfv", "4Z35.A", {
|
|
14
14
|
boardConfig:{
|
|
@@ -23,7 +23,7 @@ RcsbFvWebApp.buildInstanceFv("pfv", "4Z35.A", {
|
|
|
23
23
|
`npm install @rcsb/rcsb-saguaro-app`
|
|
24
24
|
|
|
25
25
|
### CDN JavaScript
|
|
26
|
-
`<script src="https://cdn.jsdelivr.net/npm/@rcsb/rcsb-saguaro-app
|
|
26
|
+
`<script src="https://cdn.jsdelivr.net/npm/@rcsb/rcsb-saguaro-app/build/dist/app.js" type="text/javascript"></script>`
|
|
27
27
|
|
|
28
28
|
### JavaScript Examples
|
|
29
29
|
* [PDB Instance Chain View](https://rcsb.github.io/rcsb-saguaro-app/examples/instance.html)
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { RcsbContextType, RcsbFvAdditionalConfig } from "../RcsbFvModule/RcsbFvModuleInterface";
|
|
3
3
|
import { PolymerEntityInstanceInterface } from "../../RcsbCollectTools/Translators/PolymerEntityInstancesCollector";
|
|
4
|
-
import {
|
|
4
|
+
import { SelectOptionProps } from "../WebTools/SelectButton";
|
|
5
5
|
import { RcsbFvModulePublicInterface } from "../RcsbFvModule/RcsbFvModuleInterface";
|
|
6
|
-
import { OptionProps } from "react-select/dist/declarations/src/components/Option";
|
|
7
6
|
export interface InstanceSequenceOnchangeInterface {
|
|
8
7
|
pdbId: string;
|
|
9
8
|
authId: string;
|
|
@@ -17,7 +16,7 @@ export interface InstanceSequenceConfig {
|
|
|
17
16
|
onChangeCallback?: (x: InstanceSequenceOnchangeInterface) => void;
|
|
18
17
|
filterInstances?: Set<string>;
|
|
19
18
|
displayAuthId?: boolean;
|
|
20
|
-
selectButtonOptionProps?: (props:
|
|
19
|
+
selectButtonOptionProps?: (props: SelectOptionProps) => JSX.Element;
|
|
21
20
|
module?: instanceModule;
|
|
22
21
|
}
|
|
23
22
|
export declare class RcsbFvInstanceBuilder {
|
|
@@ -4,6 +4,7 @@ export interface GroupedOptionsInterface {
|
|
|
4
4
|
options: Array<SelectOptionInterface>;
|
|
5
5
|
label: string;
|
|
6
6
|
}
|
|
7
|
+
export declare type SelectOptionProps = OptionProps<OptionPropsInterface, false, GroupOptionPropsInterface>;
|
|
7
8
|
interface SelectButtonInterface {
|
|
8
9
|
elementId: string;
|
|
9
10
|
options?: Array<SelectOptionInterface> | Array<GroupedOptionsInterface>;
|
|
@@ -12,7 +13,7 @@ interface SelectButtonInterface {
|
|
|
12
13
|
defaultValue?: string | undefined | null;
|
|
13
14
|
width?: number;
|
|
14
15
|
dropdownTitle?: string;
|
|
15
|
-
optionProps?: (props:
|
|
16
|
+
optionProps?: (props: SelectOptionProps) => JSX.Element;
|
|
16
17
|
isAdditionalButton?: boolean;
|
|
17
18
|
}
|
|
18
19
|
export interface SelectOptionInterface {
|
|
@@ -26,6 +27,10 @@ export interface SelectOptionInterface {
|
|
|
26
27
|
export interface OptionPropsInterface extends SelectOptionInterface {
|
|
27
28
|
value: number;
|
|
28
29
|
}
|
|
30
|
+
export interface GroupOptionPropsInterface {
|
|
31
|
+
label: string;
|
|
32
|
+
options: OptionPropsInterface[];
|
|
33
|
+
}
|
|
29
34
|
interface SelectButtonState {
|
|
30
35
|
selectedOption: OptionPropsInterface;
|
|
31
36
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { GroupedOptionsInterface,
|
|
3
|
-
import { OptionProps } from "react-select/dist/declarations/src/components/Option";
|
|
2
|
+
import { GroupedOptionsInterface, SelectOptionInterface, SelectOptionProps } from "./SelectButton";
|
|
4
3
|
export interface SelectButtonConfigInterface {
|
|
5
4
|
addTitle?: boolean;
|
|
6
5
|
defaultValue?: string | undefined | null;
|
|
7
6
|
width?: number;
|
|
8
7
|
dropdownTitle?: string;
|
|
9
|
-
optionProps?: (props:
|
|
8
|
+
optionProps?: (props: SelectOptionProps) => JSX.Element;
|
|
10
9
|
isAdditionalButton?: boolean;
|
|
11
10
|
}
|
|
12
11
|
export declare class WebToolsManager {
|