wjec-one 4.0.11 → 4.0.12

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/index.d.ts CHANGED
@@ -131,6 +131,9 @@ type BreadcrumbProps<T> = {
131
131
  */
132
132
  showCurrent?: boolean;
133
133
  } & Pick<AriaProperties, 'ariaCurrent'>;
134
+ /**
135
+ * This component displays a navigation trail to help users track and navigate their location within the app's hierarchy.
136
+ */
134
137
  declare const Breadcrumb: <T extends {}>({ breadcrumbs, id, keyExtractor, labelExtractor, onClick, showCurrent }: WjecOneComponentProps<BreadcrumbProps<T>>) => React$1.JSX.Element;
135
138
 
136
139
  type GenericStrings = {
package/package.json CHANGED
@@ -1,12 +1,31 @@
1
1
  {
2
2
  "name": "wjec-one",
3
- "version": "4.0.11",
3
+ "version": "4.0.12",
4
4
  "description": "",
5
- "main": "umd/index.js",
6
- "module": "index.js",
5
+ "exports": {
6
+ ".": "./index.js",
7
+ "./auth": "./auth/index.js",
8
+ "./layout": "./layout/index.js",
9
+ "./localization": "./localization/index.js",
10
+ "./portal": "./portal/index.js",
11
+ "./services": "./services/index.js",
12
+ "./store": "./store/index.js",
13
+ "./test": "./test/index.ts",
14
+ "./theme": "./theme/index.js",
15
+ "./utils": "./utils/index.js",
16
+ "./umd": "./umd/index.js",
17
+ "./umd/auth": "./umd/auth/index.js",
18
+ "./umd/layout": "./umd/layout/index.js",
19
+ "./umd/localization": "./umd/localization/index.js",
20
+ "./umd/portal": "./umd/portal/index.js",
21
+ "./umd/services": "./umd/services/index.js",
22
+ "./umd/store": "./umd/store/index.js",
23
+ "./umd/theme": "./umd/theme/index.js",
24
+ "./umd/utils": "./umd/utils/index.js"
25
+ },
7
26
  "sideEffects": false,
8
27
  "scripts": {
9
- "build": "npm run clear-temp && npm run clean-dist && npm run lint && npm run test-coverage && ttsc --project tsconfig.prod.json && npm run copy-assets && npm run build-rollup && npm run copy-config && npm run copy-project-types && npm run copy-scripts && npm run copy-test && npm run copy-package && npm run clear-temp",
28
+ "build": "npm run clear-temp && npm run clean-dist && npm run lint && npm run test-coverage && ttsc --project tsconfig.prod.json && npm run copy-assets && npm run build-rollup && npm run copy-config && npm run copy-project-types && npm run copy-scripts && npm run copy-test && npm run copy-package && npm run clear-temp && npm run generate-docs",
10
29
  "build-rollup": "rollup -c rollup.config.mjs --environment BUILD:production",
11
30
  "build-webpack": "webpack --mode=production",
12
31
  "check-package": "cd dist && npm pack && tar -xvzf *.tgz && rm -rf package *.tgz",
@@ -19,6 +38,7 @@
19
38
  "copy-scripts": "copyfiles scripts/** dist",
20
39
  "copy-test": "copyfiles test/* dist",
21
40
  "copy-project-types": "copyfiles wjec-one-project.d.ts dist",
41
+ "generate-docs": "node scripts/generate-docs.js",
22
42
  "lint": "eslint \"./!(dist|scratchpad|temp|test)/**/*.{ts,tsx}\"",
23
43
  "start-scratchpad": "webpack-dev-server --mode=development",
24
44
  "test": "node scripts/test.js --config ./jest.config.js --root=./auth --root=./layout --root=./localization --root=./portal --root=./services --root=./src --root=./store --root=./theme --root=./utils --skipFileCheck",
@@ -90,6 +110,7 @@
90
110
  "react": "^18.0.0",
91
111
  "react-aria": "^3.33.0",
92
112
  "react-beautiful-dnd": "^13.1.0",
113
+ "react-docgen-typescript": "^2.2.2",
93
114
  "react-dom": "^18.0.0",
94
115
  "react-swipeable": "^7.0.0",
95
116
  "react-test-renderer": "^18.0.0",
package/portal/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  import { SecondaryAccessGroup as SecondaryAccessGroup$1, AccountType as AccountType$1 } from 'portal/types';
3
3
  import react, { FC, CSSProperties, SVGProps, MouseEvent, PropsWithChildren } from 'react';
4
- import { FormattedString as FormattedString$1, getLocales } from 'wjec-one/localization';
5
4
  import { SVGComponent as SVGComponent$1 } from 'wjec-one/utils';
6
5
  import { Header as Header$1 } from 'portal/src/components/layout/Header';
7
6
  import { Footer as Footer$1 } from 'portal/src/components/layout/Footer';
7
+ import { getLocales, FormattedString as FormattedString$1 } from 'wjec-one/localization';
8
8
  import { Internationalization as Internationalization$5, Links } from 'portal/src/components/Navigation/types';
9
9
  import { SigninFormProps } from 'portal/src/components/SigninForm/types';
10
10
 
@@ -52,7 +52,9 @@ declare const HelpMenu: FC<Props$a>;
52
52
  /** @jsx jsx */
53
53
 
54
54
  type Props$9 = {
55
- copyrightMessage?: FormattedString$1;
55
+ i18n?: {
56
+ copyrightMessage: string;
57
+ };
56
58
  logos?: Array<(props: react.SVGProps<SVGSVGElement>) => SVGComponent$1>;
57
59
  maxWidth?: number;
58
60
  };