@actdim/dynstruct 1.2.6 → 1.2.7
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/README.md +2338 -18
- package/dist/appDomain/appContracts.d.ts.map +1 -1
- package/dist/appDomain/appContracts.es.js +1 -1
- package/dist/appDomain/appContracts.es.js.map +1 -1
- package/dist/appDomain/navigation.es.js.map +1 -1
- package/dist/appDomain/security/securityContracts.es.js.map +1 -1
- package/dist/appDomain/security/securityProvider.d.ts +6 -5
- package/dist/appDomain/security/securityProvider.d.ts.map +1 -1
- package/dist/appDomain/security/securityProvider.es.js +70 -45
- package/dist/appDomain/security/securityProvider.es.js.map +1 -1
- package/dist/appDomain/util.es.js.map +1 -1
- package/dist/componentModel/DynamicContent.es.js.map +1 -1
- package/dist/componentModel/adapters.es.js.map +1 -1
- package/dist/componentModel/componentContext.d.ts +5 -5
- package/dist/componentModel/componentContext.d.ts.map +1 -1
- package/dist/componentModel/componentContext.es.js.map +1 -1
- package/dist/componentModel/contracts.d.ts +23 -19
- package/dist/componentModel/contracts.d.ts.map +1 -1
- package/dist/componentModel/contracts.es.js +1 -1
- package/dist/componentModel/contracts.es.js.map +1 -1
- package/dist/componentModel/core.d.ts +2 -2
- package/dist/componentModel/core.d.ts.map +1 -1
- package/dist/componentModel/core.es.js +115 -111
- package/dist/componentModel/core.es.js.map +1 -1
- package/dist/componentModel/react/errorBoundary.d.ts +19 -0
- package/dist/componentModel/react/errorBoundary.d.ts.map +1 -0
- package/dist/componentModel/react/errorBoundary.es.js +52 -0
- package/dist/componentModel/react/errorBoundary.es.js.map +1 -0
- package/dist/componentModel/react.d.ts +2 -2
- package/dist/componentModel/react.d.ts.map +1 -1
- package/dist/componentModel/react.es.js +156 -139
- package/dist/componentModel/react.es.js.map +1 -1
- package/dist/componentModel/scope.d.ts +1 -1
- package/dist/componentModel/scope.d.ts.map +1 -1
- package/dist/componentModel/scope.es.js +1 -1
- package/dist/componentModel/scope.es.js.map +1 -1
- package/dist/globals.es.js.map +1 -1
- package/dist/net/apiError.es.js.map +1 -1
- package/dist/net/client.d.ts +9 -5
- package/dist/net/client.d.ts.map +1 -1
- package/dist/net/client.es.js +96 -80
- package/dist/net/client.es.js.map +1 -1
- package/dist/net/request.es.js.map +1 -1
- package/dist/reactHooks.d.ts +1 -1
- package/dist/reactHooks.d.ts.map +1 -1
- package/dist/reactHooks.es.js.map +1 -1
- package/dist/services/ServiceProvider.es.js.map +1 -1
- package/dist/services/StorageService.es.js.map +1 -1
- package/dist/services/react/NavService.d.ts.map +1 -1
- package/dist/services/react/NavService.es.js +15 -15
- package/dist/services/react/NavService.es.js.map +1 -1
- package/dist/services/react/ServiceProvider.d.ts +2 -2
- package/dist/services/react/ServiceProvider.d.ts.map +1 -1
- package/dist/services/react/ServiceProvider.es.js.map +1 -1
- package/dist/services/react/StorageService.d.ts.map +1 -1
- package/dist/services/react/StorageService.es.js +7 -7
- package/dist/services/react/StorageService.es.js.map +1 -1
- package/package.json +4 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { $CG_IN, $CG_OUT, Msg, MsgBus, MsgHeaders, MsgProviderParams, MsgStruct, MsgSubParams, OutStruct } from '@actdim/msgmesh/contracts';
|
|
2
2
|
import { HasKeys, MaybeKeyOf, MaybePromise, Require, Skip } from '@actdim/utico/typeCore';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
export type BaseContext<TMsgStruct extends MsgStruct = MsgStruct, TMsgHeaders extends MsgHeaders = MsgHeaders> = {
|
|
4
|
+
msgBus: MsgBus<TMsgStruct, TMsgHeaders>;
|
|
5
|
+
abortSignal?: AbortSignal;
|
|
6
6
|
};
|
|
7
7
|
export type ComponentTreeNode = {
|
|
8
8
|
id: string;
|
|
@@ -10,7 +10,7 @@ export type ComponentTreeNode = {
|
|
|
10
10
|
parentId?: string;
|
|
11
11
|
children: Set<string>;
|
|
12
12
|
};
|
|
13
|
-
export type ComponentRegistryContext<TMsgStruct extends MsgStruct = MsgStruct> = BaseContext<TMsgStruct> & {
|
|
13
|
+
export type ComponentRegistryContext<TMsgStruct extends MsgStruct = MsgStruct, TMsgHeaders extends MsgHeaders = MsgHeaders> = BaseContext<TMsgStruct, TMsgHeaders> & {
|
|
14
14
|
currentId?: string;
|
|
15
15
|
register: (id: string, regType: string, parentId?: string) => void;
|
|
16
16
|
unregister: (id: string) => void;
|
|
@@ -97,6 +97,8 @@ export type Binding<T = any, TFrom = any> = {
|
|
|
97
97
|
export type ComponentPropSource<T> = T | Binding<T>;
|
|
98
98
|
export type ComponentPropParams<TPropStruct extends ComponentPropStruct> = {
|
|
99
99
|
[P in keyof TPropStruct]?: ComponentPropSource<TPropStruct[P]>;
|
|
100
|
+
} & {
|
|
101
|
+
key?: string | number | null | undefined;
|
|
100
102
|
};
|
|
101
103
|
export declare const $ON_GET: "onGet";
|
|
102
104
|
export declare const $ON_CHANGING: "onChanging";
|
|
@@ -109,23 +111,24 @@ export type ComponentEvents<TStruct extends ComponentStruct = ComponentStruct> =
|
|
|
109
111
|
onPropChanging?: PropValueChangingHandler<keyof TStruct['props']>;
|
|
110
112
|
onPropChange?: PropValueChangeHandler<keyof TStruct['props']>;
|
|
111
113
|
onInit?: (component: Component<TStruct>) => void;
|
|
112
|
-
|
|
114
|
+
onLayoutReady?: (component: Component<TStruct>) => void;
|
|
113
115
|
onReady?: (component: Component<TStruct>) => void;
|
|
114
116
|
onLayoutDestroy?: (component: Component<TStruct>) => void;
|
|
115
117
|
onDestroy?: (component: Component<TStruct>) => void;
|
|
116
|
-
onError?: (component: Component<TStruct>, error:
|
|
118
|
+
onError?: (component: Component<TStruct>, error: unknown, info?: unknown) => unknown;
|
|
117
119
|
} & {
|
|
118
120
|
[P in keyof TStruct['props'] as `${typeof $ON_GET}${Capitalize<P & string>}`]?: () => TStruct['props'][P];
|
|
119
121
|
} & {
|
|
120
|
-
[P in keyof TStruct['props'] as `${typeof $ON_CHANGING}${Capitalize<P & string>}`]?: ValueChangingHandler<TStruct['props']>;
|
|
122
|
+
[P in keyof TStruct['props'] as `${typeof $ON_CHANGING}${Capitalize<P & string>}`]?: ValueChangingHandler<TStruct['props'][P]>;
|
|
121
123
|
} & {
|
|
122
|
-
[P in keyof TStruct['props'] as `${typeof $ON_CHANGE}${Capitalize<P & string>}`]?: ValueChangeHandler<TStruct['props']>;
|
|
124
|
+
[P in keyof TStruct['props'] as `${typeof $ON_CHANGE}${Capitalize<P & string>}`]?: ValueChangeHandler<TStruct['props'][P]>;
|
|
123
125
|
};
|
|
124
126
|
export type ComponentViewProps = {
|
|
125
127
|
render?: boolean;
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
export type
|
|
128
|
+
children?: unknown;
|
|
129
|
+
};
|
|
130
|
+
export type ComponentViewImplFn<TStruct extends ComponentStruct, TMsgHeaders extends ComponentMsgHeaders = ComponentMsgHeaders> = (props: ComponentViewProps, component?: Component<TStruct, TMsgHeaders>) => any;
|
|
131
|
+
export type ComponentViewFn = (props: ComponentViewProps) => any;
|
|
129
132
|
export type ComponentMsgBroker<TStruct extends ComponentStruct, TMsgHeaders extends ComponentMsgHeaders = ComponentMsgHeaders> = MsgBroker<Pick<TStruct['msg'], MaybeKeyOf<TStruct['msg'], TStruct['msgScope']['provide']>>, Pick<TStruct['msg'], MaybeKeyOf<TStruct['msg'], TStruct['msgScope']['subscribe']>>, TMsgHeaders, Component<TStruct, TMsgHeaders>>;
|
|
130
133
|
export type EffectFn<TStruct extends ComponentStruct, TMsgHeaders extends ComponentMsgHeaders = ComponentMsgHeaders> = (component: Component<TStruct, TMsgHeaders>) => void | (() => void);
|
|
131
134
|
export type ComponentDef<TStruct extends ComponentStruct, TMsgHeaders extends ComponentMsgHeaders = ComponentMsgHeaders> = {
|
|
@@ -138,12 +141,17 @@ export type ComponentDef<TStruct extends ComponentStruct, TMsgHeaders extends Co
|
|
|
138
141
|
msgBroker?: ComponentMsgBroker<TStruct, TMsgHeaders>;
|
|
139
142
|
msgBus?: MsgBus<TStruct['msg'], TMsgHeaders>;
|
|
140
143
|
view?: ComponentViewImplFn<TStruct, TMsgHeaders>;
|
|
144
|
+
useErrorBoundary?: boolean;
|
|
141
145
|
};
|
|
142
146
|
export type ComponentDefChildren<TRefStruct extends ComponentRefStruct> = Require<{
|
|
143
147
|
[P in keyof TRefStruct]: TRefStruct[P] extends (params: infer TParams) => infer T ? T extends ComponentStruct ? (params: TParams) => Component<T> : never : TRefStruct[P] extends ComponentStruct ? Component<TRefStruct[P]> : never;
|
|
144
148
|
}, HasKeys<TRefStruct>>;
|
|
149
|
+
export type RenderFn<P> = {
|
|
150
|
+
(props: P): any;
|
|
151
|
+
displayName?: string | undefined;
|
|
152
|
+
};
|
|
145
153
|
export type ComponentChildren<TRefStruct extends ComponentRefStruct> = {
|
|
146
|
-
readonly [P in keyof TRefStruct as TRefStruct[P] extends Function ? `${Capitalize<P & string>}` : P]: TRefStruct[P] extends (params: infer TParams) => infer T ? T extends ComponentStruct ?
|
|
154
|
+
readonly [P in keyof TRefStruct as TRefStruct[P] extends Function ? `${Capitalize<P & string>}` : P]: TRefStruct[P] extends (params: infer TParams) => infer T ? T extends ComponentStruct ? RenderFn<ComponentParams<T> & TParams> : never : TRefStruct[P] extends ComponentStruct ? Component<TRefStruct[P]> : never;
|
|
147
155
|
};
|
|
148
156
|
export type ComponentMsgStruct<TStruct extends ComponentStruct = ComponentStruct> = Pick<TStruct['msg'], MaybeKeyOf<TStruct['msg'], TStruct['msgScope']['provide']> | MaybeKeyOf<TStruct['msg'], TStruct['msgScope']['subscribe']> | MaybeKeyOf<TStruct['msg'], TStruct['msgScope']['publish']>>;
|
|
149
157
|
export type ComponentBase<TStruct extends ComponentStruct = ComponentStruct, TMsgHeaders extends ComponentMsgHeaders = ComponentMsgHeaders> = {
|
|
@@ -160,13 +168,11 @@ export type ComponentBase<TStruct extends ComponentStruct = ComponentStruct, TMs
|
|
|
160
168
|
readonly bindings: Map<PropertyKey, Binding>;
|
|
161
169
|
readonly msgBus: MsgBus<ComponentMsgStruct<TStruct>, TMsgHeaders>;
|
|
162
170
|
readonly msgBroker: ComponentMsgBroker<TStruct>;
|
|
163
|
-
readonly effects: Record<string, EffectController>;
|
|
171
|
+
readonly effects: keyof TStruct['effects'] extends never ? never : Record<TStruct['effects'] extends string ? TStruct['effects'] : TStruct['effects'][number], EffectController>;
|
|
164
172
|
readonly View: ComponentViewFn;
|
|
173
|
+
readonly [Symbol.dispose]: () => void;
|
|
165
174
|
};
|
|
166
|
-
export type ComponentModel<TStruct extends ComponentStruct = ComponentStruct> = TStruct['props'] & Readonly<TStruct['actions']
|
|
167
|
-
readonly $id?: string;
|
|
168
|
-
readonly $key?: string;
|
|
169
|
-
};
|
|
175
|
+
export type ComponentModel<TStruct extends ComponentStruct = ComponentStruct> = TStruct['props'] & Readonly<TStruct['actions']>;
|
|
170
176
|
export type Component<TStruct extends ComponentStruct = ComponentStruct, TMsgHeaders extends ComponentMsgHeaders = ComponentMsgHeaders> = {
|
|
171
177
|
readonly model: ComponentModel<TStruct>;
|
|
172
178
|
readonly children: ComponentChildren<TStruct['children']>;
|
|
@@ -181,10 +187,8 @@ export type ComponentParams<TStruct extends ComponentStruct = ComponentStruct> =
|
|
|
181
187
|
$key?: string;
|
|
182
188
|
};
|
|
183
189
|
export type EffectController = {
|
|
184
|
-
start: () => void;
|
|
185
190
|
pause: () => void;
|
|
186
191
|
resume: () => void;
|
|
187
192
|
stop: () => void;
|
|
188
|
-
restart: () => void;
|
|
189
193
|
};
|
|
190
194
|
//# sourceMappingURL=contracts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../src/componentModel/contracts.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,MAAM,EACN,OAAO,EACP,GAAG,EACH,MAAM,EACN,UAAU,EACV,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,SAAS,EACZ,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,OA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,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEV,MAAM,MAAM,gBAAgB,GAAG;IAC3B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,IAAI,EAAE,MAAM,IAAI,CAAC;CACpB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var s = /* @__PURE__ */ ((n) => (n[n.None = 0] = "None", n[n.FromAncestors = 1] = "FromAncestors", n[n.FromDescendants = 2] = "FromDescendants", n))(s || {});
|
|
2
|
-
const c = Symbol("
|
|
2
|
+
const c = Symbol("isBinding"), N = "onGet", o = "onChanging", a = "onChange";
|
|
3
3
|
export {
|
|
4
4
|
a as $ON_CHANGE,
|
|
5
5
|
o as $ON_CHANGING,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.es.js","sources":["../../src/componentModel/contracts.tsx"],"sourcesContent":["import {\r\n $CG_IN,\r\n $CG_OUT,\r\n Msg,\r\n MsgBus,\r\n MsgHeaders,\r\n MsgProviderParams,\r\n MsgStruct,\r\n MsgSubParams,\r\n OutStruct,\r\n} from '@actdim/msgmesh/contracts';\r\nimport { HasKeys, MaybeKeyOf, MaybePromise, Require, Skip } from '@actdim/utico/typeCore';\r\nimport { FC, PropsWithChildren, ReactNode } from 'react';\r\n\r\nexport type BaseContext<TMsgStruct extends MsgStruct = MsgStruct> = {\r\n msgBus: MsgBus<TMsgStruct>;\r\n};\r\n\r\nexport type ComponentTreeNode = {\r\n id: string;\r\n regType: string;\r\n parentId?: string;\r\n children: Set<string>;\r\n};\r\n\r\n// ComponentContext\r\nexport type ComponentRegistryContext<TMsgStruct extends MsgStruct = MsgStruct> =\r\n BaseContext<TMsgStruct> & {\r\n currentId?: string;\r\n register: (id: string, regType: string, parentId?: string) => void;\r\n unregister: (id: string) => void;\r\n getParent: (id: string) => string | undefined;\r\n getChildren: (id: string) => string[];\r\n getChainUp: (id: string) => string[];\r\n getChainDown: (id: string) => string[];\r\n getHierarchyPath: (id: string) => string;\r\n getNextId: (regType: string) => string;\r\n getNodeMap: () => Map<string, ComponentTreeNode>;\r\n };\r\n\r\nexport type ComponentMsgHeaders = MsgHeaders & {};\r\n\r\nexport enum ComponentMsgFilter {\r\n None = 0,\r\n // AcceptFrom...\r\n FromAncestors = 1 << 0,\r\n FromDescendants = 1 << 1,\r\n}\r\n\r\nexport type MsgChannelGroupProviderParams<\r\n TStruct extends MsgStruct = MsgStruct,\r\n TChannel extends keyof TStruct = keyof TStruct,\r\n TGroup extends keyof TStruct[TChannel] = typeof $CG_IN, // keyof TStruct[TChannel]\r\n TMsgHeaders extends ComponentMsgHeaders = ComponentMsgHeaders,\r\n TScope = any,\r\n> = Skip<\r\n MsgProviderParams<TStruct, TChannel, TGroup>,\r\n 'channel' | 'group' | 'callback' | 'filter'\r\n> & {\r\n // resolve\r\n callback?: (\r\n msgIn: Msg<TStruct, TChannel, TGroup, TMsgHeaders>,\r\n headers: TMsgHeaders,\r\n scope: TScope,\r\n ) => MaybePromise<OutStruct<TStruct, TChannel>>;\r\n filter?: (msg: Msg<TStruct, TChannel, TGroup, TMsgHeaders>, scope: TScope) => boolean;\r\n componentFilter?: ComponentMsgFilter;\r\n};\r\n\r\nexport type MsgChannelGroupSubscriberParams<\r\n TStruct extends MsgStruct = MsgStruct,\r\n TChannel extends keyof TStruct = keyof TStruct,\r\n TGroup extends keyof TStruct[TChannel] = typeof $CG_IN, // keyof TStruct[TChannel]\r\n TMsgHeaders extends ComponentMsgHeaders = ComponentMsgHeaders,\r\n TScope = any,\r\n> = Skip<MsgSubParams<TStruct, TChannel, TGroup>, 'channel' | 'group' | 'callback' | 'filter'> & {\r\n callback?: (msg: Msg<TStruct, TChannel, TGroup, TMsgHeaders>, scope: TScope) => void;\r\n filter?: (msg: Msg<TStruct, TChannel, TGroup, TMsgHeaders>, scope: TScope) => boolean;\r\n componentFilter?: ComponentMsgFilter;\r\n};\r\n\r\n// MsgScope\r\nexport type MsgBrokerScope<\r\n TStruct extends MsgStruct /*= MsgStruct*/,\r\n TKeysToProvide extends keyof TStruct = keyof TStruct,\r\n TKeysToSubscribe extends keyof TStruct = keyof TStruct,\r\n TKeysToPublish extends keyof TStruct = keyof TStruct,\r\n> = {\r\n provide?: TKeysToProvide;\r\n // consume\r\n subscribe?: TKeysToSubscribe;\r\n // produce\r\n publish?: TKeysToPublish;\r\n};\r\n\r\nexport type ComponentPropStruct = Record<string, any>;\r\n// export type ComponentPropStruct = {\r\n// [prop: string]: any;\r\n// };\r\n\r\nexport type ComponentMethodStruct = Record<string, Function>;\r\n// export type ComponentMethodStruct = {\r\n// [action: string]: Function;\r\n// };\r\n\r\n// export type ComponentRefStruct = Record<string, ComponentStruct<TMsgStruct, T>>;\r\nexport type ComponentRefStruct = {\r\n [name: string]: ComponentStruct | ((params: any) => ComponentStruct);\r\n};\r\n\r\nexport type ComponentStructBase<\r\n TMsgStruct extends MsgStruct = MsgStruct,\r\n TPropStruct extends ComponentPropStruct = ComponentPropStruct,\r\n TMsgScope extends MsgBrokerScope<TMsgStruct> = MsgBrokerScope<TMsgStruct>,\r\n> = {\r\n props?: TPropStruct;\r\n actions?: ComponentMethodStruct;\r\n effects?: string[] | string | undefined;\r\n children?: ComponentRefStruct;\r\n // msgs?\r\n msgScope?: TMsgScope;\r\n};\r\n\r\n// ComponentShape\r\nexport type ComponentStruct<\r\n TMsgStruct extends MsgStruct = MsgStruct,\r\n T extends ComponentStructBase<TMsgStruct> = ComponentStructBase<TMsgStruct>,\r\n> = T & {\r\n msg: TMsgStruct;\r\n};\r\n\r\nexport type MsgBroker<\r\n TStructToProvide extends MsgStruct = MsgStruct,\r\n TStructToSubscribe extends MsgStruct = MsgStruct,\r\n TMsgHeaders extends ComponentMsgHeaders = ComponentMsgHeaders,\r\n TScope = any,\r\n> = Require<\r\n {\r\n // providers\r\n provide?: Require<\r\n {\r\n [TChannel in keyof TStructToProvide]: {\r\n [TGroup in keyof Skip<\r\n TStructToProvide[TChannel],\r\n typeof $CG_OUT\r\n >]?: MsgChannelGroupProviderParams<\r\n TStructToProvide,\r\n TChannel,\r\n TGroup,\r\n TMsgHeaders,\r\n TScope\r\n >;\r\n };\r\n },\r\n HasKeys<TStructToProvide>\r\n >;\r\n // subscribers\r\n subscribe?: Require<\r\n {\r\n [TChannel in keyof TStructToSubscribe]: {\r\n [TGroup in keyof TStructToSubscribe[TChannel]]?: MsgChannelGroupSubscriberParams<\r\n TStructToSubscribe,\r\n TChannel,\r\n TGroup,\r\n TMsgHeaders,\r\n TScope\r\n >;\r\n };\r\n },\r\n HasKeys<TStructToSubscribe>\r\n >;\r\n abortController?: AbortController;\r\n },\r\n HasKeys<TStructToProvide & TStructToSubscribe>\r\n>;\r\n\r\nexport type ValueConverter<TTo, TFrom> = {\r\n // ConvertFrom\r\n convert(value: TFrom): TTo;\r\n // ConvertTo\r\n convertBack(value: TTo): TFrom;\r\n};\r\n\r\nexport type ValidationResult = {\r\n valid: boolean;\r\n message: string;\r\n};\r\n\r\nexport type Validator<T> = {\r\n options: {\r\n blur: boolean;\r\n };\r\n validate: (value: T) => MaybePromise<ValidationResult>;\r\n};\r\n\r\nexport const $isBinding = Symbol('$isBinding'); // brand\r\n\r\nexport type Binding<T = any, TFrom = any> = {\r\n // getter\r\n readonly get: () => T;\r\n // setter\r\n readonly set?: (value: T) => void;\r\n readonly converter?: ValueConverter<T, TFrom>;\r\n readonly validator?: Validator<T>;\r\n readonly readOnly?: boolean;\r\n [$isBinding]: true;\r\n};\r\n\r\nexport type ComponentPropSource<T> = T | Binding<T>;\r\n\r\nexport type ComponentPropParams<TPropStruct extends ComponentPropStruct> = {\r\n [P in keyof TPropStruct]?: ComponentPropSource<TPropStruct[P]>;\r\n};\r\n\r\n// export const $ON_PROP_CHANGING = \"onPropChanging\" as const;\r\n// export const $ON_PROP_CHANGE = \"onPropChange\" as const;\r\n\r\nexport const $ON_GET = 'onGet' as const;\r\n// export const $ON_BEFORE_SET = \"onBeforeSet\" as const;\r\nexport const $ON_CHANGING = 'onChanging' as const;\r\nexport const $ON_CHANGE = 'onChange' as const;\r\n// export const $ON_SET = \"onSet\" as const;\r\n\r\nexport type PropValueChangingHandler<TProp = PropertyKey> = (\r\n prop: TProp,\r\n oldValue: any,\r\n newValue: any,\r\n) => boolean;\r\n\r\nexport type PropValueChangeHandler<TProp = PropertyKey> = (prop: TProp, value: any) => void;\r\n\r\n// BeforeValueSetHandler\r\nexport type ValueChangingHandler<T = any> = (oldValue: T, newValue: T) => boolean;\r\n// ValueSetHandler\r\nexport type ValueChangeHandler<T = any> = (value: T) => void;\r\n\r\nexport type ComponentEvents<TStruct extends ComponentStruct = ComponentStruct> = {\r\n onPropChanging?: PropValueChangingHandler<keyof TStruct['props']>;\r\n onPropChange?: PropValueChangeHandler<keyof TStruct['props']>;\r\n onInit?: (component: Component<TStruct>) => void;\r\n onLayout?: (component: Component<TStruct>) => void;\r\n onReady?: (component: Component<TStruct>) => void;\r\n onLayoutDestroy?: (component: Component<TStruct>) => void; // onLayoutCleanup\r\n onDestroy?: (component: Component<TStruct>) => void; // onDispose/onCleanup\r\n onError?: (component: Component<TStruct>, error: any) => void;\r\n} & {\r\n [P in keyof TStruct['props'] as `${typeof $ON_GET}${Capitalize<P & string>}`]?: () => TStruct['props'][P];\r\n} & {\r\n [P in keyof TStruct['props'] as `${typeof $ON_CHANGING}${Capitalize<P & string>}`]?: ValueChangingHandler<\r\n TStruct['props']\r\n >;\r\n} & {\r\n [P in keyof TStruct['props'] as `${typeof $ON_CHANGE}${Capitalize<P & string>}`]?: ValueChangeHandler<\r\n TStruct['props']\r\n >;\r\n};\r\n\r\n// AllHTMLAttributes<JSX.Element>\r\n\r\nexport type ComponentViewProps = {\r\n render?: boolean;\r\n} & PropsWithChildren;\r\n\r\n// ComponentRenderImplFn\r\nexport type ComponentViewImplFn<\r\n TStruct extends ComponentStruct,\r\n TMsgHeaders extends ComponentMsgHeaders = ComponentMsgHeaders,\r\n> = (props: ComponentViewProps, component?: Component<TStruct, TMsgHeaders>) => ReactNode; // JSX.Element\r\n\r\n// ComponentRenderFn\r\nexport type ComponentViewFn = (props: ComponentViewProps) => ReactNode; // JSX.Element\r\n\r\nexport type ComponentMsgBroker<\r\n TStruct extends ComponentStruct,\r\n TMsgHeaders extends ComponentMsgHeaders = ComponentMsgHeaders,\r\n> = MsgBroker<\r\n Pick<TStruct['msg'], MaybeKeyOf<TStruct['msg'], TStruct['msgScope']['provide']>>,\r\n Pick<TStruct['msg'], MaybeKeyOf<TStruct['msg'], TStruct['msgScope']['subscribe']>>,\r\n TMsgHeaders,\r\n Component<TStruct, TMsgHeaders>\r\n>;\r\n\r\nexport type EffectFn<\r\n TStruct extends ComponentStruct,\r\n TMsgHeaders extends ComponentMsgHeaders = ComponentMsgHeaders,\r\n> = (component: Component<TStruct, TMsgHeaders>) => void | (() => void);\r\n\r\nexport type ComponentDef<\r\n TStruct extends ComponentStruct,\r\n TMsgHeaders extends ComponentMsgHeaders = ComponentMsgHeaders,\r\n> = {\r\n // typeId\r\n regType?: string;\r\n props?: Require<TStruct['props'], HasKeys<TStruct['props']>>;\r\n actions?: Require<TStruct['actions'], HasKeys<TStruct['actions']>>;\r\n effects?: keyof TStruct['effects'] extends never\r\n ? never\r\n : Record<\r\n TStruct['effects'] extends string ? TStruct['effects'] : TStruct['effects'][number],\r\n EffectFn<TStruct, TMsgHeaders>\r\n >;\r\n children?: ComponentDefChildren<TStruct['children']>;\r\n events?: ComponentEvents<TStruct>;\r\n // msgs?\r\n msgBroker?: ComponentMsgBroker<TStruct, TMsgHeaders>;\r\n msgBus?: MsgBus<TStruct['msg'], TMsgHeaders>;\r\n view?: ComponentViewImplFn<TStruct, TMsgHeaders>;\r\n};\r\n\r\nexport type ComponentDefChildren<TRefStruct extends ComponentRefStruct> = Require<\r\n {\r\n [P in keyof TRefStruct]: TRefStruct[P] extends (params: infer TParams) => infer T\r\n ? T extends ComponentStruct\r\n ? (params: TParams) => Component<T>\r\n : never\r\n : TRefStruct[P] extends ComponentStruct\r\n ? Component<TRefStruct[P]>\r\n : never;\r\n },\r\n HasKeys<TRefStruct>\r\n>;\r\n\r\nexport type ComponentChildren<TRefStruct extends ComponentRefStruct> = {\r\n readonly [P in keyof TRefStruct as TRefStruct[P] extends Function\r\n ? `${Capitalize<P & string>}`\r\n : P]: TRefStruct[P] extends (params: infer TParams) => infer T\r\n ? T extends ComponentStruct\r\n ? FC<ComponentParams<T> & TParams>\r\n : never\r\n : TRefStruct[P] extends ComponentStruct\r\n ? Component<TRefStruct[P]>\r\n : never;\r\n};\r\n\r\nexport type ComponentMsgStruct<TStruct extends ComponentStruct = ComponentStruct> = Pick<\r\n TStruct['msg'],\r\n | MaybeKeyOf<TStruct['msg'], TStruct['msgScope']['provide']>\r\n | MaybeKeyOf<TStruct['msg'], TStruct['msgScope']['subscribe']>\r\n | MaybeKeyOf<TStruct['msg'], TStruct['msgScope']['publish']>\r\n>;\r\n\r\n// style?: CSSProperties;\r\n// classNames?: string[];\r\nexport type ComponentBase<\r\n TStruct extends ComponentStruct = ComponentStruct,\r\n TMsgHeaders extends ComponentMsgHeaders = ComponentMsgHeaders,\r\n> = {\r\n readonly id: string;\r\n readonly key: string;\r\n readonly regType: string;\r\n readonly parentId: string;\r\n // getHierarchyPath?\r\n readonly getHierarchyId: () => string;\r\n readonly getParent: () => string | undefined;\r\n readonly getChildren: () => string[];\r\n readonly getChainUp: () => string[];\r\n readonly getChainDown: () => string[];\r\n readonly getNodeMap: () => Map<string, ComponentTreeNode>;\r\n readonly bindings: Map<PropertyKey, Binding>;\r\n readonly msgBus: MsgBus<ComponentMsgStruct<TStruct>, TMsgHeaders>;\r\n readonly msgBroker: ComponentMsgBroker<TStruct>;\r\n readonly effects: Record<string, EffectController>;\r\n readonly View: ComponentViewFn;\r\n};\r\n\r\nexport type ComponentModel<TStruct extends ComponentStruct = ComponentStruct> = TStruct['props'] &\r\n Readonly<TStruct['actions']> & {\r\n // readonly __id?: string;\r\n // readonly __key?: string;\r\n readonly $id?: string;\r\n readonly $key?: string;\r\n };\r\n\r\nexport type Component<\r\n TStruct extends ComponentStruct = ComponentStruct,\r\n TMsgHeaders extends ComponentMsgHeaders = ComponentMsgHeaders,\r\n> = {\r\n readonly model: ComponentModel<TStruct>;\r\n readonly children: ComponentChildren<TStruct['children']>;\r\n} & ComponentBase<TStruct, TMsgHeaders>;\r\n\r\nexport type PropEventHandlers = {\r\n onGet?: () => any;\r\n onChanging?: (oldValue: any, newValue: any) => boolean;\r\n onChange?: (value: any) => void;\r\n};\r\n\r\nexport type ComponentParams<TStruct extends ComponentStruct = ComponentStruct> =\r\n ComponentPropParams<TStruct['props']> &\r\n ComponentEvents<TStruct> & {\r\n $id?: string;\r\n $key?: string;\r\n }; // & PropsWithChildren?\r\n\r\nexport type EffectController = {\r\n start: () => void;\r\n pause: () => void;\r\n resume: () => void;\r\n stop: () => void;\r\n restart: () => void;\r\n};\r\n"],"names":["ComponentMsgFilter","$isBinding","$ON_GET","$ON_CHANGING","$ON_CHANGE"],"mappings":"AA0CO,IAAKA,sBAAAA,OACRA,EAAAA,EAAA,OAAO,CAAA,IAAP,QAEAA,EAAAA,EAAA,gBAAgB,CAAA,IAAhB,iBACAA,EAAAA,EAAA,kBAAkB,CAAA,IAAlB,mBAJQA,IAAAA,KAAA,CAAA,CAAA;AAyJL,MAAMC,IAAa,OAAO,YAAY,GAsBhCC,IAAU,SAEVC,IAAe,cACfC,IAAa;"}
|
|
1
|
+
{"version":3,"file":"contracts.es.js","sources":["../../src/componentModel/contracts.tsx"],"sourcesContent":null,"names":["ComponentMsgFilter","$isBinding","$ON_GET","$ON_CHANGING","$ON_CHANGE"],"mappings":"AAgDO,IAAKA,sBAAAA,OACRA,EAAAA,EAAA,OAAO,CAAA,IAAP,QAEAA,EAAAA,EAAA,gBAAgB,CAAA,IAAhB,iBACAA,EAAAA,EAAA,kBAAkB,CAAA,IAAlB,mBAJQA,IAAAA,KAAA,CAAA,CAAA;AAyJL,MAAMC,IAAa,OAAO,WAAW,GAwB/BC,IAAU,SAEVC,IAAe,cACfC,IAAa;"}
|
|
@@ -11,7 +11,7 @@ export declare function createRecursiveProxy(target: any, bindings: Map<Property
|
|
|
11
11
|
export declare function toHtmlId(url: string): string;
|
|
12
12
|
export declare function getComponentSourceByCaller(depth?: number): string | null;
|
|
13
13
|
export declare function getComponentNameByCaller(depth?: number): string | null;
|
|
14
|
-
export declare function registerMsgBroker<TStruct extends ComponentStruct = ComponentStruct>(component: Component<TStruct
|
|
15
|
-
export declare function getComponentMsgBus<TStruct extends ComponentStruct = ComponentStruct>(msgBus: MsgBus<TStruct['msg']>, headerSetter: (headers?:
|
|
14
|
+
export declare function registerMsgBroker<TStruct extends ComponentStruct = ComponentStruct>(component: Component<TStruct>, abortController: AbortController): void;
|
|
15
|
+
export declare function getComponentMsgBus<TStruct extends ComponentStruct = ComponentStruct, TMsgHeaders extends ComponentMsgHeaders = ComponentMsgHeaders>(msgBus: MsgBus<TStruct['msg'], TMsgHeaders>, headerSetter: (headers?: TMsgHeaders) => void): MsgBus<TStruct["msg"], TMsgHeaders>;
|
|
16
16
|
export declare function createEffect<TStruct extends ComponentStruct, TMsgHeaders extends ComponentMsgHeaders = ComponentMsgHeaders>(component: Component<TStruct, TMsgHeaders>, name: string, fn: EffectFn<TStruct, TMsgHeaders>): EffectController;
|
|
17
17
|
//# sourceMappingURL=core.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/componentModel/core.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/componentModel/core.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAUnD,OAAO,KAAK,EACR,OAAO,EACP,SAAS,EACT,mBAAmB,EACnB,eAAe,EACf,gBAA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AAS,CAAC,OAAO,CAAC,EAC7B,eAAe,EAAE,eAAe,QAsFnC;AAED,wBAAgB,kBAAkB,CAC9B,OAAO,SAAS,eAAe,GAAG,eAAe,EACjD,WAAW,SAAS,mBAAmB,GAAG,mBAAmB,EAC/D,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC,EAAE,YAAY,EAAE,CAAC,OAAO,CAAC,EAAE,WAAW,KAAK,IAAI,GAiCnF,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC,CAC3C;AAED,wBAAgB,YAAY,CACxB,OAAO,SAAS,eAAe,EAC/B,WAAW,SAAS,mBAAmB,GAAG,mBAAmB,EAE7D,SAAS,EAAE,SAAS,CAAC,OAAO,EAAE,WAAW,CAAC,EAC1C,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC,GACnC,gBAAgB,CA4ClB"}
|
|
@@ -1,162 +1,166 @@
|
|
|
1
|
-
import { isObservable as
|
|
2
|
-
import { $isBinding as
|
|
1
|
+
import { isObservable as I, runInAction as h, observable as y, toJS as O, autorun as F } from "mobx";
|
|
2
|
+
import { $isBinding as k, ComponentMsgFilter as b } from "./contracts.es.js";
|
|
3
3
|
function v(e) {
|
|
4
|
-
return e[
|
|
4
|
+
return e[k] === !0;
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function w(e, o, t, n) {
|
|
7
7
|
return {
|
|
8
8
|
get: e,
|
|
9
|
-
set:
|
|
10
|
-
converter:
|
|
11
|
-
validator:
|
|
12
|
-
readOnly: !!
|
|
13
|
-
[
|
|
9
|
+
set: o,
|
|
10
|
+
converter: t,
|
|
11
|
+
validator: n,
|
|
12
|
+
readOnly: !!o,
|
|
13
|
+
[k]: !0
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function E(e, o) {
|
|
17
17
|
return {
|
|
18
|
-
get: () => e()[
|
|
19
|
-
set: (
|
|
20
|
-
e()[
|
|
18
|
+
get: () => e()?.[o],
|
|
19
|
+
set: (t) => {
|
|
20
|
+
e()[o] = t;
|
|
21
21
|
},
|
|
22
|
-
[
|
|
22
|
+
[k]: !0
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
-
const
|
|
26
|
-
function
|
|
27
|
-
if (typeof e != "object" || e === null || !
|
|
25
|
+
const p = /* @__PURE__ */ new WeakMap();
|
|
26
|
+
function m(e, o, t) {
|
|
27
|
+
if (typeof e != "object" || e === null || !I(e))
|
|
28
28
|
return e;
|
|
29
|
-
if (
|
|
30
|
-
return
|
|
31
|
-
const
|
|
32
|
-
get(
|
|
33
|
-
const
|
|
34
|
-
if (
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
return a.get();
|
|
38
|
-
const u = Reflect.get(o, r, s);
|
|
39
|
-
return typeof u == "object" && u !== null && p(u) ? O(u, c, n) : u;
|
|
29
|
+
if (p.has(e))
|
|
30
|
+
return p.get(e);
|
|
31
|
+
const n = new Proxy(e, {
|
|
32
|
+
get(r, s, i) {
|
|
33
|
+
const a = t[s]?.onGet;
|
|
34
|
+
if (a) return a();
|
|
35
|
+
const c = o.get(s), l = Reflect.get(r, s, i);
|
|
36
|
+
return c?.get ? c.get() : typeof l == "object" && l !== null && I(l) ? m(l, o, t) : l;
|
|
40
37
|
},
|
|
41
|
-
set(
|
|
42
|
-
const
|
|
43
|
-
if (
|
|
38
|
+
set(r, s, i, a) {
|
|
39
|
+
const c = r[s], l = t[s]?.onChanging;
|
|
40
|
+
if (l && l(c, i) === !1 || t.onPropChanging && t.onPropChanging(s, c, i) === !1)
|
|
44
41
|
return !0;
|
|
45
|
-
const d =
|
|
46
|
-
return
|
|
42
|
+
const d = h(() => Reflect.set(r, s, i, a));
|
|
43
|
+
return o.get(s)?.set?.(i), t[s]?.onChange?.(i), t.onPropChange?.(s, i), d;
|
|
47
44
|
}
|
|
48
45
|
});
|
|
49
|
-
return
|
|
46
|
+
return p.set(e, n), n;
|
|
50
47
|
}
|
|
51
|
-
function
|
|
52
|
-
return e.split("/").filter(Boolean).map((
|
|
48
|
+
function N(e) {
|
|
49
|
+
return e.split("/").filter(Boolean).map((r) => decodeURIComponent(r)).join("-").normalize("NFKD").replace(/[^a-zA-Z0-9\-_:.+#]/g, "-").replace(/-+/g, "-").replace(/^[^a-zA-Z]+/, "-").replace(/[+#]$/, "-");
|
|
53
50
|
}
|
|
54
|
-
function
|
|
55
|
-
const
|
|
51
|
+
function j(e = 2) {
|
|
52
|
+
const t = new Error().stack?.split(`
|
|
56
53
|
`);
|
|
57
|
-
if (!
|
|
54
|
+
if (!t || t.length <= e)
|
|
58
55
|
return null;
|
|
59
|
-
const
|
|
60
|
-
return
|
|
56
|
+
const r = t[e].match(/\(([^)]+)\)/)?.[1];
|
|
57
|
+
return r && document.querySelector('script[type="module"][src*="/@vite/"]') && globalThis.CONFIG_TYPE === "DEVELOPMENT" ? r.replace(/\?[^:]+/, "") : r;
|
|
61
58
|
}
|
|
62
|
-
function
|
|
63
|
-
const
|
|
59
|
+
function A(e = 2) {
|
|
60
|
+
const t = new Error().stack?.split(`
|
|
64
61
|
`);
|
|
65
|
-
if (!
|
|
62
|
+
if (!t || t.length <= e)
|
|
66
63
|
return null;
|
|
67
|
-
const
|
|
68
|
-
if (!
|
|
64
|
+
const r = t[e].trim().match(/^at\s+([^\s(]+)/);
|
|
65
|
+
if (!r)
|
|
69
66
|
return null;
|
|
70
|
-
const
|
|
71
|
-
return
|
|
67
|
+
const s = r[1], i = s.match(/^use(.+)/);
|
|
68
|
+
return i ? i[1] : s;
|
|
72
69
|
}
|
|
73
|
-
function
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
70
|
+
function B(e, o) {
|
|
71
|
+
AbortSignal.any([
|
|
72
|
+
e.msgBroker.abortController.signal,
|
|
73
|
+
o.signal
|
|
74
|
+
]);
|
|
75
|
+
const t = e?.msgBroker.provide;
|
|
76
|
+
if (t)
|
|
77
|
+
for (const [r, s] of Object.entries(t))
|
|
78
|
+
for (const [i, a] of Object.entries(s)) {
|
|
79
|
+
const c = a, l = c.callback;
|
|
80
|
+
l && (c.callback = (f, u) => l(f, u, e));
|
|
81
|
+
const d = c.filter, g = c.componentFilter || b.None;
|
|
82
|
+
c.filter = (f) => {
|
|
83
|
+
let u = !0;
|
|
84
|
+
return g & b.FromAncestors && (u = e.getChainUp()?.indexOf(f.headers?.sourceId) >= 0), u && g & b.FromDescendants && (u = e.getChainDown()?.indexOf(f.headers?.sourceId) >= 0), u && d && (u = d(f, e)), u;
|
|
84
85
|
}, e.msgBus.provide({
|
|
85
|
-
...
|
|
86
|
-
channel:
|
|
87
|
-
group:
|
|
86
|
+
...a,
|
|
87
|
+
channel: r,
|
|
88
|
+
group: i,
|
|
88
89
|
options: {
|
|
89
|
-
abortSignal:
|
|
90
|
+
abortSignal: o.signal
|
|
90
91
|
}
|
|
91
92
|
});
|
|
92
93
|
}
|
|
93
94
|
const n = e?.msgBroker?.subscribe;
|
|
94
95
|
if (n)
|
|
95
|
-
for (const [
|
|
96
|
-
for (const [
|
|
97
|
-
const
|
|
98
|
-
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
let
|
|
102
|
-
return
|
|
96
|
+
for (const [r, s] of Object.entries(n))
|
|
97
|
+
for (const [i, a] of Object.entries(s)) {
|
|
98
|
+
const c = a, l = c.callback;
|
|
99
|
+
l && (c.callback = (f) => l(f, e));
|
|
100
|
+
const d = c.filter, g = c.componentFilter || b.None;
|
|
101
|
+
c.filter = (f) => {
|
|
102
|
+
let u = !0;
|
|
103
|
+
return g & b.FromAncestors && (u = e.getChainUp()?.indexOf(f.headers?.sourceId) >= 0), u && g & b.FromDescendants && (u = e.getChainDown()?.indexOf(f.headers?.sourceId) >= 0), u && d && (u = d(f, e)), u;
|
|
103
104
|
}, e.msgBus.on({
|
|
104
|
-
...
|
|
105
|
-
channel:
|
|
106
|
-
group:
|
|
105
|
+
...a,
|
|
106
|
+
channel: r,
|
|
107
|
+
group: i,
|
|
107
108
|
options: {
|
|
108
|
-
abortSignal:
|
|
109
|
+
abortSignal: o.signal
|
|
109
110
|
}
|
|
110
111
|
});
|
|
111
112
|
}
|
|
112
113
|
}
|
|
113
|
-
function
|
|
114
|
-
const
|
|
115
|
-
|
|
114
|
+
function D(e, o) {
|
|
115
|
+
const t = (n) => {
|
|
116
|
+
n.payload != null && (n.payload = structuredClone(O(n.payload))), n.headers || (n.headers = {}), o?.(n.headers);
|
|
116
117
|
};
|
|
117
118
|
return {
|
|
118
119
|
config: e.config,
|
|
119
|
-
on: (
|
|
120
|
-
once: (
|
|
121
|
-
stream: (
|
|
122
|
-
provide: (
|
|
123
|
-
send: (
|
|
124
|
-
request: (
|
|
120
|
+
on: (n) => e.on(n),
|
|
121
|
+
once: (n) => e.once(n),
|
|
122
|
+
stream: (n) => e.stream(n),
|
|
123
|
+
provide: (n) => (t(n), e.provide(n)),
|
|
124
|
+
send: (n) => (t(n), e.send(n)),
|
|
125
|
+
request: (n) => (t(n), e.request(n))
|
|
125
126
|
};
|
|
126
127
|
}
|
|
127
|
-
function
|
|
128
|
-
let
|
|
129
|
-
const s = () => {
|
|
130
|
-
|
|
131
|
-
()
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
128
|
+
function M(e, o, t) {
|
|
129
|
+
let n = null;
|
|
130
|
+
const r = y.box(!1), s = () => {
|
|
131
|
+
n || h(() => {
|
|
132
|
+
r.set(!1), n = F(
|
|
133
|
+
() => {
|
|
134
|
+
r.get() || t(e);
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
name: `${e.id}/effects/${o}`
|
|
135
138
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
));
|
|
139
|
+
);
|
|
140
|
+
});
|
|
139
141
|
}, i = () => {
|
|
140
|
-
|
|
142
|
+
n?.(), n = null;
|
|
141
143
|
}, a = () => {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
},
|
|
146
|
-
|
|
144
|
+
h(() => {
|
|
145
|
+
r.set(!0);
|
|
146
|
+
});
|
|
147
|
+
}, c = () => {
|
|
148
|
+
h(() => {
|
|
149
|
+
r.set(!1);
|
|
150
|
+
});
|
|
147
151
|
};
|
|
148
|
-
return s(), {
|
|
152
|
+
return s(), { pause: a, resume: c, stop: i };
|
|
149
153
|
}
|
|
150
154
|
export {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
155
|
+
w as bind,
|
|
156
|
+
E as bindProp,
|
|
157
|
+
M as createEffect,
|
|
158
|
+
m as createRecursiveProxy,
|
|
159
|
+
D as getComponentMsgBus,
|
|
160
|
+
A as getComponentNameByCaller,
|
|
161
|
+
j as getComponentSourceByCaller,
|
|
158
162
|
v as isBinding,
|
|
159
|
-
|
|
160
|
-
|
|
163
|
+
B as registerMsgBroker,
|
|
164
|
+
N as toHtmlId
|
|
161
165
|
};
|
|
162
166
|
//# sourceMappingURL=core.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.es.js","sources":["../../src/componentModel/core.tsx"],"sourcesContent":["import React from 'react';\r\nimport { MsgBus } from '@actdim/msgmesh/contracts';\r\nimport { isObservable, runInAction, toJS, autorun, IReactionDisposer } from 'mobx';\r\nimport type {\r\n Binding,\r\n Component,\r\n ComponentMsgHeaders,\r\n ComponentStruct,\r\n EffectController,\r\n EffectFn,\r\n MsgChannelGroupProviderParams,\r\n MsgChannelGroupSubscriberParams,\r\n PropEventHandlers,\r\n PropValueChangeHandler,\r\n PropValueChangingHandler,\r\n Validator,\r\n ValueConverter,\r\n} from './contracts';\r\nimport { $isBinding, ComponentMsgFilter } from './contracts';\r\nimport { isPlainObject } from 'mobx/dist/internal';\r\n\r\nconst blankView = () => null;\r\n\r\nexport function isBinding(obj: any): obj is Binding {\r\n return obj[$isBinding] === true;\r\n}\r\n\r\nexport function bind<T, TFrom = any>(\r\n get: () => T,\r\n set?: (value: T) => void,\r\n converter?: ValueConverter<T, TFrom>,\r\n validator?: Validator<T>,\r\n): Binding {\r\n return {\r\n get: get,\r\n set: set,\r\n converter: converter,\r\n validator: validator,\r\n readOnly: !!set,\r\n [$isBinding]: true,\r\n };\r\n}\r\n\r\nexport function bindProp<T extends object, P extends keyof T>(target: () => T, prop: P): Binding {\r\n return {\r\n get: () => target()[prop],\r\n set: (value: T[P]) => {\r\n target()[prop] = value;\r\n },\r\n [$isBinding]: true,\r\n };\r\n}\r\n\r\nconst proxyCache = new WeakMap<object, any>();\r\n\r\nexport type ProxyEventHandlers = {\r\n onPropChanging?: PropValueChangingHandler<PropertyKey>;\r\n onPropChange?: PropValueChangeHandler<PropertyKey>;\r\n} & Record<PropertyKey, PropEventHandlers>;\r\n\r\nexport function createRecursiveProxy(\r\n target: any,\r\n bindings: Map<PropertyKey, Binding>,\r\n handlers: ProxyEventHandlers,\r\n) {\r\n if (typeof target !== 'object' || target === null) {\r\n return target;\r\n }\r\n\r\n // isPlainObject\r\n if (!isObservable(target)) {\r\n return target;\r\n }\r\n\r\n if (proxyCache.has(target)) {\r\n return proxyCache.get(target);\r\n }\r\n\r\n const proxy = new Proxy(target, {\r\n get(obj, prop, receiver) {\r\n // 1. custom handlers\r\n const onGet = handlers[prop]?.onGet;\r\n if (onGet) return onGet();\r\n\r\n // 2. bindings\r\n const binding = bindings.get(prop);\r\n if (binding?.get) {\r\n return binding.get();\r\n }\r\n\r\n const value = Reflect.get(obj, prop, receiver);\r\n\r\n if (typeof value === 'object' && value !== null && isObservable(value)) {\r\n return createRecursiveProxy(value, bindings, handlers);\r\n }\r\n\r\n return value;\r\n },\r\n\r\n set(obj, prop, value, receiver) {\r\n const oldValue = obj[prop];\r\n\r\n // before-change hooks\r\n const onChanging = handlers[prop]?.onChanging;\r\n if (onChanging && onChanging(oldValue, value) === false) {\r\n return true;\r\n }\r\n\r\n if (\r\n handlers.onPropChanging &&\r\n handlers.onPropChanging(prop, oldValue, value) === false\r\n ) {\r\n return true;\r\n }\r\n\r\n const result = runInAction(() => {\r\n return Reflect.set(obj, prop, value, receiver);\r\n });\r\n\r\n // bindings\r\n const binding = bindings.get(prop);\r\n binding?.set?.(value);\r\n\r\n // after-change hooks\r\n handlers[prop]?.onChange?.(value);\r\n handlers.onPropChange?.(prop, value);\r\n\r\n return result;\r\n },\r\n });\r\n\r\n proxyCache.set(target, proxy);\r\n return proxy;\r\n}\r\n\r\nexport function toHtmlId(url: string): string {\r\n let parts = url\r\n .split('/')\r\n .filter(Boolean)\r\n .map((segment) => decodeURIComponent(segment));\r\n\r\n const raw = parts.join('-');\r\n // sanitize\r\n let id = raw\r\n .normalize('NFKD')\r\n .replace(/[^a-zA-Z0-9\\-_:.+#]/g, '-')\r\n .replace(/-+/g, '-')\r\n .replace(/^[^a-zA-Z]+/, '-')\r\n // .replace(/:/g, '-')\r\n // .replace(/\\./g, '_')\r\n // .replace(/#/g, '-')\r\n .replace(/[+#]$/, '-');\r\n return id;\r\n}\r\n\r\nexport function getComponentSourceByCaller(depth = 2): string | null {\r\n const err = new Error();\r\n const stack = err.stack?.split('\\n');\r\n if (!stack || stack.length <= depth) {\r\n return null;\r\n }\r\n const match = stack[depth].match(/\\(([^)]+)\\)/);\r\n const result = match?.[1];\r\n if (result) {\r\n if (\r\n document.querySelector('script[type=\"module\"][src*=\"/@vite/\"]') &&\r\n globalThis['CONFIG_TYPE'] === 'DEVELOPMENT'\r\n ) {\r\n return result.replace(/\\?[^:]+/, '');\r\n }\r\n }\r\n return result;\r\n}\r\n\r\nexport function getComponentNameByCaller(depth = 2): string | null {\r\n const err = new Error();\r\n const stack = err.stack?.split('\\n');\r\n if (!stack || stack.length <= depth) {\r\n return null;\r\n }\r\n const line = stack[depth].trim();\r\n const match = line.match(/^at\\s+([^\\s(]+)/);\r\n if (!match) {\r\n return null;\r\n }\r\n const fnName = match[1];\r\n const hookMatch = fnName.match(/^use(.+)/);\r\n if (hookMatch) {\r\n return hookMatch[1];\r\n }\r\n return fnName;\r\n}\r\n\r\nexport function registerMsgBroker<TStruct extends ComponentStruct = ComponentStruct>(\r\n component: Component<TStruct>,\r\n) {\r\n const providers = component?.msgBroker.provide;\r\n if (providers) {\r\n for (const [channel, providerGroups] of Object.entries(providers)) {\r\n for (const [g, p] of Object.entries(providerGroups)) {\r\n const provider = p as MsgChannelGroupProviderParams;\r\n const callback = provider.callback;\r\n if (callback) {\r\n provider.callback = (msg, headers) => {\r\n return callback(msg, headers, component);\r\n };\r\n }\r\n const filter = provider.filter;\r\n const componentFilter = provider.componentFilter || ComponentMsgFilter.None;\r\n provider.filter = (msg) => {\r\n let result = true;\r\n if (componentFilter & ComponentMsgFilter.FromAncestors) {\r\n const ancestorIds = component.getChainUp();\r\n result = ancestorIds?.indexOf(msg.headers?.sourceId) >= 0;\r\n }\r\n if (result && componentFilter & ComponentMsgFilter.FromDescendants) {\r\n const descendantIds = component.getChainDown();\r\n result = descendantIds?.indexOf(msg.headers?.sourceId) >= 0;\r\n }\r\n if (result && filter) {\r\n result = filter(msg, component);\r\n }\r\n return result;\r\n };\r\n\r\n component.msgBus.provide({\r\n ...p,\r\n channel: channel,\r\n group: g,\r\n options: {\r\n abortSignal: component.msgBroker.abortController.signal,\r\n },\r\n });\r\n }\r\n }\r\n }\r\n const subscribers = component?.msgBroker?.subscribe;\r\n if (subscribers) {\r\n for (const [channel, subscriberGroups] of Object.entries(subscribers)) {\r\n for (const [g, s] of Object.entries(subscriberGroups)) {\r\n const subscriber = s as MsgChannelGroupSubscriberParams;\r\n const callback = subscriber.callback;\r\n if (callback) {\r\n subscriber.callback = (msg) => {\r\n return callback(msg, component);\r\n };\r\n }\r\n const filter = subscriber.filter;\r\n const componentFilter = subscriber.componentFilter || ComponentMsgFilter.None;\r\n subscriber.filter = (msg) => {\r\n let result = true;\r\n if (componentFilter & ComponentMsgFilter.FromAncestors) {\r\n const ancestorIds = component.getChainUp();\r\n result = ancestorIds?.indexOf(msg.headers?.sourceId) >= 0;\r\n }\r\n if (result && componentFilter & ComponentMsgFilter.FromDescendants) {\r\n const descendantIds = component.getChainDown();\r\n result = descendantIds?.indexOf(msg.headers?.sourceId) >= 0;\r\n }\r\n if (result && filter) {\r\n result = filter(msg, component);\r\n }\r\n return result;\r\n };\r\n\r\n component.msgBus.on({\r\n ...s,\r\n channel: channel,\r\n group: g,\r\n options: {\r\n abortSignal: component.msgBroker.abortController.signal,\r\n },\r\n });\r\n }\r\n }\r\n }\r\n}\r\n\r\nexport function getComponentMsgBus<TStruct extends ComponentStruct = ComponentStruct>(\r\n msgBus: MsgBus<TStruct['msg']>,\r\n headerSetter: (headers?: ComponentMsgHeaders) => void,\r\n) {\r\n const updateParams = (params: { payload?: any; headers?: ComponentMsgHeaders }) => {\r\n if (params.payload != undefined) {\r\n params.payload = structuredClone(toJS(params.payload)); // always?\r\n }\r\n if (!params.headers) {\r\n params.headers = {};\r\n }\r\n headerSetter?.(params.headers);\r\n };\r\n return {\r\n config: msgBus.config,\r\n on: (params) => {\r\n return msgBus.on(params);\r\n },\r\n once: (params) => {\r\n return msgBus.once(params);\r\n },\r\n stream: (params) => {\r\n return msgBus.stream(params);\r\n },\r\n provide: (params) => {\r\n updateParams(params);\r\n return msgBus.provide(params);\r\n },\r\n send: (params) => {\r\n updateParams(params);\r\n return msgBus.send(params);\r\n },\r\n request: (params) => {\r\n updateParams(params);\r\n return msgBus.request(params);\r\n },\r\n } as MsgBus<TStruct['msg']>;\r\n}\r\n\r\nexport function createEffect<\r\n TStruct extends ComponentStruct,\r\n TMsgHeaders extends ComponentMsgHeaders = ComponentMsgHeaders,\r\n>(\r\n component: Component<TStruct, TMsgHeaders>,\r\n name: string,\r\n fn: EffectFn<TStruct, TMsgHeaders>,\r\n): EffectController {\r\n let disposer: IReactionDisposer | null = null;\r\n let paused = false;\r\n let effectCleanup: () => void = undefined;\r\n\r\n const start = () => {\r\n if (disposer) {\r\n return;\r\n }\r\n\r\n disposer = autorun(\r\n () => {\r\n if (!paused) {\r\n const cleanup = fn(component);\r\n if (typeof cleanup === 'function') {\r\n cleanup();\r\n effectCleanup = cleanup;\r\n }\r\n }\r\n },\r\n { name: `effect:${name}` },\r\n );\r\n };\r\n\r\n const stop = () => {\r\n disposer?.();\r\n disposer = null;\r\n if (effectCleanup) {\r\n effectCleanup();\r\n effectCleanup = undefined;\r\n }\r\n };\r\n\r\n const pause = () => {\r\n paused = true;\r\n };\r\n\r\n const resume = () => {\r\n paused = false;\r\n };\r\n\r\n const restart = () => {\r\n stop();\r\n start();\r\n };\r\n\r\n start();\r\n\r\n return { start, pause, resume, stop, restart };\r\n}\r\n\r\n// TODO: move to utico\r\n// function asyncToGeneratorFlow(asyncFn: (...args: any[]) => Promise<any>) {\r\n// return function* (...args: any[]) {\r\n// const result = yield asyncFn(...args);\r\n// return result;\r\n// };\r\n// }\r\n"],"names":["isBinding","obj","$isBinding","bind","get","set","converter","validator","bindProp","target","prop","value","proxyCache","createRecursiveProxy","bindings","handlers","isObservable","proxy","receiver","onGet","binding","oldValue","onChanging","result","runInAction","toHtmlId","url","segment","getComponentSourceByCaller","depth","stack","getComponentNameByCaller","match","fnName","hookMatch","registerMsgBroker","component","providers","channel","providerGroups","g","p","provider","callback","msg","headers","filter","componentFilter","ComponentMsgFilter","subscribers","subscriberGroups","subscriber","getComponentMsgBus","msgBus","headerSetter","updateParams","params","toJS","createEffect","name","fn","disposer","paused","effectCleanup","start","autorun","cleanup","stop","pause","resume","restart"],"mappings":";;AAuBO,SAASA,EAAUC,GAA0B;AAChD,SAAOA,EAAIC,CAAU,MAAM;AAC/B;AAEO,SAASC,EACZC,GACAC,GACAC,GACAC,GACO;AACP,SAAO;AAAA,IACH,KAAAH;AAAA,IACA,KAAAC;AAAA,IACA,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,UAAU,CAAC,CAACF;AAAA,IACZ,C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AAI,OAAO8B,KAAY,eACnBA,EAAA,GACAH,IAAgBG;AAAA,QAExB;AAAA,MACJ;AAAA,MACA,EAAE,MAAM,UAAUP,CAAI,GAAA;AAAA,IAAG;AAAA,EAEjC,GAEMQ,IAAO,MAAM;AACf,IAAAN,IAAA,GACAA,IAAW,MACPE,MACAA,EAAA,GACAA,IAAgB;AAAA,EAExB,GAEMK,IAAQ,MAAM;AAChB,IAAAN,IAAS;AAAA,EACb,GAEMO,IAAS,MAAM;AACjB,IAAAP,IAAS;AAAA,EACb,GAEMQ,IAAU,MAAM;AAClB,IAAAH,EAAA,GACAH,EAAA;AAAA,EACJ;AAEA,SAAAA,EAAA,GAEO,EAAE,OAAAA,GAAO,OAAAI,GAAO,QAAAC,GAAQ,MAAAF,GAAM,SAAAG,EAAA;AACzC;"}
|
|
1
|
+
{"version":3,"file":"core.es.js","sources":["../../src/componentModel/core.tsx"],"sourcesContent":null,"names":["isBinding","obj","$isBinding","bind","get","set","converter","validator","bindProp","target","prop","value","proxyCache","createRecursiveProxy","bindings","handlers","isObservable","proxy","receiver","onGet","binding","oldValue","onChanging","result","runInAction","toHtmlId","url","segment","getComponentSourceByCaller","depth","stack","getComponentNameByCaller","match","fnName","hookMatch","registerMsgBroker","component","abortController","providers","channel","providerGroups","g","p","provider","callback","msg","headers","filter","componentFilter","ComponentMsgFilter","subscribers","subscriberGroups","s","subscriber","getComponentMsgBus","msgBus","headerSetter","updateParams","params","toJS","createEffect","name","fn","disposer","paused","observable","start","autorun","stop","pause","resume"],"mappings":";;AAmCO,SAASA,EAAUC,GAA0B;AAChD,SAAOA,EAAIC,CAAU,MAAM;AAC/B;AAEO,SAASC,EACZC,GACAC,GACAC,GACAC,GACO;AACP,SAAO;AAAA,IACH,KAAAH;AAAA,IACA,KAAAC;AAAA,IACA,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,UAAU,CAAC,CAACF;AAAA,IACZ,CAACH,CAAU,GAAG;AAAA,EAAA;AAEtB;AAEO,SAASM,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AAM;AACF,UAAKH,EAAO,SACRF,EAAG1B,CAAS;AAAA,QAEpB;AAAA,QACA;AAAA,UACI,MAAM,GAAGA,EAAU,EAAE,YAAYyB,CAAI;AAAA,QAAA;AAAA,MACzC;AAAA,IAER,CAAC;AAAA,EACL,GAEMO,IAAO,MAAM;AACf,IAAAL,IAAA,GACAA,IAAW;AAAA,EACf,GAEMM,IAAQ,MAAM;AAChB,IAAA7C,EAAY,MAAM;AACd,MAAAwC,EAAO,IAAI,EAAI;AAAA,IACnB,CAAC;AAAA,EACL,GAEMM,IAAS,MAAM;AACjB,IAAA9C,EAAY,MAAM;AACd,MAAAwC,EAAO,IAAI,EAAK;AAAA,IACpB,CAAC;AAAA,EACL;AAEA,SAAAE,EAAA,GAEO,EAAE,OAAAG,GAAO,QAAAC,GAAQ,MAAAF,EAAA;AAC5B;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React, PropsWithChildren } from 'react';
|
|
2
|
+
export declare class ErrorBoundary extends React.Component<{
|
|
3
|
+
onError?: (error: unknown, info?: unknown) => React.ReactNode;
|
|
4
|
+
} & PropsWithChildren, {
|
|
5
|
+
hasError: boolean;
|
|
6
|
+
error: unknown;
|
|
7
|
+
}> {
|
|
8
|
+
state: {
|
|
9
|
+
hasError: boolean;
|
|
10
|
+
error: any;
|
|
11
|
+
};
|
|
12
|
+
static getDerivedStateFromError(error: unknown): {
|
|
13
|
+
hasError: boolean;
|
|
14
|
+
error: unknown;
|
|
15
|
+
};
|
|
16
|
+
componentDidCatch(error: unknown, info: any): void;
|
|
17
|
+
render(): React.ReactNode;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=errorBoundary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errorBoundary.d.ts","sourceRoot":"","sources":["../../../src/componentModel/react/errorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEjD,qBAAa,aAAc,SAAQ,KAAK,CAAC,SAAS,CAC9C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,OAAO,KAAK,KAAK,CAAC,SAAS,CAAA;CAAE,GAAG,iBAAiB,EACrF;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CACxC;IACG,KAAK;;;MAAoC;IAEzC,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,OAAO;;;;IAI9C,iBAAiB,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG;IAM3C,MAAM;CAkDT"}
|