@supersoniks/concorde 4.9.91 → 4.9.93

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.
Files changed (48) hide show
  1. package/ai/cursor/rules/concorde.mdc +7 -0
  2. package/ai/jetbrains/rules/concorde.md +6 -0
  3. package/ai/skills/concorde/SKILL.md +48 -0
  4. package/build-infos.json +1 -1
  5. package/concorde-core.bundle.js +257 -257
  6. package/concorde-core.es.js +3174 -3086
  7. package/dist/concorde-core.bundle.js +257 -257
  8. package/dist/concorde-core.es.js +3174 -3086
  9. package/dist/js/core/decorators/api.js +168 -63
  10. package/dist/js/core/decorators/api.js.map +1 -1
  11. package/dist/js/core/utils/api.js +29 -8
  12. package/dist/js/core/utils/api.js.map +1 -1
  13. package/dist/types/core/decorators/api.d.ts +30 -16
  14. package/dist/types/core/decorators/api.d.ts.map +1 -1
  15. package/dist/types/core/utils/api.d.ts +1 -1
  16. package/dist/types/core/utils/api.d.ts.map +1 -1
  17. package/docs/assets/{index-BL6WVF7g.css → index-D2Q3JyQ6.css} +1 -1
  18. package/docs/assets/{index-DVn8AeyA.js → index-DURr6O71.js} +466 -568
  19. package/docs/crawl/docs/_decorators/get.html +35 -10
  20. package/docs/crawl/docs/_decorators/patch.html +13 -5
  21. package/docs/crawl/docs/_decorators/post.html +39 -10
  22. package/docs/crawl/docs/_decorators/put.html +13 -5
  23. package/docs/crawl/hubs/decorators.html +43 -40
  24. package/docs/crawl/hubs/remote-data.html +43 -40
  25. package/docs/index.html +2 -2
  26. package/docs/llms-full.txt +98 -23
  27. package/docs/llms.txt +1 -1
  28. package/docs/src/docs/_decorators/get.md +39 -5
  29. package/docs/src/docs/_decorators/patch.md +8 -3
  30. package/docs/src/docs/_decorators/post.md +39 -6
  31. package/docs/src/docs/_decorators/put.md +8 -3
  32. package/docs/src/docs/search/docs-search.json +103 -183
  33. package/docs/src/tsconfig.json +268 -268
  34. package/package.json +1 -1
  35. package/src/core/decorators/api.post.spec.ts +101 -6
  36. package/src/core/decorators/api.spec.ts +137 -6
  37. package/src/core/decorators/api.ts +304 -148
  38. package/src/core/utils/api.spec.ts +73 -0
  39. package/src/core/utils/api.ts +44 -11
  40. package/src/docs/_decorators/get.md +43 -5
  41. package/src/docs/_decorators/patch.md +16 -2
  42. package/src/docs/_decorators/post.md +23 -7
  43. package/src/docs/_decorators/put.md +16 -2
  44. package/src/docs/components/docs-demo-sources.ts +22 -8
  45. package/src/docs/example/decorators-demo-post.ts +70 -0
  46. package/src/docs/example/decorators-demo-subscribe-publish-get-demos.ts +61 -2
  47. package/src/docs/search/docs-search.json +122 -7
  48. package/src/tsconfig.tsbuildinfo +1 -1
@@ -13,17 +13,21 @@ const updateUser = put(new Endpoint<User>("users/42"), bodyKey);
13
13
 
14
14
  @updateUser
15
15
  @state()
16
- payload: ApiResult<User> | null = null;
16
+ payload?: ApiResult<User>;
17
17
  ```
18
18
 
19
19
  To run the operation again from the component:
20
20
 
21
21
  ```typescript
22
- update() {
23
- updateUser.send(this);
22
+ async update() {
23
+ await updateUser.send(this);
24
24
  }
25
25
  ```
26
26
 
27
+ `send(component)` returns a Promise resolved after the PUT completes. See
28
+ [@post](#docs/_decorators/post.md/post) for the method-decorator form and the
29
+ `when: "before"` option.
30
+
27
31
  The PUT is also sent automatically when the body mutates, unless
28
32
  `autoPostOnBodyMutation: false` is set. See
29
33
  [@post](#docs/_decorators/post.md/post) for the option details:
@@ -32,6 +36,7 @@ The PUT is also sent automatically when the body mutates, unless
32
36
  - `skipIfBodyMissing`
33
37
  - `refetchEveryMs`
34
38
  - `skipEmptyPlaceholder`
39
+ - `triggerKey`
35
40
 
36
41
  Pass explicit API configuration as the third argument:
37
42