@khorsheed/dsh-client-message-tools 0.3.3 → 0.3.5
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/CHANGELOG.md +15 -0
- package/README.en.md +29 -63
- package/README.i18n.yaml +3 -3
- package/README.md +27 -61
- package/lib/client.js +15305 -965
- package/lib/typert.host.js +82 -35
- package/lib/typert.remote-client.d.ts +7 -2
- package/lib/typert.remote-client.js +76 -34
- package/lib/types/client/UserMessageView.d.ts +9 -6
- package/lib/types/client/UserMessageView.js +50 -11
- package/lib/types/client/WithdrawnDividerView.d.ts +5 -2
- package/lib/types/client/WithdrawnDividerView.js +7 -7
- package/lib/types/client/chat-hook.js +3 -0
- package/lib/types/client/dom-hider.d.ts +28 -5
- package/lib/types/client/dom-hider.js +70 -3
- package/lib/types/client/fold.d.ts +23 -0
- package/lib/types/client/fold.js +44 -0
- package/lib/types/client/icons.d.ts +1 -1
- package/lib/types/client/index.js +1 -0
- package/lib/types/client/locales.d.ts +4 -0
- package/lib/types/client/locales.js +4 -0
- package/lib/types/client/message-images.d.ts +30 -0
- package/lib/types/client/message-images.js +17 -0
- package/lib/types/client/slots.d.ts +20 -3
- package/package.json +15 -17
- package/lib/invariant.js +0 -27
- package/lib/types/invariant.d.ts +0 -16
- package/lib/types/invariant.js +0 -25
package/lib/invariant.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
//#region lib/types/invariant.js
|
|
2
|
-
/**
|
|
3
|
-
* Package-owned invariant companion for `@khorsheed/dsh-client-message-tools`.
|
|
4
|
-
* @module @khorsheed/dsh-client-message-tools/invariant
|
|
5
|
-
*/
|
|
6
|
-
const PACKAGE_NAME = "@khorsheed/dsh-client-message-tools";
|
|
7
|
-
/** Cordis companion plugin name. */
|
|
8
|
-
const name = "client-message-tools-invariant";
|
|
9
|
-
/** Service required before the companion can reserve package ownership. */
|
|
10
|
-
const inject = ["invariants"];
|
|
11
|
-
/**
|
|
12
|
-
* No runtime invariant: the withdrawal write passes through Session.append,
|
|
13
|
-
* whose surface validation rejects any replacement that misses a shadowed
|
|
14
|
-
* surface node, and the client contributions (one Definition, two slot
|
|
15
|
-
* entries) ride the slot/declaration lifecycles disposed with the plugin
|
|
16
|
-
* fiber. The package's unit tests exercise the plan fold and the projection
|
|
17
|
-
* helpers, so no second authority exists to check at runtime.
|
|
18
|
-
*/
|
|
19
|
-
const install = () => {};
|
|
20
|
-
/**
|
|
21
|
-
* Register this package's invariant companion.
|
|
22
|
-
* @param ctx - Cordis context carrying the invariant service.
|
|
23
|
-
* @returns the installed registration's disposer after setup succeeds.
|
|
24
|
-
*/
|
|
25
|
-
const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
|
|
26
|
-
//#endregion
|
|
27
|
-
export { apply, inject, name };
|
package/lib/types/invariant.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Package-owned invariant companion for `@khorsheed/dsh-client-message-tools`.
|
|
3
|
-
* @module @khorsheed/dsh-client-message-tools/invariant
|
|
4
|
-
*/
|
|
5
|
-
import type { Context } from '@deepseek-ai/cordis';
|
|
6
|
-
/** Cordis companion plugin name. */
|
|
7
|
-
export declare const name = "client-message-tools-invariant";
|
|
8
|
-
/** Service required before the companion can reserve package ownership. */
|
|
9
|
-
export declare const inject: string[];
|
|
10
|
-
/**
|
|
11
|
-
* Register this package's invariant companion.
|
|
12
|
-
* @param ctx - Cordis context carrying the invariant service.
|
|
13
|
-
* @returns the installed registration's disposer after setup succeeds.
|
|
14
|
-
*/
|
|
15
|
-
export declare const apply: (ctx: Context) => Promise<() => void>;
|
|
16
|
-
//# sourceMappingURL=invariant.d.ts.map
|
package/lib/types/invariant.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Package-owned invariant companion for `@khorsheed/dsh-client-message-tools`.
|
|
3
|
-
* @module @khorsheed/dsh-client-message-tools/invariant
|
|
4
|
-
*/
|
|
5
|
-
const PACKAGE_NAME = '@khorsheed/dsh-client-message-tools';
|
|
6
|
-
/** Cordis companion plugin name. */
|
|
7
|
-
export const name = 'client-message-tools-invariant';
|
|
8
|
-
/** Service required before the companion can reserve package ownership. */
|
|
9
|
-
export const inject = ['invariants'];
|
|
10
|
-
/**
|
|
11
|
-
* No runtime invariant: the withdrawal write passes through Session.append,
|
|
12
|
-
* whose surface validation rejects any replacement that misses a shadowed
|
|
13
|
-
* surface node, and the client contributions (one Definition, two slot
|
|
14
|
-
* entries) ride the slot/declaration lifecycles disposed with the plugin
|
|
15
|
-
* fiber. The package's unit tests exercise the plan fold and the projection
|
|
16
|
-
* helpers, so no second authority exists to check at runtime.
|
|
17
|
-
*/
|
|
18
|
-
const install = () => { };
|
|
19
|
-
/**
|
|
20
|
-
* Register this package's invariant companion.
|
|
21
|
-
* @param ctx - Cordis context carrying the invariant service.
|
|
22
|
-
* @returns the installed registration's disposer after setup succeeds.
|
|
23
|
-
*/
|
|
24
|
-
export const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
|
|
25
|
-
/* jscpd:ignore-end */
|