@ateam-ai-mobile/plugin-runtime 0.1.15 → 0.1.17

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.
@@ -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-P43IKNZE.mjs.map
3258
+ //# sourceMappingURL=chunk-56Z2X5ZB.mjs.map