@db-ui/react-elements-enterprise
Advanced tools
Comparing version
@@ -13,3 +13,3 @@ var __rest = (this && this.__rest) || function (s, e) { | ||
import React, { createElement } from 'react'; | ||
import { attachProps, camelToDashCase, createForwardRef, dashToPascalCase, isCoveredByReact, mergeRefs, } from './utils'; | ||
import { attachProps, camelToDashCase, createForwardRef, dashToPascalCase, isCoveredByReact, mergeRefs } from './utils'; | ||
export const createReactComponent = (tagName, ReactComponentContext, manipulatePropsFunction, defineCustomElement) => { | ||
@@ -16,0 +16,0 @@ if (defineCustomElement !== undefined) { |
@@ -23,3 +23,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
import ReactDOM from 'react-dom'; | ||
import { attachProps, dashToPascalCase, defineCustomElement, setRef, } from './utils'; | ||
import { attachProps, dashToPascalCase, defineCustomElement, setRef } from './utils'; | ||
export const createOverlayComponent = (tagName, controller, customElement) => { | ||
@@ -26,0 +26,0 @@ defineCustomElement(tagName, customElement); |
@@ -13,3 +13,3 @@ import React from 'react'; | ||
return (value) => { | ||
refs.forEach(ref => { | ||
refs.forEach((ref) => { | ||
setRef(ref, value); | ||
@@ -27,5 +27,3 @@ }); | ||
export const defineCustomElement = (tagName, customElement) => { | ||
if (customElement !== undefined && | ||
typeof customElements !== 'undefined' && | ||
!customElements.get(tagName)) { | ||
if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) { | ||
customElements.define(tagName, customElement); | ||
@@ -32,0 +30,0 @@ } |
{ | ||
"name": "@db-ui/react-elements-enterprise", | ||
"sideEffects": false, | ||
"version": "0.18.1", | ||
"version": "0.18.2", | ||
"description": "React specific wrapper for @db-ui/elements-enterprise", | ||
@@ -39,3 +39,3 @@ "license": "Apache-2.0", | ||
"rimraf": "3.0.2", | ||
"rollup": "3.9.1", | ||
"rollup": "3.10.0", | ||
"rollup-plugin-node-resolve": "5.2.0" | ||
@@ -54,4 +54,4 @@ }, | ||
"dependencies": { | ||
"@db-ui/elements-enterprise": "0.18.1" | ||
"@db-ui/elements-enterprise": "0.18.2" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
76491
-0.02%723
-0.28%+ Added
- Removed