@codedia/react-web-component-bridge 0.1.0
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/LICENSE +21 -0
- package/README.md +16 -0
- package/dist/configuration/global-config.d.ts +4 -0
- package/dist/configuration/global-config.d.ts.map +1 -0
- package/dist/configuration/registry.d.ts +6 -0
- package/dist/configuration/registry.d.ts.map +1 -0
- package/dist/core/create-react-element.d.ts +4 -0
- package/dist/core/create-react-element.d.ts.map +1 -0
- package/dist/core/define-react-element.d.ts +5 -0
- package/dist/core/define-react-element.d.ts.map +1 -0
- package/dist/core/event-controller.d.ts +9 -0
- package/dist/core/event-controller.d.ts.map +1 -0
- package/dist/core/form-controller.d.ts +11 -0
- package/dist/core/form-controller.d.ts.map +1 -0
- package/dist/core/lifecycle.d.ts +11 -0
- package/dist/core/lifecycle.d.ts.map +1 -0
- package/dist/core/method-controller.d.ts +11 -0
- package/dist/core/method-controller.d.ts.map +1 -0
- package/dist/core/portal-controller.d.ts +12 -0
- package/dist/core/portal-controller.d.ts.map +1 -0
- package/dist/core/property-controller.d.ts +25 -0
- package/dist/core/property-controller.d.ts.map +1 -0
- package/dist/core/render-controller.d.ts +25 -0
- package/dist/core/render-controller.d.ts.map +1 -0
- package/dist/core/slot-controller.d.ts +9 -0
- package/dist/core/slot-controller.d.ts.map +1 -0
- package/dist/core/style-controller.d.ts +10 -0
- package/dist/core/style-controller.d.ts.map +1 -0
- package/dist/index.cjs +848 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +831 -0
- package/dist/index.js.map +1 -0
- package/dist/metadata/create-metadata.d.ts +3 -0
- package/dist/metadata/create-metadata.d.ts.map +1 -0
- package/dist/metadata/index.cjs +84 -0
- package/dist/metadata/index.cjs.map +1 -0
- package/dist/metadata/index.d.ts +3 -0
- package/dist/metadata/index.d.ts.map +1 -0
- package/dist/metadata/index.js +57 -0
- package/dist/metadata/index.js.map +1 -0
- package/dist/metadata/types.d.ts +2 -0
- package/dist/metadata/types.d.ts.map +1 -0
- package/dist/react.cjs +912 -0
- package/dist/react.cjs.map +1 -0
- package/dist/react.d.ts +20 -0
- package/dist/react.d.ts.map +1 -0
- package/dist/react.js +866 -0
- package/dist/react.js.map +1 -0
- package/dist/types/public.d.ts +125 -0
- package/dist/types/public.d.ts.map +1 -0
- package/dist/utilities/casing.d.ts +4 -0
- package/dist/utilities/casing.d.ts.map +1 -0
- package/dist/utilities/errors.d.ts +3 -0
- package/dist/utilities/errors.d.ts.map +1 -0
- package/dist/utilities/parsing.d.ts +3 -0
- package/dist/utilities/parsing.d.ts.map +1 -0
- package/dist/utilities/scheduling.d.ts +3 -0
- package/dist/utilities/scheduling.d.ts.map +1 -0
- package/dist/utilities/serialization.d.ts +3 -0
- package/dist/utilities/serialization.d.ts.map +1 -0
- package/package.json +57 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Fahim Chowdhury
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# @codedia/react-web-component-bridge
|
|
2
|
+
|
|
3
|
+
React Web Component Bridge lets teams author components in React-shaped TSX and expose them through standards-based Custom Elements.
|
|
4
|
+
|
|
5
|
+
For Angular, plain HTML, Vue, and CMS consumers that need no React in the production bundle, use the companion compiler package:
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add @codedia/react-web-component-bridge
|
|
9
|
+
pnpm add -D @codedia/react-web-component-bridge-generator
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
The package also exports a React-compatible authoring facade at `@codedia/react-web-component-bridge/react` for inline `defineComponentTag` metadata.
|
|
13
|
+
|
|
14
|
+
Documentation: https://react-web-component-bridge-site.netlify.app
|
|
15
|
+
|
|
16
|
+
Repository: https://github.com/fahimc/react-web-component-bridge
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ReactElementGlobalConfig } from "../types/public";
|
|
2
|
+
export declare function configureReactElements(config: ReactElementGlobalConfig): ReactElementGlobalConfig;
|
|
3
|
+
export declare function getReactElementGlobalConfig(): ReactElementGlobalConfig;
|
|
4
|
+
//# sourceMappingURL=global-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"global-config.d.ts","sourceRoot":"","sources":["../../src/configuration/global-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAMhE,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,wBAAwB,GAAG,wBAAwB,CAGjG;AAED,wBAAgB,2BAA2B,IAAI,wBAAwB,CAEtE"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ReactElementDefinition } from "../types/public";
|
|
2
|
+
export declare function registerDefinition(definition: ReactElementDefinition): void;
|
|
3
|
+
export declare function getReactElementDefinition(tagName: string): ReactElementDefinition | undefined;
|
|
4
|
+
export declare function isReactElementDefined(tagName: string): boolean;
|
|
5
|
+
export declare function listReactElementDefinitions(): ReactElementDefinition[];
|
|
6
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/configuration/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAI9D,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,sBAAsB,GAAG,IAAI,CAE3E;AAED,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,MAAM,GAAG,sBAAsB,GAAG,SAAS,CAE7F;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAM9D;AAED,wBAAgB,2BAA2B,IAAI,sBAAsB,EAAE,CAEtE"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ComponentType } from "react";
|
|
2
|
+
import type { ReactElementDefinition, ReactElementOptions } from "../types/public";
|
|
3
|
+
export declare function createReactElement<Props extends object, Ref = unknown>(tagName: string, component: ComponentType<Props>, options?: ReactElementOptions<Props, Ref>): ReactElementDefinition<Props, Ref>;
|
|
4
|
+
//# sourceMappingURL=create-react-element.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-react-element.d.ts","sourceRoot":"","sources":["../../src/core/create-react-element.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG3C,OAAO,KAAK,EAEV,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AAazB,wBAAgB,kBAAkB,CAAC,KAAK,SAAS,MAAM,EAAE,GAAG,GAAG,OAAO,EACpE,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,aAAa,CAAC,KAAK,CAAC,EAC/B,OAAO,GAAE,mBAAmB,CAAC,KAAK,EAAE,GAAG,CAAM,GAC5C,sBAAsB,CAAC,KAAK,EAAE,GAAG,CAAC,CA6JpC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ComponentType } from "react";
|
|
2
|
+
import type { ReactElementDefinition, ReactElementOptions } from "../types/public";
|
|
3
|
+
export declare function defineReactElement<Props extends object, Ref = unknown>(tagName: string, component: ComponentType<Props>, options?: ReactElementOptions<Props, Ref>): ReactElementDefinition<Props, Ref>;
|
|
4
|
+
export declare function defineReactElements(definitions: readonly ReactElementDefinition[]): ReactElementDefinition[];
|
|
5
|
+
//# sourceMappingURL=define-react-element.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-react-element.d.ts","sourceRoot":"","sources":["../../src/core/define-react-element.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,KAAK,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAInF,wBAAgB,kBAAkB,CAAC,KAAK,SAAS,MAAM,EAAE,GAAG,GAAG,OAAO,EACpE,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,aAAa,CAAC,KAAK,CAAC,EAC/B,OAAO,GAAE,mBAAmB,CAAC,KAAK,EAAE,GAAG,CAAM,GAC5C,sBAAsB,CAAC,KAAK,EAAE,GAAG,CAAC,CAWpC;AAED,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,SAAS,sBAAsB,EAAE,GAC7C,sBAAsB,EAAE,CAY1B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactElementOptions } from "../types/public";
|
|
2
|
+
export declare class EventController {
|
|
3
|
+
private readonly host;
|
|
4
|
+
private readonly options;
|
|
5
|
+
constructor(host: HTMLElement, options: ReactElementOptions);
|
|
6
|
+
createEventProps(): Record<string, (...args: readonly unknown[]) => unknown>;
|
|
7
|
+
private dispatch;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=event-controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-controller.d.ts","sourceRoot":"","sources":["../../src/core/event-controller.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAA+B,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAExF,qBAAa,eAAe;IAExB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBADP,IAAI,EAAE,WAAW,EACjB,OAAO,EAAE,mBAAmB;IAG/C,gBAAgB,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,SAAS,OAAO,EAAE,KAAK,OAAO,CAAC;IAS5E,OAAO,CAAC,QAAQ;CAoBjB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReactElementOptions } from "../types/public";
|
|
2
|
+
export declare class FormController {
|
|
3
|
+
private readonly host;
|
|
4
|
+
private readonly options;
|
|
5
|
+
private internals;
|
|
6
|
+
constructor(host: HTMLElement, options: ReactElementOptions);
|
|
7
|
+
connect(): void;
|
|
8
|
+
update(name: string, value: unknown): void;
|
|
9
|
+
emitStandardChangeEvents(): void;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=form-controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-controller.d.ts","sourceRoot":"","sources":["../../src/core/form-controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAO3D,qBAAa,cAAc;IAIvB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAJ1B,OAAO,CAAC,SAAS,CAAmC;gBAGjC,IAAI,EAAE,WAAW,EACjB,OAAO,EAAE,mBAAmB;IAG/C,OAAO,IAAI,IAAI;IAWf,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;IAgB1C,wBAAwB,IAAI,IAAI;CAOjC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { RenderController } from "./render-controller";
|
|
2
|
+
export declare class LifecycleController {
|
|
3
|
+
private readonly render;
|
|
4
|
+
private readonly requestRender;
|
|
5
|
+
private readonly cleanup;
|
|
6
|
+
private disconnectToken;
|
|
7
|
+
constructor(render: RenderController, requestRender: () => void, cleanup: () => void);
|
|
8
|
+
connected(): void;
|
|
9
|
+
disconnected(host: HTMLElement): void;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=lifecycle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../src/core/lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,qBAAa,mBAAmB;IAI5B,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,OAAO;IAL1B,OAAO,CAAC,eAAe,CAAK;gBAGT,MAAM,EAAE,gBAAgB,EACxB,aAAa,EAAE,MAAM,IAAI,EACzB,OAAO,EAAE,MAAM,IAAI;IAGtC,SAAS,IAAI,IAAI;IAMjB,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI;CAUtC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReactElementOptions } from "../types/public";
|
|
2
|
+
export declare class MethodController {
|
|
3
|
+
private readonly options;
|
|
4
|
+
private ref;
|
|
5
|
+
private readonly queue;
|
|
6
|
+
constructor(options: ReactElementOptions);
|
|
7
|
+
setRef(value: unknown): void;
|
|
8
|
+
createRefSetter(): (value: unknown) => void;
|
|
9
|
+
call(name: string, args: readonly unknown[], host?: HTMLElement): unknown;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=method-controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"method-controller.d.ts","sourceRoot":"","sources":["../../src/core/method-controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAE3D,qBAAa,gBAAgB;IAIf,OAAO,CAAC,QAAQ,CAAC,OAAO;IAHpC,OAAO,CAAC,GAAG,CAAU;IACrB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAkC;gBAE3B,OAAO,EAAE,mBAAmB;IAEzD,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAU5B,eAAe,IAAI,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;IAI3C,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,OAAO,EAAE,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO;CAgB1E"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactElementOptions } from "../types/public";
|
|
2
|
+
export declare class PortalController {
|
|
3
|
+
private readonly host;
|
|
4
|
+
private readonly renderRoot;
|
|
5
|
+
private readonly options;
|
|
6
|
+
private container;
|
|
7
|
+
constructor(host: HTMLElement, renderRoot: ShadowRoot | HTMLElement, options: ReactElementOptions);
|
|
8
|
+
getPortalProps(): Record<string, HTMLElement>;
|
|
9
|
+
cleanup(): void;
|
|
10
|
+
private getContainer;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=portal-controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portal-controller.d.ts","sourceRoot":"","sources":["../../src/core/portal-controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAE3D,qBAAa,gBAAgB;IAIzB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,OAAO;IAL1B,OAAO,CAAC,SAAS,CAA0B;gBAGxB,IAAI,EAAE,WAAW,EACjB,UAAU,EAAE,UAAU,GAAG,WAAW,EACpC,OAAO,EAAE,mBAAmB;IAG/C,cAAc,IAAI,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC;IAQ7C,OAAO,IAAI,IAAI;IAKf,OAAO,CAAC,YAAY;CA2BrB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ReactElementOptions } from "../types/public";
|
|
2
|
+
export type PropertyControllerContext = {
|
|
3
|
+
host: HTMLElement;
|
|
4
|
+
options: ReactElementOptions;
|
|
5
|
+
development: boolean;
|
|
6
|
+
requestRender: () => void;
|
|
7
|
+
formValueChanged: (name: string, value: unknown) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare class PropertyController {
|
|
10
|
+
private readonly context;
|
|
11
|
+
readonly values: Map<string, unknown>;
|
|
12
|
+
readonly reflectingAttributes: Set<string>;
|
|
13
|
+
readonly attributeToProp: Map<string, string>;
|
|
14
|
+
constructor(context: PropertyControllerContext);
|
|
15
|
+
static observedAttributes(options: ReactElementOptions): string[];
|
|
16
|
+
initializePreUpgradeProperties(): void;
|
|
17
|
+
getProperty(name: string): unknown;
|
|
18
|
+
getProps(): Record<string, unknown>;
|
|
19
|
+
setProperty(name: string, rawValue: unknown): void;
|
|
20
|
+
attributeChanged(attributeName: string, value: string | null): void;
|
|
21
|
+
private normalizeValue;
|
|
22
|
+
private reflectProperty;
|
|
23
|
+
private attributeName;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=property-controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"property-controller.d.ts","sourceRoot":"","sources":["../../src/core/property-controller.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAA8B,MAAM,iBAAiB,CAAC;AAEvF,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,EAAE,mBAAmB,CAAC;IAC7B,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1D,CAAC;AAEF,qBAAa,kBAAkB;IAKjB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAJpC,QAAQ,CAAC,MAAM,uBAA8B;IAC7C,QAAQ,CAAC,oBAAoB,cAAqB;IAClD,QAAQ,CAAC,eAAe,sBAA6B;gBAExB,OAAO,EAAE,yBAAyB;IAY/D,MAAM,CAAC,kBAAkB,CAAC,OAAO,EAAE,mBAAmB,GAAG,MAAM,EAAE;IAQjE,8BAA8B,IAAI,IAAI;IAUtC,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAIlC,QAAQ,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAInC,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,IAAI;IAYlD,gBAAgB,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAanE,OAAO,CAAC,cAAc;IAuBtB,OAAO,CAAC,eAAe;IAyBvB,OAAO,CAAC,aAAa;CAStB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type ComponentType } from "react";
|
|
2
|
+
import type { ReactElementGlobalConfig, ReactElementOptions } from "../types/public";
|
|
3
|
+
export type RenderControllerContext = {
|
|
4
|
+
host: HTMLElement;
|
|
5
|
+
component: ComponentType<Record<string, unknown>>;
|
|
6
|
+
options: ReactElementOptions;
|
|
7
|
+
config: ReactElementGlobalConfig;
|
|
8
|
+
mount: HTMLElement;
|
|
9
|
+
getProps: () => Record<string, unknown>;
|
|
10
|
+
getEventProps: () => Record<string, unknown>;
|
|
11
|
+
getSlotProps: () => Record<string, unknown>;
|
|
12
|
+
getPortalProps: () => Record<string, unknown>;
|
|
13
|
+
refSetter: (value: unknown) => void;
|
|
14
|
+
};
|
|
15
|
+
export declare class RenderController {
|
|
16
|
+
private readonly context;
|
|
17
|
+
private root;
|
|
18
|
+
private unmounted;
|
|
19
|
+
constructor(context: RenderControllerContext);
|
|
20
|
+
render(): void;
|
|
21
|
+
unmount(): void;
|
|
22
|
+
reconnect(): void;
|
|
23
|
+
private createTree;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=render-controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render-controller.d.ts","sourceRoot":"","sources":["../../src/core/render-controller.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuC,KAAK,aAAa,EAAkB,MAAM,OAAO,CAAC;AAEhG,OAAO,KAAK,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAErF,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,WAAW,CAAC;IAClB,SAAS,EAAE,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAClD,OAAO,EAAE,mBAAmB,CAAC;IAC7B,MAAM,EAAE,wBAAwB,CAAC;IACjC,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxC,aAAa,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7C,YAAY,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5C,cAAc,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9C,SAAS,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACrC,CAAC;AAEF,qBAAa,gBAAgB;IAIf,OAAO,CAAC,QAAQ,CAAC,OAAO;IAHpC,OAAO,CAAC,IAAI,CAAmB;IAC/B,OAAO,CAAC,SAAS,CAAS;gBAEG,OAAO,EAAE,uBAAuB;IAE7D,MAAM,IAAI,IAAI;IAad,OAAO,IAAI,IAAI;IAMf,SAAS,IAAI,IAAI;IAIjB,OAAO,CAAC,UAAU;CA4BnB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { ReactElementOptions } from "../types/public";
|
|
3
|
+
export declare class SlotController {
|
|
4
|
+
private readonly options;
|
|
5
|
+
constructor(options: ReactElementOptions);
|
|
6
|
+
createSlotProps(): Record<string, ReactNode>;
|
|
7
|
+
private createSlot;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=slot-controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slot-controller.d.ts","sourceRoot":"","sources":["../../src/core/slot-controller.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAiB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,KAAK,EAAE,mBAAmB,EAA8B,MAAM,iBAAiB,CAAC;AAEvF,qBAAa,cAAc;IACb,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,mBAAmB;IAEzD,eAAe,IAAI,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC;IAQ5C,OAAO,CAAC,UAAU;CAUnB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactElementStyleInput } from "../types/public";
|
|
2
|
+
export declare class StyleController {
|
|
3
|
+
private readonly root;
|
|
4
|
+
private readonly host;
|
|
5
|
+
private readonly styles;
|
|
6
|
+
constructor(root: ShadowRoot | HTMLElement, host: HTMLElement, styles: ReactElementStyleInput | undefined);
|
|
7
|
+
apply(): void;
|
|
8
|
+
private resolveInputs;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=style-controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style-controller.d.ts","sourceRoot":"","sources":["../../src/core/style-controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAE9D,qBAAa,eAAe;IAExB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAFN,IAAI,EAAE,UAAU,GAAG,WAAW,EAC9B,IAAI,EAAE,WAAW,EACjB,MAAM,EAAE,sBAAsB,GAAG,SAAS;IAG7D,KAAK,IAAI,IAAI;IAkBb,OAAO,CAAC,aAAa;CAOtB"}
|