@velocitycareerlabs/vc-renderer-sample 1.25.0-dev-build.158b56827 → 1.25.0-dev-build.103d7afd4

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/.eslintrc.js CHANGED
@@ -125,4 +125,20 @@ module.exports = {
125
125
  'no-alert': 'off',
126
126
  complexity: ['error', 10],
127
127
  },
128
+ overrides: [
129
+ {
130
+ files: ['./src/test/**/*.js', './src/test/**/*.ts', './src/test/**/*.tsx'],
131
+ rules: {
132
+ complexity: 'off',
133
+ 'no-console': 'off',
134
+ 'max-len': 'off',
135
+ '@typescript-eslint/no-unused-vars': ['off'],
136
+ 'no-useless-constructor': 'off',
137
+ 'no-empty-function': 'off',
138
+ },
139
+ parserOptions: {
140
+ project: ["tsconfig.test.json"],
141
+ },
142
+ },
143
+ ],
128
144
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velocitycareerlabs/vc-renderer-sample",
3
- "version": "1.25.0-dev-build.158b56827",
3
+ "version": "1.25.0-dev-build.103d7afd4",
4
4
  "description": "VC Renderer Sample",
5
5
  "repository": "https://github.com/velocitycareerlabs/packages",
6
6
  "publishConfig": {
@@ -20,7 +20,7 @@
20
20
  "@types/node": "^16.18.119",
21
21
  "@types/react": "18.3.4",
22
22
  "@types/react-dom": "18.3.0",
23
- "@velocitycareerlabs/vc-renderer": "1.25.0-dev-build.158b56827",
23
+ "@velocitycareerlabs/vc-renderer": "1.25.0-dev-build.103d7afd4",
24
24
  "react": "18.3.1",
25
25
  "react-dom": "^18.3.1",
26
26
  "react-scripts": "5.0.1",
@@ -58,5 +58,5 @@
58
58
  "last 1 safari version"
59
59
  ]
60
60
  },
61
- "gitHead": "3343fd1b41c99a0e0d8085bb2bf3b2db4dd17c4f"
61
+ "gitHead": "8b82d0eb01cc9e22f9c2ee4b3e1f097476424526"
62
62
  }
package/src/App.tsx CHANGED
@@ -1,6 +1,5 @@
1
1
  /* eslint-disable better-mutation/no-mutation */
2
2
  import { useCallback, useState } from 'react';
3
- // eslint-disable-next-line import/no-extraneous-dependencies
4
3
  import {
5
4
  VcsSummaryRenderer,
6
5
  VcDetailsRenderer,
@@ -68,7 +67,7 @@ const App = () => {
68
67
  </Typography>
69
68
  <Box sx={[styles.demoContainer, styles.containerSize2]}>
70
69
  <VcsSummaryRenderer
71
- onClick={(id) => alert(`credential id: ${id}`)}
70
+ onClick={(id?: string) => alert(`credential id: ${id}`)}
72
71
  vcsData={{ vcsPrepared: CREDENTIALS_MAPPED }}
73
72
  vcsStatus={STATUS}
74
73
  vcsRecentlyAdded={{ '6703a5192f771a68797aceb1': true }}
@@ -81,7 +80,7 @@ const App = () => {
81
80
  </Typography>
82
81
  <Box sx={[styles.demoContainer, styles.containerSize2]}>
83
82
  <VcsSummaryRenderer
84
- onClick={(id) => alert(`credential id: ${id}`)}
83
+ onClick={(id?: string) => alert(`credential id: ${id}`)}
85
84
  vcsData={{ vcsPrepared: CREDENTIALS_MAPPED }}
86
85
  vcsStatus={STATUS}
87
86
  onSelect={handleSelectMapped}
@@ -94,7 +93,7 @@ const App = () => {
94
93
  </Typography>
95
94
  <Box sx={[styles.demoContainer, styles.containerSize2]}>
96
95
  <VcsSummaryRenderer
97
- onClick={(id) => alert(`credential id: ${id}`)}
96
+ onClick={(id?: string) => alert(`credential id: ${id}`)}
98
97
  vcsData={{ vcsPrepared: CREDENTIALS_MAPPED }}
99
98
  vcsStatus={STATUS}
100
99
  onSelect={handleSelectMapped}
@@ -106,7 +105,7 @@ const App = () => {
106
105
  Using raw data
107
106
  </Typography>
108
107
  <VcsSummaryRenderer
109
- onClick={(id) => alert(`credential id: ${id}`)}
108
+ onClick={(id?: string) => alert(`credential id: ${id}`)}
110
109
  vcsData={{
111
110
  vcs: CREDENTIALS,
112
111
  descriptors: DESCRIPTORS,
@@ -119,7 +118,7 @@ const App = () => {
119
118
  Using raw data. Missing Descriptors
120
119
  </Typography>
121
120
  <VcsSummaryRenderer
122
- onClick={(id) => alert(`credential id: ${id}`)}
121
+ onClick={(id?: string) => alert(`credential id: ${id}`)}
123
122
  vcsData={{ vcs: CREDENTIALS, descriptors: {}, issuers: ISSUERS }}
124
123
  vcsStatus={STATUS}
125
124
  isSelectable={false}
@@ -128,7 +127,7 @@ const App = () => {
128
127
  Using raw data. Missing Issuers
129
128
  </Typography>
130
129
  <VcsSummaryRenderer
131
- onClick={(id) => alert(`credential id: ${id}`)}
130
+ onClick={(id?: string) => alert(`credential id: ${id}`)}
132
131
  vcsData={{ vcs: CREDENTIALS, descriptors: DESCRIPTORS, issuers: {} }}
133
132
  vcsStatus={STATUS}
134
133
  isSelectable={false}
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { Document, Text, StyleSheet } from '@react-pdf/renderer';
3
- // eslint-disable-next-line import/no-extraneous-dependencies
4
3
  import { VcRendererPDF } from '@velocitycareerlabs/vc-renderer';
5
4
  import {
6
5
  CREDENTIALS,
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Created by Michael Avoyan on 04/02/2025.
3
+ *
4
+ * Copyright 2022 Velocity Career Labs inc.
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
7
+ describe('Empty Test', () => {
8
+ test('empty test', async () => {
9
+ expect(true).toBeTruthy();
10
+ });
11
+ });
package/tsconfig.json CHANGED
@@ -1,25 +1,32 @@
1
- {"compilerOptions": {
2
- "target": "es5",
3
- "lib": [
4
- "dom",
5
- "dom.iterable",
6
- "esnext"
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es5",
4
+ "lib": [
5
+ "dom",
6
+ "dom.iterable",
7
+ "esnext"
8
+ ],
9
+ "allowJs": true,
10
+ "skipLibCheck": true,
11
+ "esModuleInterop": true,
12
+ "allowSyntheticDefaultImports": true,
13
+ "strict": true,
14
+ "forceConsistentCasingInFileNames": true,
15
+ "noFallthroughCasesInSwitch": true,
16
+ "module": "esnext",
17
+ "moduleResolution": "node",
18
+ "resolveJsonModule": true,
19
+ "isolatedModules": true,
20
+ "noEmit": true,
21
+ "jsx": "react-jsx",
22
+ "baseUrl": "src"
23
+ },
24
+ "include": [
25
+ "./src/**/*"
7
26
  ],
8
- "allowJs": true,
9
- "skipLibCheck": true,
10
- "esModuleInterop": true,
11
- "allowSyntheticDefaultImports": true,
12
- "strict": true,
13
- "forceConsistentCasingInFileNames": true,
14
- "noFallthroughCasesInSwitch": true,
15
- "module": "esnext",
16
- "moduleResolution": "node",
17
- "resolveJsonModule": true,
18
- "isolatedModules": true,
19
- "noEmit": true,
20
- "jsx": "react-jsx",
21
- "baseUrl": "src",
22
- },
23
- "include": [
24
- "src" ]
25
- }
27
+ "exclude": [
28
+ "node_modules",
29
+ "dist",
30
+ "build",
31
+ ]
32
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "noEmit": true,
5
+ "types": ["jest"],
6
+ "isolatedModules": false
7
+ },
8
+ "include": [
9
+ "**/test",
10
+ "**/test/**/*",
11
+ ]
12
+ }