@supersoniks/concorde 4.9.91 → 4.9.92

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 (37) hide show
  1. package/build-infos.json +1 -1
  2. package/concorde-core.bundle.js +156 -156
  3. package/concorde-core.es.js +2348 -2331
  4. package/dist/concorde-core.bundle.js +156 -156
  5. package/dist/concorde-core.es.js +2348 -2331
  6. package/dist/js/core/decorators/api.js +64 -51
  7. package/dist/js/core/decorators/api.js.map +1 -1
  8. package/dist/types/core/decorators/api.d.ts +10 -5
  9. package/dist/types/core/decorators/api.d.ts.map +1 -1
  10. package/docs/assets/{index-BL6WVF7g.css → index-D2Q3JyQ6.css} +1 -1
  11. package/docs/assets/{index-DVn8AeyA.js → index-DURr6O71.js} +466 -568
  12. package/docs/crawl/docs/_decorators/get.html +35 -10
  13. package/docs/crawl/docs/_decorators/patch.html +13 -5
  14. package/docs/crawl/docs/_decorators/post.html +39 -10
  15. package/docs/crawl/docs/_decorators/put.html +13 -5
  16. package/docs/crawl/hubs/decorators.html +43 -40
  17. package/docs/crawl/hubs/remote-data.html +43 -40
  18. package/docs/index.html +2 -2
  19. package/docs/llms-full.txt +98 -23
  20. package/docs/llms.txt +1 -1
  21. package/docs/src/docs/_decorators/get.md +39 -5
  22. package/docs/src/docs/_decorators/patch.md +8 -3
  23. package/docs/src/docs/_decorators/post.md +39 -6
  24. package/docs/src/docs/_decorators/put.md +8 -3
  25. package/docs/src/docs/search/docs-search.json +103 -183
  26. package/docs/src/tsconfig.json +268 -268
  27. package/package.json +1 -1
  28. package/src/core/decorators/api.post.spec.ts +2 -2
  29. package/src/core/decorators/api.spec.ts +47 -6
  30. package/src/core/decorators/api.ts +100 -64
  31. package/src/docs/_decorators/get.md +12 -5
  32. package/src/docs/_decorators/patch.md +7 -2
  33. package/src/docs/_decorators/post.md +12 -7
  34. package/src/docs/_decorators/put.md +7 -2
  35. package/src/docs/components/docs-demo-sources.ts +8 -8
  36. package/src/docs/example/decorators-demo-subscribe-publish-get-demos.ts +2 -2
  37. package/src/docs/search/docs-search.json +2 -2
@@ -19,11 +19,15 @@ payload?: ApiResult<User>;
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
 
@@ -222,7 +222,7 @@ export const DOCS_DEMO_SOURCE_REGISTRY: Record<string, DocsSource[]> = {
222
222
  "demo-publish": [
223
223
  {
224
224
  path: "src/docs/example/decorators-demo-subscribe-publish-get-demos.ts",
225
- line: 29,
225
+ line: 32,
226
226
  label: "demo-publish",
227
227
  },
228
228
  { path: "src/docs/example/decorators-demo-init.ts", label: "demo data" },
@@ -230,7 +230,7 @@ export const DOCS_DEMO_SOURCE_REGISTRY: Record<string, DocsSource[]> = {
230
230
  "demo-subscribe-dynamic": [
231
231
  {
232
232
  path: "src/docs/example/decorators-demo-subscribe-publish-get-demos.ts",
233
- line: 313,
233
+ line: 269,
234
234
  label: "demo-subscribe-dynamic",
235
235
  },
236
236
  { path: "src/docs/example/decorators-demo-init.ts", label: "demo data" },
@@ -238,7 +238,7 @@ export const DOCS_DEMO_SOURCE_REGISTRY: Record<string, DocsSource[]> = {
238
238
  "demo-sub-template": [
239
239
  {
240
240
  path: "src/docs/example/decorators-demo-subscribe-publish-get-demos.ts",
241
- line: 282,
241
+ line: 238,
242
242
  label: "demo-sub-template",
243
243
  },
244
244
  { path: "src/docs/example/decorators-demo-init.ts", label: "demo data" },
@@ -246,7 +246,7 @@ export const DOCS_DEMO_SOURCE_REGISTRY: Record<string, DocsSource[]> = {
246
246
  "demo-api-get": [
247
247
  {
248
248
  path: "src/docs/example/decorators-demo-subscribe-publish-get-demos.ts",
249
- line: 83,
249
+ line: 86,
250
250
  label: "demo-api-get",
251
251
  },
252
252
  { path: "src/docs/example/decorators-demo-geo.ts", label: "geo API" },
@@ -255,7 +255,7 @@ export const DOCS_DEMO_SOURCE_REGISTRY: Record<string, DocsSource[]> = {
255
255
  "demo-api-get-configuration-key": [
256
256
  {
257
257
  path: "src/docs/example/decorators-demo-subscribe-publish-get-demos.ts",
258
- line: 147,
258
+ line: 127,
259
259
  label: "demo-api-get-configuration-key",
260
260
  },
261
261
  { path: "src/docs/example/decorators-demo-geo.ts", label: "geo API" },
@@ -263,7 +263,7 @@ export const DOCS_DEMO_SOURCE_REGISTRY: Record<string, DocsSource[]> = {
263
263
  "demo-api-get-publish-subscribe": [
264
264
  {
265
265
  path: "src/docs/example/decorators-demo-subscribe-publish-get-demos.ts",
266
- line: 227,
266
+ line: 178,
267
267
  label: "demo-api-get-publish-subscribe",
268
268
  },
269
269
  { path: "src/docs/example/decorators-demo-geo.ts", label: "geo API" },
@@ -295,7 +295,7 @@ export const DOCS_DEMO_SOURCE_REGISTRY: Record<string, DocsSource[]> = {
295
295
  "demo-handle": [
296
296
  {
297
297
  path: "src/docs/example/decorators-demo-subscribe-publish-get-demos.ts",
298
- line: 360,
298
+ line: 316,
299
299
  label: "demo-handle",
300
300
  },
301
301
  { path: "src/docs/example/decorators-demo-init.ts", label: "demo data" },
@@ -303,7 +303,7 @@ export const DOCS_DEMO_SOURCE_REGISTRY: Record<string, DocsSource[]> = {
303
303
  "demo-handle-dynamic": [
304
304
  {
305
305
  path: "src/docs/example/decorators-demo-subscribe-publish-get-demos.ts",
306
- line: 396,
306
+ line: 351,
307
307
  label: "demo-handle-dynamic",
308
308
  },
309
309
  { path: "src/docs/example/decorators-demo-init.ts", label: "demo data" },
@@ -91,8 +91,8 @@ export class DemoApiGet extends LitElement {
91
91
  @state()
92
92
  geoApiPayload?: ApiResult<GeoCommuneRow[]>;
93
93
 
94
- private refresh() {
95
- geoCommunesGet.refetch(this);
94
+ private async refresh() {
95
+ await geoCommunesGet.refetch(this);
96
96
  }
97
97
 
98
98
  render() {
@@ -4700,7 +4700,7 @@
4700
4700
  }
4701
4701
  },
4702
4702
  {
4703
- "search": "@get loads data and stores the result in an ApiResult&lt;T&gt; | null property.\n",
4703
+ "search": "@get loads data and stores the result in an optional ApiResult&lt;T&gt; property.\nThe property is undefined until a result is available.\n",
4704
4704
  "files": {
4705
4705
  "docs/_decorators/get.md": {
4706
4706
  "title": "@get",
@@ -5880,7 +5880,7 @@
5880
5880
  }
5881
5881
  },
5882
5882
  {
5883
- "search": "@post sends the contents of a publisher and stores the response in an\nApiResult&lt;T&gt; | null property.\n",
5883
+ "search": "@post sends the contents of a publisher and stores the response in an\noptional ApiResult&lt;T&gt; property. The property is undefined until a result\nis available.\n",
5884
5884
  "files": {
5885
5885
  "docs/_decorators/post.md": {
5886
5886
  "title": "@post",