@databrainhq/plugin 0.11.3 → 0.11.5
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/index.es.js +7789 -7798
- package/dist/index.umd.js +100 -101
- package/dist/style.css +1 -0
- package/dist/webcomponents.d.ts +16 -1
- package/dist/webcomponents.es.js +10911 -10919
- package/dist/webcomponents.umd.js +97 -97
- package/package.json +7 -7
- package/dist/containers/web-component.d.ts +0 -16
- package/dist/contexts/WebComponentContext.d.ts +0 -8
- package/dist/contexts/index.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@databrainhq/plugin",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.5",
|
|
4
4
|
"description": "Databrain app ui plugin.",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": "databrainhq/plugin",
|
|
8
|
-
"source": "
|
|
9
|
-
"main": "./dist/
|
|
10
|
-
"module": "./dist/
|
|
11
|
-
"types": "./dist/
|
|
8
|
+
"source": "index.ts",
|
|
9
|
+
"main": "./dist/index.umd.js",
|
|
10
|
+
"module": "./dist/index.es.js",
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
14
|
"import": "./dist/index.es.js",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"start:repl": "vite --host 0.0.0.0",
|
|
26
26
|
"serve": "vite --port 3005",
|
|
27
27
|
"build:css": "tailwindcss build -i src/index.css -o dist/index.css",
|
|
28
|
-
"build:react": "cross-env ENTRY_NAME=react vite build",
|
|
29
|
-
"build:web": "cross-env ENTRY_NAME=web vite build",
|
|
28
|
+
"build:react": "cross-env ENTRY_NAME=react tsc && vite build",
|
|
29
|
+
"build:web": "cross-env ENTRY_NAME=web vite build --config vite.config.web.ts",
|
|
30
30
|
"build": "npm run build:web && npm run build:react",
|
|
31
31
|
"husky": "husky install",
|
|
32
32
|
"predeploy": "cd example && npm install && npm run build",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { DashboardProps } from './Dashboard';
|
|
3
|
-
import { MetricProps } from './Metric';
|
|
4
|
-
declare global {
|
|
5
|
-
namespace JSX {
|
|
6
|
-
interface CustomElements extends IntrinsicElements {
|
|
7
|
-
Tag: any;
|
|
8
|
-
'dbn-dashboard': DashboardProps;
|
|
9
|
-
'dbn-metric': MetricProps;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
export interface DbnElements extends HTMLElement {
|
|
13
|
-
'dbn-dashboard': DashboardProps;
|
|
14
|
-
'dbn-metric': MetricProps;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface WebComponentContextType {
|
|
3
|
-
isWebComponent: boolean;
|
|
4
|
-
setIsWebComponent: React.Dispatch<React.SetStateAction<boolean>>;
|
|
5
|
-
}
|
|
6
|
-
export declare const useWebComponentContext: () => WebComponentContextType;
|
|
7
|
-
export declare const WebComponentProvider: ({ children }: React.PropsWithChildren) => JSX.Element;
|
|
8
|
-
export {};
|
package/dist/contexts/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './WebComponentContext';
|