@soyio/soyio-widget 2.20.0 → 2.22.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 +41 -0
- package/dist/index.d.ts +106 -9
- package/dist/index.js +1223 -1085
- package/dist/index.umd.cjs +31 -31
- package/package.json +1 -1
- package/src/schemas/appearance.schema.json +83 -0
- package/src/schemas/config.schema.json +112 -3
package/package.json
CHANGED
|
@@ -421,6 +421,26 @@
|
|
|
421
421
|
],
|
|
422
422
|
"type": "string"
|
|
423
423
|
},
|
|
424
|
+
"consentControl": {
|
|
425
|
+
"default": "switch",
|
|
426
|
+
"description": "Control type for consent items.\n- 'switch': Toggle switch (default)\n- 'checkbox': Checkbox",
|
|
427
|
+
"enum": [
|
|
428
|
+
"switch",
|
|
429
|
+
"checkbox"
|
|
430
|
+
],
|
|
431
|
+
"type": "string"
|
|
432
|
+
},
|
|
433
|
+
"consentManagementColumns": {
|
|
434
|
+
"default": 2,
|
|
435
|
+
"description": "Number of columns in the consent management grid.",
|
|
436
|
+
"enum": [
|
|
437
|
+
1,
|
|
438
|
+
2,
|
|
439
|
+
3,
|
|
440
|
+
4
|
|
441
|
+
],
|
|
442
|
+
"type": "number"
|
|
443
|
+
},
|
|
424
444
|
"helperTextPosition": {
|
|
425
445
|
"enum": [
|
|
426
446
|
"top",
|
|
@@ -614,6 +634,9 @@
|
|
|
614
634
|
".Alert--info": {
|
|
615
635
|
"$ref": "#/definitions/CSSProperties"
|
|
616
636
|
},
|
|
637
|
+
".Alert--note": {
|
|
638
|
+
"$ref": "#/definitions/CSSProperties"
|
|
639
|
+
},
|
|
617
640
|
".Alert--success": {
|
|
618
641
|
"$ref": "#/definitions/CSSProperties"
|
|
619
642
|
},
|
|
@@ -794,6 +817,36 @@
|
|
|
794
817
|
".CardTitle:hover": {
|
|
795
818
|
"$ref": "#/definitions/CSSProperties"
|
|
796
819
|
},
|
|
820
|
+
".CategoryTag": {
|
|
821
|
+
"$ref": "#/definitions/CSSProperties"
|
|
822
|
+
},
|
|
823
|
+
".CategoryTag--checked": {
|
|
824
|
+
"$ref": "#/definitions/CSSProperties"
|
|
825
|
+
},
|
|
826
|
+
".CategoryTag::placeholder": {
|
|
827
|
+
"$ref": "#/definitions/CSSProperties"
|
|
828
|
+
},
|
|
829
|
+
".CategoryTag::selection": {
|
|
830
|
+
"$ref": "#/definitions/CSSProperties"
|
|
831
|
+
},
|
|
832
|
+
".CategoryTag:active": {
|
|
833
|
+
"$ref": "#/definitions/CSSProperties"
|
|
834
|
+
},
|
|
835
|
+
".CategoryTag:autofill": {
|
|
836
|
+
"$ref": "#/definitions/CSSProperties"
|
|
837
|
+
},
|
|
838
|
+
".CategoryTag:disabled": {
|
|
839
|
+
"$ref": "#/definitions/CSSProperties"
|
|
840
|
+
},
|
|
841
|
+
".CategoryTag:focus": {
|
|
842
|
+
"$ref": "#/definitions/CSSProperties"
|
|
843
|
+
},
|
|
844
|
+
".CategoryTag:focus-visible": {
|
|
845
|
+
"$ref": "#/definitions/CSSProperties"
|
|
846
|
+
},
|
|
847
|
+
".CategoryTag:hover": {
|
|
848
|
+
"$ref": "#/definitions/CSSProperties"
|
|
849
|
+
},
|
|
797
850
|
".Checkbox": {
|
|
798
851
|
"$ref": "#/definitions/CSSProperties"
|
|
799
852
|
},
|
|
@@ -824,6 +877,36 @@
|
|
|
824
877
|
".Checkbox:hover": {
|
|
825
878
|
"$ref": "#/definitions/CSSProperties"
|
|
826
879
|
},
|
|
880
|
+
".CheckboxCheck": {
|
|
881
|
+
"$ref": "#/definitions/CSSProperties"
|
|
882
|
+
},
|
|
883
|
+
".CheckboxCheck--checked": {
|
|
884
|
+
"$ref": "#/definitions/CSSProperties"
|
|
885
|
+
},
|
|
886
|
+
".CheckboxCheck::placeholder": {
|
|
887
|
+
"$ref": "#/definitions/CSSProperties"
|
|
888
|
+
},
|
|
889
|
+
".CheckboxCheck::selection": {
|
|
890
|
+
"$ref": "#/definitions/CSSProperties"
|
|
891
|
+
},
|
|
892
|
+
".CheckboxCheck:active": {
|
|
893
|
+
"$ref": "#/definitions/CSSProperties"
|
|
894
|
+
},
|
|
895
|
+
".CheckboxCheck:autofill": {
|
|
896
|
+
"$ref": "#/definitions/CSSProperties"
|
|
897
|
+
},
|
|
898
|
+
".CheckboxCheck:disabled": {
|
|
899
|
+
"$ref": "#/definitions/CSSProperties"
|
|
900
|
+
},
|
|
901
|
+
".CheckboxCheck:focus": {
|
|
902
|
+
"$ref": "#/definitions/CSSProperties"
|
|
903
|
+
},
|
|
904
|
+
".CheckboxCheck:focus-visible": {
|
|
905
|
+
"$ref": "#/definitions/CSSProperties"
|
|
906
|
+
},
|
|
907
|
+
".CheckboxCheck:hover": {
|
|
908
|
+
"$ref": "#/definitions/CSSProperties"
|
|
909
|
+
},
|
|
827
910
|
".CheckboxInput": {
|
|
828
911
|
"$ref": "#/definitions/CSSProperties"
|
|
829
912
|
},
|
|
@@ -411,7 +411,7 @@
|
|
|
411
411
|
"type": "string"
|
|
412
412
|
},
|
|
413
413
|
"onEvent": {
|
|
414
|
-
"$comment": "(event:
|
|
414
|
+
"$comment": "(event: TEvent) => void",
|
|
415
415
|
"properties": {
|
|
416
416
|
"namedArgs": {
|
|
417
417
|
"additionalProperties": false,
|
|
@@ -489,6 +489,16 @@
|
|
|
489
489
|
"companyId": {
|
|
490
490
|
"type": "string"
|
|
491
491
|
},
|
|
492
|
+
"consentMode": {
|
|
493
|
+
"enum": [
|
|
494
|
+
"immediate",
|
|
495
|
+
"batch"
|
|
496
|
+
],
|
|
497
|
+
"type": "string"
|
|
498
|
+
},
|
|
499
|
+
"consentRetentionPeriod": {
|
|
500
|
+
"type": "string"
|
|
501
|
+
},
|
|
492
502
|
"dataSubjects": {
|
|
493
503
|
"items": {
|
|
494
504
|
"$ref": "#/definitions/DataSubject"
|
|
@@ -532,7 +542,7 @@
|
|
|
532
542
|
"type": "boolean"
|
|
533
543
|
},
|
|
534
544
|
"onEvent": {
|
|
535
|
-
"$comment": "(event:
|
|
545
|
+
"$comment": "(event: TEvent) => void",
|
|
536
546
|
"properties": {
|
|
537
547
|
"namedArgs": {
|
|
538
548
|
"additionalProperties": false,
|
|
@@ -561,6 +571,9 @@
|
|
|
561
571
|
},
|
|
562
572
|
"requestReference": {
|
|
563
573
|
"type": "string"
|
|
574
|
+
},
|
|
575
|
+
"showBatchConsentConfirmation": {
|
|
576
|
+
"type": "boolean"
|
|
564
577
|
}
|
|
565
578
|
},
|
|
566
579
|
"required": [
|
|
@@ -575,6 +588,16 @@
|
|
|
575
588
|
"appearance": {
|
|
576
589
|
"$ref": "#/definitions/SoyioAppearance"
|
|
577
590
|
},
|
|
591
|
+
"consentMode": {
|
|
592
|
+
"enum": [
|
|
593
|
+
"immediate",
|
|
594
|
+
"batch"
|
|
595
|
+
],
|
|
596
|
+
"type": "string"
|
|
597
|
+
},
|
|
598
|
+
"consentRetentionPeriod": {
|
|
599
|
+
"type": "string"
|
|
600
|
+
},
|
|
578
601
|
"dataSubjects": {
|
|
579
602
|
"items": {
|
|
580
603
|
"$ref": "#/definitions/DataSubject"
|
|
@@ -618,7 +641,7 @@
|
|
|
618
641
|
"type": "boolean"
|
|
619
642
|
},
|
|
620
643
|
"onEvent": {
|
|
621
|
-
"$comment": "(event:
|
|
644
|
+
"$comment": "(event: TEvent) => void",
|
|
622
645
|
"properties": {
|
|
623
646
|
"namedArgs": {
|
|
624
647
|
"additionalProperties": false,
|
|
@@ -650,6 +673,9 @@
|
|
|
650
673
|
},
|
|
651
674
|
"sessionToken": {
|
|
652
675
|
"type": "string"
|
|
676
|
+
},
|
|
677
|
+
"showBatchConsentConfirmation": {
|
|
678
|
+
"type": "boolean"
|
|
653
679
|
}
|
|
654
680
|
},
|
|
655
681
|
"required": [
|
|
@@ -722,6 +748,26 @@
|
|
|
722
748
|
],
|
|
723
749
|
"type": "string"
|
|
724
750
|
},
|
|
751
|
+
"consentControl": {
|
|
752
|
+
"default": "switch",
|
|
753
|
+
"description": "Control type for consent items.\n- 'switch': Toggle switch (default)\n- 'checkbox': Checkbox",
|
|
754
|
+
"enum": [
|
|
755
|
+
"switch",
|
|
756
|
+
"checkbox"
|
|
757
|
+
],
|
|
758
|
+
"type": "string"
|
|
759
|
+
},
|
|
760
|
+
"consentManagementColumns": {
|
|
761
|
+
"default": 2,
|
|
762
|
+
"description": "Number of columns in the consent management grid.",
|
|
763
|
+
"enum": [
|
|
764
|
+
1,
|
|
765
|
+
2,
|
|
766
|
+
3,
|
|
767
|
+
4
|
|
768
|
+
],
|
|
769
|
+
"type": "number"
|
|
770
|
+
},
|
|
725
771
|
"helperTextPosition": {
|
|
726
772
|
"enum": [
|
|
727
773
|
"top",
|
|
@@ -915,6 +961,9 @@
|
|
|
915
961
|
".Alert--info": {
|
|
916
962
|
"$ref": "#/definitions/CSSProperties"
|
|
917
963
|
},
|
|
964
|
+
".Alert--note": {
|
|
965
|
+
"$ref": "#/definitions/CSSProperties"
|
|
966
|
+
},
|
|
918
967
|
".Alert--success": {
|
|
919
968
|
"$ref": "#/definitions/CSSProperties"
|
|
920
969
|
},
|
|
@@ -1095,6 +1144,36 @@
|
|
|
1095
1144
|
".CardTitle:hover": {
|
|
1096
1145
|
"$ref": "#/definitions/CSSProperties"
|
|
1097
1146
|
},
|
|
1147
|
+
".CategoryTag": {
|
|
1148
|
+
"$ref": "#/definitions/CSSProperties"
|
|
1149
|
+
},
|
|
1150
|
+
".CategoryTag--checked": {
|
|
1151
|
+
"$ref": "#/definitions/CSSProperties"
|
|
1152
|
+
},
|
|
1153
|
+
".CategoryTag::placeholder": {
|
|
1154
|
+
"$ref": "#/definitions/CSSProperties"
|
|
1155
|
+
},
|
|
1156
|
+
".CategoryTag::selection": {
|
|
1157
|
+
"$ref": "#/definitions/CSSProperties"
|
|
1158
|
+
},
|
|
1159
|
+
".CategoryTag:active": {
|
|
1160
|
+
"$ref": "#/definitions/CSSProperties"
|
|
1161
|
+
},
|
|
1162
|
+
".CategoryTag:autofill": {
|
|
1163
|
+
"$ref": "#/definitions/CSSProperties"
|
|
1164
|
+
},
|
|
1165
|
+
".CategoryTag:disabled": {
|
|
1166
|
+
"$ref": "#/definitions/CSSProperties"
|
|
1167
|
+
},
|
|
1168
|
+
".CategoryTag:focus": {
|
|
1169
|
+
"$ref": "#/definitions/CSSProperties"
|
|
1170
|
+
},
|
|
1171
|
+
".CategoryTag:focus-visible": {
|
|
1172
|
+
"$ref": "#/definitions/CSSProperties"
|
|
1173
|
+
},
|
|
1174
|
+
".CategoryTag:hover": {
|
|
1175
|
+
"$ref": "#/definitions/CSSProperties"
|
|
1176
|
+
},
|
|
1098
1177
|
".Checkbox": {
|
|
1099
1178
|
"$ref": "#/definitions/CSSProperties"
|
|
1100
1179
|
},
|
|
@@ -1125,6 +1204,36 @@
|
|
|
1125
1204
|
".Checkbox:hover": {
|
|
1126
1205
|
"$ref": "#/definitions/CSSProperties"
|
|
1127
1206
|
},
|
|
1207
|
+
".CheckboxCheck": {
|
|
1208
|
+
"$ref": "#/definitions/CSSProperties"
|
|
1209
|
+
},
|
|
1210
|
+
".CheckboxCheck--checked": {
|
|
1211
|
+
"$ref": "#/definitions/CSSProperties"
|
|
1212
|
+
},
|
|
1213
|
+
".CheckboxCheck::placeholder": {
|
|
1214
|
+
"$ref": "#/definitions/CSSProperties"
|
|
1215
|
+
},
|
|
1216
|
+
".CheckboxCheck::selection": {
|
|
1217
|
+
"$ref": "#/definitions/CSSProperties"
|
|
1218
|
+
},
|
|
1219
|
+
".CheckboxCheck:active": {
|
|
1220
|
+
"$ref": "#/definitions/CSSProperties"
|
|
1221
|
+
},
|
|
1222
|
+
".CheckboxCheck:autofill": {
|
|
1223
|
+
"$ref": "#/definitions/CSSProperties"
|
|
1224
|
+
},
|
|
1225
|
+
".CheckboxCheck:disabled": {
|
|
1226
|
+
"$ref": "#/definitions/CSSProperties"
|
|
1227
|
+
},
|
|
1228
|
+
".CheckboxCheck:focus": {
|
|
1229
|
+
"$ref": "#/definitions/CSSProperties"
|
|
1230
|
+
},
|
|
1231
|
+
".CheckboxCheck:focus-visible": {
|
|
1232
|
+
"$ref": "#/definitions/CSSProperties"
|
|
1233
|
+
},
|
|
1234
|
+
".CheckboxCheck:hover": {
|
|
1235
|
+
"$ref": "#/definitions/CSSProperties"
|
|
1236
|
+
},
|
|
1128
1237
|
".CheckboxInput": {
|
|
1129
1238
|
"$ref": "#/definitions/CSSProperties"
|
|
1130
1239
|
},
|