@soyio/soyio-widget 3.2.0 → 3.4.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/package.json CHANGED
@@ -1,16 +1,19 @@
1
1
  {
2
2
  "name": "@soyio/soyio-widget",
3
- "version": "3.2.0",
3
+ "version": "3.4.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/soy-io-widget"
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-schema": "yarn generate-schema:appearance && yarn generate-schema:config",
36
- "smoke": "yarn generate-schema && vite serve smoke-test --config vite.smoke.config.ts"
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
- "resolutions": {
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
  }
@@ -572,6 +572,10 @@
572
572
  "isSandbox": {
573
573
  "type": "boolean"
574
574
  },
575
+ "metadata": {
576
+ "additionalProperties": {},
577
+ "type": "object"
578
+ },
575
579
  "onEvent": {
576
580
  "$comment": "(event: TEvent) => void",
577
581
  "properties": {
@@ -594,6 +598,9 @@
594
598
  "onReady": {
595
599
  "$comment": "() => void"
596
600
  },
601
+ "origin": {
602
+ "type": "string"
603
+ },
597
604
  "redecOperationIds": {
598
605
  "items": {
599
606
  "$ref": "#/definitions/RedecOperationId"
@@ -603,6 +610,12 @@
603
610
  "requestReference": {
604
611
  "type": "string"
605
612
  },
613
+ "requestableDataCategories": {
614
+ "items": {
615
+ "$ref": "#/definitions/PrivacyCenterRequestableDataCategoryOption"
616
+ },
617
+ "type": "array"
618
+ },
606
619
  "rightExamples": {
607
620
  "additionalProperties": false,
608
621
  "properties": {
@@ -724,6 +737,10 @@
724
737
  "isSandbox": {
725
738
  "type": "boolean"
726
739
  },
740
+ "metadata": {
741
+ "additionalProperties": {},
742
+ "type": "object"
743
+ },
727
744
  "onEvent": {
728
745
  "$comment": "(event: TEvent) => void",
729
746
  "properties": {
@@ -746,6 +763,9 @@
746
763
  "onReady": {
747
764
  "$comment": "() => void"
748
765
  },
766
+ "origin": {
767
+ "type": "string"
768
+ },
749
769
  "redecOperationIds": {
750
770
  "items": {
751
771
  "$ref": "#/definitions/RedecOperationId"
@@ -755,6 +775,12 @@
755
775
  "requestReference": {
756
776
  "type": "string"
757
777
  },
778
+ "requestableDataCategories": {
779
+ "items": {
780
+ "$ref": "#/definitions/PrivacyCenterRequestableDataCategoryOption"
781
+ },
782
+ "type": "array"
783
+ },
758
784
  "rightExamples": {
759
785
  "additionalProperties": false,
760
786
  "properties": {
@@ -905,6 +931,24 @@
905
931
  },
906
932
  "type": "object"
907
933
  },
934
+ "PrivacyCenterRequestableDataCategoryOption": {
935
+ "additionalProperties": false,
936
+ "properties": {
937
+ "description": {
938
+ "type": "string"
939
+ },
940
+ "label": {
941
+ "type": "string"
942
+ },
943
+ "value": {
944
+ "$ref": "#/definitions/UserDataCategoryKey"
945
+ }
946
+ },
947
+ "required": [
948
+ "value"
949
+ ],
950
+ "type": "object"
951
+ },
908
952
  "PrivacyCenterRight": {
909
953
  "enum": [
910
954
  "arsop",
@@ -2864,6 +2908,100 @@
2864
2908
  }
2865
2909
  ],
2866
2910
  "description": "Combined configuration type for generating the JSON schema. This includes all possible configuration options for both PrivacyCenterBox and ConsentBox."
2911
+ },
2912
+ "UserDataCategoryKey": {
2913
+ "enum": [
2914
+ "user",
2915
+ "user.account",
2916
+ "user.authorization",
2917
+ "user.behavior",
2918
+ "user.biometric",
2919
+ "user.childrens",
2920
+ "user.contact",
2921
+ "user.content",
2922
+ "user.demographic",
2923
+ "user.location",
2924
+ "user.device",
2925
+ "user.payment",
2926
+ "user.social",
2927
+ "user.unique_id",
2928
+ "user.telemetry",
2929
+ "user.user_sensor",
2930
+ "user.workplace",
2931
+ "user.sensor",
2932
+ "user.financial",
2933
+ "user.government_id",
2934
+ "user.health_and_medical",
2935
+ "user.name",
2936
+ "user.criminal_history",
2937
+ "user.privacy_preferences",
2938
+ "user.job_title",
2939
+ "user.account.settings",
2940
+ "user.account.username",
2941
+ "user.authorization.credentials",
2942
+ "user.authorization.biometric",
2943
+ "user.authorization.password",
2944
+ "user.behavior.browsing_history",
2945
+ "user.behavior.media_consumption",
2946
+ "user.behavior.purchase_history",
2947
+ "user.behavior.search_history",
2948
+ "user.biometric.fingerprint",
2949
+ "user.biometric.retinal",
2950
+ "user.biometric.voice",
2951
+ "user.biometric.health",
2952
+ "user.contact.address",
2953
+ "user.contact.email",
2954
+ "user.contact.phone_number",
2955
+ "user.contact.url",
2956
+ "user.contact.fax_number",
2957
+ "user.contact.organization",
2958
+ "user.contact.address.city",
2959
+ "user.contact.address.country",
2960
+ "user.contact.address.postal_code",
2961
+ "user.contact.address.state",
2962
+ "user.contact.address.street",
2963
+ "user.content.private",
2964
+ "user.content.public",
2965
+ "user.content.self_image",
2966
+ "user.demographic.age_range",
2967
+ "user.demographic.date_of_birth",
2968
+ "user.demographic.gender",
2969
+ "user.demographic.language",
2970
+ "user.demographic.marital_status",
2971
+ "user.demographic.political_opinion",
2972
+ "user.demographic.profile",
2973
+ "user.demographic.race_ethnicity",
2974
+ "user.demographic.religious_belief",
2975
+ "user.demographic.sexual_orientation",
2976
+ "user.demographic.nationality",
2977
+ "user.device.cookie",
2978
+ "user.device.cookie_id",
2979
+ "user.device.device_id",
2980
+ "user.device.ip_address",
2981
+ "user.financial.bank_account",
2982
+ "user.financial.credit_card",
2983
+ "user.government_id.birth_certificate",
2984
+ "user.government_id.drivers_license_number",
2985
+ "user.government_id.immigration",
2986
+ "user.government_id.national_identification_number",
2987
+ "user.government_id.passport_number",
2988
+ "user.government_id.vehicle_registration",
2989
+ "user.health_and_medical.genetic",
2990
+ "user.health_and_medical.insurance_beneficiary_id",
2991
+ "user.health_and_medical.record_id",
2992
+ "user.labor_activity",
2993
+ "user.labor_activity.profession",
2994
+ "user.labor_activity.job_title",
2995
+ "user.labor_activity.worker_type",
2996
+ "user.labor_activity.salary",
2997
+ "user.labor_activity.workplace",
2998
+ "user.location.imprecise",
2999
+ "user.location.precise",
3000
+ "user.name.first",
3001
+ "user.name.last",
3002
+ "user.unique_id.pseudonymous"
3003
+ ],
3004
+ "type": "string"
2867
3005
  }
2868
3006
  }
2869
3007
  }