oiu-core 0.0.23 → 0.0.24

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.
@@ -0,0 +1,16 @@
1
+ import { IntlShape } from 'react-intl';
2
+ import { ErrorStore } from '../../redux/slices/errorSlice';
3
+ export type ErrorCodeProps = {
4
+ code: number;
5
+ args?: unknown[];
6
+ };
7
+ /**
8
+ * Return an error code text from the loaded errors in redux. This component asume the error are already loaded
9
+ * @param param0
10
+ * @returns
11
+ */
12
+ export declare function ErrorCode({ code, args }: ErrorCodeProps): string;
13
+ export declare namespace ErrorCode {
14
+ var text: (_intl: IntlShape, code: number, errors: ErrorStore["errors"], ...args: unknown[]) => string;
15
+ }
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/ErrorCode/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAW,MAAM,YAAY,CAAC;AAGhD,OAAO,EAAiB,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAI1E,MAAM,MAAM,cAAc,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC;CACpB,CAAA;AACD;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,cAAc,UAQvD;yBARe,SAAS;sBAiBA,SAAS,QAAQ,MAAM,UAAU,UAAU,CAAC,QAAQ,CAAC,WAAW,OAAO,EAAE"}
@@ -1,7 +1,9 @@
1
1
  export { Wait } from './Wait';
2
2
  export { LangProvider } from './LangProvider';
3
3
  export { ConfigLoader } from './ConfigLoader';
4
+ export { ErrorCode } from './ErrorCode';
4
5
  export type { WaitProps, SpinProps } from './Wait';
5
6
  export type { LangProviderProps } from './LangProvider';
6
7
  export type { ConfigLoaderProps } from './ConfigLoader';
8
+ export type { ErrorCodeProps } from './ErrorCode';
7
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/components/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnD,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/components/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnD,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
@@ -1,4 +1,4 @@
1
- import { A as Re, P as f, a as $, d as Ue } from "./main-CWZPdfaD.js";
1
+ import { A as Re, P as f, a as $, d as Ue } from "./main-CKsxQPF4.js";
2
2
  class j extends Error {
3
3
  }
4
4
  j.prototype.name = "InvalidTokenError";