New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ionic/react

Package Overview
Dependencies
Maintainers
13
Versions
2914
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ionic/react - npm Package Compare versions

Comparing version 0.0.2-2 to 0.0.2-3

3

dist/react-framework-delegate.d.ts
import { FrameworkDelegate } from '@ionic/core';
export declare function attachViewToDom(parentElement: HTMLElement, reactComponent: any, propsOrData: any, classesToAdd: string[]): Promise<{
element: HTMLDivElement;
element: HTMLDivElement | HTMLIonPageElement;
reactElement: any;

@@ -10,1 +10,2 @@ instance: any;

export { Delegate };
export declare function shouldWrapInIonPage(element: HTMLElement): boolean;
import React from 'react';
import ReactDOM from 'react-dom';
import { isElementModal, isElementNav } from './utils/helpers';
export function attachViewToDom(parentElement, reactComponent, propsOrData, classesToAdd) {
const wrappingDiv = document.createElement('div');
const wrappingDiv = shouldWrapInIonPage(parentElement) ? document.createElement('ion-page') : document.createElement('div');
if (classesToAdd) {

@@ -30,2 +31,5 @@ for (const clazz of classesToAdd) {

export { Delegate };
export function shouldWrapInIonPage(element) {
return isElementModal(element) || isElementNav(element);
}
//# sourceMappingURL=react-framework-delegate.js.map
export declare function getOrAppendElement(tagName: string): Element;
export declare function isElementNav(element: HTMLElement): boolean;
export declare function isElementModal(element: HTMLElement): boolean;

@@ -10,2 +10,8 @@ export function getOrAppendElement(tagName) {

}
export function isElementNav(element) {
return element.tagName.toUpperCase() === 'ION-NAV';
}
export function isElementModal(element) {
return element.classList.contains('modal-wrapper');
}
//# sourceMappingURL=helpers.js.map
{
"name": "@ionic/react",
"version": "0.0.2-2",
"version": "0.0.2-3",
"description": "React specific wrapper for @ionic/core",

@@ -36,4 +36,4 @@ "keywords": [

"@ionic/core": "next",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react": "latest",
"react-dom": "latest",
"typescript": "~2.5.2"

@@ -40,0 +40,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc