@warp-drive-mirror/ember 5.5.0-alpha.13 → 5.5.0-alpha.14

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 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-mirror/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-mirror/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-mirror/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-mirror/ember",
3
3
  "description": "Data bindings and utilities for Ember applications using WarpDrive",
4
- "version": "5.5.0-alpha.13",
4
+ "version": "5.5.0-alpha.14",
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-mirror/store": "5.5.0-alpha.13",
40
- "@ember-data-mirror/request": "5.5.0-alpha.13",
41
- "@ember-data-mirror/request-utils": "5.5.0-alpha.13",
42
- "@warp-drive-mirror/core-types": "5.5.0-alpha.13",
39
+ "@ember-data-mirror/store": "5.5.0-alpha.14",
40
+ "@ember-data-mirror/request": "5.5.0-alpha.14",
41
+ "@ember-data-mirror/request-utils": "5.5.0-alpha.14",
42
+ "@warp-drive-mirror/core-types": "5.5.0-alpha.14",
43
43
  "ember-provide-consume-context": "^0.7.0",
44
- "@ember-data-mirror/tracking": "5.5.0-alpha.13"
44
+ "@ember-data-mirror/tracking": "5.5.0-alpha.14"
45
45
  },
46
46
  "dependencies": {
47
47
  "@embroider/macros": "^1.16.12",
48
- "@warp-drive-mirror/build-config": "5.5.0-alpha.13"
48
+ "@warp-drive-mirror/build-config": "5.5.0-alpha.14"
49
49
  },
50
50
  "peerDependenciesMeta": {
51
51
  "ember-provide-consume-context": {
@@ -67,14 +67,14 @@
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-mirror/request": "5.5.0-alpha.13",
71
- "@ember-data-mirror/request-utils": "5.5.0-alpha.13",
72
- "@ember-data-mirror/store": "5.5.0-alpha.13",
73
- "@ember-data-mirror/tracking": "5.5.0-alpha.13",
70
+ "@ember-data-mirror/request": "5.5.0-alpha.14",
71
+ "@ember-data-mirror/request-utils": "5.5.0-alpha.14",
72
+ "@ember-data-mirror/store": "5.5.0-alpha.14",
73
+ "@ember-data-mirror/tracking": "5.5.0-alpha.14",
74
74
  "@ember/test-helpers": "5.2.0",
75
75
  "@ember/test-waiters": "^4.1.0",
76
- "@warp-drive-mirror/core-types": "5.5.0-alpha.13",
77
- "@warp-drive/internal-config": "5.5.0-alpha.13",
76
+ "@warp-drive-mirror/core-types": "5.5.0-alpha.14",
77
+ "@warp-drive/internal-config": "5.5.0-alpha.14",
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",
@@ -19,6 +19,33 @@ declare module '@warp-drive-mirror/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-mirror/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-mirror/ember';
43
+ * ```
44
+ *
45
+ * ```hbs
46
+ * <WarpDriveAwait @promise={{this.getTheData}}></WarpDriveAwait>
47
+ * ```
48
+ *
22
49
  * @module @warp-drive-mirror/ember
23
50
  * @main @warp-drive-mirror/ember
24
51
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;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"}
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"}