@servicetitan/docs-anvil-uikit-contrib 30.0.0 → 31.1.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.
@@ -28,6 +28,11 @@ Notification Center was created to simplify and generalize everything related to
28
28
 
29
29
  ### Client-side notifications
30
30
 
31
+ :::caution
32
+ @servicetitan/notifications-service is a thin wrapper over Anvil 2 toasts.
33
+ We recommend to not use it for client-side notifications and instead call the Anvil 2 [Toast API](https://anvil.servicetitan.com/web/components/toast) directly.
34
+ :::
35
+
31
36
  To initiate notifications from the client side it's enough to call one of the `NotificationsService` methods. They accept `options` - a configuration of the visible part of notification which should cover most of the use cases and `preventDuplicates` flag used to avoid rerendering a notification that is already visible.
32
37
 
33
38
  #### Basic
@@ -4,7 +4,7 @@ title: API
4
4
 
5
5
  ## MockApiCalls
6
6
 
7
- When it isn't practical to [mock the API service classes](frontend/testing/miscellaneous/migrating-from-autogenerated-mocks), use `MockApiCalls` to configure responses for API endpoints.
7
+ When it isn't practical to [mock the API service classes](/docs/frontend/testing/miscellaneous/migrating-from-autogenerated-mocks), use `MockApiCalls` to configure responses for API endpoints.
8
8
 
9
9
  ```ts
10
10
  describe('[admin] AppRoutes', () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicetitan/docs-anvil-uikit-contrib",
3
- "version": "30.0.0",
3
+ "version": "31.1.0",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,5 +16,5 @@
16
16
  "cli": {
17
17
  "webpack": false
18
18
  },
19
- "gitHead": "c7ba135687a7ca3afac48032f57af9bd7e788da9"
19
+ "gitHead": "0307e2a84704ceddcef55ff15519cb5aa6ccb228"
20
20
  }