@rcsb/rcsb-saguaro-app 4.0.0 → 4.0.4

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/CHANGELOG.md CHANGED
@@ -2,6 +2,22 @@
2
2
 
3
3
  [Semantic Versioning](https://semver.org/)
4
4
 
5
+ ## [4.0.4] - 2022-02-15
6
+ ### Minor bug fix
7
+ - Minor type fix
8
+
9
+ ## [4.0.3] - 2022-02-14
10
+ ### Minor bug fix
11
+ - react-select type definition fixed
12
+
13
+ ## [4.0.2] - 2022-02-14
14
+ ### Dependency update
15
+ - Multiple dependencies updated
16
+
17
+ ## [4.0.1] - 2022-02-08
18
+ ### Dependency update
19
+ - rcsb-api-tools v2.3.1
20
+
5
21
  ## [4.0.0] - 2022-02-08
6
22
  ### Annotation collector improvements
7
23
  - Added interface `CollectAnnotationsInterface` for generating new annotations internally (not exposed)
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@3.4.0/build/dist/app.js"></script>
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@3.4.0/build/dist/app.js" type="text/javascript"></script>`
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)
@@ -3,7 +3,7 @@ import { RcsbContextType, RcsbFvAdditionalConfig } from "../RcsbFvModule/RcsbFvM
3
3
  import { PolymerEntityInstanceInterface } from "../../RcsbCollectTools/Translators/PolymerEntityInstancesCollector";
4
4
  import { OptionPropsInterface } from "../WebTools/SelectButton";
5
5
  import { RcsbFvModulePublicInterface } from "../RcsbFvModule/RcsbFvModuleInterface";
6
- import { OptionProps } from "react-select/src/components/Option";
6
+ import { OptionProps } from "react-select/dist/declarations/src/components/Option";
7
7
  export interface InstanceSequenceOnchangeInterface {
8
8
  pdbId: string;
9
9
  authId: string;
@@ -1,17 +1,9 @@
1
1
  import * as React from "react";
2
- import { OptionProps } from "react-select/src/components/Option";
2
+ import { OptionProps } from "react-select";
3
3
  export interface GroupedOptionsInterface {
4
4
  options: Array<SelectOptionInterface>;
5
5
  label: string;
6
6
  }
7
- export interface SelectOptionInterface {
8
- optId?: string;
9
- label: string;
10
- groupLabel?: string;
11
- name?: string;
12
- shortLabel?: string;
13
- onChange: () => void;
14
- }
15
7
  interface SelectButtonInterface {
16
8
  elementId: string;
17
9
  options?: Array<SelectOptionInterface> | Array<GroupedOptionsInterface>;
@@ -20,12 +12,24 @@ interface SelectButtonInterface {
20
12
  defaultValue?: string | undefined | null;
21
13
  width?: number;
22
14
  dropdownTitle?: string;
23
- optionProps?: (props: OptionProps<OptionPropsInterface>) => JSX.Element;
15
+ optionProps?: (props: OptionProps<OptionPropsInterface, false, GroupOptionPropsInterface>) => JSX.Element;
24
16
  isAdditionalButton?: boolean;
25
17
  }
18
+ export interface SelectOptionInterface {
19
+ optId?: string;
20
+ groupLabel?: string;
21
+ name?: string;
22
+ shortLabel?: string;
23
+ label: string;
24
+ onChange: () => void;
25
+ }
26
26
  export interface OptionPropsInterface extends SelectOptionInterface {
27
27
  value: number;
28
28
  }
29
+ export interface GroupOptionPropsInterface {
30
+ label: string;
31
+ options: OptionPropsInterface[];
32
+ }
29
33
  interface SelectButtonState {
30
34
  selectedOption: OptionPropsInterface;
31
35
  }
@@ -1,12 +1,12 @@
1
1
  /// <reference types="react" />
2
- import { GroupedOptionsInterface, OptionPropsInterface, SelectOptionInterface } from "./SelectButton";
3
- import { OptionProps } from "react-select/src/components/Option";
2
+ import { GroupedOptionsInterface, GroupOptionPropsInterface, OptionPropsInterface, SelectOptionInterface } from "./SelectButton";
3
+ import { OptionProps } from "react-select/dist/declarations/src/components/Option";
4
4
  export interface SelectButtonConfigInterface {
5
5
  addTitle?: boolean;
6
6
  defaultValue?: string | undefined | null;
7
7
  width?: number;
8
8
  dropdownTitle?: string;
9
- optionProps?: (props: OptionProps<OptionPropsInterface>) => JSX.Element;
9
+ optionProps?: (props: OptionProps<OptionPropsInterface, false, GroupOptionPropsInterface>) => JSX.Element;
10
10
  isAdditionalButton?: boolean;
11
11
  }
12
12
  export declare class WebToolsManager {