@soyio/soyio-widget 3.1.0 → 3.3.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 +34 -3
- package/dist/index.d.ts +12 -0
- package/dist/index.js +1202 -1084
- package/dist/index.umd.cjs +36 -36
- package/package.json +12 -26
- package/src/schemas/config.schema.json +128 -1
package/package.json
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soyio/soyio-widget",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
|
+
"homepage": "https://docs.soyio.id/",
|
|
4
5
|
"type": "module",
|
|
5
6
|
"main": "./dist/index.umd.cjs",
|
|
6
7
|
"module": "./dist/index.js",
|
|
7
8
|
"types": "./dist/index.d.ts",
|
|
8
9
|
"repository": {
|
|
9
10
|
"type": "git",
|
|
10
|
-
"url": "https://github.com/Soyio-id/
|
|
11
|
+
"url": "git+https://github.com/Soyio-id/soyio.git",
|
|
12
|
+
"directory": "sdks/soyio-widget"
|
|
11
13
|
},
|
|
12
14
|
"exports": {
|
|
13
15
|
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
14
17
|
"import": "./dist/index.js",
|
|
15
18
|
"require": "./dist/index.umd.cjs"
|
|
16
19
|
},
|
|
@@ -25,24 +28,24 @@
|
|
|
25
28
|
"scripts": {
|
|
26
29
|
"bump!": "sh scripts/bump.sh",
|
|
27
30
|
"dev": "vite",
|
|
28
|
-
"build": "tsc && vite build",
|
|
31
|
+
"build": "pnpm generate-taxonomy && tsc && vite build",
|
|
29
32
|
"preview": "vite preview",
|
|
30
33
|
"lint": "eslint . --ext .ts",
|
|
31
34
|
"test": "vitest",
|
|
32
35
|
"version:get": "node -p \"require('./package.json').version\"",
|
|
33
36
|
"generate-schema:appearance": "ts-json-schema-generator --path src/embeds/appearance/types.ts --type SoyioAppearance --no-type-check --out src/schemas/appearance.schema.json",
|
|
34
|
-
"generate-schema:config": "ts-json-schema-generator --path src/schema-types.ts --type SoyioWidgetConfig --no-type-check --out src/schemas/config.schema.json",
|
|
35
|
-
"generate-
|
|
36
|
-
"
|
|
37
|
+
"generate-schema:config": "pnpm generate-taxonomy && ts-json-schema-generator --path src/schema-types.ts --type SoyioWidgetConfig --no-type-check --out src/schemas/config.schema.json",
|
|
38
|
+
"generate-taxonomy": "node scripts/generate-taxonomy.mjs",
|
|
39
|
+
"generate-schema": "pnpm generate-schema:appearance && pnpm generate-schema:config",
|
|
40
|
+
"smoke": "pnpm generate-schema && vite serve smoke-test --config vite.smoke.config.ts"
|
|
37
41
|
},
|
|
38
42
|
"devDependencies": {
|
|
43
|
+
"@eslint/js": "^9.30.1",
|
|
39
44
|
"@monaco-editor/react": "^4.7.0",
|
|
40
45
|
"@types/node": "^20.10.1",
|
|
41
46
|
"@types/post-robot": "^10.0.6",
|
|
42
47
|
"@types/react": "^19.2.7",
|
|
43
48
|
"@types/react-dom": "^19.2.3",
|
|
44
|
-
"@typescript-eslint/eslint-plugin": "^6.13.2",
|
|
45
|
-
"@typescript-eslint/parser": "^6.13.2",
|
|
46
49
|
"@vitejs/plugin-react": "^5.1.2",
|
|
47
50
|
"eslint": "^9.30.1",
|
|
48
51
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
@@ -61,22 +64,5 @@
|
|
|
61
64
|
"vite": "7.2.6",
|
|
62
65
|
"vite-plugin-dts": "^4.5.4"
|
|
63
66
|
},
|
|
64
|
-
"
|
|
65
|
-
"@microsoft/api-extractor": "^7.57.7",
|
|
66
|
-
"brace-expansion": "^1.1.12",
|
|
67
|
-
"lodash": "^4.17.23",
|
|
68
|
-
"vite": "7.2.6",
|
|
69
|
-
"js-yaml": "^4.1.1",
|
|
70
|
-
"**/eslint/minimatch": "^3.1.4",
|
|
71
|
-
"**/eslint-plugin-import/minimatch": "^3.1.4",
|
|
72
|
-
"**/@eslint/eslintrc/minimatch": "^3.1.4",
|
|
73
|
-
"**/@eslint/config-array/minimatch": "^3.1.4",
|
|
74
|
-
"**/typedoc/minimatch": "^9.0.7",
|
|
75
|
-
"**/@vue/language-core/minimatch": "^9.0.7",
|
|
76
|
-
"**/@typescript-eslint/typescript-estree/minimatch": "^9.0.7",
|
|
77
|
-
"**/glob/minimatch": "^10.2.3",
|
|
78
|
-
"**/@microsoft/api-extractor/minimatch": "^10.2.3",
|
|
79
|
-
"**/rollup": "^4.59.0"
|
|
80
|
-
},
|
|
81
|
-
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
|
67
|
+
"packageManager": "pnpm@10.19.0"
|
|
82
68
|
}
|
|
@@ -603,6 +603,12 @@
|
|
|
603
603
|
"requestReference": {
|
|
604
604
|
"type": "string"
|
|
605
605
|
},
|
|
606
|
+
"requestableDataCategories": {
|
|
607
|
+
"items": {
|
|
608
|
+
"$ref": "#/definitions/PrivacyCenterRequestableDataCategoryOption"
|
|
609
|
+
},
|
|
610
|
+
"type": "array"
|
|
611
|
+
},
|
|
606
612
|
"rightExamples": {
|
|
607
613
|
"additionalProperties": false,
|
|
608
614
|
"properties": {
|
|
@@ -755,6 +761,12 @@
|
|
|
755
761
|
"requestReference": {
|
|
756
762
|
"type": "string"
|
|
757
763
|
},
|
|
764
|
+
"requestableDataCategories": {
|
|
765
|
+
"items": {
|
|
766
|
+
"$ref": "#/definitions/PrivacyCenterRequestableDataCategoryOption"
|
|
767
|
+
},
|
|
768
|
+
"type": "array"
|
|
769
|
+
},
|
|
758
770
|
"rightExamples": {
|
|
759
771
|
"additionalProperties": false,
|
|
760
772
|
"properties": {
|
|
@@ -806,6 +818,9 @@
|
|
|
806
818
|
"PrivacyCenterConsentManagementConfig": {
|
|
807
819
|
"additionalProperties": false,
|
|
808
820
|
"properties": {
|
|
821
|
+
"allowMultipleOpenScopeGroups": {
|
|
822
|
+
"type": "boolean"
|
|
823
|
+
},
|
|
809
824
|
"scopeGroups": {
|
|
810
825
|
"items": {
|
|
811
826
|
"$ref": "#/definitions/PrivacyCenterConsentManagementScopeGroupConfig"
|
|
@@ -902,6 +917,24 @@
|
|
|
902
917
|
},
|
|
903
918
|
"type": "object"
|
|
904
919
|
},
|
|
920
|
+
"PrivacyCenterRequestableDataCategoryOption": {
|
|
921
|
+
"additionalProperties": false,
|
|
922
|
+
"properties": {
|
|
923
|
+
"description": {
|
|
924
|
+
"type": "string"
|
|
925
|
+
},
|
|
926
|
+
"label": {
|
|
927
|
+
"type": "string"
|
|
928
|
+
},
|
|
929
|
+
"value": {
|
|
930
|
+
"$ref": "#/definitions/UserDataCategoryKey"
|
|
931
|
+
}
|
|
932
|
+
},
|
|
933
|
+
"required": [
|
|
934
|
+
"value"
|
|
935
|
+
],
|
|
936
|
+
"type": "object"
|
|
937
|
+
},
|
|
905
938
|
"PrivacyCenterRight": {
|
|
906
939
|
"enum": [
|
|
907
940
|
"arsop",
|
|
@@ -2861,6 +2894,100 @@
|
|
|
2861
2894
|
}
|
|
2862
2895
|
],
|
|
2863
2896
|
"description": "Combined configuration type for generating the JSON schema. This includes all possible configuration options for both PrivacyCenterBox and ConsentBox."
|
|
2897
|
+
},
|
|
2898
|
+
"UserDataCategoryKey": {
|
|
2899
|
+
"enum": [
|
|
2900
|
+
"user",
|
|
2901
|
+
"user.account",
|
|
2902
|
+
"user.authorization",
|
|
2903
|
+
"user.behavior",
|
|
2904
|
+
"user.biometric",
|
|
2905
|
+
"user.childrens",
|
|
2906
|
+
"user.contact",
|
|
2907
|
+
"user.content",
|
|
2908
|
+
"user.demographic",
|
|
2909
|
+
"user.location",
|
|
2910
|
+
"user.device",
|
|
2911
|
+
"user.payment",
|
|
2912
|
+
"user.social",
|
|
2913
|
+
"user.unique_id",
|
|
2914
|
+
"user.telemetry",
|
|
2915
|
+
"user.user_sensor",
|
|
2916
|
+
"user.workplace",
|
|
2917
|
+
"user.sensor",
|
|
2918
|
+
"user.financial",
|
|
2919
|
+
"user.government_id",
|
|
2920
|
+
"user.health_and_medical",
|
|
2921
|
+
"user.name",
|
|
2922
|
+
"user.criminal_history",
|
|
2923
|
+
"user.privacy_preferences",
|
|
2924
|
+
"user.job_title",
|
|
2925
|
+
"user.account.settings",
|
|
2926
|
+
"user.account.username",
|
|
2927
|
+
"user.authorization.credentials",
|
|
2928
|
+
"user.authorization.biometric",
|
|
2929
|
+
"user.authorization.password",
|
|
2930
|
+
"user.behavior.browsing_history",
|
|
2931
|
+
"user.behavior.media_consumption",
|
|
2932
|
+
"user.behavior.purchase_history",
|
|
2933
|
+
"user.behavior.search_history",
|
|
2934
|
+
"user.biometric.fingerprint",
|
|
2935
|
+
"user.biometric.retinal",
|
|
2936
|
+
"user.biometric.voice",
|
|
2937
|
+
"user.biometric.health",
|
|
2938
|
+
"user.contact.address",
|
|
2939
|
+
"user.contact.email",
|
|
2940
|
+
"user.contact.phone_number",
|
|
2941
|
+
"user.contact.url",
|
|
2942
|
+
"user.contact.fax_number",
|
|
2943
|
+
"user.contact.organization",
|
|
2944
|
+
"user.contact.address.city",
|
|
2945
|
+
"user.contact.address.country",
|
|
2946
|
+
"user.contact.address.postal_code",
|
|
2947
|
+
"user.contact.address.state",
|
|
2948
|
+
"user.contact.address.street",
|
|
2949
|
+
"user.content.private",
|
|
2950
|
+
"user.content.public",
|
|
2951
|
+
"user.content.self_image",
|
|
2952
|
+
"user.demographic.age_range",
|
|
2953
|
+
"user.demographic.date_of_birth",
|
|
2954
|
+
"user.demographic.gender",
|
|
2955
|
+
"user.demographic.language",
|
|
2956
|
+
"user.demographic.marital_status",
|
|
2957
|
+
"user.demographic.political_opinion",
|
|
2958
|
+
"user.demographic.profile",
|
|
2959
|
+
"user.demographic.race_ethnicity",
|
|
2960
|
+
"user.demographic.religious_belief",
|
|
2961
|
+
"user.demographic.sexual_orientation",
|
|
2962
|
+
"user.demographic.nationality",
|
|
2963
|
+
"user.device.cookie",
|
|
2964
|
+
"user.device.cookie_id",
|
|
2965
|
+
"user.device.device_id",
|
|
2966
|
+
"user.device.ip_address",
|
|
2967
|
+
"user.financial.bank_account",
|
|
2968
|
+
"user.financial.credit_card",
|
|
2969
|
+
"user.government_id.birth_certificate",
|
|
2970
|
+
"user.government_id.drivers_license_number",
|
|
2971
|
+
"user.government_id.immigration",
|
|
2972
|
+
"user.government_id.national_identification_number",
|
|
2973
|
+
"user.government_id.passport_number",
|
|
2974
|
+
"user.government_id.vehicle_registration",
|
|
2975
|
+
"user.health_and_medical.genetic",
|
|
2976
|
+
"user.health_and_medical.insurance_beneficiary_id",
|
|
2977
|
+
"user.health_and_medical.record_id",
|
|
2978
|
+
"user.labor_activity",
|
|
2979
|
+
"user.labor_activity.profession",
|
|
2980
|
+
"user.labor_activity.job_title",
|
|
2981
|
+
"user.labor_activity.worker_type",
|
|
2982
|
+
"user.labor_activity.salary",
|
|
2983
|
+
"user.labor_activity.workplace",
|
|
2984
|
+
"user.location.imprecise",
|
|
2985
|
+
"user.location.precise",
|
|
2986
|
+
"user.name.first",
|
|
2987
|
+
"user.name.last",
|
|
2988
|
+
"user.unique_id.pseudonymous"
|
|
2989
|
+
],
|
|
2990
|
+
"type": "string"
|
|
2864
2991
|
}
|
|
2865
2992
|
}
|
|
2866
|
-
}
|
|
2993
|
+
}
|