@snap/camera-kit 0.7.0 → 0.9.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.
Files changed (245) hide show
  1. package/docs/html/assets/main.js +57 -53
  2. package/docs/html/assets/search.js +1 -1
  3. package/docs/html/assets/style.css +504 -362
  4. package/docs/html/classes/CameraKit.html +113 -47
  5. package/docs/html/classes/CameraKitSession.html +202 -142
  6. package/docs/html/classes/CameraKitSource.html +124 -60
  7. package/docs/html/classes/LensPerformanceMeasurement.html +112 -46
  8. package/docs/html/classes/LensPerformanceMetrics.html +97 -32
  9. package/docs/html/classes/LensRepository.html +130 -66
  10. package/docs/html/classes/LensSources.html +98 -32
  11. package/docs/html/classes/Transform2D.html +111 -43
  12. package/docs/html/classes/TypedCustomEvent.html +109 -47
  13. package/docs/html/classes/TypedEventTarget.html +125 -65
  14. package/docs/html/functions/Injectable.html +113 -120
  15. package/docs/html/functions/bootstrapCameraKit.html +100 -104
  16. package/docs/html/functions/createExtension.html +90 -94
  17. package/docs/html/functions/createImageSource.html +90 -93
  18. package/docs/html/functions/createMediaStreamSource.html +90 -93
  19. package/docs/html/functions/createUserMediaSource.html +92 -96
  20. package/docs/html/functions/createVideoSource.html +90 -93
  21. package/docs/html/functions/estimateLensPerformance.html +88 -92
  22. package/docs/html/functions/getRequiredBootstrapURLs.html +90 -94
  23. package/docs/html/functions/lensSourcesFactory.html +88 -91
  24. package/docs/html/functions/uriHandlersFactory.html +88 -91
  25. package/docs/html/index.html +134 -170
  26. package/docs/html/interfaces/CameraKitBootstrapConfiguration.html +115 -49
  27. package/docs/html/interfaces/CameraKitSourceSubscriber.html +111 -45
  28. package/docs/html/interfaces/ComputedFrameMetrics.html +98 -32
  29. package/docs/html/interfaces/CreateSessionOptions.html +95 -29
  30. package/docs/html/interfaces/EstimatedLensPerformance.html +98 -32
  31. package/docs/html/interfaces/Lens.html +115 -49
  32. package/docs/html/interfaces/LensSource.html +107 -41
  33. package/docs/html/interfaces/MediaStreamSourceOptions.html +94 -28
  34. package/docs/html/interfaces/UriCancelRequest.html +94 -28
  35. package/docs/html/interfaces/UriHandler.html +108 -42
  36. package/docs/html/interfaces/UriRequest.html +106 -40
  37. package/docs/html/interfaces/UriResponse.html +106 -40
  38. package/docs/html/interfaces/VideoSourceOptions.html +90 -24
  39. package/docs/html/modules.html +161 -164
  40. package/docs/html/types/AssetLoader.html +91 -94
  41. package/docs/html/types/AssetTiming.html +85 -88
  42. package/docs/html/types/BenchmarkError.html +85 -88
  43. package/docs/html/types/BootstrapError.html +86 -89
  44. package/docs/html/types/CacheKeyNotFoundError.html +85 -88
  45. package/docs/html/types/CameraKitDeviceInfo.html +87 -90
  46. package/docs/html/types/CameraKitSessionEventListener.html +86 -89
  47. package/docs/html/types/CameraKitSessionEvents.html +88 -91
  48. package/docs/html/types/CameraKitSourceError.html +85 -88
  49. package/docs/html/types/CameraKitSourceInfo.html +85 -88
  50. package/docs/html/types/CameraKitSourceOptions.html +88 -92
  51. package/docs/html/types/ConfigurationError.html +86 -89
  52. package/docs/html/types/Keyboard.html +108 -111
  53. package/docs/html/types/KeyboardEvents.html +86 -89
  54. package/docs/html/types/LegalError.html +85 -88
  55. package/docs/html/types/LensAssetError.html +85 -88
  56. package/docs/html/types/LensContentValidationError.html +85 -88
  57. package/docs/html/types/LensError.html +85 -88
  58. package/docs/html/types/LensExecutionError.html +86 -89
  59. package/docs/html/types/LensImagePickerError.html +85 -88
  60. package/docs/html/types/LensLaunchParams.html +85 -88
  61. package/docs/html/types/LensMetricsEvents.html +86 -89
  62. package/docs/html/types/LensPerformanceCluster.html +85 -88
  63. package/docs/html/types/LensView.html +85 -88
  64. package/docs/html/types/LensWait.html +85 -88
  65. package/docs/html/types/PersistentStoreError.html +85 -88
  66. package/docs/html/types/PlatformNotSupportedError.html +86 -89
  67. package/docs/html/types/PublicContainer.html +85 -88
  68. package/docs/html/types/RenderTarget.html +85 -88
  69. package/docs/html/types/Uri.html +85 -88
  70. package/docs/html/types/UriHandlers.html +86 -89
  71. package/docs/html/types/WebGLError.html +85 -88
  72. package/docs/html/variables/extensionRequestContext.html +85 -88
  73. package/docs/md/README.md +1 -1
  74. package/docs/md/classes/CameraKit.md +1 -1
  75. package/docs/md/classes/CameraKitSession.md +1 -1
  76. package/docs/md/classes/CameraKitSource.md +1 -1
  77. package/docs/md/classes/LensPerformanceMeasurement.md +1 -1
  78. package/docs/md/classes/LensPerformanceMetrics.md +1 -1
  79. package/docs/md/classes/LensRepository.md +3 -3
  80. package/docs/md/classes/LensSources.md +1 -1
  81. package/docs/md/classes/Transform2D.md +3 -1
  82. package/docs/md/classes/TypedCustomEvent.md +1 -1
  83. package/docs/md/classes/TypedEventTarget.md +3 -3
  84. package/docs/md/interfaces/CameraKitBootstrapConfiguration.md +1 -1
  85. package/docs/md/interfaces/CameraKitSourceSubscriber.md +1 -1
  86. package/docs/md/interfaces/ComputedFrameMetrics.md +1 -1
  87. package/docs/md/interfaces/CreateSessionOptions.md +1 -1
  88. package/docs/md/interfaces/EstimatedLensPerformance.md +1 -1
  89. package/docs/md/interfaces/Lens.md +1 -1
  90. package/docs/md/interfaces/LensSource.md +1 -1
  91. package/docs/md/interfaces/MediaStreamSourceOptions.md +1 -1
  92. package/docs/md/interfaces/UriCancelRequest.md +1 -1
  93. package/docs/md/interfaces/UriHandler.md +1 -1
  94. package/docs/md/interfaces/UriRequest.md +1 -1
  95. package/docs/md/interfaces/UriResponse.md +1 -1
  96. package/docs/md/interfaces/VideoSourceOptions.md +1 -1
  97. package/docs/md/modules.md +3 -3
  98. package/lib/CameraKit.d.ts +7 -7
  99. package/lib/__tests__/data.d.ts +1 -1
  100. package/lib/__tests__/deferred.d.ts +1 -1
  101. package/lib/__tests__/jest.matchers.d.ts +1 -1
  102. package/lib/benchmark/estimateLensPerformanceCluster.d.ts +2 -2
  103. package/lib/bootstrapCameraKit.d.ts +1 -1
  104. package/lib/common/cameraKitUserAgent.d.ts +1 -1
  105. package/lib/common/cameraKitUserAgent.js +5 -3
  106. package/lib/common/cameraKitUserAgent.js.map +1 -1
  107. package/lib/common/localization.d.ts +8 -4
  108. package/lib/common/localization.js.map +1 -1
  109. package/lib/common/memoize.d.ts +2 -2
  110. package/lib/common/pageVisibility.js +1 -1
  111. package/lib/common/pageVisibility.js.map +1 -1
  112. package/lib/common/typeguards.d.ts +2 -2
  113. package/lib/common/types.d.ts +2 -2
  114. package/lib/common/validate.js +20 -12
  115. package/lib/common/validate.js.map +1 -1
  116. package/lib/configuration.d.ts +1 -1
  117. package/lib/configuration.js.map +1 -1
  118. package/lib/configurationOverrides.d.ts +1 -1
  119. package/lib/dependency-injection/Container.d.ts +5 -6
  120. package/lib/dependency-injection/Container.js +1 -1
  121. package/lib/dependency-injection/Container.js.map +1 -1
  122. package/lib/dependency-injection/PartialContainer.d.ts +10 -6
  123. package/lib/dependency-injection/PartialContainer.js.map +1 -1
  124. package/lib/dependency-injection/RootServices.d.ts +2 -2
  125. package/lib/dependency-injection/types.d.ts +9 -9
  126. package/lib/dependency-injection/types.js.map +1 -1
  127. package/lib/environment.json +1 -1
  128. package/lib/events/TypedCustomEvent.d.ts +1 -1
  129. package/lib/events/TypedEventTarget.d.ts +2 -2
  130. package/lib/events/scan.d.ts +1 -1
  131. package/lib/events/scan.js +3 -3
  132. package/lib/events/scan.js.map +1 -1
  133. package/lib/extensions/UriHandlers.d.ts +1 -1
  134. package/lib/generated-proto/blizzard/cameraKitEvents.d.ts +4 -4
  135. package/lib/generated-proto/pb_schema/camera_kit/v3/business_events.d.ts +4 -4
  136. package/lib/generated-proto/pb_schema/camera_kit/v3/business_events.js +3 -3
  137. package/lib/generated-proto/pb_schema/camera_kit/v3/business_events.js.map +1 -1
  138. package/lib/generated-proto/pb_schema/camera_kit/v3/export.d.ts +4 -4
  139. package/lib/generated-proto/pb_schema/camera_kit/v3/export.js +9 -9
  140. package/lib/generated-proto/pb_schema/camera_kit/v3/export.js.map +1 -1
  141. package/lib/generated-proto/pb_schema/camera_kit/v3/legal_prompt.d.ts +4 -4
  142. package/lib/generated-proto/pb_schema/camera_kit/v3/legal_prompt.js +2 -2
  143. package/lib/generated-proto/pb_schema/camera_kit/v3/legal_prompt.js.map +1 -1
  144. package/lib/generated-proto/pb_schema/camera_kit/v3/lens.d.ts +4 -4
  145. package/lib/generated-proto/pb_schema/camera_kit/v3/lens.js +17 -17
  146. package/lib/generated-proto/pb_schema/camera_kit/v3/lens.js.map +1 -1
  147. package/lib/generated-proto/pb_schema/camera_kit/v3/operational_metrics.d.ts +4 -4
  148. package/lib/generated-proto/pb_schema/camera_kit/v3/operational_metrics.js +4 -4
  149. package/lib/generated-proto/pb_schema/camera_kit/v3/operational_metrics.js.map +1 -1
  150. package/lib/generated-proto/pb_schema/camera_kit/v3/ranking.d.ts +4 -4
  151. package/lib/generated-proto/pb_schema/camera_kit/v3/ranking.js +3 -3
  152. package/lib/generated-proto/pb_schema/camera_kit/v3/ranking.js.map +1 -1
  153. package/lib/generated-proto/pb_schema/camera_kit/v3/service.d.ts +4 -4
  154. package/lib/generated-proto/pb_schema/camera_kit/v3/service.js +25 -25
  155. package/lib/generated-proto/pb_schema/camera_kit/v3/service.js.map +1 -1
  156. package/lib/generated-proto/pb_schema/cdp/cof/benchmark.d.ts +4 -4
  157. package/lib/generated-proto/pb_schema/cdp/cof/circumstance_service.d.ts +4533 -333
  158. package/lib/generated-proto/pb_schema/cdp/cof/config_request.d.ts +4 -4
  159. package/lib/generated-proto/pb_schema/cdp/cof/config_response.d.ts +572 -32
  160. package/lib/generated-proto/pb_schema/cdp/cof/config_result.d.ts +4 -4
  161. package/lib/generated-proto/pb_schema/cdp/cof/debug_info.d.ts +4 -4
  162. package/lib/generated-proto/pb_schema/common/ruid.d.ts +4 -4
  163. package/lib/generated-proto/pb_schema/common/value.d.ts +4 -4
  164. package/lib/generated-proto/pb_schema/google/api/http.d.ts +4 -4
  165. package/lib/generated-proto/pb_schema/google/protobuf/any.d.ts +4 -4
  166. package/lib/generated-proto/pb_schema/google/protobuf/descriptor.d.ts +4 -4
  167. package/lib/generated-proto/pb_schema/google/protobuf/timestamp.d.ts +4 -4
  168. package/lib/generated-proto/pb_schema/google/protobuf/wrappers.d.ts +4 -4
  169. package/lib/generated-proto/pb_schema/lenses/geocircle.d.ts +4 -4
  170. package/lib/generated-proto/pb_schema/lenses/geopoint.d.ts +4 -4
  171. package/lib/generated-proto/pb_schema/lenses/launch_params.d.ts +4 -4
  172. package/lib/generated-proto/pb_schema/lenses/launchdata.d.ts +4 -4
  173. package/lib/generated-proto/pb_schema/lenses/lures.d.ts +4 -4
  174. package/lib/generated-proto/pb_schema/lenses/persistent_store.d.ts +4 -4
  175. package/lib/generated-proto/pb_schema/lenses/snappable.d.ts +4 -4
  176. package/lib/generated-proto/pb_schema/lenses/user_data.d.ts +4 -4
  177. package/lib/handlers/HandlerChainBuilder.d.ts +3 -3
  178. package/lib/handlers/arrayBufferParsingHandler.d.ts +2 -2
  179. package/lib/handlers/arrayBufferParsingHandler.js.map +1 -1
  180. package/lib/handlers/cameraKitServiceFetchHandlerFactory.d.ts +1 -1
  181. package/lib/handlers/defaultFetchHandler.d.ts +1 -1
  182. package/lib/handlers/headersModifyingFetchHandler.js +5 -1
  183. package/lib/handlers/headersModifyingFetchHandler.js.map +1 -1
  184. package/lib/handlers/noCorsRetryingFetchHandler.js +4 -3
  185. package/lib/handlers/noCorsRetryingFetchHandler.js.map +1 -1
  186. package/lib/handlers/requestStateEmittingHandler.d.ts +2 -2
  187. package/lib/handlers/requestStateEmittingHandler.js.map +1 -1
  188. package/lib/handlers/responseCachingHandler.d.ts +1 -1
  189. package/lib/handlers/responseCachingHandler.js.map +1 -1
  190. package/lib/handlers/retryingHandler.d.ts +7 -0
  191. package/lib/handlers/retryingHandler.js +14 -5
  192. package/lib/handlers/retryingHandler.js.map +1 -1
  193. package/lib/legal/legalPrompt.d.ts +1 -1
  194. package/lib/legal/legalPrompt.js.map +1 -1
  195. package/lib/legal/legalState.d.ts +1 -1
  196. package/lib/legal/legalState.js.map +1 -1
  197. package/lib/lens/Lens.d.ts +1 -1
  198. package/lib/lens/LensLaunchParams.d.ts +2 -2
  199. package/lib/lens/LensRepository.d.ts +7 -8
  200. package/lib/lens/LensRepository.js.map +1 -1
  201. package/lib/lens/assets/LensAssetRepository.d.ts +2 -2
  202. package/lib/lens/assets/LensAssetsProvider.d.ts +1 -1
  203. package/lib/lens/assets/deviceDependentAssetLoader.d.ts +1 -1
  204. package/lib/lens/assets/remoteMediaAssetLoaderFactory.d.ts +1 -1
  205. package/lib/lens/assets/staticAssetLoader.d.ts +1 -1
  206. package/lib/lens-core-module/generated-types.d.ts +29 -29
  207. package/lib/lens-core-module/generated-types.js.map +1 -1
  208. package/lib/lens-core-module/loader/lensCoreFactory.d.ts +1 -1
  209. package/lib/lensCoreWasmVersions.json +3 -3
  210. package/lib/logger/logger.d.ts +2 -2
  211. package/lib/media-sources/CameraKitSource.d.ts +3 -3
  212. package/lib/media-sources/CameraKitSource.js.map +1 -1
  213. package/lib/media-sources/FunctionSource.d.ts +1 -1
  214. package/lib/metrics/businessEventsReporter.d.ts +4 -4
  215. package/lib/metrics/businessEventsReporter.js.map +1 -1
  216. package/lib/metrics/metricsEventTarget.d.ts +5 -5
  217. package/lib/metrics/metricsHandler.d.ts +1 -1
  218. package/lib/metrics/operationalMetricsReporter.d.ts +2 -2
  219. package/lib/metrics/reporters/reportBenchmarks.d.ts +1 -1
  220. package/lib/metrics/reporters/reportLegalState.d.ts +1 -1
  221. package/lib/metrics/reporters/reportLensAndAssetDownload.d.ts +4 -4
  222. package/lib/metrics/reporters/reportLensValidationFailed.d.ts +1 -1
  223. package/lib/metrics/reporters/reportLensView.d.ts +1 -1
  224. package/lib/metrics/reporters/reportLensView.js +1 -1
  225. package/lib/metrics/reporters/reportLensView.js.map +1 -1
  226. package/lib/metrics/reporters/reportLensWait.d.ts +1 -1
  227. package/lib/metrics/reporters/reportUserSession.d.ts +1 -1
  228. package/lib/namedErrors.d.ts +17 -17
  229. package/lib/persistence/Persistence.d.ts +1 -1
  230. package/lib/remote-configuration/cofHandler.d.ts +1 -1
  231. package/lib/remote-configuration/cofHandler.js +18 -5
  232. package/lib/remote-configuration/cofHandler.js.map +1 -1
  233. package/lib/session/CameraKitSession.d.ts +1 -1
  234. package/lib/session/CameraKitSession.js.map +1 -1
  235. package/lib/session/CameraKitSessionEvents.d.ts +3 -3
  236. package/lib/session/LensKeyboard.d.ts +2 -2
  237. package/lib/session/LensPerformanceMetrics.js.map +1 -1
  238. package/lib/session/lensState.d.ts +2 -2
  239. package/lib/session/lensState.js.map +1 -1
  240. package/lib/session/sessionState.d.ts +1 -1
  241. package/lib/transforms/Transform2D.js +2 -1
  242. package/lib/transforms/Transform2D.js.map +1 -1
  243. package/package.json +14 -14
  244. package/docs/html/assets/widgets.png +0 -0
  245. package/docs/html/assets/widgets@2x.png +0 -0
@@ -2,38 +2,80 @@
2
2
  /* Light */
3
3
  --light-color-background: #f2f4f8;
4
4
  --light-color-background-secondary: #eff0f1;
5
+ --light-color-warning-text: #222;
6
+ --light-color-background-warning: #e6e600;
5
7
  --light-color-icon-background: var(--light-color-background);
6
8
  --light-color-accent: #c5c7c9;
9
+ --light-color-active-menu-item: var(--light-color-accent);
7
10
  --light-color-text: #222;
8
- --light-color-text-aside: #707070;
9
- --light-color-link: #4da6ff;
10
- --light-color-ts: #db1373;
11
- --light-color-ts-interface: #139d2c;
12
- --light-color-ts-enum: #9c891a;
13
- --light-color-ts-class: #2484e5;
11
+ --light-color-text-aside: #6e6e6e;
12
+ --light-color-link: #1f70c2;
13
+
14
+ --light-color-ts-project: #b111c9;
15
+ --light-color-ts-module: var(--light-color-ts-project);
16
+ --light-color-ts-namespace: var(--light-color-ts-project);
17
+ --light-color-ts-enum: #7e6f15;
18
+ --light-color-ts-enum-member: var(--light-color-ts-enum);
19
+ --light-color-ts-variable: #4760ec;
14
20
  --light-color-ts-function: #572be7;
15
- --light-color-ts-namespace: #b111c9;
16
- --light-color-ts-private: #707070;
17
- --light-color-ts-variable: #4d68ff;
21
+ --light-color-ts-class: #1f70c2;
22
+ --light-color-ts-interface: #108024;
23
+ --light-color-ts-constructor: var(--light-color-ts-class);
24
+ --light-color-ts-property: var(--light-color-ts-variable);
25
+ --light-color-ts-method: var(--light-color-ts-function);
26
+ --light-color-ts-call-signature: var(--light-color-ts-method);
27
+ --light-color-ts-index-signature: var(--light-color-ts-property);
28
+ --light-color-ts-constructor-signature: var(--light-color-ts-constructor);
29
+ --light-color-ts-parameter: var(--light-color-ts-variable);
30
+ /* type literal not included as links will never be generated to it */
31
+ --light-color-ts-type-parameter: var(--light-color-ts-type-alias);
32
+ --light-color-ts-accessor: var(--light-color-ts-property);
33
+ --light-color-ts-get-signature: var(--light-color-ts-accessor);
34
+ --light-color-ts-set-signature: var(--light-color-ts-accessor);
35
+ /* object literal not included as it is not used and will be removed in 0.25 */
36
+ --light-color-ts-type-alias: #d51270;
37
+ /* reference not included as links will be colored with the kind that it points to */
38
+
18
39
  --light-external-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' width='10' height='10'><path fill-opacity='0' stroke='%23000' stroke-width='10' d='m43,35H5v60h60V57M45,5v10l10,10-30,30 20,20 30-30 10,10h10V5z'/></svg>");
19
40
  --light-color-scheme: light;
20
41
 
21
42
  /* Dark */
22
43
  --dark-color-background: #2b2e33;
23
44
  --dark-color-background-secondary: #1e2024;
45
+ --dark-color-background-warning: #bebe00;
46
+ --dark-color-warning-text: #222;
24
47
  --dark-color-icon-background: var(--dark-color-background-secondary);
25
48
  --dark-color-accent: #9096a2;
49
+ --dark-color-active-menu-item: #5d5d6a;
26
50
  --dark-color-text: #f5f5f5;
27
51
  --dark-color-text-aside: #dddddd;
28
52
  --dark-color-link: #00aff4;
29
- --dark-color-ts: #ff6492;
30
- --dark-color-ts-interface: #6cff87;
53
+
54
+ --dark-color-ts-project: #e358ff;
55
+ --dark-color-ts-module: var(--dark-color-ts-project);
56
+ --dark-color-ts-namespace: var(--dark-color-ts-project);
31
57
  --dark-color-ts-enum: #f4d93e;
32
- --dark-color-ts-class: #61b0ff;
33
- --dark-color-ts-function: #9772ff;
34
- --dark-color-ts-namespace: #e14dff;
35
- --dark-color-ts-private: #e2e2e2;
36
- --dark-color-ts-variable: #4d68ff;
58
+ --dark-color-ts-enum-member: var(--dark-color-ts-enum);
59
+ --dark-color-ts-variable: #798dff;
60
+ --dark-color-ts-function: #a280ff;
61
+ --dark-color-ts-class: #8ac4ff;
62
+ --dark-color-ts-interface: #6cff87;
63
+ --dark-color-ts-constructor: var(--dark-color-ts-class);
64
+ --dark-color-ts-property: var(--dark-color-ts-variable);
65
+ --dark-color-ts-method: var(--dark-color-ts-function);
66
+ --dark-color-ts-call-signature: var(--dark-color-ts-method);
67
+ --dark-color-ts-index-signature: var(--dark-color-ts-property);
68
+ --dark-color-ts-constructor-signature: var(--dark-color-ts-constructor);
69
+ --dark-color-ts-parameter: var(--dark-color-ts-variable);
70
+ /* type literal not included as links will never be generated to it */
71
+ --dark-color-ts-type-parameter: var(--dark-color-ts-type-alias);
72
+ --dark-color-ts-accessor: var(--dark-color-ts-property);
73
+ --dark-color-ts-get-signature: var(--dark-color-ts-accessor);
74
+ --dark-color-ts-set-signature: var(--dark-color-ts-accessor);
75
+ /* object literal not included as it is not used and will be removed in 0.25 */
76
+ --dark-color-ts-type-alias: #ff6492;
77
+ /* reference not included as links will be colored with the kind that it points to */
78
+
37
79
  --dark-external-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' width='10' height='10'><path fill-opacity='0' stroke='%23fff' stroke-width='10' d='m43,35H5v60h60V57M45,5v10l10,10-30,30 20,20 30-30 10,10h10V5z'/></svg>");
38
80
  --dark-color-scheme: dark;
39
81
  }
@@ -42,19 +84,38 @@
42
84
  :root {
43
85
  --color-background: var(--light-color-background);
44
86
  --color-background-secondary: var(--light-color-background-secondary);
87
+ --color-background-warning: var(--light-color-background-warning);
88
+ --color-warning-text: var(--light-color-warning-text);
45
89
  --color-icon-background: var(--light-color-icon-background);
46
90
  --color-accent: var(--light-color-accent);
91
+ --color-active-menu-item: var(--light-color-active-menu-item);
47
92
  --color-text: var(--light-color-text);
48
93
  --color-text-aside: var(--light-color-text-aside);
49
94
  --color-link: var(--light-color-link);
50
- --color-ts: var(--light-color-ts);
51
- --color-ts-interface: var(--light-color-ts-interface);
52
- --color-ts-enum: var(--light-color-ts-enum);
53
- --color-ts-class: var(--light-color-ts-class);
54
- --color-ts-function: var(--light-color-ts-function);
95
+
96
+ --color-ts-module: var(--light-color-ts-module);
55
97
  --color-ts-namespace: var(--light-color-ts-namespace);
56
- --color-ts-private: var(--light-color-ts-private);
98
+ --color-ts-enum: var(--light-color-ts-enum);
99
+ --color-ts-enum-member: var(--light-color-ts-enum-member);
57
100
  --color-ts-variable: var(--light-color-ts-variable);
101
+ --color-ts-function: var(--light-color-ts-function);
102
+ --color-ts-class: var(--light-color-ts-class);
103
+ --color-ts-interface: var(--light-color-ts-interface);
104
+ --color-ts-constructor: var(--light-color-ts-constructor);
105
+ --color-ts-property: var(--light-color-ts-property);
106
+ --color-ts-method: var(--light-color-ts-method);
107
+ --color-ts-call-signature: var(--light-color-ts-call-signature);
108
+ --color-ts-index-signature: var(--light-color-ts-index-signature);
109
+ --color-ts-constructor-signature: var(
110
+ --light-color-ts-constructor-signature
111
+ );
112
+ --color-ts-parameter: var(--light-color-ts-parameter);
113
+ --color-ts-type-parameter: var(--light-color-ts-type-parameter);
114
+ --color-ts-accessor: var(--light-color-ts-accessor);
115
+ --color-ts-get-signature: var(--light-color-ts-get-signature);
116
+ --color-ts-set-signature: var(--light-color-ts-set-signature);
117
+ --color-ts-type-alias: var(--light-color-ts-type-alias);
118
+
58
119
  --external-icon: var(--light-external-icon);
59
120
  --color-scheme: var(--light-color-scheme);
60
121
  }
@@ -64,19 +125,38 @@
64
125
  :root {
65
126
  --color-background: var(--dark-color-background);
66
127
  --color-background-secondary: var(--dark-color-background-secondary);
128
+ --color-background-warning: var(--dark-color-background-warning);
129
+ --color-warning-text: var(--dark-color-warning-text);
67
130
  --color-icon-background: var(--dark-color-icon-background);
68
131
  --color-accent: var(--dark-color-accent);
132
+ --color-active-menu-item: var(--dark-color-active-menu-item);
69
133
  --color-text: var(--dark-color-text);
70
134
  --color-text-aside: var(--dark-color-text-aside);
71
135
  --color-link: var(--dark-color-link);
72
- --color-ts: var(--dark-color-ts);
73
- --color-ts-interface: var(--dark-color-ts-interface);
74
- --color-ts-enum: var(--dark-color-ts-enum);
75
- --color-ts-class: var(--dark-color-ts-class);
76
- --color-ts-function: var(--dark-color-ts-function);
136
+
137
+ --color-ts-module: var(--dark-color-ts-module);
77
138
  --color-ts-namespace: var(--dark-color-ts-namespace);
78
- --color-ts-private: var(--dark-color-ts-private);
139
+ --color-ts-enum: var(--dark-color-ts-enum);
140
+ --color-ts-enum-member: var(--dark-color-ts-enum-member);
79
141
  --color-ts-variable: var(--dark-color-ts-variable);
142
+ --color-ts-function: var(--dark-color-ts-function);
143
+ --color-ts-class: var(--dark-color-ts-class);
144
+ --color-ts-interface: var(--dark-color-ts-interface);
145
+ --color-ts-constructor: var(--dark-color-ts-constructor);
146
+ --color-ts-property: var(--dark-color-ts-property);
147
+ --color-ts-method: var(--dark-color-ts-method);
148
+ --color-ts-call-signature: var(--dark-color-ts-call-signature);
149
+ --color-ts-index-signature: var(--dark-color-ts-index-signature);
150
+ --color-ts-constructor-signature: var(
151
+ --dark-color-ts-constructor-signature
152
+ );
153
+ --color-ts-parameter: var(--dark-color-ts-parameter);
154
+ --color-ts-type-parameter: var(--dark-color-ts-type-parameter);
155
+ --color-ts-accessor: var(--dark-color-ts-accessor);
156
+ --color-ts-get-signature: var(--dark-color-ts-get-signature);
157
+ --color-ts-set-signature: var(--dark-color-ts-set-signature);
158
+ --color-ts-type-alias: var(--dark-color-ts-type-alias);
159
+
80
160
  --external-icon: var(--dark-external-icon);
81
161
  --color-scheme: var(--dark-color-scheme);
82
162
  }
@@ -93,19 +173,38 @@ body {
93
173
  :root[data-theme="light"] {
94
174
  --color-background: var(--light-color-background);
95
175
  --color-background-secondary: var(--light-color-background-secondary);
176
+ --color-background-warning: var(--light-color-background-warning);
177
+ --color-warning-text: var(--light-color-warning-text);
96
178
  --color-icon-background: var(--light-color-icon-background);
97
179
  --color-accent: var(--light-color-accent);
180
+ --color-active-menu-item: var(--light-color-active-menu-item);
98
181
  --color-text: var(--light-color-text);
99
182
  --color-text-aside: var(--light-color-text-aside);
100
183
  --color-link: var(--light-color-link);
101
- --color-ts: var(--light-color-ts);
102
- --color-ts-interface: var(--light-color-ts-interface);
103
- --color-ts-enum: var(--light-color-ts-enum);
104
- --color-ts-class: var(--light-color-ts-class);
105
- --color-ts-function: var(--light-color-ts-function);
184
+
185
+ --color-ts-module: var(--light-color-ts-module);
106
186
  --color-ts-namespace: var(--light-color-ts-namespace);
107
- --color-ts-private: var(--light-color-ts-private);
187
+ --color-ts-enum: var(--light-color-ts-enum);
188
+ --color-ts-enum-member: var(--light-color-ts-enum-member);
108
189
  --color-ts-variable: var(--light-color-ts-variable);
190
+ --color-ts-function: var(--light-color-ts-function);
191
+ --color-ts-class: var(--light-color-ts-class);
192
+ --color-ts-interface: var(--light-color-ts-interface);
193
+ --color-ts-constructor: var(--light-color-ts-constructor);
194
+ --color-ts-property: var(--light-color-ts-property);
195
+ --color-ts-method: var(--light-color-ts-method);
196
+ --color-ts-call-signature: var(--light-color-ts-call-signature);
197
+ --color-ts-index-signature: var(--light-color-ts-index-signature);
198
+ --color-ts-constructor-signature: var(
199
+ --light-color-ts-constructor-signature
200
+ );
201
+ --color-ts-parameter: var(--light-color-ts-parameter);
202
+ --color-ts-type-parameter: var(--light-color-ts-type-parameter);
203
+ --color-ts-accessor: var(--light-color-ts-accessor);
204
+ --color-ts-get-signature: var(--light-color-ts-get-signature);
205
+ --color-ts-set-signature: var(--light-color-ts-set-signature);
206
+ --color-ts-type-alias: var(--light-color-ts-type-alias);
207
+
109
208
  --external-icon: var(--light-external-icon);
110
209
  --color-scheme: var(--light-color-scheme);
111
210
  }
@@ -113,23 +212,47 @@ body {
113
212
  :root[data-theme="dark"] {
114
213
  --color-background: var(--dark-color-background);
115
214
  --color-background-secondary: var(--dark-color-background-secondary);
215
+ --color-background-warning: var(--dark-color-background-warning);
216
+ --color-warning-text: var(--dark-color-warning-text);
116
217
  --color-icon-background: var(--dark-color-icon-background);
117
218
  --color-accent: var(--dark-color-accent);
219
+ --color-active-menu-item: var(--dark-color-active-menu-item);
118
220
  --color-text: var(--dark-color-text);
119
221
  --color-text-aside: var(--dark-color-text-aside);
120
222
  --color-link: var(--dark-color-link);
121
- --color-ts: var(--dark-color-ts);
122
- --color-ts-interface: var(--dark-color-ts-interface);
123
- --color-ts-enum: var(--dark-color-ts-enum);
124
- --color-ts-class: var(--dark-color-ts-class);
125
- --color-ts-function: var(--dark-color-ts-function);
223
+
224
+ --color-ts-module: var(--dark-color-ts-module);
126
225
  --color-ts-namespace: var(--dark-color-ts-namespace);
127
- --color-ts-private: var(--dark-color-ts-private);
226
+ --color-ts-enum: var(--dark-color-ts-enum);
227
+ --color-ts-enum-member: var(--dark-color-ts-enum-member);
128
228
  --color-ts-variable: var(--dark-color-ts-variable);
229
+ --color-ts-function: var(--dark-color-ts-function);
230
+ --color-ts-class: var(--dark-color-ts-class);
231
+ --color-ts-interface: var(--dark-color-ts-interface);
232
+ --color-ts-constructor: var(--dark-color-ts-constructor);
233
+ --color-ts-property: var(--dark-color-ts-property);
234
+ --color-ts-method: var(--dark-color-ts-method);
235
+ --color-ts-call-signature: var(--dark-color-ts-call-signature);
236
+ --color-ts-index-signature: var(--dark-color-ts-index-signature);
237
+ --color-ts-constructor-signature: var(
238
+ --dark-color-ts-constructor-signature
239
+ );
240
+ --color-ts-parameter: var(--dark-color-ts-parameter);
241
+ --color-ts-type-parameter: var(--dark-color-ts-type-parameter);
242
+ --color-ts-accessor: var(--dark-color-ts-accessor);
243
+ --color-ts-get-signature: var(--dark-color-ts-get-signature);
244
+ --color-ts-set-signature: var(--dark-color-ts-set-signature);
245
+ --color-ts-type-alias: var(--dark-color-ts-type-alias);
246
+
129
247
  --external-icon: var(--dark-external-icon);
130
248
  --color-scheme: var(--dark-color-scheme);
131
249
  }
132
250
 
251
+ .always-visible,
252
+ .always-visible .tsd-signatures {
253
+ display: inherit !important;
254
+ }
255
+
133
256
  h1,
134
257
  h2,
135
258
  h3,
@@ -139,6 +262,16 @@ h6 {
139
262
  line-height: 1.2;
140
263
  }
141
264
 
265
+ h1 > a,
266
+ h2 > a,
267
+ h3 > a,
268
+ h4 > a,
269
+ h5 > a,
270
+ h6 > a {
271
+ text-decoration: none;
272
+ color: var(--color-text);
273
+ }
274
+
142
275
  h1 {
143
276
  font-size: 1.875rem;
144
277
  margin: 0.67rem 0;
@@ -173,12 +306,6 @@ h6 {
173
306
  text-transform: uppercase;
174
307
  }
175
308
 
176
- pre {
177
- white-space: pre;
178
- white-space: pre-wrap;
179
- word-wrap: break-word;
180
- }
181
-
182
309
  dl,
183
310
  menu,
184
311
  ol,
@@ -191,26 +318,10 @@ dd {
191
318
  }
192
319
 
193
320
  .container {
194
- max-width: 1600px;
321
+ max-width: 1700px;
195
322
  padding: 0 2rem;
196
323
  }
197
324
 
198
- @media (min-width: 640px) {
199
- .container {
200
- padding: 0 4rem;
201
- }
202
- }
203
- @media (min-width: 1200px) {
204
- .container {
205
- padding: 0 8rem;
206
- }
207
- }
208
- @media (min-width: 1600px) {
209
- .container {
210
- padding: 0 12rem;
211
- }
212
- }
213
-
214
325
  /* Footer */
215
326
  .tsd-generator {
216
327
  border-top: 1px solid var(--color-accent);
@@ -226,26 +337,9 @@ dd {
226
337
  }
227
338
 
228
339
  .container-main {
229
- display: flex;
230
- justify-content: space-between;
231
- position: relative;
232
340
  margin: 0 auto;
233
- }
234
-
235
- .col-4,
236
- .col-8 {
237
- box-sizing: border-box;
238
- float: left;
239
- padding: 2rem 1rem;
240
- }
241
-
242
- .col-4 {
243
- flex: 0 0 25%;
244
- }
245
- .col-8 {
246
- flex: 1 0;
247
- flex-wrap: wrap;
248
- padding-left: 0;
341
+ /* toolbar, footer, margin */
342
+ min-height: calc(100vh - 41px - 56px - 4rem);
249
343
  }
250
344
 
251
345
  @keyframes fade-in {
@@ -288,22 +382,6 @@ dd {
288
382
  opacity: 0;
289
383
  }
290
384
  }
291
- @keyframes shift-to-left {
292
- from {
293
- transform: translate(0, 0);
294
- }
295
- to {
296
- transform: translate(-25%, 0);
297
- }
298
- }
299
- @keyframes unshift-to-left {
300
- from {
301
- transform: translate(-25%, 0);
302
- }
303
- to {
304
- transform: translate(0, 0);
305
- }
306
- }
307
385
  @keyframes pop-in-from-right {
308
386
  from {
309
387
  transform: translate(100%, 0);
@@ -352,13 +430,29 @@ pre {
352
430
  }
353
431
 
354
432
  pre {
433
+ position: relative;
434
+ white-space: pre;
435
+ white-space: pre-wrap;
436
+ word-wrap: break-word;
355
437
  padding: 10px;
356
- border: 0.1em solid var(--color-accent);
438
+ border: 1px solid var(--color-accent);
357
439
  }
358
440
  pre code {
359
441
  padding: 0;
360
442
  font-size: 100%;
361
443
  }
444
+ pre > button {
445
+ position: absolute;
446
+ top: 10px;
447
+ right: 10px;
448
+ opacity: 0;
449
+ transition: opacity 0.1s;
450
+ box-sizing: border-box;
451
+ }
452
+ pre:hover > button,
453
+ pre > button.visible {
454
+ opacity: 1;
455
+ }
362
456
 
363
457
  blockquote {
364
458
  margin: 1em 0;
@@ -392,92 +486,6 @@ blockquote {
392
486
  margin: 1em 0;
393
487
  }
394
488
 
395
- @media (max-width: 1024px) {
396
- html .col-content {
397
- float: none;
398
- max-width: 100%;
399
- width: 100%;
400
- padding-top: 3rem;
401
- }
402
- html .col-menu {
403
- position: fixed !important;
404
- overflow-y: auto;
405
- -webkit-overflow-scrolling: touch;
406
- z-index: 1024;
407
- top: 0 !important;
408
- bottom: 0 !important;
409
- left: auto !important;
410
- right: 0 !important;
411
- padding: 1.5rem 1.5rem 0 0;
412
- max-width: 25rem;
413
- visibility: hidden;
414
- background-color: var(--color-background);
415
- transform: translate(100%, 0);
416
- }
417
- html .col-menu > *:last-child {
418
- padding-bottom: 20px;
419
- }
420
- html .overlay {
421
- content: "";
422
- display: block;
423
- position: fixed;
424
- z-index: 1023;
425
- top: 0;
426
- left: 0;
427
- right: 0;
428
- bottom: 0;
429
- background-color: rgba(0, 0, 0, 0.75);
430
- visibility: hidden;
431
- }
432
-
433
- .to-has-menu .overlay {
434
- animation: fade-in 0.4s;
435
- }
436
-
437
- .to-has-menu :is(header, footer, .col-content) {
438
- animation: shift-to-left 0.4s;
439
- }
440
-
441
- .to-has-menu .col-menu {
442
- animation: pop-in-from-right 0.4s;
443
- }
444
-
445
- .from-has-menu .overlay {
446
- animation: fade-out 0.4s;
447
- }
448
-
449
- .from-has-menu :is(header, footer, .col-content) {
450
- animation: unshift-to-left 0.4s;
451
- }
452
-
453
- .from-has-menu .col-menu {
454
- animation: pop-out-to-right 0.4s;
455
- }
456
-
457
- .has-menu body {
458
- overflow: hidden;
459
- }
460
- .has-menu .overlay {
461
- visibility: visible;
462
- }
463
- .has-menu :is(header, footer, .col-content) {
464
- transform: translate(-25%, 0);
465
- }
466
- .has-menu .col-menu {
467
- visibility: visible;
468
- transform: translate(0, 0);
469
- display: grid;
470
- align-items: center;
471
- grid-template-rows: auto 1fr;
472
- grid-gap: 1.5rem;
473
- max-height: 100vh;
474
- padding: 1rem 2rem;
475
- }
476
- .has-menu .tsd-navigation {
477
- max-height: 100%;
478
- }
479
- }
480
-
481
489
  .tsd-breadcrumb {
482
490
  margin: 0;
483
491
  padding: 0;
@@ -656,43 +664,6 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark {
656
664
  -o-page-break-inside: avoid;
657
665
  page-break-inside: avoid;
658
666
  }
659
- .tsd-index-panel a,
660
- .tsd-index-panel a.tsd-parent-kind-module {
661
- color: var(--color-ts);
662
- }
663
- .tsd-index-panel a.tsd-parent-kind-interface {
664
- color: var(--color-ts-interface);
665
- }
666
- .tsd-index-panel a.tsd-parent-kind-enum {
667
- color: var(--color-ts-enum);
668
- }
669
- .tsd-index-panel a.tsd-parent-kind-class {
670
- color: var(--color-ts-class);
671
- }
672
- .tsd-index-panel a.tsd-kind-module {
673
- color: var(--color-ts-namespace);
674
- }
675
- .tsd-index-panel a.tsd-kind-interface {
676
- color: var(--color-ts-interface);
677
- }
678
- .tsd-index-panel a.tsd-kind-enum {
679
- color: var(--color-ts-enum);
680
- }
681
- .tsd-index-panel a.tsd-kind-class {
682
- color: var(--color-ts-class);
683
- }
684
- .tsd-index-panel a.tsd-kind-function {
685
- color: var(--color-ts-function);
686
- }
687
- .tsd-index-panel a.tsd-kind-namespace {
688
- color: var(--color-ts-namespace);
689
- }
690
- .tsd-index-panel a.tsd-kind-variable {
691
- color: var(--color-ts-variable);
692
- }
693
- .tsd-index-panel a.tsd-is-private {
694
- color: var(--color-ts-private);
695
- }
696
667
 
697
668
  .tsd-flag {
698
669
  display: inline-block;
@@ -707,7 +678,7 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark {
707
678
  }
708
679
 
709
680
  .tsd-anchor {
710
- position: absolute;
681
+ position: relative;
711
682
  top: -100px;
712
683
  }
713
684
 
@@ -721,146 +692,110 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark {
721
692
  margin-bottom: 0;
722
693
  border-bottom: none;
723
694
  }
724
- .tsd-member [data-tsd-kind] {
725
- color: var(--color-ts);
726
- }
727
- .tsd-member [data-tsd-kind="Interface"] {
728
- color: var(--color-ts-interface);
729
- }
730
- .tsd-member [data-tsd-kind="Enum"] {
731
- color: var(--color-ts-enum);
732
- }
733
- .tsd-member [data-tsd-kind="Class"] {
734
- color: var(--color-ts-class);
695
+
696
+ .tsd-navigation.settings {
697
+ margin: 1rem 0;
735
698
  }
736
- .tsd-member [data-tsd-kind="Private"] {
737
- color: var(--color-ts-private);
699
+ .tsd-navigation > a,
700
+ .tsd-navigation .tsd-accordion-summary {
701
+ width: calc(100% - 0.5rem);
738
702
  }
739
-
740
- .tsd-navigation a {
741
- display: block;
742
- margin: 0.4rem 0;
743
- border-left: 2px solid transparent;
703
+ .tsd-navigation a,
704
+ .tsd-navigation summary > span,
705
+ .tsd-page-navigation a {
706
+ display: inline-flex;
707
+ align-items: center;
708
+ padding: 0.25rem;
744
709
  color: var(--color-text);
745
710
  text-decoration: none;
746
- transition: border-left-color 0.1s;
711
+ box-sizing: border-box;
747
712
  }
748
- .tsd-navigation a:hover {
713
+ .tsd-navigation a.current,
714
+ .tsd-page-navigation a.current {
715
+ background: var(--color-active-menu-item);
716
+ }
717
+ .tsd-navigation a:hover,
718
+ .tsd-page-navigation a:hover {
749
719
  text-decoration: underline;
750
720
  }
751
- .tsd-navigation ul {
752
- margin: 0;
721
+ .tsd-navigation ul,
722
+ .tsd-page-navigation ul {
723
+ margin-top: 0;
724
+ margin-bottom: 0;
753
725
  padding: 0;
754
726
  list-style: none;
755
727
  }
756
- .tsd-navigation li {
728
+ .tsd-navigation li,
729
+ .tsd-page-navigation li {
757
730
  padding: 0;
731
+ max-width: 100%;
758
732
  }
759
-
760
- .tsd-navigation.primary .tsd-accordion-details > ul {
761
- margin-top: 0.75rem;
762
- }
763
- .tsd-navigation.primary a {
764
- padding: 0.75rem 0.5rem;
765
- margin: 0;
733
+ .tsd-nested-navigation {
734
+ margin-left: 3rem;
766
735
  }
767
- .tsd-navigation.primary ul li a {
768
- margin-left: 0.5rem;
736
+ .tsd-nested-navigation > li > details {
737
+ margin-left: -1.5rem;
769
738
  }
770
- .tsd-navigation.primary ul li li a {
739
+ .tsd-small-nested-navigation {
771
740
  margin-left: 1.5rem;
772
741
  }
773
- .tsd-navigation.primary ul li li li a {
774
- margin-left: 2.5rem;
775
- }
776
- .tsd-navigation.primary ul li li li li a {
777
- margin-left: 3.5rem;
778
- }
779
- .tsd-navigation.primary ul li li li li li a {
780
- margin-left: 4.5rem;
781
- }
782
- .tsd-navigation.primary ul li li li li li li a {
783
- margin-left: 5.5rem;
784
- }
785
- .tsd-navigation.primary li.current > a {
786
- border-left: 0.15rem var(--color-text) solid;
787
- }
788
- .tsd-navigation.primary li.selected > a {
789
- font-weight: bold;
790
- border-left: 0.2rem var(--color-text) solid;
791
- }
792
- .tsd-navigation.primary ul li a:hover {
793
- border-left: 0.2rem var(--color-text-aside) solid;
794
- }
795
- .tsd-navigation.primary li.globals + li > span,
796
- .tsd-navigation.primary li.globals + li > a {
797
- padding-top: 20px;
742
+ .tsd-small-nested-navigation > li > details {
743
+ margin-left: -1.5rem;
798
744
  }
799
745
 
800
- .tsd-navigation.secondary.tsd-navigation--toolbar-hide {
801
- max-height: calc(100vh - 1rem);
802
- top: 0.5rem;
803
- }
804
- .tsd-navigation.secondary > ul {
805
- display: inline;
806
- padding-right: 0.5rem;
807
- transition: opacity 0.2s;
808
- }
809
- .tsd-navigation.secondary ul li a {
810
- padding-left: 0;
811
- }
812
- .tsd-navigation.secondary ul li li a {
813
- padding-left: 1.1rem;
814
- }
815
- .tsd-navigation.secondary ul li li li a {
816
- padding-left: 2.2rem;
746
+ .tsd-nested-navigation > li > a,
747
+ .tsd-nested-navigation > li > span {
748
+ width: calc(100% - 1.75rem - 0.5rem);
817
749
  }
818
- .tsd-navigation.secondary ul li li li li a {
819
- padding-left: 3.3rem;
750
+
751
+ .tsd-page-navigation ul {
752
+ padding-left: 1.75rem;
820
753
  }
821
- .tsd-navigation.secondary ul li li li li li a {
822
- padding-left: 4.4rem;
754
+
755
+ #tsd-sidebar-links a {
756
+ margin-top: 0;
757
+ margin-bottom: 0.5rem;
758
+ line-height: 1.25rem;
823
759
  }
824
- .tsd-navigation.secondary ul li li li li li li a {
825
- padding-left: 5.5rem;
760
+ #tsd-sidebar-links a:last-of-type {
761
+ margin-bottom: 0;
826
762
  }
827
763
 
828
764
  a.tsd-index-link {
829
- margin: 0.25rem 0;
765
+ padding: 0.25rem 0 !important;
830
766
  font-size: 1rem;
831
767
  line-height: 1.25rem;
832
768
  display: inline-flex;
833
769
  align-items: center;
770
+ color: var(--color-text);
834
771
  }
835
- .tsd-accordion-summary > h1,
836
- .tsd-accordion-summary > h2,
837
- .tsd-accordion-summary > h3,
838
- .tsd-accordion-summary > h4,
839
- .tsd-accordion-summary > h5 {
840
- display: inline-flex;
841
- align-items: center;
842
- vertical-align: middle;
843
- margin-bottom: 0;
772
+ .tsd-accordion-summary {
773
+ list-style-type: none; /* hide marker on non-safari */
774
+ outline: none; /* broken on safari, so just hide it */
775
+ }
776
+ .tsd-accordion-summary::-webkit-details-marker {
777
+ display: none; /* hide marker on safari */
778
+ }
779
+ .tsd-accordion-summary,
780
+ .tsd-accordion-summary a {
844
781
  user-select: none;
845
782
  -moz-user-select: none;
846
783
  -webkit-user-select: none;
847
784
  -ms-user-select: none;
848
- }
849
- .tsd-accordion-summary {
850
- display: block;
785
+
851
786
  cursor: pointer;
852
787
  }
788
+ .tsd-accordion-summary a {
789
+ width: calc(100% - 1.5rem);
790
+ }
853
791
  .tsd-accordion-summary > * {
854
792
  margin-top: 0;
855
793
  margin-bottom: 0;
856
794
  padding-top: 0;
857
795
  padding-bottom: 0;
858
796
  }
859
- .tsd-accordion-summary::-webkit-details-marker {
860
- display: none;
861
- }
862
- .tsd-index-accordion .tsd-accordion-summary svg {
863
- margin-right: 0.25rem;
797
+ .tsd-index-accordion .tsd-accordion-summary > svg {
798
+ margin-left: 0.25rem;
864
799
  }
865
800
  .tsd-index-content > :not(:first-child) {
866
801
  margin-top: 0.75rem;
@@ -885,34 +820,6 @@ a.tsd-index-link {
885
820
  margin-right: 0.8rem;
886
821
  }
887
822
 
888
- @media (min-width: 1024px) {
889
- .col-content {
890
- margin: 2rem auto;
891
- }
892
-
893
- .menu-sticky-wrap {
894
- position: sticky;
895
- height: calc(100vh - 2rem);
896
- top: 4rem;
897
- right: 0;
898
- padding: 0 1.5rem;
899
- padding-top: 1rem;
900
- margin-top: 3rem;
901
- transition: 0.3s ease-in-out;
902
- transition-property: top, padding-top, padding, height;
903
- overflow-y: auto;
904
- }
905
- .col-menu {
906
- border-left: 1px solid var(--color-accent);
907
- }
908
- .col-menu--hide {
909
- top: 1rem;
910
- }
911
- .col-menu .tsd-navigation:not(:last-child) {
912
- padding-bottom: 1.75rem;
913
- }
914
- }
915
-
916
823
  .tsd-panel {
917
824
  margin-bottom: 2.5rem;
918
825
  }
@@ -978,7 +885,8 @@ a.tsd-index-link {
978
885
  right: -40px;
979
886
  }
980
887
  #tsd-search .field input,
981
- #tsd-search .title {
888
+ #tsd-search .title,
889
+ #tsd-toolbar-links a {
982
890
  transition: opacity 0.2s;
983
891
  }
984
892
  #tsd-search .results {
@@ -1022,7 +930,8 @@ a.tsd-index-link {
1022
930
  top: 0;
1023
931
  opacity: 1;
1024
932
  }
1025
- #tsd-search.has-focus .title {
933
+ #tsd-search.has-focus .title,
934
+ #tsd-search.has-focus #tsd-toolbar-links a {
1026
935
  z-index: 0;
1027
936
  opacity: 0;
1028
937
  }
@@ -1036,6 +945,22 @@ a.tsd-index-link {
1036
945
  display: block;
1037
946
  }
1038
947
 
948
+ #tsd-toolbar-links {
949
+ position: absolute;
950
+ top: 0;
951
+ right: 2rem;
952
+ height: 100%;
953
+ display: flex;
954
+ align-items: center;
955
+ justify-content: flex-end;
956
+ }
957
+ #tsd-toolbar-links a {
958
+ margin-left: 1.5rem;
959
+ }
960
+ #tsd-toolbar-links a:hover {
961
+ text-decoration: underline;
962
+ }
963
+
1039
964
  .tsd-signature {
1040
965
  margin: 0 0 1rem 0;
1041
966
  padding: 1rem 0.5rem;
@@ -1100,7 +1025,7 @@ ul.tsd-type-parameter-list h5 {
1100
1025
  }
1101
1026
 
1102
1027
  .tsd-page-toolbar {
1103
- position: fixed;
1028
+ position: sticky;
1104
1029
  z-index: 1;
1105
1030
  top: 0;
1106
1031
  left: 0;
@@ -1134,9 +1059,10 @@ ul.tsd-type-parameter-list h5 {
1134
1059
  .tsd-page-toolbar .table-cell:first-child {
1135
1060
  width: 100%;
1136
1061
  }
1137
-
1138
- .tsd-page-toolbar--hide {
1139
- transform: translateY(-100%);
1062
+ .tsd-page-toolbar .tsd-toolbar-icon {
1063
+ box-sizing: border-box;
1064
+ line-height: 0;
1065
+ padding: 12px 0;
1140
1066
  }
1141
1067
 
1142
1068
  .tsd-widget {
@@ -1166,12 +1092,6 @@ ul.tsd-type-parameter-list h5 {
1166
1092
  .tsd-widget.menu {
1167
1093
  display: none;
1168
1094
  }
1169
- @media (max-width: 1024px) {
1170
- .tsd-widget.options,
1171
- .tsd-widget.menu {
1172
- display: inline-block;
1173
- }
1174
- }
1175
1095
  input[type="checkbox"] + .tsd-widget:before {
1176
1096
  background-position: -120px 0;
1177
1097
  }
@@ -1205,6 +1125,84 @@ img {
1205
1125
  text-decoration: line-through;
1206
1126
  }
1207
1127
 
1128
+ .warning {
1129
+ padding: 1rem;
1130
+ color: var(--color-warning-text);
1131
+ background: var(--color-background-warning);
1132
+ }
1133
+
1134
+ .tsd-kind-project {
1135
+ color: var(--color-ts-project);
1136
+ }
1137
+ .tsd-kind-module {
1138
+ color: var(--color-ts-module);
1139
+ }
1140
+ .tsd-kind-namespace {
1141
+ color: var(--color-ts-namespace);
1142
+ }
1143
+ .tsd-kind-enum {
1144
+ color: var(--color-ts-enum);
1145
+ }
1146
+ .tsd-kind-enum-member {
1147
+ color: var(--color-ts-enum-member);
1148
+ }
1149
+ .tsd-kind-variable {
1150
+ color: var(--color-ts-variable);
1151
+ }
1152
+ .tsd-kind-function {
1153
+ color: var(--color-ts-function);
1154
+ }
1155
+ .tsd-kind-class {
1156
+ color: var(--color-ts-class);
1157
+ }
1158
+ .tsd-kind-interface {
1159
+ color: var(--color-ts-interface);
1160
+ }
1161
+ .tsd-kind-constructor {
1162
+ color: var(--color-ts-constructor);
1163
+ }
1164
+ .tsd-kind-property {
1165
+ color: var(--color-ts-property);
1166
+ }
1167
+ .tsd-kind-method {
1168
+ color: var(--color-ts-method);
1169
+ }
1170
+ .tsd-kind-call-signature {
1171
+ color: var(--color-ts-call-signature);
1172
+ }
1173
+ .tsd-kind-index-signature {
1174
+ color: var(--color-ts-index-signature);
1175
+ }
1176
+ .tsd-kind-constructor-signature {
1177
+ color: var(--color-ts-constructor-signature);
1178
+ }
1179
+ .tsd-kind-parameter {
1180
+ color: var(--color-ts-parameter);
1181
+ }
1182
+ .tsd-kind-type-literal {
1183
+ color: var(--color-ts-type-literal);
1184
+ }
1185
+ .tsd-kind-type-parameter {
1186
+ color: var(--color-ts-type-parameter);
1187
+ }
1188
+ .tsd-kind-accessor {
1189
+ color: var(--color-ts-accessor);
1190
+ }
1191
+ .tsd-kind-get-signature {
1192
+ color: var(--color-ts-get-signature);
1193
+ }
1194
+ .tsd-kind-set-signature {
1195
+ color: var(--color-ts-set-signature);
1196
+ }
1197
+ .tsd-kind-type-alias {
1198
+ color: var(--color-ts-type-alias);
1199
+ }
1200
+
1201
+ /* if we have a kind icon, don't color the text by kind */
1202
+ .tsd-kind-icon ~ span {
1203
+ color: var(--color-text);
1204
+ }
1205
+
1208
1206
  * {
1209
1207
  scrollbar-width: thin;
1210
1208
  scrollbar-color: var(--color-accent) var(--color-icon-background);
@@ -1223,3 +1221,147 @@ img {
1223
1221
  border-radius: 999rem;
1224
1222
  border: 0.25rem solid var(--color-icon-background);
1225
1223
  }
1224
+
1225
+ /* mobile */
1226
+ @media (max-width: 769px) {
1227
+ .tsd-widget.options,
1228
+ .tsd-widget.menu {
1229
+ display: inline-block;
1230
+ }
1231
+
1232
+ .container-main {
1233
+ display: flex;
1234
+ }
1235
+ html .col-content {
1236
+ float: none;
1237
+ max-width: 100%;
1238
+ width: 100%;
1239
+ }
1240
+ html .col-sidebar {
1241
+ position: fixed !important;
1242
+ overflow-y: auto;
1243
+ -webkit-overflow-scrolling: touch;
1244
+ z-index: 1024;
1245
+ top: 0 !important;
1246
+ bottom: 0 !important;
1247
+ left: auto !important;
1248
+ right: 0 !important;
1249
+ padding: 1.5rem 1.5rem 0 0;
1250
+ width: 75vw;
1251
+ visibility: hidden;
1252
+ background-color: var(--color-background);
1253
+ transform: translate(100%, 0);
1254
+ }
1255
+ html .col-sidebar > *:last-child {
1256
+ padding-bottom: 20px;
1257
+ }
1258
+ html .overlay {
1259
+ content: "";
1260
+ display: block;
1261
+ position: fixed;
1262
+ z-index: 1023;
1263
+ top: 0;
1264
+ left: 0;
1265
+ right: 0;
1266
+ bottom: 0;
1267
+ background-color: rgba(0, 0, 0, 0.75);
1268
+ visibility: hidden;
1269
+ }
1270
+
1271
+ .to-has-menu .overlay {
1272
+ animation: fade-in 0.4s;
1273
+ }
1274
+
1275
+ .to-has-menu .col-sidebar {
1276
+ animation: pop-in-from-right 0.4s;
1277
+ }
1278
+
1279
+ .from-has-menu .overlay {
1280
+ animation: fade-out 0.4s;
1281
+ }
1282
+
1283
+ .from-has-menu .col-sidebar {
1284
+ animation: pop-out-to-right 0.4s;
1285
+ }
1286
+
1287
+ .has-menu body {
1288
+ overflow: hidden;
1289
+ }
1290
+ .has-menu .overlay {
1291
+ visibility: visible;
1292
+ }
1293
+ .has-menu .col-sidebar {
1294
+ visibility: visible;
1295
+ transform: translate(0, 0);
1296
+ display: flex;
1297
+ flex-direction: column;
1298
+ gap: 1.5rem;
1299
+ max-height: 100vh;
1300
+ padding: 1rem 2rem;
1301
+ }
1302
+ .has-menu .tsd-navigation {
1303
+ max-height: 100%;
1304
+ }
1305
+ }
1306
+
1307
+ /* one sidebar */
1308
+ @media (min-width: 770px) {
1309
+ .container-main {
1310
+ display: grid;
1311
+ grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
1312
+ grid-template-areas: "sidebar content";
1313
+ margin: 2rem auto;
1314
+ }
1315
+
1316
+ .col-sidebar {
1317
+ grid-area: sidebar;
1318
+ }
1319
+ .col-content {
1320
+ grid-area: content;
1321
+ padding: 0 1rem;
1322
+ }
1323
+ }
1324
+ @media (min-width: 770px) and (max-width: 1399px) {
1325
+ .col-sidebar {
1326
+ max-height: calc(100vh - 2rem - 42px);
1327
+ overflow: auto;
1328
+ position: sticky;
1329
+ top: 42px;
1330
+ padding-top: 1rem;
1331
+ }
1332
+ .site-menu {
1333
+ margin-top: 1rem;
1334
+ }
1335
+ }
1336
+
1337
+ /* two sidebars */
1338
+ @media (min-width: 1200px) {
1339
+ .container-main {
1340
+ grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr) minmax(0, 20rem);
1341
+ grid-template-areas: "sidebar content toc";
1342
+ }
1343
+
1344
+ .col-sidebar {
1345
+ display: contents;
1346
+ }
1347
+
1348
+ .page-menu {
1349
+ grid-area: toc;
1350
+ padding-left: 1rem;
1351
+ }
1352
+ .site-menu {
1353
+ grid-area: sidebar;
1354
+ }
1355
+
1356
+ .site-menu {
1357
+ margin-top: 1rem 0;
1358
+ }
1359
+
1360
+ .page-menu,
1361
+ .site-menu {
1362
+ max-height: calc(100vh - 2rem - 42px);
1363
+ overflow: auto;
1364
+ position: sticky;
1365
+ top: 42px;
1366
+ }
1367
+ }