@ateam-ai-mobile/plugin-runtime 0.1.14 → 0.1.16
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/{chunk-P43IKNZE.mjs → chunk-56Z2X5ZB.mjs} +9 -1
- package/dist/chunk-56Z2X5ZB.mjs.map +1 -0
- package/dist/index.d.mts +68 -53
- package/dist/index.d.ts +68 -53
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/dist/{loader-M6CS6D22.mjs → loader-3PQLHEEW.mjs} +2 -2
- package/package.json +2 -2
- package/src/api/plugins.ts +4 -0
- package/src/host.ts +22 -0
- package/src/index.ts +1 -0
- package/dist/chunk-P43IKNZE.mjs.map +0 -1
- /package/dist/{loader-M6CS6D22.mjs.map → loader-3PQLHEEW.mjs.map} +0 -0
|
@@ -672,6 +672,13 @@ var nativePluginRegistry = {
|
|
|
672
672
|
return entry;
|
|
673
673
|
}
|
|
674
674
|
};
|
|
675
|
+
function rendersNative(pluginId, manifest) {
|
|
676
|
+
const render = manifest?.render;
|
|
677
|
+
const rnComponent = render?.reactNative?.component || render?.component || "";
|
|
678
|
+
const hasBundleUrl = !!(render?.bundleUrl || render?.reactNative?.bundleUrl);
|
|
679
|
+
const isNativeMode = render?.mode === "adaptive" || render?.mode === "react-native";
|
|
680
|
+
return nativePluginRegistry.has(rnComponent) || nativePluginRegistry.has(pluginId) || hasBundleUrl || !!rnComponent && isNativeMode;
|
|
681
|
+
}
|
|
675
682
|
var _bundleModules = /* @__PURE__ */ new Map();
|
|
676
683
|
function registerBundleModules(modules) {
|
|
677
684
|
for (const [name, mod] of Object.entries(modules)) {
|
|
@@ -3199,6 +3206,7 @@ export {
|
|
|
3199
3206
|
registerNativePlugin,
|
|
3200
3207
|
unregisterNativePlugin,
|
|
3201
3208
|
nativePluginRegistry,
|
|
3209
|
+
rendersNative,
|
|
3202
3210
|
registerBundleModules,
|
|
3203
3211
|
CameraPreview,
|
|
3204
3212
|
setPluginThemeColors,
|
|
@@ -3247,4 +3255,4 @@ export {
|
|
|
3247
3255
|
ensureDeviceToolsLoaded,
|
|
3248
3256
|
resetDeviceToolLoader
|
|
3249
3257
|
};
|
|
3250
|
-
//# sourceMappingURL=chunk-
|
|
3258
|
+
//# sourceMappingURL=chunk-56Z2X5ZB.mjs.map
|