@jbrowse/plugin-config 2.10.3 → 2.11.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.
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  export declare const ColorSlot: (props: {
3
3
  value: string;
4
- label?: string | undefined;
4
+ label?: string;
5
5
  TextFieldProps?: {
6
6
  helperText: string;
7
7
  fullWidth: boolean;
8
- } | undefined;
8
+ };
9
9
  onChange: (arg: string) => void;
10
10
  }) => React.JSX.Element;
11
11
  declare const ColorEditor: (props: {
@@ -5,6 +5,6 @@ declare const ConfigurationEditor: ({ model, }: {
5
5
  model: {
6
6
  target: AnyConfigurationModel;
7
7
  };
8
- session?: AbstractSessionModel | undefined;
8
+ session?: AbstractSessionModel;
9
9
  }) => React.JSX.Element;
10
10
  export default ConfigurationEditor;
@@ -45,7 +45,7 @@ const Member = (0, mobx_react_1.observer)(function (props) {
45
45
  if (slot.length) {
46
46
  return slot.map((subslot, slotIndex) => {
47
47
  const key = `${(0, pluralize_1.singular)(slotName)} ${slotIndex + 1}`;
48
- return react_1.default.createElement(Member, { ...props, key: key, slot: subslot, slotName: key });
48
+ return react_1.default.createElement(Member, { key: key, ...props, slot: subslot, slotName: key });
49
49
  });
50
50
  }
51
51
  // if this is an explicitly typed schema, make a type-selecting dropdown
@@ -4,6 +4,6 @@ declare const HeadingComponent: ({ model, }: {
4
4
  target: {
5
5
  type: string;
6
6
  };
7
- } | undefined;
8
- }) => React.JSX.Element;
7
+ };
8
+ }) => string | React.JSX.Element;
9
9
  export default HeadingComponent;
@@ -9,12 +9,12 @@ const mobx_state_tree_1 = require("mobx-state-tree");
9
9
  const HeadingComponent = (0, mobx_react_1.observer)(function ({ model, }) {
10
10
  if (model === null || model === void 0 ? void 0 : model.target) {
11
11
  if (model.target.type) {
12
- return react_1.default.createElement(react_1.default.Fragment, null, `${model.target.type} settings`);
12
+ return `${model.target.type} settings`;
13
13
  }
14
14
  if ((0, mobx_state_tree_1.isStateTreeNode)(model.target)) {
15
15
  const type = (0, mobx_state_tree_1.getType)(model.target);
16
16
  if (type === null || type === void 0 ? void 0 : type.name) {
17
- return react_1.default.createElement(react_1.default.Fragment, null, `${type.name.replace('ConfigurationSchema', '')} settings`);
17
+ return `${type.name.replace('ConfigurationSchema', '')} settings`;
18
18
  }
19
19
  }
20
20
  }
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  declare const NumberEditor: ({ slot, }: {
3
3
  slot: {
4
- name?: string | undefined;
4
+ name?: string;
5
5
  value: string;
6
- description?: string | undefined;
6
+ description?: string;
7
7
  set: (val: number) => void;
8
- reset?: (() => void) | undefined;
8
+ reset?: () => void;
9
9
  };
10
10
  }) => React.JSX.Element;
11
11
  export default NumberEditor;
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  export declare const ColorSlot: (props: {
3
3
  value: string;
4
- label?: string | undefined;
4
+ label?: string;
5
5
  TextFieldProps?: {
6
6
  helperText: string;
7
7
  fullWidth: boolean;
8
- } | undefined;
8
+ };
9
9
  onChange: (arg: string) => void;
10
10
  }) => React.JSX.Element;
11
11
  declare const ColorEditor: (props: {
@@ -5,6 +5,6 @@ declare const ConfigurationEditor: ({ model, }: {
5
5
  model: {
6
6
  target: AnyConfigurationModel;
7
7
  };
8
- session?: AbstractSessionModel | undefined;
8
+ session?: AbstractSessionModel;
9
9
  }) => React.JSX.Element;
10
10
  export default ConfigurationEditor;
@@ -40,7 +40,7 @@ const Member = observer(function (props) {
40
40
  if (slot.length) {
41
41
  return slot.map((subslot, slotIndex) => {
42
42
  const key = `${singular(slotName)} ${slotIndex + 1}`;
43
- return React.createElement(Member, { ...props, key: key, slot: subslot, slotName: key });
43
+ return React.createElement(Member, { key: key, ...props, slot: subslot, slotName: key });
44
44
  });
45
45
  }
46
46
  // if this is an explicitly typed schema, make a type-selecting dropdown
@@ -4,6 +4,6 @@ declare const HeadingComponent: ({ model, }: {
4
4
  target: {
5
5
  type: string;
6
6
  };
7
- } | undefined;
8
- }) => React.JSX.Element;
7
+ };
8
+ }) => string | React.JSX.Element;
9
9
  export default HeadingComponent;
@@ -4,12 +4,12 @@ import { isStateTreeNode, getType } from 'mobx-state-tree';
4
4
  const HeadingComponent = observer(function ({ model, }) {
5
5
  if (model === null || model === void 0 ? void 0 : model.target) {
6
6
  if (model.target.type) {
7
- return React.createElement(React.Fragment, null, `${model.target.type} settings`);
7
+ return `${model.target.type} settings`;
8
8
  }
9
9
  if (isStateTreeNode(model.target)) {
10
10
  const type = getType(model.target);
11
11
  if (type === null || type === void 0 ? void 0 : type.name) {
12
- return React.createElement(React.Fragment, null, `${type.name.replace('ConfigurationSchema', '')} settings`);
12
+ return `${type.name.replace('ConfigurationSchema', '')} settings`;
13
13
  }
14
14
  }
15
15
  }
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  declare const NumberEditor: ({ slot, }: {
3
3
  slot: {
4
- name?: string | undefined;
4
+ name?: string;
5
5
  value: string;
6
- description?: string | undefined;
6
+ description?: string;
7
7
  set: (val: number) => void;
8
- reset?: (() => void) | undefined;
8
+ reset?: () => void;
9
9
  };
10
10
  }) => React.JSX.Element;
11
11
  export default NumberEditor;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-config",
3
- "version": "2.10.3",
3
+ "version": "2.11.0",
4
4
  "description": "JBrowse 2 config utilities",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -56,5 +56,5 @@
56
56
  "distModule": "esm/index.js",
57
57
  "srcModule": "src/index.ts",
58
58
  "module": "esm/index.js",
59
- "gitHead": "c8fc800cd17decd72b2e971c7a6add3b95214e72"
59
+ "gitHead": "3d43a820b9274a6160aa4dc15616147f390d9094"
60
60
  }