@micromerce/solution-provider-react 1.0.1707 → 1.0.1732
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/types/components/Loader.d.ts +1 -1
- package/dist/cjs/types/provider/authenticationProvider.d.ts +1 -1
- package/dist/cjs/types/provider/solutionProvider.d.ts +1 -1
- package/dist/cjs/types/stories/components/Button.d.ts +2 -1
- package/dist/cjs/types/stories/components/DataDisplay.d.ts +2 -2
- package/dist/cjs/types/stories/components/Header.d.ts +1 -1
- package/dist/esm/types/components/Loader.d.ts +1 -1
- package/dist/esm/types/provider/authenticationProvider.d.ts +1 -1
- package/dist/esm/types/provider/solutionProvider.d.ts +1 -1
- package/dist/esm/types/stories/components/Button.d.ts +2 -1
- package/dist/esm/types/stories/components/DataDisplay.d.ts +2 -2
- package/dist/esm/types/stories/components/Header.d.ts +1 -1
- package/dist/index.d.ts +2 -3
- package/package.json +59 -3
|
@@ -15,5 +15,5 @@ interface IAuthenticationProvider extends React.ComponentProps<"div"> {
|
|
|
15
15
|
defaultPage?: "register";
|
|
16
16
|
}
|
|
17
17
|
export declare const AuthenticationContext: import("react").Context<IAuthenticationContext>;
|
|
18
|
-
export declare function AuthenticationProvider({ children, serviceId, onSuccessful, disableRegister, defaultEmail, defaultPage, ...authWidgetDivProps }: PropsWithChildren<IAuthenticationProvider>): import("react
|
|
18
|
+
export declare function AuthenticationProvider({ children, serviceId, onSuccessful, disableRegister, defaultEmail, defaultPage, ...authWidgetDivProps }: PropsWithChildren<IAuthenticationProvider>): import("react").JSX.Element;
|
|
19
19
|
export {};
|
|
@@ -27,5 +27,5 @@ export interface ISolutionContext {
|
|
|
27
27
|
fetchService?: FetchServiceFn;
|
|
28
28
|
}
|
|
29
29
|
export declare const SolutionContext: import("react").Context<ISolutionContext>;
|
|
30
|
-
export declare function SolutionProvider({ children, solutionUrl }: PropsWithChildren<ISolutionProvider>): import("react
|
|
30
|
+
export declare function SolutionProvider({ children, solutionUrl }: PropsWithChildren<ISolutionProvider>): import("react").JSX.Element;
|
|
31
31
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import './button.css';
|
|
2
3
|
interface ButtonProps {
|
|
3
4
|
/**
|
|
@@ -24,5 +25,5 @@ interface ButtonProps {
|
|
|
24
25
|
/**
|
|
25
26
|
* Primary UI component for user interaction
|
|
26
27
|
*/
|
|
27
|
-
export declare const Button: ({ primary, size, backgroundColor, label, ...props }: ButtonProps) =>
|
|
28
|
+
export declare const Button: ({ primary, size, backgroundColor, label, ...props }: ButtonProps) => React.JSX.Element;
|
|
28
29
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function DataDisplay(): import("react
|
|
2
|
-
export declare function AuthenticatedDataDisplay(): import("react
|
|
1
|
+
export declare function DataDisplay(): import("react").JSX.Element;
|
|
2
|
+
export declare function AuthenticatedDataDisplay(): import("react").JSX.Element;
|
|
@@ -3,5 +3,5 @@ interface HeaderProps {
|
|
|
3
3
|
email?: string;
|
|
4
4
|
onLogout: () => void;
|
|
5
5
|
}
|
|
6
|
-
export declare const Header: ({ email, onLogout }: HeaderProps) => import("react
|
|
6
|
+
export declare const Header: ({ email, onLogout }: HeaderProps) => import("react").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -15,5 +15,5 @@ interface IAuthenticationProvider extends React.ComponentProps<"div"> {
|
|
|
15
15
|
defaultPage?: "register";
|
|
16
16
|
}
|
|
17
17
|
export declare const AuthenticationContext: import("react").Context<IAuthenticationContext>;
|
|
18
|
-
export declare function AuthenticationProvider({ children, serviceId, onSuccessful, disableRegister, defaultEmail, defaultPage, ...authWidgetDivProps }: PropsWithChildren<IAuthenticationProvider>): import("react
|
|
18
|
+
export declare function AuthenticationProvider({ children, serviceId, onSuccessful, disableRegister, defaultEmail, defaultPage, ...authWidgetDivProps }: PropsWithChildren<IAuthenticationProvider>): import("react").JSX.Element;
|
|
19
19
|
export {};
|
|
@@ -27,5 +27,5 @@ export interface ISolutionContext {
|
|
|
27
27
|
fetchService?: FetchServiceFn;
|
|
28
28
|
}
|
|
29
29
|
export declare const SolutionContext: import("react").Context<ISolutionContext>;
|
|
30
|
-
export declare function SolutionProvider({ children, solutionUrl }: PropsWithChildren<ISolutionProvider>): import("react
|
|
30
|
+
export declare function SolutionProvider({ children, solutionUrl }: PropsWithChildren<ISolutionProvider>): import("react").JSX.Element;
|
|
31
31
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import './button.css';
|
|
2
3
|
interface ButtonProps {
|
|
3
4
|
/**
|
|
@@ -24,5 +25,5 @@ interface ButtonProps {
|
|
|
24
25
|
/**
|
|
25
26
|
* Primary UI component for user interaction
|
|
26
27
|
*/
|
|
27
|
-
export declare const Button: ({ primary, size, backgroundColor, label, ...props }: ButtonProps) =>
|
|
28
|
+
export declare const Button: ({ primary, size, backgroundColor, label, ...props }: ButtonProps) => React.JSX.Element;
|
|
28
29
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function DataDisplay(): import("react
|
|
2
|
-
export declare function AuthenticatedDataDisplay(): import("react
|
|
1
|
+
export declare function DataDisplay(): import("react").JSX.Element;
|
|
2
|
+
export declare function AuthenticatedDataDisplay(): import("react").JSX.Element;
|
|
@@ -3,5 +3,5 @@ interface HeaderProps {
|
|
|
3
3
|
email?: string;
|
|
4
4
|
onLogout: () => void;
|
|
5
5
|
}
|
|
6
|
-
export declare const Header: ({ email, onLogout }: HeaderProps) => import("react
|
|
6
|
+
export declare const Header: ({ email, onLogout }: HeaderProps) => import("react").JSX.Element;
|
|
7
7
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as react from 'react';
|
|
3
2
|
|
|
4
3
|
type FetchFn = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
@@ -32,7 +31,7 @@ interface ISolutionContext {
|
|
|
32
31
|
fetchService?: FetchServiceFn;
|
|
33
32
|
}
|
|
34
33
|
declare const SolutionContext: react.Context<ISolutionContext>;
|
|
35
|
-
declare function SolutionProvider({ children, solutionUrl }: PropsWithChildren<ISolutionProvider>):
|
|
34
|
+
declare function SolutionProvider({ children, solutionUrl }: PropsWithChildren<ISolutionProvider>): react.JSX.Element;
|
|
36
35
|
|
|
37
36
|
interface IAuthenticationContext {
|
|
38
37
|
isAuthenticated: boolean | undefined;
|
|
@@ -50,6 +49,6 @@ interface IAuthenticationProvider extends React.ComponentProps<"div"> {
|
|
|
50
49
|
defaultPage?: "register";
|
|
51
50
|
}
|
|
52
51
|
declare const AuthenticationContext: react.Context<IAuthenticationContext>;
|
|
53
|
-
declare function AuthenticationProvider({ children, serviceId, onSuccessful, disableRegister, defaultEmail, defaultPage, ...authWidgetDivProps }: PropsWithChildren<IAuthenticationProvider>):
|
|
52
|
+
declare function AuthenticationProvider({ children, serviceId, onSuccessful, disableRegister, defaultEmail, defaultPage, ...authWidgetDivProps }: PropsWithChildren<IAuthenticationProvider>): react.JSX.Element;
|
|
54
53
|
|
|
55
54
|
export { AuthenticationContext, AuthenticationProvider, FetchServiceFn, ISolutionContext, ISolutionProvider, SolutionContext, SolutionProvider, fetchService };
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@micromerce/solution-provider-react",
|
|
3
3
|
"author": "Manuel Rodriguez",
|
|
4
4
|
"license": "ISC",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.1732",
|
|
6
6
|
"description": "react provider for easy data access to a micromerce solution",
|
|
7
7
|
"main": "dist/cjs/index.js",
|
|
8
8
|
"module": "dist/esm/index.js",
|
|
@@ -39,11 +39,67 @@
|
|
|
39
39
|
"prop-types": "^15.8.1",
|
|
40
40
|
"react": "^18.2.0",
|
|
41
41
|
"react-dom": "^18.2.0",
|
|
42
|
-
"rollup": "^3.
|
|
42
|
+
"rollup": "^3.30.0",
|
|
43
43
|
"rollup-plugin-dts": "^5.3.0",
|
|
44
|
-
"storybook": "^9.1.
|
|
44
|
+
"storybook": "^9.1.19",
|
|
45
45
|
"ts-node": "^10.9.1",
|
|
46
46
|
"tslib": "^2.5.2",
|
|
47
47
|
"typescript": "^5.0.4"
|
|
48
|
+
},
|
|
49
|
+
"overrides": {
|
|
50
|
+
"minimist@^1": "^1.2.6",
|
|
51
|
+
"lodash@^4": "^4.18.0",
|
|
52
|
+
"form-data@^4": "^4.0.6",
|
|
53
|
+
"@babel/traverse@^7": "^7.23.2",
|
|
54
|
+
"lodash@^3": "^4.18.0",
|
|
55
|
+
"flatted": "^3.4.2",
|
|
56
|
+
"postcss": "^8.5.23",
|
|
57
|
+
"ws@^1": "^5.2.5",
|
|
58
|
+
"ws@^2": "^5.2.5",
|
|
59
|
+
"nanoid@^4": "^5.1.16",
|
|
60
|
+
"brace-expansion@^4": "^5.0.9",
|
|
61
|
+
"semver@^2": "^5.7.2",
|
|
62
|
+
"diff": "^3.5.0",
|
|
63
|
+
"braces": "^3.0.3",
|
|
64
|
+
"js-yaml@^3": "^3.15.1",
|
|
65
|
+
"js-yaml@^4": "^4.3.1",
|
|
66
|
+
"fast-uri@^2": "^2.4.4",
|
|
67
|
+
"fast-uri@^3": "^3.1.5",
|
|
68
|
+
"fast-uri@^4": "^4.1.2",
|
|
69
|
+
"minimatch@^10": "^10.2.3",
|
|
70
|
+
"minimatch@^4": "^4.2.5",
|
|
71
|
+
"minimatch@^5": "^5.1.8",
|
|
72
|
+
"minimatch@^6": "^6.2.2",
|
|
73
|
+
"minimatch@^7": "^7.4.8",
|
|
74
|
+
"minimatch@^8": "^8.0.6",
|
|
75
|
+
"minimatch@^9": "^9.0.7",
|
|
76
|
+
"ws@^6": "^6.2.4",
|
|
77
|
+
"ws@^7": "^7.5.11",
|
|
78
|
+
"ws@^8": "^8.21.0",
|
|
79
|
+
"brace-expansion@^2": "^2.1.4",
|
|
80
|
+
"debug@^3": "^3.1.0",
|
|
81
|
+
"semver@^6": "^6.3.1",
|
|
82
|
+
"semver@^7": "^7.5.2",
|
|
83
|
+
"picomatch@^3": "^3.0.2",
|
|
84
|
+
"picomatch@^4": "^4.0.4",
|
|
85
|
+
"cross-spawn@^7": "^7.0.5",
|
|
86
|
+
"webpack@^5": "^5.94.0",
|
|
87
|
+
"@babel/plugin-transform-modules-systemjs@^7": "^7.29.4",
|
|
88
|
+
"@babel/plugin-transform-modules-systemjs@^8": "^8.0.0",
|
|
89
|
+
"acorn@^5": "^5.7.4",
|
|
90
|
+
"acorn@^6": "^6.4.1",
|
|
91
|
+
"acorn@^7": "^7.1.1",
|
|
92
|
+
"y18n@^4": "^4.0.1",
|
|
93
|
+
"y18n@^5": "^5.0.5",
|
|
94
|
+
"@babel/traverse@^8": "^8.0.0",
|
|
95
|
+
"json5@^2": "^2.2.2",
|
|
96
|
+
"glob@^10": "^10.5.0",
|
|
97
|
+
"glob@^11": "^11.1.0",
|
|
98
|
+
"webpack-dev-middleware@^6": "^6.1.2",
|
|
99
|
+
"webpack-dev-middleware@^7": "^7.1.0",
|
|
100
|
+
"ansi-regex@^3": "^3.0.1",
|
|
101
|
+
"ansi-regex@^4": "^4.1.1",
|
|
102
|
+
"ansi-regex@^5": "^5.0.1",
|
|
103
|
+
"ansi-regex@^6": "^6.0.1"
|
|
48
104
|
}
|
|
49
105
|
}
|