@converge-cloudops/gaia-ui 0.3.4 → 0.3.6
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/README.md +2 -0
- package/dist/context/GaiaShellContext.d.ts +3 -0
- package/dist/context/GaiaShellContext.d.ts.map +1 -1
- package/dist/context/GaiaShellProvider.d.ts +1 -1
- package/dist/context/GaiaShellProvider.d.ts.map +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +349 -344
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -116,6 +116,8 @@ Full documentation is in the [`documentation/`](./documentation/) folder:
|
|
|
116
116
|
- [NavbarLinksGroup](https://github.com/cict-cloud/gaia-ui/blob/main/documentation/components/NavbarLinksGroup.md) — nav link primitive
|
|
117
117
|
- [GaiaShellProvider](https://github.com/cict-cloud/gaia-ui/blob/main/documentation/context/GaiaShellProvider.md) — context provider for user and remote configs
|
|
118
118
|
- [GaiaShellContext](https://github.com/cict-cloud/gaia-ui/blob/main/documentation/context/GaiaShellContext.md) — context types and hooks (`useGaiaShellContext`, `useGaiaRemoteConfig`)
|
|
119
|
+
- [createRemoteBaseQuery](https://github.com/cict-cloud/gaia-ui/blob/main/documentation/api/createRemoteBaseQuery.md) — RTK Query base query with a mutable base URL
|
|
120
|
+
- [createRemoteConfigProvider](https://github.com/cict-cloud/gaia-ui/blob/main/documentation/api/createRemoteConfigProvider.md) — wires remote URL from context into an RTK Query API
|
|
119
121
|
- [API Reference](https://github.com/cict-cloud/gaia-ui/blob/main/documentation/api-reference.md) — all exported TypeScript types
|
|
120
122
|
|
|
121
123
|
---
|
|
@@ -15,10 +15,13 @@ export interface GaiaShellUser {
|
|
|
15
15
|
}
|
|
16
16
|
export interface GaiaShellContextValue {
|
|
17
17
|
user: GaiaShellUser | null;
|
|
18
|
+
setUser: (user: GaiaShellUser | null) => void;
|
|
18
19
|
remotes: GaiaRemoteConfigs;
|
|
19
20
|
}
|
|
20
21
|
declare const GaiaShellContext: import('react').Context<GaiaShellContextValue>;
|
|
21
22
|
export declare const useGaiaShellContext: () => GaiaShellContextValue;
|
|
23
|
+
export declare const useGaiaShellUser: () => GaiaShellUser | null;
|
|
24
|
+
export declare const useSetGaiaShellUser: () => (user: GaiaShellUser | null) => void;
|
|
22
25
|
export declare const useGaiaRemoteConfig: <K extends keyof GaiaRemoteConfigs>(remote: K) => GaiaRemoteConfigs[K];
|
|
23
26
|
export { GaiaShellContext };
|
|
24
27
|
//# sourceMappingURL=GaiaShellContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GaiaShellContext.d.ts","sourceRoot":"","sources":["../../src/context/GaiaShellContext.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAC7B,KAAK,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CAE7B;
|
|
1
|
+
{"version":3,"file":"GaiaShellContext.d.ts","sourceRoot":"","sources":["../../src/context/GaiaShellContext.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAC7B,KAAK,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CAE7B;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,aAAa,GAAG,IAAI,CAAC;IAC3B,OAAO,EAAE,CAAC,IAAI,EAAE,aAAa,GAAG,IAAI,KAAK,IAAI,CAAC;IAC9C,OAAO,EAAE,iBAAiB,CAAC;CAC5B;AAED,QAAA,MAAM,gBAAgB,gDAIpB,CAAC;AAGH,eAAO,MAAM,mBAAmB,6BAAqC,CAAC;AAGtE,eAAO,MAAM,gBAAgB,4BAA0C,CAAC;AACxE,eAAO,MAAM,mBAAmB,eAfd,aAAa,GAAG,IAAI,KAAK,IAekC,CAAC;AAC9E,eAAO,MAAM,mBAAmB,GAAI,CAAC,SAAS,MAAM,iBAAiB,EACnE,QAAQ,CAAC,KACR,iBAAiB,CAAC,CAAC,CAErB,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GaiaShellContextValue } from './GaiaShellContext';
|
|
2
2
|
interface Props {
|
|
3
|
-
value: GaiaShellContextValue
|
|
3
|
+
value: Omit<GaiaShellContextValue, "user" | "setUser">;
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
}
|
|
6
6
|
export declare function GaiaShellProvider({ value, children }: Props): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GaiaShellProvider.d.ts","sourceRoot":"","sources":["../../src/context/GaiaShellProvider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GaiaShellProvider.d.ts","sourceRoot":"","sources":["../../src/context/GaiaShellProvider.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,qBAAqB,EAE3B,MAAM,oBAAoB,CAAC;AAE5B,UAAU,KAAK;IACb,KAAK,EAAE,IAAI,CAAC,qBAAqB,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IACvD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,iBAAiB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,KAAK,2CAO3D"}
|