@australiangreens/ag-internal-components 0.1.15 → 0.1.17
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/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/components/ExampleComponent/ExampleComponent.stories.d.ts +2 -2
- package/dist/components/FetchAutocomplete/FetchAutocomplete.d.ts +1 -1
- package/dist/components/FetchAutocomplete/FetchAutocomplete.d.ts.map +1 -1
- package/dist/components/NavBar/NavBarDarkStyledList.d.ts +1 -1
- package/dist/components/NavBar/NavBarLightStyledList.d.ts +1 -1
- package/dist/components/NavBar/index.stories.d.ts +2 -2
- package/dist/components/NavBar/testWrappers.d.ts +2 -2
- package/dist/domainCode/hooks.d.ts +1 -1
- package/dist/esm/index.js +270 -275
- package/dist/esm/index.js.map +1 -1
- package/dist/layouts/AppLayout/AppLayout.d.ts +1 -1
- package/dist/layouts/AppLayout/stateAtoms.d.ts +7 -7
- package/dist/layouts/PageLayout/PageLayout.d.ts +1 -1
- package/dist/layouts/PageLayout/index.stories.d.ts +2 -2
- package/dist/providers/SaladBar/SaladBarContext.d.ts +1 -1
- package/dist/providers/SaladBar/testWrappers.d.ts +1 -1
- package/dist/providers/SaladBar/useSaladBar.d.ts +1 -1
- package/dist/providers/index.d.ts +1 -2
- package/dist/providers/index.d.ts.map +1 -1
- package/dist/testing/wrappers.d.ts +10 -10
- package/dist/themes/fed21Theme.d.ts +1 -1
- package/dist/themes/internalAgSystemsTheme.d.ts +1 -1
- package/package.json +16 -16
- package/dist/providers/Atom/index.d.ts +0 -2
- package/dist/providers/Atom/index.d.ts.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentProps, PropsWithChildren } from 'react';
|
|
2
2
|
import { NavBarProps } from './NavBar';
|
|
3
|
-
import PageContainer from './PageContainer';
|
|
3
|
+
import { default as PageContainer } from './PageContainer';
|
|
4
4
|
export interface BaseAppLayoutProps {
|
|
5
5
|
/** Either an array of objects used to automatically generate the content of
|
|
6
6
|
* the navbar (WIP), or a node to render directly.*/
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
export declare const navBarOpenAtom: import(
|
|
2
|
+
export declare const navBarOpenAtom: import('jotai').PrimitiveAtom<boolean> & {
|
|
3
3
|
init: boolean;
|
|
4
4
|
};
|
|
5
|
-
export declare const navBarWidthOpenAtom: import(
|
|
5
|
+
export declare const navBarWidthOpenAtom: import('jotai').PrimitiveAtom<number> & {
|
|
6
6
|
init: number;
|
|
7
7
|
};
|
|
8
|
-
export declare const navBarWidthClosedAtom: import(
|
|
8
|
+
export declare const navBarWidthClosedAtom: import('jotai').PrimitiveAtom<number> & {
|
|
9
9
|
init: number;
|
|
10
10
|
};
|
|
11
|
-
export declare const titleTextAtom: import(
|
|
11
|
+
export declare const titleTextAtom: import('jotai').PrimitiveAtom<string> & {
|
|
12
12
|
init: string;
|
|
13
13
|
};
|
|
14
|
-
export declare const topBarMiddleAtom: import(
|
|
14
|
+
export declare const topBarMiddleAtom: import('jotai').PrimitiveAtom<ReactNode> & {
|
|
15
15
|
init: ReactNode;
|
|
16
16
|
};
|
|
17
|
-
export declare const topBarHeightAtom: import(
|
|
17
|
+
export declare const topBarHeightAtom: import('jotai').PrimitiveAtom<number> & {
|
|
18
18
|
init: number;
|
|
19
19
|
};
|
|
20
|
-
export declare const navBarTopAtom: import(
|
|
20
|
+
export declare const navBarTopAtom: import('jotai').PrimitiveAtom<ReactNode> & {
|
|
21
21
|
init: ReactNode;
|
|
22
22
|
};
|
|
23
23
|
//# sourceMappingURL=stateAtoms.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import PageLayout from '.';
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as PageLayout } from '.';
|
|
3
3
|
declare const meta: Meta<typeof PageLayout>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
2
|
import { SnackbarProps } from '@mui/material';
|
|
3
3
|
import { SaladBarCloseReason, SaladBarState, SaladBarActions, SaladBarContext } from './types';
|
|
4
4
|
export declare const Context: React.Context<SaladBarContext | null>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SaladBarProviderProps } from './SaladBarContext';
|
|
2
|
-
export declare const withSaladBarProvider: import(
|
|
2
|
+
export declare const withSaladBarProvider: import('souvlaki').SimpleHelper<[props?: SaladBarProviderProps | undefined, state?: Partial<unknown> | undefined, actions?: Partial<unknown> | undefined]>;
|
|
3
3
|
//# sourceMappingURL=testWrappers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/providers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,YAAY,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/providers/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -10,23 +10,23 @@ import { PropsWithChildren } from 'react';
|
|
|
10
10
|
*/
|
|
11
11
|
declare const atomsToOverride: {
|
|
12
12
|
domainCode: WritableAtom<"" | "act" | "nsw" | "nt" | "qld" | "sa" | "tas" | "vic" | "wa" | "ag" | "fedmps", [newValue: "" | "act" | "nsw" | "nt" | "qld" | "sa" | "tas" | "vic" | "wa" | "ag" | "fedmps"], void>;
|
|
13
|
-
navBarOpen: import(
|
|
13
|
+
navBarOpen: import('jotai').PrimitiveAtom<boolean> & {
|
|
14
14
|
init: boolean;
|
|
15
15
|
};
|
|
16
|
-
navBarWidthOpen: import(
|
|
16
|
+
navBarWidthOpen: import('jotai').PrimitiveAtom<number> & {
|
|
17
17
|
init: number;
|
|
18
18
|
};
|
|
19
|
-
navBarWidthClosed: import(
|
|
19
|
+
navBarWidthClosed: import('jotai').PrimitiveAtom<number> & {
|
|
20
20
|
init: number;
|
|
21
21
|
};
|
|
22
|
-
titleText: import(
|
|
22
|
+
titleText: import('jotai').PrimitiveAtom<string> & {
|
|
23
23
|
init: string;
|
|
24
24
|
};
|
|
25
|
-
topBarHeight: import(
|
|
25
|
+
topBarHeight: import('jotai').PrimitiveAtom<number> & {
|
|
26
26
|
init: number;
|
|
27
27
|
};
|
|
28
|
-
navBarTop: import(
|
|
29
|
-
init: import(
|
|
28
|
+
navBarTop: import('jotai').PrimitiveAtom<import('react').ReactNode> & {
|
|
29
|
+
init: import('react').ReactNode;
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
32
|
type OverrideValues<T> = [WritableAtom<T, T[], void>, T][];
|
|
@@ -35,11 +35,11 @@ type AtomConfigValue<T extends AtomConfigOption> = ReturnType<typeof useAtomValu
|
|
|
35
35
|
type AtomConfig = {
|
|
36
36
|
[K in AtomConfigOption]: AtomConfigValue<K>;
|
|
37
37
|
};
|
|
38
|
-
export declare const withAtomProvider: import(
|
|
38
|
+
export declare const withAtomProvider: import('souvlaki').SimpleHelper<[]>;
|
|
39
39
|
export declare const HydrateAtoms: <T>({ initialValues, children, }: PropsWithChildren<{
|
|
40
40
|
initialValues: OverrideValues<T>;
|
|
41
41
|
}>) => import("react/jsx-runtime").JSX.Element;
|
|
42
|
-
export declare const withOverrideDefaults: import(
|
|
43
|
-
export declare const withQueryClient: import(
|
|
42
|
+
export declare const withOverrideDefaults: import('souvlaki').SimpleHelper<[overrides: Partial<AtomConfig>]>;
|
|
43
|
+
export declare const withQueryClient: import('souvlaki').SimpleHelper<[]>;
|
|
44
44
|
export {};
|
|
45
45
|
//# sourceMappingURL=wrappers.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@australiangreens/ag-internal-components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.17",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://github.com/australiangreens/ag-internal-components#readme",
|
|
7
7
|
"license": "MIT",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"test:coverage": "vitest run --coverage",
|
|
20
20
|
"test:watch": "vitest",
|
|
21
21
|
"### LIFECYCLE SCRIPTS ###": "",
|
|
22
|
-
"prepare": "husky
|
|
22
|
+
"prepare": "husky",
|
|
23
23
|
"prepublishOnly": "pnpm eslint && pnpm test && pnpm build",
|
|
24
24
|
"### HUSKY GIT HOOKS ###": "Called by husky pre-commit and pre-push scripts",
|
|
25
25
|
"prepush": "sh ./scripts/githooks/pre-push.sh",
|
|
@@ -48,14 +48,15 @@
|
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@australiangreens/ag-error": "^0.1.7",
|
|
50
50
|
"@australiangreens/ag-error-jest": "^0.1.9",
|
|
51
|
-
"@tanstack/react-query": "^
|
|
51
|
+
"@tanstack/react-query": "^5.52.3",
|
|
52
52
|
"@types/react-transition-group": "^4.4.11",
|
|
53
53
|
"autosuggest-highlight": "^3.3.4",
|
|
54
54
|
"buffer": "^6.0.3",
|
|
55
55
|
"jotai": "^2.9.3",
|
|
56
56
|
"react-avatar": "^5.0.3",
|
|
57
57
|
"react-transition-group": "^4.4.5",
|
|
58
|
-
"souvlaki": "^0.3.0"
|
|
58
|
+
"souvlaki": "^0.3.0",
|
|
59
|
+
"test": "^3.3.0"
|
|
59
60
|
},
|
|
60
61
|
"peerDependencies": {
|
|
61
62
|
"@auth0/auth0-react": "^2.2.1",
|
|
@@ -80,11 +81,10 @@
|
|
|
80
81
|
"@storybook/blocks": "^8.2.9",
|
|
81
82
|
"@storybook/react": "^8.2.9",
|
|
82
83
|
"@storybook/react-vite": "^8.2.9",
|
|
83
|
-
"@storybook/testing-library": "^0.0.14-next.2",
|
|
84
84
|
"@testing-library/dom": "^9.3.1",
|
|
85
|
-
"@testing-library/jest-dom": "^6.
|
|
85
|
+
"@testing-library/jest-dom": "^6.5.0",
|
|
86
86
|
"@testing-library/react": "^14.0.0",
|
|
87
|
-
"@testing-library/user-event": "^14.
|
|
87
|
+
"@testing-library/user-event": "^14.5.2",
|
|
88
88
|
"@types/autosuggest-highlight": "^3.2.3",
|
|
89
89
|
"@types/node": "^22.5.1",
|
|
90
90
|
"@types/react": "^18.3.4",
|
|
@@ -107,21 +107,21 @@
|
|
|
107
107
|
"eslint-plugin-storybook": "^0.6.12",
|
|
108
108
|
"eslint-plugin-testing-library": "^5.11.0",
|
|
109
109
|
"eslint-plugin-tsdoc": "^0.2.17",
|
|
110
|
-
"happy-dom": "^
|
|
110
|
+
"happy-dom": "^15.6.0",
|
|
111
111
|
"husky": "^9.1.5",
|
|
112
112
|
"jest-extended": "^4.0.2",
|
|
113
|
-
"lint-staged": "^
|
|
114
|
-
"prettier": "^
|
|
115
|
-
"react": "^18.
|
|
116
|
-
"react-dom": "^18.
|
|
117
|
-
"react-router": "^6.
|
|
118
|
-
"react-router-dom": "^6.
|
|
113
|
+
"lint-staged": "^15.2.9",
|
|
114
|
+
"prettier": "^3.3.3",
|
|
115
|
+
"react": "^18.3.1",
|
|
116
|
+
"react-dom": "^18.3.1",
|
|
117
|
+
"react-router": "^6.26.1",
|
|
118
|
+
"react-router-dom": "^6.26.1",
|
|
119
119
|
"storybook": "^8.2.9",
|
|
120
120
|
"typescript": "^5.5.4",
|
|
121
121
|
"vite": "^5.4.2",
|
|
122
|
-
"vite-plugin-dts": "^
|
|
122
|
+
"vite-plugin-dts": "^4.0.3",
|
|
123
123
|
"vite-plugin-linter": "^2.0.2",
|
|
124
|
-
"vite-tsconfig-paths": "^
|
|
124
|
+
"vite-tsconfig-paths": "^5.0.1",
|
|
125
125
|
"vitest": "^0.34.4"
|
|
126
126
|
},
|
|
127
127
|
"husky": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/providers/Atom/index.tsx"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|