@servicetitan/docs-anvil-uikit-contrib 25.9.0 → 26.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.
|
@@ -190,6 +190,26 @@ export const customServerCode = `
|
|
|
190
190
|
|
|
191
191
|
## API Reference
|
|
192
192
|
|
|
193
|
+
### Enabling notifications
|
|
194
|
+
|
|
195
|
+
To enable notifications in Frontend applications and MFEs, wrap the application and/or MFE entry points within a `<Notifications>` component. E.g.,
|
|
196
|
+
|
|
197
|
+
```tsx
|
|
198
|
+
import { StrictMode } from 'react';
|
|
199
|
+
import { Notifications } from '@servicetitan/notifications';
|
|
200
|
+
import { AppRoutes } from './routes';
|
|
201
|
+
|
|
202
|
+
export const App: FC = () => {
|
|
203
|
+
return (
|
|
204
|
+
<StrictMode>
|
|
205
|
+
<Notifications>
|
|
206
|
+
<AppRoutes />
|
|
207
|
+
</Notifications>
|
|
208
|
+
</StrictMode>
|
|
209
|
+
);
|
|
210
|
+
};
|
|
211
|
+
```
|
|
212
|
+
|
|
193
213
|
### NotificationCenter
|
|
194
214
|
|
|
195
215
|
```csharp
|
|
@@ -15,8 +15,8 @@ npm install --save-dev @servicetitan/testing-library
|
|
|
15
15
|
This library has `peerDependencies` for:
|
|
16
16
|
|
|
17
17
|
- `@servicetitan/react-ioc`: >=22.0.0
|
|
18
|
-
- `@testing-library/react`:
|
|
19
|
-
- `@testing-library/react-hooks`:
|
|
18
|
+
- `@testing-library/react`: >=12.0.0
|
|
19
|
+
- `@testing-library/react-hooks`: >=7.0.0 (only if using `@testing-library/react` v12)
|
|
20
20
|
- `react`: >=17.0.0
|
|
21
21
|
|
|
22
22
|
**Note:** This library is not compatible with React Testing Library versions 13+.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@servicetitan/docs-anvil-uikit-contrib",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "26.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": "
|
|
19
|
+
"gitHead": "a859628bb29f8f17153e2a4e23bb38f14f447b10"
|
|
20
20
|
}
|