@luzmo/react-embed
Version:
This is a React library for embedding [Luzmo](https://luzmo.com) dashboards in your React application.
137 lines (130 loc) • 3.92 kB
JavaScript
// libs/embed-libs/react-embed/src/index.ts
export * from "@luzmo/embed";
// libs/embed-libs/react-embed/src/lib/dashboard.tsx
import { createComponent } from "@lit/react";
import { LuzmoEmbedDashboard } from "@luzmo/embed";
import * as React from "react";
// libs/embed-libs/react-embed/package.json
var package_default = {
name: "@luzmo/react-embed",
version: "6.1.1",
dependencies: {
"@lit/react": "1.0.8",
"@luzmo/embed": "6.6.0"
},
peerDependencies: {
react: "^16 || ^17 || ^18 || ^19",
"react-dom": "^16 || ^17 || ^18 || ^19"
},
keywords: [
"react",
"react-luzmo",
"luzmo",
"front-end",
"development",
"dashboard",
"visualization",
"chart",
"cumul.io",
"component"
],
module: "./index.js",
types: "./src/index.d.ts",
license: "SEE LICENSE IN LICENSE"
};
// libs/embed-libs/react-embed/src/lib/dashboard.tsx
import { jsx } from "react/jsx-runtime";
var BaseLuzmoDashboardComponent = createComponent({
react: React,
tagName: "luzmo-embed-dashboard",
elementClass: LuzmoEmbedDashboard,
events: {
itemsRendered: "itemsRendered",
load: "load",
changedFilters: "changedFilters",
customEvent: "customEvent",
exported: "exported",
dashboardAction: "dashboardAction"
}
});
var LuzmoDashboardComponent = React.forwardRef((props, ref) => /* @__PURE__ */ jsx(
BaseLuzmoDashboardComponent,
{
ref,
libVersion: props.libVersion ?? package_default.version + "-react-luzmo",
...props
}
));
LuzmoDashboardComponent.displayName = "LuzmoDashboardComponent";
// libs/embed-libs/react-embed/src/lib/viz-item.tsx
import * as React2 from "react";
import { createComponent as createComponent2 } from "@lit/react";
import { LuzmoEmbedVizItem } from "@luzmo/embed";
import { jsx as jsx2 } from "react/jsx-runtime";
var BaseLuzmoVizItemComponent = createComponent2({
react: React2,
tagName: "luzmo-embed-viz-item",
elementClass: LuzmoEmbedVizItem,
events: {
load: "load",
rendered: "rendered",
exported: "exported",
changedFilters: "changedFilters",
customEvent: "customEvent"
}
});
var LuzmoVizItemComponent = React2.forwardRef((props, ref) => /* @__PURE__ */ jsx2(
BaseLuzmoVizItemComponent,
{
ref,
libVersion: props.libVersion ?? package_default.version + "-react-luzmo",
...props
}
));
LuzmoVizItemComponent.displayName = "LuzmoVizItemComponent";
// libs/embed-libs/react-embed/src/lib/iq-chat.tsx
import * as React3 from "react";
import { createComponent as createComponent3 } from "@lit/react";
import {
LuzmoIQEmbedChatComponent
} from "@luzmo/embed";
import { jsx as jsx3 } from "react/jsx-runtime";
var BaseLuzmoIQChatComponent = createComponent3({
react: React3,
tagName: "luzmo-iq-embed-chat",
elementClass: LuzmoIQEmbedChatComponent
});
var LuzmoIQChatComponent = React3.forwardRef((props, ref) => /* @__PURE__ */ jsx3(
BaseLuzmoIQChatComponent,
{
ref,
libVersion: props.libVersion ?? package_default.version + "-react-luzmo",
...props
}
));
LuzmoIQChatComponent.displayName = "LuzmoIQChatComponent";
// libs/embed-libs/react-embed/src/lib/iq-answer.tsx
import { createComponent as createComponent4 } from "@lit/react";
import { LuzmoIQEmbedAnswerComponent } from "@luzmo/embed";
import * as React4 from "react";
import { jsx as jsx4 } from "react/jsx-runtime";
var BaseLuzmoIQAnswerComponent = createComponent4({
react: React4,
tagName: "luzmo-iq-embed-answer",
elementClass: LuzmoIQEmbedAnswerComponent
});
var LuzmoIQAnswerComponent = React4.forwardRef((props, ref) => /* @__PURE__ */ jsx4(
BaseLuzmoIQAnswerComponent,
{
ref,
libVersion: props.libVersion ?? package_default.version + "-react-luzmo",
...props
}
));
LuzmoIQAnswerComponent.displayName = "LuzmoIQAnswerComponent";
export {
LuzmoDashboardComponent,
LuzmoIQAnswerComponent,
LuzmoIQChatComponent,
LuzmoVizItemComponent
};