@warp-drive/ember 5.5.0-alpha.13 → 5.5.0-alpha.15
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/README.md +27 -0
- package/package.json +14 -14
- package/unstable-preview-types/index.d.ts +27 -0
- package/unstable-preview-types/index.d.ts.map +1 -1
package/README.md
CHANGED
|
@@ -42,6 +42,7 @@ Documentation
|
|
|
42
42
|
- [RequestState](#requeststate)
|
|
43
43
|
- [getRequestState](#getrequeststate)
|
|
44
44
|
- [\<Request />](#request-)
|
|
45
|
+
- [Using with `.hbs`](#using-hbs)
|
|
45
46
|
|
|
46
47
|
---
|
|
47
48
|
|
|
@@ -529,6 +530,32 @@ import { Request } from '@warp-drive/ember';
|
|
|
529
530
|
|
|
530
531
|
If a matching request is refreshed or reloaded by any other component, the `Request` component will react accordingly.
|
|
531
532
|
|
|
533
|
+
## Using .hbs
|
|
534
|
+
|
|
535
|
+
The components and utils this library exports are intended for use with `
|
|
536
|
+
Glimmer Flavored JavaScript (`gjs`). To use them in handlebars files, your
|
|
537
|
+
app should re-export them. For instance:
|
|
538
|
+
|
|
539
|
+
*app/components/await.ts*
|
|
540
|
+
```ts
|
|
541
|
+
export { Await as default } from '@warp-drive/ember';
|
|
542
|
+
```
|
|
543
|
+
|
|
544
|
+
```hbs
|
|
545
|
+
<Await @promise={{this.getTheData}}></Await>
|
|
546
|
+
```
|
|
547
|
+
|
|
548
|
+
This approach allows renaming them to avoid conflicts just by using a different
|
|
549
|
+
filename if desired:
|
|
550
|
+
|
|
551
|
+
*app/components/warp-drive-await.ts*
|
|
552
|
+
```ts
|
|
553
|
+
export { Await as default } from '@warp-drive/ember';
|
|
554
|
+
```
|
|
555
|
+
|
|
556
|
+
```hbs
|
|
557
|
+
<WarpDriveAwait @promise={{this.getTheData}}></WarpDriveAwait>
|
|
558
|
+
```
|
|
532
559
|
|
|
533
560
|
---
|
|
534
561
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warp-drive/ember",
|
|
3
3
|
"description": "Data bindings and utilities for Ember applications using WarpDrive",
|
|
4
|
-
"version": "5.5.0-alpha.
|
|
4
|
+
"version": "5.5.0-alpha.15",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Chris Thoburn <runspired@users.noreply.github.com>",
|
|
7
7
|
"repository": {
|
|
@@ -36,16 +36,16 @@
|
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"ember-source": "3.28.12 || ^4.0.4 || ^5.0.0 || ^6.0.0",
|
|
38
38
|
"@ember/test-waiters": "^3.1.0 || ^4.0.0",
|
|
39
|
-
"@ember-data/store": "5.5.0-alpha.
|
|
40
|
-
"@ember-data/request": "5.5.0-alpha.
|
|
41
|
-
"@ember-data/request-utils": "5.5.0-alpha.
|
|
42
|
-
"@warp-drive/core-types": "5.5.0-alpha.
|
|
39
|
+
"@ember-data/store": "5.5.0-alpha.15",
|
|
40
|
+
"@ember-data/request": "5.5.0-alpha.15",
|
|
41
|
+
"@ember-data/request-utils": "5.5.0-alpha.15",
|
|
42
|
+
"@warp-drive/core-types": "5.5.0-alpha.15",
|
|
43
43
|
"ember-provide-consume-context": "^0.7.0",
|
|
44
|
-
"@ember-data/tracking": "5.5.0-alpha.
|
|
44
|
+
"@ember-data/tracking": "5.5.0-alpha.15"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@embroider/macros": "^1.16.12",
|
|
48
|
-
"@warp-drive/build-config": "5.5.0-alpha.
|
|
48
|
+
"@warp-drive/build-config": "5.5.0-alpha.15"
|
|
49
49
|
},
|
|
50
50
|
"peerDependenciesMeta": {
|
|
51
51
|
"ember-provide-consume-context": {
|
|
@@ -67,18 +67,18 @@
|
|
|
67
67
|
"@glint/template": "1.5.2",
|
|
68
68
|
"decorator-transforms": "^2.3.0",
|
|
69
69
|
"@embroider/addon-dev": "^7.1.3",
|
|
70
|
-
"@ember-data/request": "5.5.0-alpha.
|
|
71
|
-
"@ember-data/request-utils": "5.5.0-alpha.
|
|
72
|
-
"@ember-data/store": "5.5.0-alpha.
|
|
73
|
-
"@ember-data/tracking": "5.5.0-alpha.
|
|
70
|
+
"@ember-data/request": "5.5.0-alpha.15",
|
|
71
|
+
"@ember-data/request-utils": "5.5.0-alpha.15",
|
|
72
|
+
"@ember-data/store": "5.5.0-alpha.15",
|
|
73
|
+
"@ember-data/tracking": "5.5.0-alpha.15",
|
|
74
74
|
"@ember/test-helpers": "5.2.0",
|
|
75
75
|
"@ember/test-waiters": "^4.1.0",
|
|
76
|
-
"@warp-drive/core-types": "5.5.0-alpha.
|
|
77
|
-
"@warp-drive/internal-config": "5.5.0-alpha.
|
|
76
|
+
"@warp-drive/core-types": "5.5.0-alpha.15",
|
|
77
|
+
"@warp-drive/internal-config": "5.5.0-alpha.15",
|
|
78
78
|
"babel-plugin-ember-template-compilation": "^2.4.1",
|
|
79
79
|
"ember-template-imports": "^4.3.0",
|
|
80
80
|
"ember-source": "~6.3.0",
|
|
81
|
-
"rollup": "^4.
|
|
81
|
+
"rollup": "^4.40.0",
|
|
82
82
|
"typescript": "^5.8.3",
|
|
83
83
|
"vite": "^5.4.15",
|
|
84
84
|
"ember-provide-consume-context": "^0.7.0"
|
|
@@ -19,6 +19,33 @@ declare module '@warp-drive/ember' {
|
|
|
19
19
|
* and components that enable you to build robust performant apps with
|
|
20
20
|
* elegant control flow.
|
|
21
21
|
*
|
|
22
|
+
* ## Using .hbs
|
|
23
|
+
*
|
|
24
|
+
* The components and utils this library exports are intended for use with Glimmer
|
|
25
|
+
* Flavored JavaScript (gjs). To use them in handlebars files, your app should re-
|
|
26
|
+
* export them. For instance:
|
|
27
|
+
*
|
|
28
|
+
* *app/components/await.ts*
|
|
29
|
+
* ```ts
|
|
30
|
+
* export { Await as default } from '@warp-drive/ember';
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* ```hbs
|
|
34
|
+
* <Await @promise={{this.getTheData}}></Await>
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* This allows renaming them to avoid conflicts just by using a different filename
|
|
38
|
+
* if desired:
|
|
39
|
+
*
|
|
40
|
+
* *app/components/warp-drive-await.ts*
|
|
41
|
+
* ```ts
|
|
42
|
+
* export { Await as default } from '@warp-drive/ember';
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* ```hbs
|
|
46
|
+
* <WarpDriveAwait @promise={{this.getTheData}}></WarpDriveAwait>
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
22
49
|
* @module @warp-drive/ember
|
|
23
50
|
* @main @warp-drive/ember
|
|
24
51
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC"}
|