@redocly/theme 0.16.0 → 0.17.1

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.
Files changed (117) hide show
  1. package/lib/components/CodeBlock/CodeBlock.d.ts +29 -1
  2. package/lib/components/CodeBlock/CodeBlock.js +56 -94
  3. package/lib/components/CodeBlock/CodeBlockContainer.d.ts +3 -0
  4. package/lib/components/CodeBlock/CodeBlockContainer.js +120 -0
  5. package/lib/components/CodeBlock/CodeBlockControlButton.d.ts +5 -0
  6. package/lib/components/CodeBlock/CodeBlockControlButton.js +63 -0
  7. package/lib/components/CodeBlock/CodeBlockControls.d.ts +33 -0
  8. package/lib/components/CodeBlock/CodeBlockControls.js +56 -0
  9. package/lib/components/CodeBlock/index.d.ts +3 -0
  10. package/lib/components/CodeBlock/index.js +3 -0
  11. package/lib/components/CopyButton/CopyButton.d.ts +12 -3
  12. package/lib/components/CopyButton/CopyButton.js +30 -26
  13. package/lib/components/CopyButton/index.d.ts +0 -1
  14. package/lib/components/CopyButton/index.js +0 -1
  15. package/lib/components/Feedback/useReportDialog.d.ts +12 -6
  16. package/lib/components/Feedback/useReportDialog.js +13 -5
  17. package/lib/components/JsonViewer/JsonViewer.d.ts +0 -1
  18. package/lib/components/JsonViewer/JsonViewer.js +100 -119
  19. package/lib/components/Markdown/MarkdownWrapper.d.ts +5 -1
  20. package/lib/components/Markdown/MarkdownWrapper.js +59 -53
  21. package/lib/components/Menu/MobileMenu.js +2 -2
  22. package/lib/components/Menu/MobileMenuGroup.js +1 -1
  23. package/lib/components/Panel/PanelHeader.js +0 -1
  24. package/lib/components/Tooltip/Tooltip.js +2 -0
  25. package/lib/components/index.d.ts +0 -3
  26. package/lib/components/index.js +0 -3
  27. package/lib/config.d.ts +526 -24
  28. package/lib/config.js +150 -4
  29. package/lib/globalStyle.js +50 -7
  30. package/lib/icons/ArrowIcon/ArrowIcon.d.ts +3 -3
  31. package/lib/icons/ArrowIcon/ArrowIcon.js +33 -6
  32. package/lib/icons/CollapseIcon/CollapseIcon.d.ts +7 -0
  33. package/lib/icons/CollapseIcon/CollapseIcon.js +22 -0
  34. package/lib/icons/CollapseIcon/index.d.ts +1 -0
  35. package/lib/{components/SourceCode → icons/CollapseIcon}/index.js +1 -1
  36. package/lib/icons/CopyIcon/CopyIcon.d.ts +7 -0
  37. package/lib/icons/CopyIcon/CopyIcon.js +17 -0
  38. package/lib/icons/CopyIcon/index.d.ts +1 -0
  39. package/lib/{components/CodeSample → icons/CopyIcon}/index.js +1 -1
  40. package/lib/icons/DeselectIcon/DeselectIcon.d.ts +7 -0
  41. package/lib/icons/DeselectIcon/DeselectIcon.js +19 -0
  42. package/lib/icons/DeselectIcon/index.d.ts +1 -0
  43. package/lib/{components/SamplesPanelControls → icons/DeselectIcon}/index.js +1 -1
  44. package/lib/icons/ExpandIcon/ExpandIcon.d.ts +5 -6
  45. package/lib/icons/ExpandIcon/ExpandIcon.js +10 -19
  46. package/lib/icons/FileIcon/FileIcon.d.ts +7 -0
  47. package/lib/icons/FileIcon/FileIcon.js +17 -0
  48. package/lib/icons/FileIcon/index.d.ts +1 -0
  49. package/lib/icons/FileIcon/index.js +18 -0
  50. package/lib/icons/ReportIcon/ReportIcon.d.ts +7 -0
  51. package/lib/icons/ReportIcon/ReportIcon.js +19 -0
  52. package/lib/icons/ReportIcon/index.d.ts +1 -0
  53. package/lib/icons/ReportIcon/index.js +18 -0
  54. package/lib/icons/SelectIcon/SelectIcon.d.ts +7 -0
  55. package/lib/icons/SelectIcon/SelectIcon.js +19 -0
  56. package/lib/icons/SelectIcon/index.d.ts +1 -0
  57. package/lib/icons/SelectIcon/index.js +18 -0
  58. package/lib/icons/index.d.ts +7 -1
  59. package/lib/icons/index.js +7 -1
  60. package/lib/layouts/Forbidden.js +2 -2
  61. package/lib/ui/darkColors.js +4 -4
  62. package/lib/utils/highlight.d.ts +1 -0
  63. package/lib/utils/highlight.js +1 -0
  64. package/package.json +2 -2
  65. package/src/components/CodeBlock/CodeBlock.tsx +100 -0
  66. package/src/components/CodeBlock/{CodeBlock.ts → CodeBlockContainer.tsx} +23 -6
  67. package/src/components/CodeBlock/CodeBlockControlButton.tsx +38 -0
  68. package/src/components/CodeBlock/CodeBlockControls.tsx +182 -0
  69. package/src/components/CodeBlock/index.ts +3 -0
  70. package/src/components/CopyButton/CopyButton.tsx +71 -19
  71. package/src/components/CopyButton/index.ts +0 -1
  72. package/src/components/Feedback/useReportDialog.ts +24 -14
  73. package/src/components/JsonViewer/JsonViewer.tsx +112 -142
  74. package/src/components/Markdown/MarkdownWrapper.tsx +65 -54
  75. package/src/components/Menu/MobileMenu.tsx +3 -3
  76. package/src/components/Menu/MobileMenuGroup.tsx +4 -2
  77. package/src/components/Panel/PanelHeader.ts +0 -1
  78. package/src/components/Tooltip/Tooltip.tsx +2 -0
  79. package/src/components/index.ts +0 -3
  80. package/src/config.ts +168 -8
  81. package/src/globalStyle.ts +50 -7
  82. package/src/icons/ArrowIcon/ArrowIcon.tsx +37 -14
  83. package/src/icons/CollapseIcon/CollapseIcon.tsx +40 -0
  84. package/src/icons/CollapseIcon/index.tsx +1 -0
  85. package/src/icons/CopyIcon/CopyIcon.tsx +26 -0
  86. package/src/icons/CopyIcon/index.ts +1 -0
  87. package/src/icons/DeselectIcon/DeselectIcon.tsx +28 -0
  88. package/src/icons/DeselectIcon/index.ts +1 -0
  89. package/src/icons/ExpandIcon/ExpandIcon.tsx +28 -34
  90. package/src/icons/FileIcon/FileIcon.tsx +29 -0
  91. package/src/icons/FileIcon/index.ts +1 -0
  92. package/src/icons/ReportIcon/ReportIcon.tsx +36 -0
  93. package/src/icons/ReportIcon/index.ts +1 -0
  94. package/src/icons/SelectIcon/SelectIcon.tsx +31 -0
  95. package/src/icons/SelectIcon/index.ts +1 -0
  96. package/src/icons/index.ts +7 -1
  97. package/src/layouts/Forbidden.tsx +1 -1
  98. package/src/ui/darkColors.tsx +4 -4
  99. package/src/utils/highlight.ts +1 -0
  100. package/lib/components/CodeSample/CodeSample.d.ts +0 -10
  101. package/lib/components/CodeSample/CodeSample.js +0 -226
  102. package/lib/components/CodeSample/index.d.ts +0 -1
  103. package/lib/components/CopyButton/CopyButtonWrapper.d.ts +0 -11
  104. package/lib/components/CopyButton/CopyButtonWrapper.js +0 -53
  105. package/lib/components/SamplesPanelControls/SamplesPanelControls.d.ts +0 -4
  106. package/lib/components/SamplesPanelControls/SamplesPanelControls.js +0 -76
  107. package/lib/components/SamplesPanelControls/index.d.ts +0 -1
  108. package/lib/components/SourceCode/SourceCode.d.ts +0 -33
  109. package/lib/components/SourceCode/SourceCode.js +0 -60
  110. package/lib/components/SourceCode/index.d.ts +0 -1
  111. package/src/components/CodeSample/CodeSample.tsx +0 -257
  112. package/src/components/CodeSample/index.ts +0 -1
  113. package/src/components/CopyButton/CopyButtonWrapper.tsx +0 -55
  114. package/src/components/SamplesPanelControls/SamplesPanelControls.ts +0 -76
  115. package/src/components/SamplesPanelControls/index.ts +0 -1
  116. package/src/components/SourceCode/SourceCode.tsx +0 -128
  117. package/src/components/SourceCode/index.ts +0 -1
package/lib/config.d.ts CHANGED
@@ -72,6 +72,229 @@ declare const markdownConfigSchema: {
72
72
  readonly additionalProperties: false;
73
73
  readonly default: {};
74
74
  };
75
+ declare const amplitudeAnalyticsConfigSchema: {
76
+ readonly type: "object";
77
+ readonly properties: {
78
+ readonly includeInDevelopment: {
79
+ readonly type: "boolean";
80
+ };
81
+ readonly apiKey: {
82
+ readonly type: "string";
83
+ };
84
+ readonly head: {
85
+ readonly type: "boolean";
86
+ };
87
+ readonly respectDNT: {
88
+ readonly type: "boolean";
89
+ };
90
+ readonly exclude: {
91
+ readonly type: "array";
92
+ readonly items: {
93
+ readonly type: "string";
94
+ };
95
+ };
96
+ readonly outboundClickEventName: {
97
+ readonly type: "string";
98
+ };
99
+ readonly pageViewEventName: {
100
+ readonly type: "string";
101
+ };
102
+ readonly amplitudeConfig: {
103
+ readonly type: "object";
104
+ readonly additionalProperties: true;
105
+ };
106
+ };
107
+ readonly additionalProperties: false;
108
+ readonly required: readonly ["apiKey"];
109
+ };
110
+ declare const rudderstackAnalyticsConfigSchema: {
111
+ readonly type: "object";
112
+ readonly properties: {
113
+ readonly includeInDevelopment: {
114
+ readonly type: "boolean";
115
+ };
116
+ readonly writeKey: {
117
+ readonly type: "string";
118
+ readonly minLength: 10;
119
+ };
120
+ readonly trackPage: {
121
+ readonly type: "boolean";
122
+ };
123
+ readonly dataPlaneUrl: {
124
+ readonly type: "string";
125
+ };
126
+ readonly controlPlaneUrl: {
127
+ readonly type: "string";
128
+ };
129
+ readonly sdkUrl: {
130
+ readonly type: "string";
131
+ };
132
+ readonly loadOptions: {
133
+ readonly type: "object";
134
+ readonly additionalProperties: true;
135
+ };
136
+ };
137
+ readonly additionalProperties: false;
138
+ readonly required: readonly ["writeKey"];
139
+ };
140
+ declare const segmentAnalyticsConfigSchema: {
141
+ readonly type: "object";
142
+ readonly properties: {
143
+ readonly includeInDevelopment: {
144
+ readonly type: "boolean";
145
+ };
146
+ readonly writeKey: {
147
+ readonly type: "string";
148
+ readonly minLength: 10;
149
+ };
150
+ readonly trackPage: {
151
+ readonly type: "boolean";
152
+ };
153
+ readonly includeTitleInPageCall: {
154
+ readonly type: "boolean";
155
+ };
156
+ readonly host: {
157
+ readonly type: "string";
158
+ };
159
+ };
160
+ readonly additionalProperties: false;
161
+ readonly required: readonly ["writeKey"];
162
+ };
163
+ declare const gtmAnalyticsConfigSchema: {
164
+ readonly type: "object";
165
+ readonly properties: {
166
+ readonly includeInDevelopment: {
167
+ readonly type: "boolean";
168
+ };
169
+ readonly trackingId: {
170
+ readonly type: "string";
171
+ };
172
+ readonly gtmAuth: {
173
+ readonly type: "string";
174
+ };
175
+ readonly gtmPreview: {
176
+ readonly type: "string";
177
+ };
178
+ readonly defaultDataLayer: {};
179
+ readonly dataLayerName: {
180
+ readonly type: "string";
181
+ };
182
+ readonly enableWebVitalsTracking: {
183
+ readonly type: "boolean";
184
+ };
185
+ readonly selfHostedOrigin: {
186
+ readonly type: "string";
187
+ };
188
+ readonly pageViewEventName: {
189
+ readonly type: "string";
190
+ };
191
+ };
192
+ readonly additionalProperties: false;
193
+ readonly required: readonly ["trackingId"];
194
+ };
195
+ declare const googleAnalyticsConfigSchema: {
196
+ readonly type: "object";
197
+ readonly properties: {
198
+ readonly includeInDevelopment: {
199
+ readonly type: "boolean";
200
+ };
201
+ readonly trackingId: {
202
+ readonly type: "string";
203
+ };
204
+ readonly head: {
205
+ readonly type: "boolean";
206
+ };
207
+ readonly respectDNT: {
208
+ readonly type: "boolean";
209
+ };
210
+ readonly anonymize: {
211
+ readonly type: "boolean";
212
+ };
213
+ readonly exclude: {
214
+ readonly type: "array";
215
+ readonly items: {
216
+ readonly type: "string";
217
+ };
218
+ };
219
+ readonly optimizeId: {
220
+ readonly type: "string";
221
+ };
222
+ readonly experimentId: {
223
+ readonly type: "string";
224
+ };
225
+ readonly variationId: {
226
+ readonly type: "string";
227
+ };
228
+ readonly enableWebVitalsTracking: {
229
+ readonly type: "boolean";
230
+ };
231
+ readonly defer: {
232
+ readonly type: "boolean";
233
+ };
234
+ readonly sampleRate: {
235
+ readonly type: "number";
236
+ };
237
+ readonly name: {
238
+ readonly type: "string";
239
+ };
240
+ readonly clientId: {
241
+ readonly type: "string";
242
+ };
243
+ readonly siteSpeedSampleRate: {
244
+ readonly type: "number";
245
+ };
246
+ readonly alwaysSendReferrer: {
247
+ readonly type: "boolean";
248
+ };
249
+ readonly allowAnchor: {
250
+ readonly type: "boolean";
251
+ };
252
+ readonly cookieName: {
253
+ readonly type: "string";
254
+ };
255
+ readonly cookieFlags: {
256
+ readonly type: "string";
257
+ };
258
+ readonly cookieDomain: {
259
+ readonly type: "string";
260
+ };
261
+ readonly cookieExpires: {
262
+ readonly type: "number";
263
+ };
264
+ readonly storeGac: {
265
+ readonly type: "boolean";
266
+ };
267
+ readonly legacyCookieDomain: {
268
+ readonly type: "string";
269
+ };
270
+ readonly legacyHistoryImport: {
271
+ readonly type: "boolean";
272
+ };
273
+ readonly allowLinker: {
274
+ readonly type: "boolean";
275
+ };
276
+ readonly storage: {
277
+ readonly type: "string";
278
+ };
279
+ readonly allowAdFeatures: {
280
+ readonly type: "boolean";
281
+ };
282
+ readonly dataSource: {
283
+ readonly type: "string";
284
+ };
285
+ readonly queueTime: {
286
+ readonly type: "number";
287
+ };
288
+ readonly forceSSL: {
289
+ readonly type: "boolean";
290
+ };
291
+ readonly transport: {
292
+ readonly type: "string";
293
+ };
294
+ };
295
+ readonly additionalProperties: false;
296
+ readonly required: readonly ["trackingId"];
297
+ };
75
298
  export declare const themeConfigSchema: {
76
299
  readonly type: "object";
77
300
  readonly properties: {
@@ -658,31 +881,21 @@ export declare const themeConfigSchema: {
658
881
  readonly codeSnippet: {
659
882
  readonly type: "object";
660
883
  readonly properties: {
884
+ readonly controlsStyle: {
885
+ readonly type: "string";
886
+ readonly default: "icon";
887
+ };
661
888
  readonly copy: {
662
889
  readonly type: "object";
663
890
  readonly properties: {
664
891
  readonly hide: {
665
892
  readonly type: "boolean";
666
893
  };
667
- readonly buttonText: {
668
- readonly type: "string";
669
- readonly default: "Copy";
670
- };
671
- readonly tooltipText: {
672
- readonly type: "string";
673
- readonly default: "Copy to clipboard";
674
- };
675
- readonly toasterText: {
676
- readonly type: "string";
677
- readonly default: "Copied!";
678
- };
679
- readonly toasterDuration: {
680
- readonly type: "number";
681
- readonly default: 1500;
682
- };
683
894
  };
684
895
  readonly additionalProperties: false;
685
- readonly default: {};
896
+ readonly default: {
897
+ readonly hide: false;
898
+ };
686
899
  };
687
900
  readonly report: {
688
901
  readonly type: "object";
@@ -690,17 +903,34 @@ export declare const themeConfigSchema: {
690
903
  readonly hide: {
691
904
  readonly type: "boolean";
692
905
  };
693
- readonly tooltipText: {
694
- readonly type: "string";
695
- readonly default: "Report a problem";
906
+ };
907
+ readonly additionalProperties: false;
908
+ readonly default: {
909
+ readonly hide: true;
910
+ };
911
+ };
912
+ readonly expand: {
913
+ readonly type: "object";
914
+ readonly properties: {
915
+ readonly hide: {
916
+ readonly type: "boolean";
696
917
  };
697
- readonly label: {
698
- readonly type: "string";
918
+ };
919
+ readonly additionalProperties: false;
920
+ readonly default: {
921
+ readonly hide: false;
922
+ };
923
+ };
924
+ readonly collapse: {
925
+ readonly type: "object";
926
+ readonly properties: {
927
+ readonly hide: {
928
+ readonly type: "boolean";
699
929
  };
700
930
  };
701
931
  readonly additionalProperties: false;
702
932
  readonly default: {
703
- readonly hide: true;
933
+ readonly hide: false;
704
934
  };
705
935
  };
706
936
  };
@@ -787,7 +1017,274 @@ export declare const themeConfigSchema: {
787
1017
  readonly additionalProperties: true;
788
1018
  };
789
1019
  readonly analytics: {
790
- readonly type: readonly ["array", "boolean", "number", "object", "string"];
1020
+ readonly type: "object";
1021
+ readonly properties: {
1022
+ readonly adobe: {
1023
+ readonly type: "object";
1024
+ readonly properties: {
1025
+ readonly includeInDevelopment: {
1026
+ readonly type: "boolean";
1027
+ };
1028
+ readonly scriptUrl: {
1029
+ readonly type: "string";
1030
+ };
1031
+ readonly pageViewEventName: {
1032
+ readonly type: "string";
1033
+ };
1034
+ };
1035
+ readonly additionalProperties: false;
1036
+ readonly required: readonly ["scriptUrl"];
1037
+ };
1038
+ readonly amplitude: {
1039
+ readonly type: "object";
1040
+ readonly properties: {
1041
+ readonly includeInDevelopment: {
1042
+ readonly type: "boolean";
1043
+ };
1044
+ readonly apiKey: {
1045
+ readonly type: "string";
1046
+ };
1047
+ readonly head: {
1048
+ readonly type: "boolean";
1049
+ };
1050
+ readonly respectDNT: {
1051
+ readonly type: "boolean";
1052
+ };
1053
+ readonly exclude: {
1054
+ readonly type: "array";
1055
+ readonly items: {
1056
+ readonly type: "string";
1057
+ };
1058
+ };
1059
+ readonly outboundClickEventName: {
1060
+ readonly type: "string";
1061
+ };
1062
+ readonly pageViewEventName: {
1063
+ readonly type: "string";
1064
+ };
1065
+ readonly amplitudeConfig: {
1066
+ readonly type: "object";
1067
+ readonly additionalProperties: true;
1068
+ };
1069
+ };
1070
+ readonly additionalProperties: false;
1071
+ readonly required: readonly ["apiKey"];
1072
+ };
1073
+ readonly fullstory: {
1074
+ readonly type: "object";
1075
+ readonly properties: {
1076
+ readonly includeInDevelopment: {
1077
+ readonly type: "boolean";
1078
+ };
1079
+ readonly orgId: {
1080
+ readonly type: "string";
1081
+ };
1082
+ };
1083
+ readonly additionalProperties: false;
1084
+ readonly required: readonly ["orgId"];
1085
+ };
1086
+ readonly heap: {
1087
+ readonly type: "object";
1088
+ readonly properties: {
1089
+ readonly includeInDevelopment: {
1090
+ readonly type: "boolean";
1091
+ };
1092
+ readonly appId: {
1093
+ readonly type: "string";
1094
+ };
1095
+ };
1096
+ readonly additionalProperties: false;
1097
+ readonly required: readonly ["appId"];
1098
+ };
1099
+ readonly rudderstack: {
1100
+ readonly type: "object";
1101
+ readonly properties: {
1102
+ readonly includeInDevelopment: {
1103
+ readonly type: "boolean";
1104
+ };
1105
+ readonly writeKey: {
1106
+ readonly type: "string";
1107
+ readonly minLength: 10;
1108
+ };
1109
+ readonly trackPage: {
1110
+ readonly type: "boolean";
1111
+ };
1112
+ readonly dataPlaneUrl: {
1113
+ readonly type: "string";
1114
+ };
1115
+ readonly controlPlaneUrl: {
1116
+ readonly type: "string";
1117
+ };
1118
+ readonly sdkUrl: {
1119
+ readonly type: "string";
1120
+ };
1121
+ readonly loadOptions: {
1122
+ readonly type: "object";
1123
+ readonly additionalProperties: true;
1124
+ };
1125
+ };
1126
+ readonly additionalProperties: false;
1127
+ readonly required: readonly ["writeKey"];
1128
+ };
1129
+ readonly segment: {
1130
+ readonly type: "object";
1131
+ readonly properties: {
1132
+ readonly includeInDevelopment: {
1133
+ readonly type: "boolean";
1134
+ };
1135
+ readonly writeKey: {
1136
+ readonly type: "string";
1137
+ readonly minLength: 10;
1138
+ };
1139
+ readonly trackPage: {
1140
+ readonly type: "boolean";
1141
+ };
1142
+ readonly includeTitleInPageCall: {
1143
+ readonly type: "boolean";
1144
+ };
1145
+ readonly host: {
1146
+ readonly type: "string";
1147
+ };
1148
+ };
1149
+ readonly additionalProperties: false;
1150
+ readonly required: readonly ["writeKey"];
1151
+ };
1152
+ readonly gtm: {
1153
+ readonly type: "object";
1154
+ readonly properties: {
1155
+ readonly includeInDevelopment: {
1156
+ readonly type: "boolean";
1157
+ };
1158
+ readonly trackingId: {
1159
+ readonly type: "string";
1160
+ };
1161
+ readonly gtmAuth: {
1162
+ readonly type: "string";
1163
+ };
1164
+ readonly gtmPreview: {
1165
+ readonly type: "string";
1166
+ };
1167
+ readonly defaultDataLayer: {};
1168
+ readonly dataLayerName: {
1169
+ readonly type: "string";
1170
+ };
1171
+ readonly enableWebVitalsTracking: {
1172
+ readonly type: "boolean";
1173
+ };
1174
+ readonly selfHostedOrigin: {
1175
+ readonly type: "string";
1176
+ };
1177
+ readonly pageViewEventName: {
1178
+ readonly type: "string";
1179
+ };
1180
+ };
1181
+ readonly additionalProperties: false;
1182
+ readonly required: readonly ["trackingId"];
1183
+ };
1184
+ readonly ga: {
1185
+ readonly type: "object";
1186
+ readonly properties: {
1187
+ readonly includeInDevelopment: {
1188
+ readonly type: "boolean";
1189
+ };
1190
+ readonly trackingId: {
1191
+ readonly type: "string";
1192
+ };
1193
+ readonly head: {
1194
+ readonly type: "boolean";
1195
+ };
1196
+ readonly respectDNT: {
1197
+ readonly type: "boolean";
1198
+ };
1199
+ readonly anonymize: {
1200
+ readonly type: "boolean";
1201
+ };
1202
+ readonly exclude: {
1203
+ readonly type: "array";
1204
+ readonly items: {
1205
+ readonly type: "string";
1206
+ };
1207
+ };
1208
+ readonly optimizeId: {
1209
+ readonly type: "string";
1210
+ };
1211
+ readonly experimentId: {
1212
+ readonly type: "string";
1213
+ };
1214
+ readonly variationId: {
1215
+ readonly type: "string";
1216
+ };
1217
+ readonly enableWebVitalsTracking: {
1218
+ readonly type: "boolean";
1219
+ };
1220
+ readonly defer: {
1221
+ readonly type: "boolean";
1222
+ };
1223
+ readonly sampleRate: {
1224
+ readonly type: "number";
1225
+ };
1226
+ readonly name: {
1227
+ readonly type: "string";
1228
+ };
1229
+ readonly clientId: {
1230
+ readonly type: "string";
1231
+ };
1232
+ readonly siteSpeedSampleRate: {
1233
+ readonly type: "number";
1234
+ };
1235
+ readonly alwaysSendReferrer: {
1236
+ readonly type: "boolean";
1237
+ };
1238
+ readonly allowAnchor: {
1239
+ readonly type: "boolean";
1240
+ };
1241
+ readonly cookieName: {
1242
+ readonly type: "string";
1243
+ };
1244
+ readonly cookieFlags: {
1245
+ readonly type: "string";
1246
+ };
1247
+ readonly cookieDomain: {
1248
+ readonly type: "string";
1249
+ };
1250
+ readonly cookieExpires: {
1251
+ readonly type: "number";
1252
+ };
1253
+ readonly storeGac: {
1254
+ readonly type: "boolean";
1255
+ };
1256
+ readonly legacyCookieDomain: {
1257
+ readonly type: "string";
1258
+ };
1259
+ readonly legacyHistoryImport: {
1260
+ readonly type: "boolean";
1261
+ };
1262
+ readonly allowLinker: {
1263
+ readonly type: "boolean";
1264
+ };
1265
+ readonly storage: {
1266
+ readonly type: "string";
1267
+ };
1268
+ readonly allowAdFeatures: {
1269
+ readonly type: "boolean";
1270
+ };
1271
+ readonly dataSource: {
1272
+ readonly type: "string";
1273
+ };
1274
+ readonly queueTime: {
1275
+ readonly type: "number";
1276
+ };
1277
+ readonly forceSSL: {
1278
+ readonly type: "boolean";
1279
+ };
1280
+ readonly transport: {
1281
+ readonly type: "string";
1282
+ };
1283
+ };
1284
+ readonly additionalProperties: false;
1285
+ readonly required: readonly ["trackingId"];
1286
+ };
1287
+ };
791
1288
  };
792
1289
  readonly userProfile: {
793
1290
  readonly type: "object";
@@ -883,4 +1380,9 @@ export type ThemeUIConfig = ThemeConfig & {
883
1380
  };
884
1381
  };
885
1382
  export type MarkdownConfig = FromSchema<typeof markdownConfigSchema>;
1383
+ export type AmplitudeAnalyticsConfig = FromSchema<typeof amplitudeAnalyticsConfigSchema>;
1384
+ export type RudderstackAnalyticsConfig = FromSchema<typeof rudderstackAnalyticsConfigSchema>;
1385
+ export type SegmentAnalyticsConfig = FromSchema<typeof segmentAnalyticsConfigSchema>;
1386
+ export type GtmAnalyticsConfig = FromSchema<typeof gtmAnalyticsConfigSchema>;
1387
+ export type GoogleAnalyticsConfig = FromSchema<typeof googleAnalyticsConfigSchema>;
886
1388
  export {};