@vlayer/react 0.1.0-nightly-20250211-00e0402 → 0.1.0-nightly-20250211-4022b5f

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vlayer/react",
3
- "version": "0.1.0-nightly-20250211-00e0402",
3
+ "version": "0.1.0-nightly-20250211-4022b5f",
4
4
  "exports": {
5
5
  ".": "./src/index.ts"
6
6
  },
@@ -48,7 +48,7 @@ export class MockExtensionWebProofProvider implements WebProofProvider {
48
48
  const mockProofDoneMessage: ExtensionMessage = {
49
49
  type: ExtensionMessageType.ProofDone,
50
50
  payload: {
51
- presentationJSON:
51
+ presentationJson:
52
52
  this.mockBehavior.mockProof ||
53
53
  ({ mock: "proof" } as unknown as PresentationJSON),
54
54
  decodedTranscript: {
@@ -76,7 +76,7 @@ export class MockExtensionWebProofProvider implements WebProofProvider {
76
76
  }
77
77
 
78
78
  public async getWebProof(): Promise<{
79
- presentationJSON: PresentationJSON;
79
+ presentationJson: PresentationJSON;
80
80
  decodedTranscript: {
81
81
  sent: string;
82
82
  recv: string;
@@ -88,7 +88,7 @@ export class MockExtensionWebProofProvider implements WebProofProvider {
88
88
 
89
89
  if (this.mockBehavior.shouldSucceed) {
90
90
  return {
91
- presentationJSON:
91
+ presentationJson:
92
92
  this.mockBehavior.mockProof ||
93
93
  ({ mock: "proof" } as unknown as PresentationJSON),
94
94
  decodedTranscript: {
@@ -19,9 +19,9 @@ export const useWebProof = (
19
19
  useEffect(() => {
20
20
  webProofProvider.addEventListeners(
21
21
  ExtensionMessageType.ProofDone,
22
- ({ payload: { presentationJSON } }) => {
22
+ ({ payload: { presentationJson } }) => {
23
23
  setWebProof({
24
- webProofJson: JSON.stringify({ presentationJson: presentationJSON }),
24
+ webProofJson: JSON.stringify({ presentationJson: presentationJson }),
25
25
  });
26
26
  setStatus(WebProofRequestStatus.success);
27
27
  },