@servicetitan/docs-anvil-uikit-contrib 39.0.0 → 39.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.
package/docs/intl/date-time.mdx
CHANGED
|
@@ -20,6 +20,8 @@ The following standard ServiceTitan formats are available (examples are in `en-U
|
|
|
20
20
|
| `long` | Long date and short time | `January 9, 2025 at 4:00 PM` |
|
|
21
21
|
| `longWithTimeZone` | Long date and short time, with timezone | `January 9, 2025 at 4:00 PM EST` |
|
|
22
22
|
|
|
23
|
+
Any options passed to `FormattedDateTime` or `formatDateTime` will be merged on top of `{ format: 'short' }` (which expands to `{ day: '2-digit', month: '2-digit', year: 'numeric', hour: 'numeric', minute: 'numeric' }` [Intl.DateTimeFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#options)). If you want to use your custom options only, you can pass `format: undefined` to disable the default.
|
|
24
|
+
|
|
23
25
|
## Usage
|
|
24
26
|
|
|
25
27
|
### FormattedDateTime
|
|
@@ -32,8 +32,7 @@ expect(container.get(JobsStore).jobs.data).toHaveLength(1);
|
|
|
32
32
|
|
|
33
33
|
## Key Features
|
|
34
34
|
|
|
35
|
-
-
|
|
36
|
-
- **`skipQueries` option** — skip waiting for specific queries: `await initialize({ skipQueries: [store.details] })`
|
|
35
|
+
- **`skipQueries` option** — skip waiting for specific queries (required for `enabled: false` queries that should stay disabled): `await initialize({ skipQueries: [store.details] })`
|
|
37
36
|
- **`ignoreStores` option** — skip entire stores: `await initialize({ ignoreStores: [OtherStore] })`
|
|
38
37
|
- **Mock values** — `builder.add(JobsApi, { useValue: mockApi })` for mock dependencies
|
|
39
38
|
- **`waitFor` helper** — wait for MobX observable conditions: `await waitFor(() => store.items.initialized)`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@servicetitan/docs-anvil-uikit-contrib",
|
|
3
|
-
"version": "39.
|
|
3
|
+
"version": "39.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": "383b103c240822865df56f9664f6dcfd0397f122"
|
|
20
20
|
}
|