@proveanything/smartlinks-auth-ui 0.1.22 → 0.1.23
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/components/ClaimUI.d.ts.map +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +9 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClaimUI.d.ts","sourceRoot":"","sources":["../../src/components/ClaimUI.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,OAAO,KAAK,EAAE,sBAAsB,EAAY,MAAM,UAAU,CAAC;AAEjE,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,
|
|
1
|
+
{"version":3,"file":"ClaimUI.d.ts","sourceRoot":"","sources":["../../src/components/ClaimUI.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,OAAO,KAAK,EAAE,sBAAsB,EAAY,MAAM,UAAU,CAAC;AAEjE,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAuO9D,CAAC"}
|
package/dist/index.esm.js
CHANGED
|
@@ -13074,7 +13074,7 @@ const AccountManagement = ({ apiEndpoint, clientId, onError, className = '', cus
|
|
|
13074
13074
|
}, className: "auth-button button-secondary", children: "Cancel" })] })] }))] }))] }));
|
|
13075
13075
|
};
|
|
13076
13076
|
|
|
13077
|
-
const SmartlinksClaimUI = ({ apiEndpoint, clientId, clientName, collectionId, productId, proofId, onClaimSuccess, onClaimError, additionalFields = [], theme = 'light', className = '', minimal = false, customization = {}, }) => {
|
|
13077
|
+
const SmartlinksClaimUI = ({ apiEndpoint, clientId, clientName, collectionId, productId, proofId, onClaimSuccess, onClaimError, additionalFields = [], theme = 'light', className = '', minimal = false, proxyMode = false, customization = {}, }) => {
|
|
13078
13078
|
const auth = useAuth();
|
|
13079
13079
|
const [claimStep, setClaimStep] = useState(auth.isAuthenticated ? 'questions' : 'auth');
|
|
13080
13080
|
const [claimData, setClaimData] = useState({});
|
|
@@ -13150,7 +13150,7 @@ const SmartlinksClaimUI = ({ apiEndpoint, clientId, clientName, collectionId, pr
|
|
|
13150
13150
|
};
|
|
13151
13151
|
// Render authentication step
|
|
13152
13152
|
if (claimStep === 'auth') {
|
|
13153
|
-
return (jsx("div", { className: className, children: jsx(SmartlinksAuthUI, { apiEndpoint: apiEndpoint, clientId: clientId, clientName: clientName, onAuthSuccess: handleAuthSuccess, onAuthError: onClaimError, theme: theme, minimal: minimal, customization: customization.authConfig }) }));
|
|
13153
|
+
return (jsx("div", { className: className, children: jsx(SmartlinksAuthUI, { apiEndpoint: apiEndpoint, clientId: clientId, clientName: clientName, onAuthSuccess: handleAuthSuccess, onAuthError: onClaimError, theme: theme, minimal: minimal, proxyMode: proxyMode, customization: customization.authConfig }) }));
|
|
13154
13154
|
}
|
|
13155
13155
|
// Render additional questions step
|
|
13156
13156
|
if (claimStep === 'questions') {
|