@fluixi/dom 1.0.0-alpha.82 → 1.0.0-alpha.84
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/cdn/dom-client.cjs +1427 -1
- package/dist/cdn/dom-client.d.ts +2 -2
- package/dist/cdn/dom-client.global.js +2 -1
- package/dist/cdn/dom-client.js +3 -3
- package/dist/cdn/dom-client.mjs +1430 -1
- package/dist/cdn/dom.cjs +3127 -1
- package/dist/cdn/dom.d.ts +2 -2
- package/dist/cdn/dom.global.js +2 -1
- package/dist/cdn/dom.js +4 -4
- package/dist/cdn/dom.mjs +3133 -1
- package/dist/index.cjs +3155 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +3149 -1
- package/dist/lib/component/index.cjs +128 -1
- package/dist/lib/component/index.mjs +105 -1
- package/dist/lib/component/modifiers.cjs +126 -1
- package/dist/lib/component/modifiers.d.ts +12 -0
- package/dist/lib/component/modifiers.d.ts.map +1 -1
- package/dist/lib/component/modifiers.js +12 -84
- package/dist/lib/component/modifiers.mjs +105 -1
- package/dist/lib/dom/delegate.cjs +60 -1
- package/dist/lib/dom/delegate.js +1 -1
- package/dist/lib/dom/delegate.mjs +39 -1
- package/dist/lib/dom/dynamic-element.cjs +949 -1
- package/dist/lib/dom/dynamic-element.d.ts +3 -3
- package/dist/lib/dom/dynamic-element.js +3 -3
- package/dist/lib/dom/dynamic-element.mjs +928 -1
- package/dist/lib/dom/hydration-state.cjs +93 -1
- package/dist/lib/dom/hydration-state.d.ts +1 -1
- package/dist/lib/dom/hydration-state.js +1 -1
- package/dist/lib/dom/hydration-state.mjs +72 -1
- package/dist/lib/dom/hydration.cjs +685 -1
- package/dist/lib/dom/hydration.js +8 -8
- package/dist/lib/dom/hydration.mjs +664 -1
- package/dist/lib/dom/index.cjs +2040 -1
- package/dist/lib/dom/index.js +1 -1
- package/dist/lib/dom/index.mjs +2020 -1
- package/dist/lib/dom/integration.cjs +71 -1
- package/dist/lib/dom/integration.d.ts.map +1 -1
- package/dist/lib/dom/integration.js +15 -6
- package/dist/lib/dom/integration.mjs +51 -1
- package/dist/lib/dom/island.cjs +790 -1
- package/dist/lib/dom/island.d.ts +1 -1
- package/dist/lib/dom/island.js +12 -12
- package/dist/lib/dom/island.mjs +769 -1
- package/dist/lib/dom/runtime.cjs +1432 -1
- package/dist/lib/dom/runtime.d.ts +71 -19
- package/dist/lib/dom/runtime.d.ts.map +1 -1
- package/dist/lib/dom/runtime.js +261 -100
- package/dist/lib/dom/runtime.mjs +1414 -1
- package/dist/lib/dom/server/fx-data.cjs +53 -1
- package/dist/lib/dom/server/fx-data.d.ts +5 -5
- package/dist/lib/dom/server/fx-data.js +6 -6
- package/dist/lib/dom/server/fx-data.mjs +32 -1
- package/dist/lib/dom/server/host.cjs +66 -1
- package/dist/lib/dom/server/host.d.ts +14 -2
- package/dist/lib/dom/server/host.d.ts.map +1 -1
- package/dist/lib/dom/server/host.js +38 -10
- package/dist/lib/dom/server/host.mjs +45 -1
- package/dist/lib/dom/server/index.cjs +759 -1
- package/dist/lib/dom/server/index.d.ts +1 -1
- package/dist/lib/dom/server/index.js +1 -1
- package/dist/lib/dom/server/index.mjs +743 -1
- package/dist/lib/dom/server/nodes.cjs +302 -1
- package/dist/lib/dom/server/nodes.d.ts +2 -2
- package/dist/lib/dom/server/nodes.d.ts.map +1 -1
- package/dist/lib/dom/server/nodes.js +4 -4
- package/dist/lib/dom/server/nodes.mjs +279 -1
- package/dist/lib/dom/server/parse-template.cjs +395 -1
- package/dist/lib/dom/server/parse-template.d.ts +1 -1
- package/dist/lib/dom/server/parse-template.js +4 -4
- package/dist/lib/dom/server/parse-template.mjs +372 -1
- package/dist/lib/dom/server/render.cjs +691 -1
- package/dist/lib/dom/server/render.d.ts +9 -1
- package/dist/lib/dom/server/render.d.ts.map +1 -1
- package/dist/lib/dom/server/render.js +25 -17
- package/dist/lib/dom/server/render.mjs +677 -1
- package/dist/lib/dom/server/request-context.cjs +110 -1
- package/dist/lib/dom/server/request-context.d.ts +29 -9
- package/dist/lib/dom/server/request-context.d.ts.map +1 -1
- package/dist/lib/dom/server/request-context.js +28 -8
- package/dist/lib/dom/server/request-context.mjs +89 -1
- package/dist/lib/dom/server/serialize.cjs +187 -1
- package/dist/lib/dom/server/serialize.js +3 -3
- package/dist/lib/dom/server/serialize.mjs +164 -1
- package/dist/lib/dom/server-renderer.cjs +760 -1
- package/dist/lib/dom/server-renderer.js +1 -1
- package/dist/lib/dom/server-renderer.mjs +745 -1
- package/dist/lib/dom/types.cjs +18 -1
- package/dist/lib/dom/utils.cjs +381 -1
- package/dist/lib/dom/utils.d.ts +1 -88
- package/dist/lib/dom/utils.d.ts.map +1 -1
- package/dist/lib/dom/utils.js +2 -99
- package/dist/lib/dom/utils.mjs +361 -1
- package/dist/lib/dom/versions.cjs +60 -1
- package/dist/lib/dom/versions.d.ts +3 -3
- package/dist/lib/dom/versions.d.ts.map +1 -1
- package/dist/lib/dom/versions.js +17 -5
- package/dist/lib/dom/versions.mjs +37 -1
- package/dist/lib/element/attributes.cjs +19 -1
- package/dist/lib/element/attributes.d.ts +7 -7
- package/dist/lib/element/attributes.js +1 -1
- package/dist/lib/element/attributes.mjs +1 -0
- package/dist/lib/element/index.cjs +19 -1
- package/dist/lib/element/index.mjs +1 -0
- package/dist/lib/element/types.cjs +18 -1
- package/dist/lib/element/types.d.ts +4 -5
- package/dist/lib/element/types.d.ts.map +1 -1
- package/dist/lib/element/types.js +0 -1
- package/dist/lib/flow/class-map.cjs +38 -1
- package/dist/lib/flow/class-map.d.ts +3 -3
- package/dist/lib/flow/class-map.js +3 -3
- package/dist/lib/flow/class-map.mjs +17 -1
- package/dist/lib/flow/client-only.cjs +57 -1
- package/dist/lib/flow/client-only.d.ts +4 -4
- package/dist/lib/flow/client-only.js +4 -4
- package/dist/lib/flow/client-only.mjs +36 -1
- package/dist/lib/flow/dynamic.cjs +53 -1
- package/dist/lib/flow/dynamic.d.ts +2 -2
- package/dist/lib/flow/dynamic.js +4 -4
- package/dist/lib/flow/dynamic.mjs +32 -1
- package/dist/lib/flow/error-boundary.cjs +43 -1
- package/dist/lib/flow/error-boundary.d.ts +2 -2
- package/dist/lib/flow/error-boundary.js +4 -4
- package/dist/lib/flow/error-boundary.mjs +22 -1
- package/dist/lib/flow/for.cjs +66 -1
- package/dist/lib/flow/for.d.ts +9 -9
- package/dist/lib/flow/for.d.ts.map +1 -1
- package/dist/lib/flow/for.js +2 -2
- package/dist/lib/flow/for.mjs +45 -1
- package/dist/lib/flow/index-flow.cjs +67 -1
- package/dist/lib/flow/index-flow.d.ts +5 -5
- package/dist/lib/flow/index-flow.js +4 -4
- package/dist/lib/flow/index-flow.mjs +46 -1
- package/dist/lib/flow/index.cjs +805 -1
- package/dist/lib/flow/index.mjs +792 -1
- package/dist/lib/flow/portal.cjs +538 -1
- package/dist/lib/flow/portal.mjs +519 -1
- package/dist/lib/flow/show.cjs +81 -1
- package/dist/lib/flow/show.d.ts +1 -1
- package/dist/lib/flow/show.d.ts.map +1 -1
- package/dist/lib/flow/show.js +12 -118
- package/dist/lib/flow/show.mjs +67 -1
- package/dist/lib/flow/style-map.cjs +43 -1
- package/dist/lib/flow/style-map.d.ts +3 -3
- package/dist/lib/flow/style-map.js +4 -4
- package/dist/lib/flow/style-map.mjs +22 -1
- package/dist/lib/flow/switch.cjs +91 -1
- package/dist/lib/flow/switch.d.ts +3 -3
- package/dist/lib/flow/switch.d.ts.map +1 -1
- package/dist/lib/flow/switch.js +7 -7
- package/dist/lib/flow/switch.mjs +70 -1
- package/dist/lib/flow/utils.cjs +44 -1
- package/dist/lib/flow/utils.d.ts +1 -1
- package/dist/lib/flow/utils.js +1 -1
- package/dist/lib/flow/utils.mjs +23 -1
- package/dist/lib/html.cjs +32 -1
- package/dist/lib/html.d.ts +6 -6
- package/dist/lib/html.js +5 -5
- package/dist/lib/html.mjs +11 -1
- package/dist/lib/index.cjs +3104 -1
- package/dist/lib/index.d.ts +0 -1
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +2 -3
- package/dist/lib/index.mjs +3097 -1
- package/dist/lib/shared/types.cjs +18 -1
- package/dist/lib/shared/types.d.ts +8 -8
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/version.generated.cjs +26 -1
- package/dist/version.generated.d.ts +1 -1
- package/dist/version.generated.js +2 -2
- package/dist/version.generated.mjs +5 -1
- package/package.json +7 -6
- package/dist/lib/jsx/control-flow/flow.cjs +0 -1
- package/dist/lib/jsx/control-flow/flow.d.ts +0 -2
- package/dist/lib/jsx/control-flow/flow.d.ts.map +0 -1
- package/dist/lib/jsx/control-flow/flow.js +0 -627
- package/dist/lib/jsx/control-flow/flow.mjs +0 -0
- package/dist/lib/jsx/control-flow/for-flow.cjs +0 -1
- package/dist/lib/jsx/control-flow/for-flow.d.ts +0 -2
- package/dist/lib/jsx/control-flow/for-flow.d.ts.map +0 -1
- package/dist/lib/jsx/control-flow/for-flow.js +0 -1
- package/dist/lib/jsx/control-flow/for-flow.mjs +0 -0
|
@@ -1 +1,71 @@
|
|
|
1
|
-
|
|
1
|
+
/*! @fluixi/dom v1.0.0-alpha.84 | (c) 2026 Ibrahima Touré and Fluixi contributors | MIT */
|
|
2
|
+
"use strict";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/lib/dom/integration.ts
|
|
22
|
+
var integration_exports = {};
|
|
23
|
+
__export(integration_exports, {
|
|
24
|
+
createComponent: () => createComponent,
|
|
25
|
+
initializeIntegration: () => initializeIntegration,
|
|
26
|
+
intergartionInitialized: () => intergartionInitialized,
|
|
27
|
+
isIntegrationInitialized: () => isIntegrationInitialized,
|
|
28
|
+
registerCreateComponent: () => registerCreateComponent,
|
|
29
|
+
resetIntegration: () => resetIntegration
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(integration_exports);
|
|
32
|
+
var import_reactive = require("@fluixi/reactive");
|
|
33
|
+
|
|
34
|
+
// src/lib/component/modifiers.ts
|
|
35
|
+
function asComponent(value) {
|
|
36
|
+
if (typeof value !== "function") return value;
|
|
37
|
+
Object.defineProperty(value, /* @__PURE__ */ Symbol.for("fluixi-component"), { value: true, enumerable: true });
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// src/lib/dom/integration.ts
|
|
42
|
+
var _slotKey = "__fx_dom_create_component__";
|
|
43
|
+
var _slot = globalThis[_slotKey] ??= { fn: null };
|
|
44
|
+
function registerCreateComponent(createComponent2) {
|
|
45
|
+
_slot.fn = createComponent2;
|
|
46
|
+
}
|
|
47
|
+
function initializeIntegration(options = {}) {
|
|
48
|
+
const cc = options.signalSystem?.createComponent;
|
|
49
|
+
if (cc) _slot.fn = cc;
|
|
50
|
+
}
|
|
51
|
+
function createComponent(Comp, props) {
|
|
52
|
+
if (_slot.fn) return _slot.fn(Comp, props);
|
|
53
|
+
if (props) (0, import_reactive.reportReactiveProps)(props);
|
|
54
|
+
const component = typeof Comp === "function" ? (0, import_reactive.untrack)(() => Comp(props)) : Comp;
|
|
55
|
+
const nameable = component != null && (typeof component === "function" || typeof component === "object");
|
|
56
|
+
if (nameable) {
|
|
57
|
+
try {
|
|
58
|
+
component["$name"] = Comp?.name;
|
|
59
|
+
} catch {
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
if (nameable && !(0, import_reactive.isSignal)(component)) {
|
|
63
|
+
return asComponent(component);
|
|
64
|
+
}
|
|
65
|
+
return component;
|
|
66
|
+
}
|
|
67
|
+
var intergartionInitialized = () => _slot.fn !== null;
|
|
68
|
+
var isIntegrationInitialized = () => _slot.fn !== null;
|
|
69
|
+
function resetIntegration() {
|
|
70
|
+
_slot.fn = null;
|
|
71
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration.d.ts","sourceRoot":"","sources":["../../../src/lib/dom/integration.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAE5D,KAAK,iBAAiB,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,EAAE,KAAK,CAAC,EAAE,GAAG,KAAK,GAAG,CAAC;AAO7D,MAAM,WAAW,kBAAkB;IAEjC,YAAY,CAAC,EAAE;QAAE,eAAe,CAAC,EAAE,iBAAiB,CAAA;KAAE,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7E,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACnC;AAED,wBAAgB,uBAAuB,CAAC,eAAe,EAAE,iBAAiB,GAAG,IAAI,CAEhF;AAGD,wBAAgB,qBAAqB,CAAC,OAAO,GAAE,kBAAuB,GAAG,IAAI,CAG5E;AAED,wBAAgB,eAAe,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,GAAG,KAAK,GAAG,EAAE,CAAC,GAAG,GAAG,EACrE,IAAI,EAAE,CAAC,EACP,KAAK,CAAC,EAAE,CAAC,GAAG,SAAS,GACpB,yBAAyB,CAAC,CAAC,EAAE,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"integration.d.ts","sourceRoot":"","sources":["../../../src/lib/dom/integration.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAE5D,KAAK,iBAAiB,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,EAAE,KAAK,CAAC,EAAE,GAAG,KAAK,GAAG,CAAC;AAO7D,MAAM,WAAW,kBAAkB;IAEjC,YAAY,CAAC,EAAE;QAAE,eAAe,CAAC,EAAE,iBAAiB,CAAA;KAAE,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7E,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACnC;AAED,wBAAgB,uBAAuB,CAAC,eAAe,EAAE,iBAAiB,GAAG,IAAI,CAEhF;AAGD,wBAAgB,qBAAqB,CAAC,OAAO,GAAE,kBAAuB,GAAG,IAAI,CAG5E;AAED,wBAAgB,eAAe,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,GAAG,KAAK,GAAG,EAAE,CAAC,GAAG,GAAG,EACrE,IAAI,EAAE,CAAC,EACP,KAAK,CAAC,EAAE,CAAC,GAAG,SAAS,GACpB,yBAAyB,CAAC,CAAC,EAAE,CAAC,CAAC,CA8BjC;AAED,eAAO,MAAM,uBAAuB,QAAO,OAA4B,CAAC;AACxE,eAAO,MAAM,wBAAwB,QAAO,OAA4B,CAAC;AAEzE,wBAAgB,gBAAgB,IAAI,IAAI,CAEvC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// createComponent lives here. It used to live in core and be registered through the
|
|
2
2
|
// slot below, which left the runtime with a fallback that re-invoked a component on
|
|
3
|
-
// every read
|
|
3
|
+
// every read, a list rebuilt every node whenever it changed, and only for consumers
|
|
4
4
|
// who had not loaded core. The slot stays so a host can still override it.
|
|
5
|
-
import { untrack, isSignal } from '@fluixi/reactive';
|
|
5
|
+
import { untrack, isSignal, reportReactiveProps } from '@fluixi/reactive';
|
|
6
6
|
import { asComponent } from '../component/modifiers.js';
|
|
7
7
|
// On globalThis so every bundled copy shares the slot.
|
|
8
8
|
const _slotKey = '__fx_dom_create_component__';
|
|
@@ -10,7 +10,7 @@ const _slot = (globalThis[_slotKey] ??= { fn: null });
|
|
|
10
10
|
export function registerCreateComponent(createComponent) {
|
|
11
11
|
_slot.fn = createComponent;
|
|
12
12
|
}
|
|
13
|
-
// Old init entry
|
|
13
|
+
// Old init entry, now just picks createComponent off the passed system.
|
|
14
14
|
export function initializeIntegration(options = {}) {
|
|
15
15
|
const cc = options.signalSystem?.createComponent;
|
|
16
16
|
if (cc)
|
|
@@ -19,20 +19,29 @@ export function initializeIntegration(options = {}) {
|
|
|
19
19
|
export function createComponent(Comp, props) {
|
|
20
20
|
if (_slot.fn)
|
|
21
21
|
return _slot.fn(Comp, props);
|
|
22
|
+
// Before the call, so the computation this is created inside is still the running one.
|
|
23
|
+
// A property read when nobody is watching.
|
|
24
|
+
if (props)
|
|
25
|
+
reportReactiveProps(props);
|
|
22
26
|
// Untracked: a component reading a signal while it is created must not make its
|
|
23
27
|
// caller depend on that signal, or the caller re-runs and rebuilds the subtree.
|
|
24
28
|
const component = typeof Comp === 'function' ? untrack(() => Comp(props)) : Comp;
|
|
25
29
|
// Primitives cannot carry properties, and a signal must not be stamped as a
|
|
26
30
|
// component or the runtime caches it as a static thunk.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
31
|
+
const nameable = component != null && (typeof component === 'function' || typeof component === 'object');
|
|
32
|
+
if (nameable) {
|
|
33
|
+
// The name goes on whatever came back, reactive or not. Only `asComponent` has to skip a
|
|
34
|
+
// signal, the runtime would cache it as a static thunk. Nothing reads `$name` but a
|
|
35
|
+
// watcher, and skipping it there hid every component that returns another one: an App
|
|
36
|
+
// whose whole body is `<Router/>` was named nowhere.
|
|
30
37
|
try {
|
|
31
38
|
component['$name'] = Comp?.name;
|
|
32
39
|
}
|
|
33
40
|
catch {
|
|
34
41
|
/* frozen or exotic object */
|
|
35
42
|
}
|
|
43
|
+
}
|
|
44
|
+
if (nameable && !isSignal(component)) {
|
|
36
45
|
return asComponent(component);
|
|
37
46
|
}
|
|
38
47
|
return component;
|
|
@@ -1 +1,51 @@
|
|
|
1
|
-
|
|
1
|
+
/*! @fluixi/dom v1.0.0-alpha.84 | (c) 2026 Ibrahima Touré and Fluixi contributors | MIT */
|
|
2
|
+
|
|
3
|
+
// src/lib/dom/integration.ts
|
|
4
|
+
import { untrack, isSignal, reportReactiveProps } from "@fluixi/reactive";
|
|
5
|
+
|
|
6
|
+
// src/lib/component/modifiers.ts
|
|
7
|
+
function asComponent(value) {
|
|
8
|
+
if (typeof value !== "function") return value;
|
|
9
|
+
Object.defineProperty(value, /* @__PURE__ */ Symbol.for("fluixi-component"), { value: true, enumerable: true });
|
|
10
|
+
return value;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// src/lib/dom/integration.ts
|
|
14
|
+
var _slotKey = "__fx_dom_create_component__";
|
|
15
|
+
var _slot = globalThis[_slotKey] ??= { fn: null };
|
|
16
|
+
function registerCreateComponent(createComponent2) {
|
|
17
|
+
_slot.fn = createComponent2;
|
|
18
|
+
}
|
|
19
|
+
function initializeIntegration(options = {}) {
|
|
20
|
+
const cc = options.signalSystem?.createComponent;
|
|
21
|
+
if (cc) _slot.fn = cc;
|
|
22
|
+
}
|
|
23
|
+
function createComponent(Comp, props) {
|
|
24
|
+
if (_slot.fn) return _slot.fn(Comp, props);
|
|
25
|
+
if (props) reportReactiveProps(props);
|
|
26
|
+
const component = typeof Comp === "function" ? untrack(() => Comp(props)) : Comp;
|
|
27
|
+
const nameable = component != null && (typeof component === "function" || typeof component === "object");
|
|
28
|
+
if (nameable) {
|
|
29
|
+
try {
|
|
30
|
+
component["$name"] = Comp?.name;
|
|
31
|
+
} catch {
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
if (nameable && !isSignal(component)) {
|
|
35
|
+
return asComponent(component);
|
|
36
|
+
}
|
|
37
|
+
return component;
|
|
38
|
+
}
|
|
39
|
+
var intergartionInitialized = () => _slot.fn !== null;
|
|
40
|
+
var isIntegrationInitialized = () => _slot.fn !== null;
|
|
41
|
+
function resetIntegration() {
|
|
42
|
+
_slot.fn = null;
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
createComponent,
|
|
46
|
+
initializeIntegration,
|
|
47
|
+
intergartionInitialized,
|
|
48
|
+
isIntegrationInitialized,
|
|
49
|
+
registerCreateComponent,
|
|
50
|
+
resetIntegration
|
|
51
|
+
};
|