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.
- package/dist/global.d.ts +11 -7
- package/dist/types/inject.d.ts +2 -1
- package/dist/types/plugin.d.ts +1 -0
- package/dist/types/plugins/gen/ar/sdk/ar.d.ts +25 -5
- package/dist/types/runtime/firstCall.d.ts +12 -0
- package/dist/types/runtime/gestures.d.ts +52 -0
- package/dist/types/runtime/rpc.d.ts +24 -0
- package/dist/types/runtime/wire.d.ts +11 -4
- package/dist/types/server/channel.d.ts +16 -0
- package/dist/types/server/computed.d.ts +59 -0
- package/dist/types/server/context.d.ts +13 -1
- package/dist/types/server/db/fields.d.ts +2 -1
- package/dist/types/server/db/marci/query.d.ts +53 -6
- package/dist/types/server/inject.d.ts +2 -0
- package/dist/types/server/ordered.d.ts +18 -0
- package/dist/types/ui/UIModal.d.ts +5 -3
- package/dist/types/version.d.ts +1 -1
- package/dist/types.json +1 -1
- package/package.json +2 -2
- package/src/bridges/tree.d.ts +14 -4
- package/src/compile/serverSplit.ts +8 -4
- package/src/compile/serverTypes.ts +17 -3
- package/src/inject.ts +5 -2
- package/src/plugin.ts +3 -1
- package/src/plugins/gen/ar/sdk/ar.ts +59 -14
- package/src/runtime/firstCall.ts +28 -0
- package/src/runtime/gestures.ts +190 -0
- package/src/runtime/rpc.ts +141 -12
- package/src/runtime/wire.ts +11 -6
- package/src/server/channel.ts +32 -0
- package/src/server/channelHub.ts +246 -16
- package/src/server/clock.ts +50 -0
- package/src/server/computed.ts +84 -0
- package/src/server/computedHost.ts +413 -0
- package/src/server/context.ts +14 -2
- package/src/server/db/defineDb.ts +47 -7
- package/src/server/db/fields.ts +2 -1
- package/src/server/db/httpTransport.ts +37 -2
- package/src/server/db/httpWatch.ts +180 -0
- package/src/server/db/marci/query.ts +112 -7
- package/src/server/db/watch.ts +160 -0
- package/src/server/files/host.ts +2 -1
- package/src/server/host.ts +19 -4
- package/src/server/inject.ts +6 -2
- package/src/server/ordered.ts +41 -0
- package/src/server/rateLimit.ts +72 -0
- package/src/server/runtime.ts +127 -9
- package/src/ui/UIModal.ts +44 -9
- package/src/ui/UINode.ts +4 -0
- package/src/ui/tree.ts +8 -0
- 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
|
|
32
|
-
*
|
|
33
|
-
*
|
|
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;
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.
|
|
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
|