@sillsdev/config-r 1.0.0-alpha.14 → 1.0.0-alpha.16

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,6 +1,6 @@
1
1
  import { ThemeOptions } from '@mui/material';
2
- import * as React from 'react';
3
2
  import { ConfigrGroup } from './ContentPane';
3
+ import * as React from 'react';
4
4
  export declare const ConfigrPane: React.FunctionComponent<React.PropsWithChildren<{
5
5
  label: string;
6
6
  initialValues: object;
@@ -12,5 +12,5 @@ export declare const ConfigrPane: React.FunctionComponent<React.PropsWithChildre
12
12
  themeOverrides?: ThemeOptions;
13
13
  showJson?: boolean;
14
14
  className?: string;
15
- selectedGroupIndex?: number;
15
+ selectedAreaIndex?: number;
16
16
  }>>;
@@ -1,16 +1,16 @@
1
1
  import { SerializedStyles } from '@emotion/react';
2
- import * as React from 'react';
3
2
  import { ReactNode } from 'react';
3
+ import * as React from 'react';
4
4
  type valueGetter = () => Object;
5
5
  export declare const ContentPane: React.FunctionComponent<React.PropsWithChildren<{
6
6
  initialValues: object;
7
- currentGroupIndex?: number;
8
- children: React.ReactElement<typeof ConfigrGroup> | React.ReactElement<typeof ConfigrGroup>[];
7
+ currentAreaIndex?: number;
8
+ children: React.ReactElement<typeof InternalGroup> | React.ReactElement<typeof InternalGroup>[];
9
9
  setValueGetter?: (vg: valueGetter) => void;
10
10
  onChange?: (currentValues: any) => void;
11
11
  }>>;
12
- export declare const ConfigrGroup: React.FunctionComponent<React.PropsWithChildren<{
13
- label: string;
12
+ declare const InternalGroup: React.FunctionComponent<React.PropsWithChildren<{
13
+ label?: string;
14
14
  description?: string | React.ReactNode;
15
15
  level?: undefined | 1 | 2;
16
16
  }>>;
@@ -26,6 +26,7 @@ interface IConfigrProps<T> {
26
26
  disabled?: boolean;
27
27
  overrideValue?: T;
28
28
  overrideDescription?: string;
29
+ pageKey?: string;
29
30
  }
30
31
  export declare const ConfigrInput: React.FunctionComponent<React.PropsWithChildren<IConfigrProps<string | number> & {
31
32
  className?: string;
@@ -76,21 +77,27 @@ interface ISelectProps extends IConfigrProps<string> {
76
77
  getErrorMessage?: (data: any) => string | undefined;
77
78
  }
78
79
  export declare const ConfigrSelect: React.FunctionComponent<React.PropsWithChildren<ISelectProps>>;
79
- export declare const ConfigrSubgroup: React.FunctionComponent<React.PropsWithChildren<{
80
- label: string;
81
- path: string;
80
+ export declare const ConfigrGroup: React.FunctionComponent<React.PropsWithChildren<{
81
+ label?: string;
82
+ pageKey?: string;
83
+ searchTerms?: string;
82
84
  description?: string | React.ReactNode;
83
85
  getErrorMessage?: (data: any) => string | undefined;
86
+ inFocussedPage?: boolean;
84
87
  }>>;
85
- export declare const ConfigrSubPage: React.FunctionComponent<React.PropsWithChildren<{
88
+ export declare const ConfigrPage: React.FunctionComponent<React.PropsWithChildren<{
86
89
  label: string;
87
90
  labelCss?: SerializedStyles;
88
- path: string;
91
+ pageKey?: string;
92
+ searchTerms?: string;
93
+ topLevel?: boolean;
89
94
  getErrorMessage?: (data: any) => string | undefined;
95
+ inFocussedPage?: boolean;
90
96
  }>>;
91
97
  export declare const ConfigrForEach: React.FunctionComponent<React.PropsWithChildren<{
92
98
  path: string;
93
99
  searchTerms: string;
100
+ inFocussedPage?: boolean;
94
101
  render: (pathPrefix: string, index: number) => React.ReactNode;
95
102
  getErrorMessage?: (data: any) => string | undefined;
96
103
  }>>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  export declare const FilterForSearchText: React.FunctionComponent<React.PropsWithChildren<{
3
- label: string;
3
+ label?: string;
4
4
  description?: string | React.ReactNode;
5
5
  kids: React.ReactNode;
6
6
  }>>;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
2
  export declare const HighlightSearchTerms: React.FunctionComponent<React.PropsWithChildren<{
3
3
  searchString: string | null;
4
- focussedSubPagePath: any;
4
+ focussedPageKey: any;
5
5
  }>>;
@@ -0,0 +1,2 @@
1
+ declare function App(): import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default App;
File without changes
@@ -0,0 +1,15 @@
1
+ /*************************
2
+ *
3
+ * NOTE: I was not able to get storybook working with the emotion css-prop under vite.
4
+ * Gave it a couple hours, decided to wait until some parts leave alpha and in the
5
+ * meantime, just run one of the stories at a time, from app. That is, compiled by
6
+ * vite instead of storybook-builder-vite.
7
+ */
8
+ import * as React from 'react';
9
+ export declare const Pets: React.FunctionComponent<{}>;
10
+ export declare const Lameta: React.FunctionComponent<{}>;
11
+ declare const _default: {
12
+ title: string;
13
+ component: () => import("@emotion/react/jsx-runtime").JSX.Element;
14
+ };
15
+ export default _default;
@@ -0,0 +1,14 @@
1
+ /*************************
2
+ *
3
+ * NOTE: I was not able to get storybook working with the emotion css-prop under vite.
4
+ * Gave it a couple hours, decided to wait until some parts leave alpha and in the
5
+ * meantime, just run one of the stories at a time, from app. That is, compiled by
6
+ * vite instead of storybook-builder-vite.
7
+ */
8
+ import * as React from 'react';
9
+ export declare const Pages: React.FunctionComponent<{}>;
10
+ declare const _default: {
11
+ title: string;
12
+ component: () => import("@emotion/react/jsx-runtime").JSX.Element;
13
+ };
14
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ type CharacterAlternateDefinition = {
3
+ name: string;
4
+ cvNum: number;
5
+ choices: string[];
6
+ codepoint: string;
7
+ };
8
+ export declare const SILCharacterAlternates: React.FunctionComponent<{
9
+ path: string;
10
+ inFocussedPage?: boolean;
11
+ }>;
12
+ export declare const CharacterAlternate: React.FunctionComponent<{
13
+ path: string;
14
+ definition: CharacterAlternateDefinition;
15
+ }>;
16
+ export {};
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ component: () => import("@emotion/react/jsx-runtime").JSX.Element;
5
+ };
6
+ export default _default;
7
+ export declare const BloomCollection: React.FunctionComponent;
8
+ export declare const BloomBook: React.FunctionComponent;
9
+ export declare const BloomBookV1: React.FunctionComponent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sillsdev/config-r",
3
- "version": "1.0.0-alpha.14",
3
+ "version": "1.0.0-alpha.16",
4
4
  "license": "MIT",
5
5
  "packageManager": "yarn@1.22.19",
6
6
  "keywords": [
@@ -21,8 +21,8 @@
21
21
  "lint:format": "prettier --loglevel warn --write \"./**/*.{js,jsx,ts,tsx,css,md,json}\" ",
22
22
  "lint": "yarn lint:format && yarn lint:fix ",
23
23
  "type-check": "tsc",
24
- "storybook": "start-storybook -p 6006",
25
- "build-storybook": "build-storybook"
24
+ "storybook": "storybook dev -p 6006",
25
+ "build-storybook": "storybook build"
26
26
  },
27
27
  "dependencies": {
28
28
  "@textea/json-viewer": "^2.13.1",
@@ -50,11 +50,12 @@
50
50
  "@mui/material": "^5.5.3",
51
51
  "@semantic-release/changelog": "^6.0.2",
52
52
  "@semantic-release/commit-analyzer": "^9.0.2",
53
- "@storybook/addon-actions": "^6.5.16",
54
- "@storybook/addon-essentials": "^6.5.16",
55
- "@storybook/addon-links": "^6.5.16",
56
- "@storybook/builder-vite": "^0.4.2",
57
- "@storybook/react": "^6.5.16",
53
+ "@storybook/addon-actions": "^8.2.8",
54
+ "@storybook/addon-essentials": "^8.2.8",
55
+ "@storybook/addon-links": "^8.2.8",
56
+ "@storybook/builder-vite": "^8.2.8",
57
+ "@storybook/react": "^8.2.8",
58
+ "@storybook/react-vite": "^8.2.8",
58
59
  "@types/lodash": "^4.14.178",
59
60
  "@types/mark.js": "^8.11.7",
60
61
  "@types/react": "^18.0.28",
@@ -72,16 +73,17 @@
72
73
  "eslint-plugin-prettier": "^4.2.1",
73
74
  "eslint-plugin-react": "^7.32.2",
74
75
  "eslint-plugin-simple-import-sort": "^10.0.0",
75
- "eslint-plugin-storybook": "^0.6.10",
76
+ "eslint-plugin-storybook": "^0.8.0",
76
77
  "pre-commit": "^1.2.2",
77
- "prettier": "^2.8.4",
78
+ "prettier": "^3.3.3",
78
79
  "react": "^18.2.0",
79
80
  "react-color": "^2.19.3",
80
81
  "react-dom": "^18.2.0",
81
- "rollup-plugin-copy": "^3.4.0",
82
- "typescript": "^4.9.5",
83
- "vite": "^4.1.1",
84
- "vite-plugin-dts": "^1.7.2"
82
+ "rollup-plugin-copy": "^3.5.0",
83
+ "storybook": "8.2.8",
84
+ "typescript": "^5.5.4",
85
+ "vite": "^5.4.0",
86
+ "vite-plugin-dts": "^4.0.2"
85
87
  },
86
88
  "pre-commit": "lint",
87
89
  "files": [
@@ -100,7 +102,7 @@
100
102
  "access": "public"
101
103
  },
102
104
  "volta": {
103
- "node": "16.14.0",
105
+ "node": "18.0.0",
104
106
  "yarn": "1.22.19"
105
107
  }
106
108
  }
File without changes