lecodes-sdk 2.6.0 → 2.8.1

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 (51) hide show
  1. package/dist/global.d.ts +11 -7
  2. package/dist/types/inject.d.ts +2 -1
  3. package/dist/types/plugin.d.ts +1 -0
  4. package/dist/types/plugins/gen/ar/sdk/ar.d.ts +25 -5
  5. package/dist/types/runtime/firstCall.d.ts +12 -0
  6. package/dist/types/runtime/gestures.d.ts +52 -0
  7. package/dist/types/runtime/rpc.d.ts +24 -0
  8. package/dist/types/runtime/wire.d.ts +11 -4
  9. package/dist/types/server/channel.d.ts +16 -0
  10. package/dist/types/server/computed.d.ts +59 -0
  11. package/dist/types/server/context.d.ts +13 -1
  12. package/dist/types/server/db/fields.d.ts +2 -1
  13. package/dist/types/server/db/marci/query.d.ts +53 -6
  14. package/dist/types/server/inject.d.ts +2 -0
  15. package/dist/types/server/ordered.d.ts +18 -0
  16. package/dist/types/ui/UIModal.d.ts +5 -3
  17. package/dist/types/version.d.ts +1 -1
  18. package/dist/types.json +1 -1
  19. package/package.json +2 -2
  20. package/src/bridges/tree.d.ts +14 -4
  21. package/src/compile/serverSplit.ts +8 -4
  22. package/src/compile/serverTypes.ts +17 -3
  23. package/src/inject.ts +5 -2
  24. package/src/plugin.ts +3 -1
  25. package/src/plugins/gen/ar/sdk/ar.ts +59 -14
  26. package/src/runtime/firstCall.ts +28 -0
  27. package/src/runtime/gestures.ts +190 -0
  28. package/src/runtime/rpc.ts +141 -12
  29. package/src/runtime/wire.ts +11 -6
  30. package/src/server/channel.ts +32 -0
  31. package/src/server/channelHub.ts +246 -16
  32. package/src/server/clock.ts +50 -0
  33. package/src/server/computed.ts +84 -0
  34. package/src/server/computedHost.ts +413 -0
  35. package/src/server/context.ts +14 -2
  36. package/src/server/db/defineDb.ts +47 -7
  37. package/src/server/db/fields.ts +2 -1
  38. package/src/server/db/httpTransport.ts +37 -2
  39. package/src/server/db/httpWatch.ts +180 -0
  40. package/src/server/db/marci/query.ts +112 -7
  41. package/src/server/db/watch.ts +160 -0
  42. package/src/server/files/host.ts +2 -1
  43. package/src/server/host.ts +19 -4
  44. package/src/server/inject.ts +6 -2
  45. package/src/server/ordered.ts +41 -0
  46. package/src/server/rateLimit.ts +72 -0
  47. package/src/server/runtime.ts +127 -9
  48. package/src/ui/UIModal.ts +44 -9
  49. package/src/ui/UINode.ts +4 -0
  50. package/src/ui/tree.ts +8 -0
  51. package/src/version.ts +1 -1
@@ -28,9 +28,10 @@ export type UIModalShow = (() => boolean) | Signal<boolean>;
28
28
  * request, `onDismiss`. By default it hides an unbound modal and writes `false` into a bound
29
29
  * signal; a bound function has nowhere to write, so a modal bound to one without `onDismiss`
30
30
  * cannot be dismissed (a forced choice — the same as `dismissible(false)`). `display` is not a
31
- * modal's switch: a `.style({ display })` on it throws (a bound display died on the first
32
- * dismissal, which wrote a static `display: "none"` over the binding — the dialog never opened
33
- * again).
31
+ * modal's switch (a bound display died on the first dismissal, which wrote a static
32
+ * `display: "none"` over the binding — the dialog never opened again). Deprecated, for the
33
+ * transition period a `.style({ display })` is still accepted, with a warning: a function becomes
34
+ * `bindShow(() => fn() !== "none")`, a value a show() / hide(); it will throw again.
34
35
  */
35
36
  export interface UIModal extends UIWidget {
36
37
  /**
@@ -82,6 +83,7 @@ export declare class ModalElement extends WidgetElement {
82
83
  private _poseObj?;
83
84
  private _poseKey;
84
85
  constructor(style: UIModalStyle, children: UINodeChild[] | ChildrenFn);
86
+ private _bindDisplay;
85
87
  private _pose;
86
88
  transition(hidden: UIModalTransition): this;
87
89
  bindShow(value: UIModalShow): this;
@@ -1,4 +1,4 @@
1
- export declare const SDK_VERSION = "2.6.0";
1
+ export declare const SDK_VERSION = "2.8.1";
2
2
  /** The major of a semver string, or null when it is not one. */
3
3
  export declare const sdkMajor: (version: string | null | undefined) => number | null;
4
4
  /** The `// sdk: <version>` line of a compiled bundle's header (sdk/src/compile/header.ts), read from