@rcsb/rcsb-saguaro-app 4.0.1 → 4.0.2

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,7 +2,11 @@
2
2
 
3
3
  [Semantic Versioning](https://semver.org/)
4
4
 
5
- ## [4.0.0] - 2022-02-08
5
+ ## [4.0.2] - 2022-02-14
6
+ ### Dependency update
7
+ - Multiple dependencies updated
8
+ -
9
+ ## [4.0.1] - 2022-02-08
6
10
  ### Dependency update
7
11
  - rcsb-api-tools v2.3.1
8
12
 
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@4.0.2/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@4.0.2/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,9 +12,17 @@ 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, null>) => 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
  }
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { GroupedOptionsInterface, OptionPropsInterface, SelectOptionInterface } from "./SelectButton";
3
- import { OptionProps } from "react-select/src/components/Option";
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;