@thunderid/vue 0.0.5 → 0.1.0
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/README.md +1 -1
- package/dist/cjs/index.cjs +11 -11
- package/dist/components/auth/sign-in/v2/SignIn.d.ts.map +1 -1
- package/dist/index.js +11 -11
- package/package.json +7 -5
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-

|
|
2
2
|
|
|
3
3
|
Vue SDK for ThunderID. Provides composables and components for authentication in Vue 3 single-page applications.
|
|
4
4
|
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -7559,12 +7559,12 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
|
|
|
7559
7559
|
const isDeny = componentVariant.toLowerCase() !== "primary";
|
|
7560
7560
|
const decisions = { purposes: consentPrompt.purposes.map((p) => ({
|
|
7561
7561
|
approved: !isDeny,
|
|
7562
|
-
elements: [...p.essential.map((
|
|
7562
|
+
elements: [...p.essential.map((e) => ({
|
|
7563
7563
|
approved: !isDeny,
|
|
7564
|
-
name:
|
|
7565
|
-
})), ...p.optional.map((
|
|
7566
|
-
approved: isDeny ? false : formValues[getConsentOptionalKey(p.purposeId,
|
|
7567
|
-
name:
|
|
7564
|
+
name: e.name
|
|
7565
|
+
})), ...p.optional.map((e) => ({
|
|
7566
|
+
approved: isDeny ? false : formValues[getConsentOptionalKey(p.purposeId, e.name)] !== "false",
|
|
7567
|
+
name: e.name
|
|
7568
7568
|
}))],
|
|
7569
7569
|
purposeName: p.purposeName
|
|
7570
7570
|
})) };
|
|
@@ -8436,17 +8436,17 @@ const SignIn$1 = (0, vue.defineComponent)({
|
|
|
8436
8436
|
}
|
|
8437
8437
|
const decisions = { purposes: purposes.map((p) => ({
|
|
8438
8438
|
approved: !isDeny,
|
|
8439
|
-
elements: [...(p.essential
|
|
8439
|
+
elements: [...(p.essential ?? []).map((e) => ({
|
|
8440
8440
|
approved: !isDeny,
|
|
8441
|
-
name:
|
|
8442
|
-
})), ...(p.optional
|
|
8443
|
-
const key = `__consent_opt__${p.
|
|
8441
|
+
name: e.name
|
|
8442
|
+
})), ...(p.optional ?? []).map((e) => {
|
|
8443
|
+
const key = `__consent_opt__${p.purposeId}__${e.name}`;
|
|
8444
8444
|
return {
|
|
8445
8445
|
approved: isDeny ? false : processedInputs[key] !== "false",
|
|
8446
|
-
name:
|
|
8446
|
+
name: e.name
|
|
8447
8447
|
};
|
|
8448
8448
|
})],
|
|
8449
|
-
|
|
8449
|
+
purposeName: p.purposeName
|
|
8450
8450
|
})) };
|
|
8451
8451
|
processedInputs["consent_decisions"] = JSON.stringify(decisions);
|
|
8452
8452
|
Object.keys(processedInputs).forEach((key) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignIn.d.ts","sourceRoot":"","sources":["../../../../../src/components/auth/sign-in/v2/SignIn.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"SignIn.d.ts","sourceRoot":"","sources":["../../../../../src/components/auth/sign-in/v2/SignIn.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAGL,uBAAuB,IAAI,qBAAqB,EAEhD,2BAA2B,EAI3B,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,SAAS,EAWf,MAAM,KAAK,CAAC;AAsBb;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,UAAU,EAAE,qBAAqB,EAAE,CAAC;IACpC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,UAAU,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAChC,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,IAAI,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAClC,QAAQ,EAAE,CAAC,OAAO,EAAE,2BAA2B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACnE;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,QAAA,MAAM,MAAM,EAAE,SAshBZ,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -7533,12 +7533,12 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
|
|
|
7533
7533
|
const isDeny = componentVariant.toLowerCase() !== "primary";
|
|
7534
7534
|
const decisions = { purposes: consentPrompt.purposes.map((p) => ({
|
|
7535
7535
|
approved: !isDeny,
|
|
7536
|
-
elements: [...p.essential.map((
|
|
7536
|
+
elements: [...p.essential.map((e) => ({
|
|
7537
7537
|
approved: !isDeny,
|
|
7538
|
-
name:
|
|
7539
|
-
})), ...p.optional.map((
|
|
7540
|
-
approved: isDeny ? false : formValues[getConsentOptionalKey(p.purposeId,
|
|
7541
|
-
name:
|
|
7538
|
+
name: e.name
|
|
7539
|
+
})), ...p.optional.map((e) => ({
|
|
7540
|
+
approved: isDeny ? false : formValues[getConsentOptionalKey(p.purposeId, e.name)] !== "false",
|
|
7541
|
+
name: e.name
|
|
7542
7542
|
}))],
|
|
7543
7543
|
purposeName: p.purposeName
|
|
7544
7544
|
})) };
|
|
@@ -8410,17 +8410,17 @@ const SignIn$1 = defineComponent({
|
|
|
8410
8410
|
}
|
|
8411
8411
|
const decisions = { purposes: purposes.map((p) => ({
|
|
8412
8412
|
approved: !isDeny,
|
|
8413
|
-
elements: [...(p.essential
|
|
8413
|
+
elements: [...(p.essential ?? []).map((e) => ({
|
|
8414
8414
|
approved: !isDeny,
|
|
8415
|
-
name:
|
|
8416
|
-
})), ...(p.optional
|
|
8417
|
-
const key = `__consent_opt__${p.
|
|
8415
|
+
name: e.name
|
|
8416
|
+
})), ...(p.optional ?? []).map((e) => {
|
|
8417
|
+
const key = `__consent_opt__${p.purposeId}__${e.name}`;
|
|
8418
8418
|
return {
|
|
8419
8419
|
approved: isDeny ? false : processedInputs[key] !== "false",
|
|
8420
|
-
name:
|
|
8420
|
+
name: e.name
|
|
8421
8421
|
};
|
|
8422
8422
|
})],
|
|
8423
|
-
|
|
8423
|
+
purposeName: p.purposeName
|
|
8424
8424
|
})) };
|
|
8425
8425
|
processedInputs["consent_decisions"] = JSON.stringify(decisions);
|
|
8426
8426
|
Object.keys(processedInputs).forEach((key) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thunderid/vue",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Vue SDK for ThunderID",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"thunderid",
|
|
@@ -56,16 +56,18 @@
|
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"dompurify": "3.
|
|
59
|
+
"dompurify": "3.4.0",
|
|
60
60
|
"tslib": "2.8.1",
|
|
61
|
-
"@thunderid/browser": "^0.0
|
|
61
|
+
"@thunderid/browser": "^0.1.0"
|
|
62
62
|
},
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"access": "public"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
|
-
"build": "pnpm clean &&
|
|
68
|
-
"clean": "
|
|
67
|
+
"build": "pnpm clean:dist && rolldown -c rolldown.config.js && tsc -p tsconfig.lib.json --emitDeclarationOnly --outDir dist",
|
|
68
|
+
"clean": "pnpm clean:node_modules && pnpm clean:dist",
|
|
69
|
+
"clean:dist": "rimraf dist",
|
|
70
|
+
"clean:node_modules": "rimraf node_modules",
|
|
69
71
|
"format:check": "prettier --check --cache .",
|
|
70
72
|
"format:fix": "prettier --write --cache .",
|
|
71
73
|
"lint": "eslint . --ext .js,.jsx,.ts,.tsx,.cjs,.mjs",
|