@servicetitan/docs-uikit 28.3.1 → 28.3.3
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/docs/web-components.mdx +6 -6
- package/package.json +2 -2
package/docs/web-components.mdx
CHANGED
|
@@ -37,9 +37,9 @@ export const Foo: React.FC = () => {
|
|
|
37
37
|
| `fallbackSrc` | optional alternative path to an MFE root folder (if request for src returns error) |
|
|
38
38
|
| `data` | additional data passed to an MFE as an object, where values are serializable, and preferably memoized ([see below](#passing-data-from-host-to-mfe)) |
|
|
39
39
|
| `basename` | prefix for all MFE URLs, you should inject it by the `BASENAME_TOKEN` and pass to the appropriate router property |
|
|
40
|
-
| `loadingFallback` | optional
|
|
40
|
+
| `loadingFallback` | optional ReactNode to render when the MFE is loading |
|
|
41
41
|
| `loadingFallbackDelayed` | controls whether to render the loading fallback immediately, or after a short delay [(see below)](#fallback-delay) |
|
|
42
|
-
| `errorFallback` | optional
|
|
42
|
+
| `errorFallback` | optional ReactNode to render when the MFE fails to load |
|
|
43
43
|
| `className` | additional CSS classes for the MFE web component element |
|
|
44
44
|
| `cache` | optional cache strategy for the MFE [(see below)](#cache-strategy) |
|
|
45
45
|
|
|
@@ -51,10 +51,10 @@ To prevent the loading fallback from flickering on then off when an MFE loads qu
|
|
|
51
51
|
|
|
52
52
|
When an MFE is loaded, `Loader` fetches the version and bundle data from the `src` (or `fallbackSrc`) endpoint and stores the information in a cache. Then, if the MFE is unloaded and subsequently reloaded, it reuses the cached information. Use `cache` to control whether or how long `Loader` caches an MFE's data:
|
|
53
53
|
|
|
54
|
-
-
|
|
55
|
-
-
|
|
56
|
-
-
|
|
57
|
-
-
|
|
54
|
+
- `true`: cache the data for the standard interval (currently 15 minutes). This is the default value.
|
|
55
|
+
- `false`: do not cache the data; (re)fetch it every time the MFE is loaded
|
|
56
|
+
- `-1`: cache the data indefinitely (i.e., for the duration of the user's session)
|
|
57
|
+
- _<number>_: cache the data for the specified _<number>_ of milliseconds
|
|
58
58
|
|
|
59
59
|
#### Passing data from Host to MFE
|
|
60
60
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@servicetitan/docs-uikit",
|
|
3
|
-
"version": "28.3.
|
|
3
|
+
"version": "28.3.3",
|
|
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": "bac07173ff75001b7ad197e77bc1f6b23c531174"
|
|
20
20
|
}
|