@luzmo/embed 6.2.1-beta.0 → 6.2.2

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.
Files changed (37) hide show
  1. package/.prettierignore +4 -0
  2. package/CHANGELOG.md +0 -6
  3. package/esbuild.config.cjs +13 -0
  4. package/eslint.config.cjs +8 -0
  5. package/jest.config.ts +11 -0
  6. package/package.json +1 -1
  7. package/project.json +39 -0
  8. package/src/index.ts +42 -0
  9. package/src/lib/dashboard-component/dashboard-base.ts +828 -0
  10. package/src/lib/dashboard-component/dashboard-component.spec.ts +27 -0
  11. package/src/lib/dashboard-component/dashboard-component.ts +12 -0
  12. package/src/lib/dashboard-component/dashboard-styles.ts +117 -0
  13. package/src/lib/helper/event-bus-handler.ts +195 -0
  14. package/src/lib/helper/json-schema-utils.ts +129 -0
  15. package/src/lib/luzmo-iq-components/luzmo-iq-answer.ts +106 -0
  16. package/src/lib/luzmo-iq-components/luzmo-iq-chat.ts +106 -0
  17. package/src/lib/luzmo-service.ts +7 -0
  18. package/src/lib/viz-item/viz-item-component.ts +9 -0
  19. package/src/lib/viz-item/viz-item.base.ts +227 -0
  20. package/src/vite-env.d.ts +1 -0
  21. package/tsconfig.json +27 -0
  22. package/tsconfig.lib.json +10 -0
  23. package/tsconfig.spec.json +9 -0
  24. package/index.cjs +0 -1581
  25. package/index.js +0 -1550
  26. package/luzmo-embed.min.js +0 -3632
  27. package/src/index.d.ts +0 -8
  28. package/src/lib/dashboard-component/dashboard-base.d.ts +0 -98
  29. package/src/lib/dashboard-component/dashboard-component.d.ts +0 -8
  30. package/src/lib/dashboard-component/dashboard-styles.d.ts +0 -1
  31. package/src/lib/helper/event-bus-handler.d.ts +0 -1
  32. package/src/lib/helper/json-schema-utils.d.ts +0 -64
  33. package/src/lib/luzmo-iq-components/luzmo-iq-answer.d.ts +0 -22
  34. package/src/lib/luzmo-iq-components/luzmo-iq-chat.d.ts +0 -23
  35. package/src/lib/luzmo-service.d.ts +0 -6
  36. package/src/lib/viz-item/viz-item-component.d.ts +0 -4
  37. package/src/lib/viz-item/viz-item.base.d.ts +0 -71
@@ -0,0 +1,4 @@
1
+ # Add files here to ignore them from prettier formatting
2
+
3
+ # Ignore all ts files as we use eslint formatting
4
+ **/*.ts
package/CHANGELOG.md CHANGED
@@ -1,11 +1,5 @@
1
1
  All notable changes to this project will be documented in this file.
2
2
 
3
- ## [6.2.2] - 2024-12-10
4
-
5
- ### Updates
6
-
7
- - Enable Luzmo IQ custom chat widget button content with WebComponents slot
8
-
9
3
  ## [6.2.1] - 2024-11-22
10
4
 
11
5
  ### Updates
@@ -0,0 +1,13 @@
1
+ const esbuild = require("esbuild");
2
+ const { umdWrapper } = require("esbuild-plugin-umd-wrapper");
3
+
4
+ esbuild
5
+ .build({
6
+ entryPoints: ["libs/embed-libs/embed/src/index.ts"],
7
+ outfile: "dist/libs/embed-libs/embed/luzmo-embed.min.js",
8
+ format: "umd", // or "cjs"
9
+ bundle: true,
10
+ plugins: [umdWrapper()],
11
+ })
12
+ .then((result) => console.log(result))
13
+ .catch(() => process.exit(1));
@@ -0,0 +1,8 @@
1
+ const nx = require('@nx/eslint-plugin');
2
+ const baseConfig = require('../../../eslint.config.js');
3
+ const eslintUtilsConfig = require('../../../eslint-utils-config');
4
+
5
+ module.exports = [
6
+ ...baseConfig,
7
+ eslintUtilsConfig.methods.getNoRestrictedImportsConfig(['@luzmo/embed'])
8
+ ];
package/jest.config.ts ADDED
@@ -0,0 +1,11 @@
1
+ /* eslint-disable */
2
+ export default {
3
+ displayName: 'embed',
4
+ preset: '../../../jest.preset.js',
5
+ testEnvironment: 'node',
6
+ transform: {
7
+ '^.+\\.[tj]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }]
8
+ },
9
+ moduleFileExtensions: ['ts', 'js', 'html'],
10
+ coverageDirectory: '../../../coverage/libs/embed-libs/embed'
11
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luzmo/embed",
3
- "version": "6.2.1-beta.0",
3
+ "version": "6.2.2",
4
4
  "dependencies": {
5
5
  "lit": "3.1.2",
6
6
  "@luzmo/shared-embed": "5.2.1",
package/project.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "embed-libs-embed",
3
+ "$schema": "../../../node_modules/nx/schemas/project-schema.json",
4
+ "sourceRoot": "libs/embed-libs/embed/src",
5
+ "projectType": "library",
6
+ "tags": [],
7
+ "targets": {
8
+ "build": {
9
+ "executor": "@nx/esbuild:esbuild",
10
+ "outputs": ["{options.outputPath}"],
11
+ "options": {
12
+ "outputPath": "dist/libs/embed-libs/embed",
13
+ "main": "libs/embed-libs/embed/src/index.ts",
14
+ "tsConfig": "libs/embed-libs/embed/tsconfig.lib.json",
15
+ "assets": ["libs/embed-libs/embed/*.md"],
16
+ "generatePackageJson": false,
17
+ "format": ["esm", "cjs"],
18
+ "external": ["lit"]
19
+ }
20
+ },
21
+ "build-min": {
22
+ "executor": "nx:run-commands",
23
+ "options": {
24
+ "commands": ["node libs/embed-libs/embed/esbuild.config.cjs"]
25
+ }
26
+ },
27
+ "test": {
28
+ "options": {
29
+ "passWithNoTests": true
30
+ },
31
+ "configurations": {
32
+ "ci": {
33
+ "ci": true,
34
+ "coverage": true
35
+ }
36
+ }
37
+ }
38
+ }
39
+ }
package/src/index.ts ADDED
@@ -0,0 +1,42 @@
1
+ export type * from '@luzmo/dashboard-contents-types';
2
+ export type {
3
+ // region Events
4
+ LoadEvent,
5
+ ChangedFiltersEvent,
6
+ CustomEvent,
7
+ ItemsRenderedEvent,
8
+ ExportedEvent,
9
+ DashboardActionEvent,
10
+ // endregion
11
+
12
+ // region Filters
13
+ SelectedDataInput,
14
+ // endregion
15
+
16
+ // region Common
17
+ ExportType,
18
+ ItemData,
19
+ ExportDashboard,
20
+ AccessibleDashboard,
21
+ SetEditMode,
22
+ SetSelectedData,
23
+ // endregion
24
+
25
+ // region VizItemPostMessage
26
+ VizItemPostMessageLoadEvent,
27
+ VizItemPostMessageRenderedEvent,
28
+ VizItemPostMessageExportedEvent,
29
+ VizItemPostMessageChangedFiltersEvent,
30
+ VizItemPostMessageCustomEventEvent
31
+ // endregion
32
+ } from '@luzmo/shared-embed';
33
+
34
+ export { selectedDataUtils } from '@luzmo/shared-embed';
35
+
36
+ export * from './lib/dashboard-component/dashboard-component';
37
+ export * from './lib/viz-item/viz-item-component';
38
+
39
+ export * from './lib/luzmo-iq-components/luzmo-iq-chat';
40
+ export * from './lib/luzmo-iq-components/luzmo-iq-answer';
41
+
42
+ export * from './lib/helper/json-schema-utils';