@memberjunction/ng-artifacts 5.23.0 → 5.25.0

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/dist/lib/artifacts.module.d.ts +16 -11
  2. package/dist/lib/artifacts.module.d.ts.map +1 -1
  3. package/dist/lib/artifacts.module.js +40 -8
  4. package/dist/lib/artifacts.module.js.map +1 -1
  5. package/dist/lib/components/artifact-viewer-panel.component.d.ts +3 -0
  6. package/dist/lib/components/artifact-viewer-panel.component.d.ts.map +1 -1
  7. package/dist/lib/components/artifact-viewer-panel.component.js +13 -2
  8. package/dist/lib/components/artifact-viewer-panel.component.js.map +1 -1
  9. package/dist/lib/components/base-artifact-viewer.component.d.ts +6 -0
  10. package/dist/lib/components/base-artifact-viewer.component.d.ts.map +1 -1
  11. package/dist/lib/components/base-artifact-viewer.component.js +15 -0
  12. package/dist/lib/components/base-artifact-viewer.component.js.map +1 -1
  13. package/dist/lib/components/file-artifact-toolbar.component.d.ts +42 -0
  14. package/dist/lib/components/file-artifact-toolbar.component.d.ts.map +1 -0
  15. package/dist/lib/components/file-artifact-toolbar.component.js +249 -0
  16. package/dist/lib/components/file-artifact-toolbar.component.js.map +1 -0
  17. package/dist/lib/components/plugins/docx-artifact-viewer.component.d.ts +40 -0
  18. package/dist/lib/components/plugins/docx-artifact-viewer.component.d.ts.map +1 -0
  19. package/dist/lib/components/plugins/docx-artifact-viewer.component.js +223 -0
  20. package/dist/lib/components/plugins/docx-artifact-viewer.component.js.map +1 -0
  21. package/dist/lib/components/plugins/pdf-artifact-viewer.component.d.ts +68 -0
  22. package/dist/lib/components/plugins/pdf-artifact-viewer.component.d.ts.map +1 -0
  23. package/dist/lib/components/plugins/pdf-artifact-viewer.component.js +340 -0
  24. package/dist/lib/components/plugins/pdf-artifact-viewer.component.js.map +1 -0
  25. package/dist/lib/components/plugins/xlsx-artifact-viewer.component.d.ts +44 -0
  26. package/dist/lib/components/plugins/xlsx-artifact-viewer.component.d.ts.map +1 -0
  27. package/dist/lib/components/plugins/xlsx-artifact-viewer.component.js +255 -0
  28. package/dist/lib/components/plugins/xlsx-artifact-viewer.component.js.map +1 -0
  29. package/dist/lib/services/artifact-file.service.d.ts +33 -0
  30. package/dist/lib/services/artifact-file.service.d.ts.map +1 -0
  31. package/dist/lib/services/artifact-file.service.js +87 -0
  32. package/dist/lib/services/artifact-file.service.js.map +1 -0
  33. package/dist/public-api.d.ts +5 -0
  34. package/dist/public-api.d.ts.map +1 -1
  35. package/dist/public-api.js +6 -0
  36. package/dist/public-api.js.map +1 -1
  37. package/package.json +20 -16
@@ -13,16 +13,21 @@ import * as i10 from "./components/plugins/component-artifact-viewer.component";
13
13
  import * as i11 from "./components/plugins/data-artifact-viewer.component";
14
14
  import * as i12 from "./components/plugins/save-query-dialog.component";
15
15
  import * as i13 from "./components/plugins/data-requirements-viewer/data-requirements-viewer.component";
16
- import * as i14 from "@angular/common";
17
- import * as i15 from "@angular/forms";
18
- import * as i16 from "@memberjunction/ng-markdown";
19
- import * as i17 from "@memberjunction/ng-code-editor";
20
- import * as i18 from "@memberjunction/ng-react";
21
- import * as i19 from "@memberjunction/ng-notifications";
22
- import * as i20 from "@memberjunction/ng-query-viewer";
23
- import * as i21 from "@memberjunction/ng-shared-generic";
24
- import * as i22 from "@memberjunction/ng-trees";
25
- import * as i23 from "./components/plugins/component-feedback-panel/component-feedback-panel.component";
16
+ import * as i14 from "./components/file-artifact-toolbar.component";
17
+ import * as i15 from "./components/plugins/pdf-artifact-viewer.component";
18
+ import * as i16 from "./components/plugins/xlsx-artifact-viewer.component";
19
+ import * as i17 from "./components/plugins/docx-artifact-viewer.component";
20
+ import * as i18 from "@angular/common";
21
+ import * as i19 from "@angular/forms";
22
+ import * as i20 from "@memberjunction/ng-markdown";
23
+ import * as i21 from "@memberjunction/ng-code-editor";
24
+ import * as i22 from "@memberjunction/ng-react";
25
+ import * as i23 from "@memberjunction/ng-notifications";
26
+ import * as i24 from "@memberjunction/ng-query-viewer";
27
+ import * as i25 from "@memberjunction/ng-shared-generic";
28
+ import * as i26 from "@memberjunction/ng-trees";
29
+ import * as i27 from "./components/plugins/component-feedback-panel/component-feedback-panel.component";
30
+ import * as i28 from "ag-grid-angular";
26
31
  /**
27
32
  * Module for artifact viewer plugin system.
28
33
  * Provides components for viewing different types of artifacts (JSON, Code, Markdown, HTML, SVG, Components).
@@ -34,7 +39,7 @@ export declare class ArtifactsModule {
34
39
  private adapter;
35
40
  constructor(adapter: AngularAdapterService);
36
41
  static ɵfac: i0.ɵɵFactoryDeclaration<ArtifactsModule, never>;
37
- static ɵmod: i0.ɵɵNgModuleDeclaration<ArtifactsModule, [typeof i1.ArtifactTypePluginViewerComponent, typeof i2.ArtifactViewerPanelComponent, typeof i3.ArtifactVersionHistoryComponent, typeof i4.ArtifactMessageCardComponent, typeof i5.JsonArtifactViewerComponent, typeof i6.CodeArtifactViewerComponent, typeof i7.MarkdownArtifactViewerComponent, typeof i8.HtmlArtifactViewerComponent, typeof i9.SvgArtifactViewerComponent, typeof i10.ComponentArtifactViewerComponent, typeof i11.DataArtifactViewerComponent, typeof i12.SaveQueryPanelComponent, typeof i13.DataRequirementsViewerComponent], [typeof i14.CommonModule, typeof i15.FormsModule, typeof i16.MarkdownModule, typeof i17.CodeEditorModule, typeof i18.MJReactModule, typeof i19.MJNotificationsModule, typeof i20.QueryViewerModule, typeof i21.SharedGenericModule, typeof i22.NgTreesModule, typeof i23.ComponentFeedbackPanelComponent], [typeof i1.ArtifactTypePluginViewerComponent, typeof i2.ArtifactViewerPanelComponent, typeof i3.ArtifactVersionHistoryComponent, typeof i4.ArtifactMessageCardComponent, typeof i5.JsonArtifactViewerComponent, typeof i6.CodeArtifactViewerComponent, typeof i7.MarkdownArtifactViewerComponent, typeof i8.HtmlArtifactViewerComponent, typeof i9.SvgArtifactViewerComponent, typeof i10.ComponentArtifactViewerComponent, typeof i11.DataArtifactViewerComponent]>;
42
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ArtifactsModule, [typeof i1.ArtifactTypePluginViewerComponent, typeof i2.ArtifactViewerPanelComponent, typeof i3.ArtifactVersionHistoryComponent, typeof i4.ArtifactMessageCardComponent, typeof i5.JsonArtifactViewerComponent, typeof i6.CodeArtifactViewerComponent, typeof i7.MarkdownArtifactViewerComponent, typeof i8.HtmlArtifactViewerComponent, typeof i9.SvgArtifactViewerComponent, typeof i10.ComponentArtifactViewerComponent, typeof i11.DataArtifactViewerComponent, typeof i12.SaveQueryPanelComponent, typeof i13.DataRequirementsViewerComponent, typeof i14.FileArtifactToolbarComponent, typeof i15.PdfArtifactViewerComponent, typeof i16.XlsxArtifactViewerComponent, typeof i17.DocxArtifactViewerComponent], [typeof i18.CommonModule, typeof i19.FormsModule, typeof i20.MarkdownModule, typeof i21.CodeEditorModule, typeof i22.MJReactModule, typeof i23.MJNotificationsModule, typeof i24.QueryViewerModule, typeof i25.SharedGenericModule, typeof i26.NgTreesModule, typeof i27.ComponentFeedbackPanelComponent, typeof i28.AgGridModule], [typeof i1.ArtifactTypePluginViewerComponent, typeof i2.ArtifactViewerPanelComponent, typeof i3.ArtifactVersionHistoryComponent, typeof i4.ArtifactMessageCardComponent, typeof i5.JsonArtifactViewerComponent, typeof i6.CodeArtifactViewerComponent, typeof i7.MarkdownArtifactViewerComponent, typeof i8.HtmlArtifactViewerComponent, typeof i9.SvgArtifactViewerComponent, typeof i10.ComponentArtifactViewerComponent, typeof i11.DataArtifactViewerComponent, typeof i14.FileArtifactToolbarComponent, typeof i15.PdfArtifactViewerComponent, typeof i16.XlsxArtifactViewerComponent, typeof i17.DocxArtifactViewerComponent]>;
38
43
  static ɵinj: i0.ɵɵInjectorDeclaration<ArtifactsModule>;
39
44
  }
40
45
  //# sourceMappingURL=artifacts.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"artifacts.module.d.ts","sourceRoot":"","sources":["../../src/lib/artifacts.module.ts"],"names":[],"mappings":"AAOA,OAAO,EAAiB,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;AAwBhF;;;;;;GAMG;AACH,qBAyDa,eAAe;IACd,OAAO,CAAC,OAAO;gBAAP,OAAO,EAAE,qBAAqB;yCADvC,eAAe;0CAAf,eAAe;0CAAf,eAAe;CAmB3B"}
1
+ {"version":3,"file":"artifacts.module.d.ts","sourceRoot":"","sources":["../../src/lib/artifacts.module.ts"],"names":[],"mappings":"AAQA,OAAO,EAAiB,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BhF;;;;;;GAMG;AACH,qBAsEa,eAAe;IACd,OAAO,CAAC,OAAO;gBAAP,OAAO,EAAE,qBAAqB;yCADvC,eAAe;0CAAf,eAAe;0CAAf,eAAe;CAsB3B"}
@@ -2,6 +2,7 @@ import { NgModule } from '@angular/core';
2
2
  import { CommonModule } from '@angular/common';
3
3
  import { FormsModule } from '@angular/forms';
4
4
  import { MarkdownModule } from '@memberjunction/ng-markdown';
5
+ import { AgGridModule } from 'ag-grid-angular';
5
6
  // Import MJ modules
6
7
  import { CodeEditorModule } from '@memberjunction/ng-code-editor';
7
8
  import { MJReactModule } from '@memberjunction/ng-react';
@@ -20,6 +21,11 @@ import { DataArtifactViewerComponent } from './components/plugins/data-artifact-
20
21
  import { SaveQueryPanelComponent } from './components/plugins/save-query-dialog.component';
21
22
  import { DataRequirementsViewerComponent } from './components/plugins/data-requirements-viewer/data-requirements-viewer.component';
22
23
  import { ComponentFeedbackPanelComponent } from './components/plugins/component-feedback-panel/component-feedback-panel.component';
24
+ // File viewer plugins
25
+ import { FileArtifactToolbarComponent } from './components/file-artifact-toolbar.component';
26
+ import { PdfArtifactViewerComponent } from './components/plugins/pdf-artifact-viewer.component';
27
+ import { XlsxArtifactViewerComponent } from './components/plugins/xlsx-artifact-viewer.component';
28
+ import { DocxArtifactViewerComponent } from './components/plugins/docx-artifact-viewer.component';
23
29
  // Import artifact type plugin viewer component
24
30
  import { ArtifactTypePluginViewerComponent } from './components/artifact-type-plugin-viewer.component';
25
31
  import { ArtifactVersionHistoryComponent } from './components/artifact-version-history.component';
@@ -47,7 +53,10 @@ export class ArtifactsModule {
47
53
  HtmlArtifactViewerComponent,
48
54
  SvgArtifactViewerComponent,
49
55
  ComponentArtifactViewerComponent,
50
- DataArtifactViewerComponent
56
+ DataArtifactViewerComponent,
57
+ PdfArtifactViewerComponent,
58
+ XlsxArtifactViewerComponent,
59
+ DocxArtifactViewerComponent,
51
60
  ];
52
61
  // PERF: Eagerly start downloading React, ReactDOM, and Babel from CDN in the background.
53
62
  // By the time a user opens an interactive component artifact, the scripts will already
@@ -65,7 +74,8 @@ export class ArtifactsModule {
65
74
  QueryViewerModule,
66
75
  SharedGenericModule,
67
76
  NgTreesModule,
68
- ComponentFeedbackPanelComponent] });
77
+ ComponentFeedbackPanelComponent,
78
+ AgGridModule] });
69
79
  }
70
80
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ArtifactsModule, [{
71
81
  type: NgModule,
@@ -87,7 +97,12 @@ export class ArtifactsModule {
87
97
  DataArtifactViewerComponent,
88
98
  SaveQueryPanelComponent,
89
99
  // Custom tab components (used by plugins via dynamic component tabs)
90
- DataRequirementsViewerComponent
100
+ DataRequirementsViewerComponent,
101
+ // File viewer toolbar and plugins
102
+ FileArtifactToolbarComponent,
103
+ PdfArtifactViewerComponent,
104
+ XlsxArtifactViewerComponent,
105
+ DocxArtifactViewerComponent,
91
106
  ],
92
107
  imports: [
93
108
  CommonModule,
@@ -99,7 +114,8 @@ export class ArtifactsModule {
99
114
  QueryViewerModule,
100
115
  SharedGenericModule,
101
116
  NgTreesModule,
102
- ComponentFeedbackPanelComponent
117
+ ComponentFeedbackPanelComponent,
118
+ AgGridModule,
103
119
  ],
104
120
  exports: [
105
121
  // Export artifact type plugin viewer
@@ -115,7 +131,12 @@ export class ArtifactsModule {
115
131
  HtmlArtifactViewerComponent,
116
132
  SvgArtifactViewerComponent,
117
133
  ComponentArtifactViewerComponent,
118
- DataArtifactViewerComponent
134
+ DataArtifactViewerComponent,
135
+ // File viewer toolbar and plugins
136
+ FileArtifactToolbarComponent,
137
+ PdfArtifactViewerComponent,
138
+ XlsxArtifactViewerComponent,
139
+ DocxArtifactViewerComponent,
119
140
  ],
120
141
  providers: [
121
142
  // Plugins are registered via @RegisterClass decorator on component classes, no providers needed
@@ -139,7 +160,12 @@ export class ArtifactsModule {
139
160
  DataArtifactViewerComponent,
140
161
  SaveQueryPanelComponent,
141
162
  // Custom tab components (used by plugins via dynamic component tabs)
142
- DataRequirementsViewerComponent], imports: [CommonModule,
163
+ DataRequirementsViewerComponent,
164
+ // File viewer toolbar and plugins
165
+ FileArtifactToolbarComponent,
166
+ PdfArtifactViewerComponent,
167
+ XlsxArtifactViewerComponent,
168
+ DocxArtifactViewerComponent], imports: [CommonModule,
143
169
  FormsModule,
144
170
  MarkdownModule,
145
171
  CodeEditorModule,
@@ -148,7 +174,8 @@ export class ArtifactsModule {
148
174
  QueryViewerModule,
149
175
  SharedGenericModule,
150
176
  NgTreesModule,
151
- ComponentFeedbackPanelComponent], exports: [
177
+ ComponentFeedbackPanelComponent,
178
+ AgGridModule], exports: [
152
179
  // Export artifact type plugin viewer
153
180
  ArtifactTypePluginViewerComponent,
154
181
  // Export artifact viewer UI components
@@ -162,5 +189,10 @@ export class ArtifactsModule {
162
189
  HtmlArtifactViewerComponent,
163
190
  SvgArtifactViewerComponent,
164
191
  ComponentArtifactViewerComponent,
165
- DataArtifactViewerComponent] }); })();
192
+ DataArtifactViewerComponent,
193
+ // File viewer toolbar and plugins
194
+ FileArtifactToolbarComponent,
195
+ PdfArtifactViewerComponent,
196
+ XlsxArtifactViewerComponent,
197
+ DocxArtifactViewerComponent] }); })();
166
198
  //# sourceMappingURL=artifacts.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"artifacts.module.js","sourceRoot":"","sources":["../../src/lib/artifacts.module.ts"],"names":[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;oBAE5B,2BAA2B;oBAC3B,2BAA2B;oBAC3B,2BAA2B;oBAC3B,+BAA+B;oBAC/B,2BAA2B;oBAC3B,0BAA0B;oBAC1B,gCAAgC;oBAChC,2BAA2B;iBAC5B;gBACD,SAAS,EAAE;gBACT,gGAAgG;iBACjG;aACF;;wFACY,eAAe;QAvDxB,8EAA8E;QAC9E,iCAAiC;QAEjC,gCAAgC;QAChC,4BAA4B;QAC5B,+BAA+B;QAC/B,4BAA4B;QAE5B,oBAAoB;QACpB,2BAA2B;QAC3B,2BAA2B;QAC3B,+BAA+B;QAC/B,2BAA2B;QAC3B,0BAA0B;QAC1B,gCAAgC;QAChC,2BAA2B;QAC3B,uBAAuB;QAEvB,qEAAqE;QACrE,+BAA+B,aAG/B,YAAY;QACZ,WAAW;QACX,cAAc;QACd,gBAAgB;QAChB,aAAa;QACb,qBAAqB;QACrB,iBAAiB;QACjB,mBAAmB;QACnB,aAAa;QACb,+BAA+B;QAG/B,qCAAqC;QACrC,iCAAiC;QAEjC,uCAAuC;QACvC,4BAA4B;QAC5B,+BAA+B;QAC/B,4BAA4B;QAE5B,2BAA2B;QAC3B,2BAA2B;QAC3B,2BAA2B;QAC3B,+BAA+B;QAC/B,2BAA2B;QAC3B,0BAA0B;QAC1B,gCAAgC;QAChC,2BAA2B","sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { MarkdownModule } from '@memberjunction/ng-markdown';\n\n// Import MJ modules\nimport { CodeEditorModule } from '@memberjunction/ng-code-editor';\nimport { MJReactModule, AngularAdapterService } from '@memberjunction/ng-react';\nimport { MJNotificationsModule } from '@memberjunction/ng-notifications';\nimport { QueryViewerModule } from '@memberjunction/ng-query-viewer';\nimport { SharedGenericModule } from '@memberjunction/ng-shared-generic';\nimport { NgTreesModule } from '@memberjunction/ng-trees';\n\n// Import plugin components (note: base component is abstract and NOT declared)\nimport { JsonArtifactViewerComponent } from './components/plugins/json-artifact-viewer.component';\nimport { CodeArtifactViewerComponent } from './components/plugins/code-artifact-viewer.component';\nimport { MarkdownArtifactViewerComponent } from './components/plugins/markdown-artifact-viewer.component';\nimport { HtmlArtifactViewerComponent } from './components/plugins/html-artifact-viewer.component';\nimport { SvgArtifactViewerComponent } from './components/plugins/svg-artifact-viewer.component';\nimport { ComponentArtifactViewerComponent } from './components/plugins/component-artifact-viewer.component';\nimport { DataArtifactViewerComponent } from './components/plugins/data-artifact-viewer.component';\nimport { SaveQueryPanelComponent } from './components/plugins/save-query-dialog.component';\nimport { DataRequirementsViewerComponent } from './components/plugins/data-requirements-viewer/data-requirements-viewer.component';\nimport { ComponentFeedbackPanelComponent } from './components/plugins/component-feedback-panel/component-feedback-panel.component';\n\n// Import artifact type plugin viewer component\nimport { ArtifactTypePluginViewerComponent } from './components/artifact-type-plugin-viewer.component';\nimport { ArtifactVersionHistoryComponent } from './components/artifact-version-history.component';\nimport { ArtifactViewerPanelComponent } from './components/artifact-viewer-panel.component';\nimport { ArtifactMessageCardComponent } from './components/artifact-message-card.component';\n\n/**\n * Module for artifact viewer plugin system.\n * Provides components for viewing different types of artifacts (JSON, Code, Markdown, HTML, SVG, Components).\n *\n * Plugins are automatically registered via @RegisterClass decorator and can be instantiated\n * using MJGlobal.Instance.ClassFactory.CreateInstance('PluginClassName').\n */\n@NgModule({\n declarations: [\n // Artifact type plugin viewer (loads appropriate plugin based on DriverClass)\n ArtifactTypePluginViewerComponent,\n\n // Artifact viewer UI components\n ArtifactViewerPanelComponent,\n ArtifactVersionHistoryComponent,\n ArtifactMessageCardComponent,\n\n // Plugin components\n JsonArtifactViewerComponent,\n CodeArtifactViewerComponent,\n MarkdownArtifactViewerComponent,\n HtmlArtifactViewerComponent,\n SvgArtifactViewerComponent,\n ComponentArtifactViewerComponent,\n DataArtifactViewerComponent,\n SaveQueryPanelComponent,\n\n // Custom tab components (used by plugins via dynamic component tabs)\n DataRequirementsViewerComponent\n ],\n imports: [\n CommonModule,\n FormsModule,\n MarkdownModule,\n CodeEditorModule,\n MJReactModule,\n MJNotificationsModule,\n QueryViewerModule,\n SharedGenericModule,\n NgTreesModule,\n ComponentFeedbackPanelComponent\n ],\n exports: [\n // Export artifact type plugin viewer\n ArtifactTypePluginViewerComponent,\n\n // Export artifact viewer UI components\n ArtifactViewerPanelComponent,\n ArtifactVersionHistoryComponent,\n ArtifactMessageCardComponent,\n\n // Export plugin components\n JsonArtifactViewerComponent,\n CodeArtifactViewerComponent,\n MarkdownArtifactViewerComponent,\n HtmlArtifactViewerComponent,\n SvgArtifactViewerComponent,\n ComponentArtifactViewerComponent,\n DataArtifactViewerComponent\n ],\n providers: [\n // Plugins are registered via @RegisterClass decorator on component classes, no providers needed\n ]\n})\nexport class ArtifactsModule {\n constructor(private adapter: AngularAdapterService) {\n // Ensure plugin components are registered on module load by referencing their classes\n // The @RegisterClass decorator on each component handles the actual registration with MJGlobal\n [\n JsonArtifactViewerComponent,\n CodeArtifactViewerComponent,\n MarkdownArtifactViewerComponent,\n HtmlArtifactViewerComponent,\n SvgArtifactViewerComponent,\n ComponentArtifactViewerComponent,\n DataArtifactViewerComponent\n ];\n\n // PERF: Eagerly start downloading React, ReactDOM, and Babel from CDN in the background.\n // By the time a user opens an interactive component artifact, the scripts will already\n // be cached. The adapter.preload() is non-blocking and deduplicates with initialize().\n this.adapter.preload();\n }\n}\n"]}
1
+ {"version":3,"file":"artifacts.module.js","sourceRoot":"","sources":["../../src/lib/artifacts.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,oBAAoB;AACpB,OAAO,EAAE,gBAAgB,EAAE,MAAM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BACb;gBACD,OAAO,EAAE;oBACP,qCAAqC;oBACrC,iCAAiC;oBAEjC,uCAAuC;oBACvC,4BAA4B;oBAC5B,+BAA+B;oBAC/B,4BAA4B;oBAE5B,2BAA2B;oBAC3B,2BAA2B;oBAC3B,2BAA2B;oBAC3B,+BAA+B;oBAC/B,2BAA2B;oBAC3B,0BAA0B;oBAC1B,gCAAgC;oBAChC,2BAA2B;oBAE3B,kCAAkC;oBAClC,4BAA4B;oBAC5B,0BAA0B;oBAC1B,2BAA2B;oBAC3B,2BAA2B;iBAC5B;gBACD,SAAS,EAAE;gBACT,gGAAgG;iBACjG;aACF;;wFACY,eAAe;QApExB,8EAA8E;QAC9E,iCAAiC;QAEjC,gCAAgC;QAChC,4BAA4B;QAC5B,+BAA+B;QAC/B,4BAA4B;QAE5B,oBAAoB;QACpB,2BAA2B;QAC3B,2BAA2B;QAC3B,+BAA+B;QAC/B,2BAA2B;QAC3B,0BAA0B;QAC1B,gCAAgC;QAChC,2BAA2B;QAC3B,uBAAuB;QAEvB,qEAAqE;QACrE,+BAA+B;QAE/B,kCAAkC;QAClC,4BAA4B;QAC5B,0BAA0B;QAC1B,2BAA2B;QAC3B,2BAA2B,aAG3B,YAAY;QACZ,WAAW;QACX,cAAc;QACd,gBAAgB;QAChB,aAAa;QACb,qBAAqB;QACrB,iBAAiB;QACjB,mBAAmB;QACnB,aAAa;QACb,+BAA+B;QAC/B,YAAY;QAGZ,qCAAqC;QACrC,iCAAiC;QAEjC,uCAAuC;QACvC,4BAA4B;QAC5B,+BAA+B;QAC/B,4BAA4B;QAE5B,2BAA2B;QAC3B,2BAA2B;QAC3B,2BAA2B;QAC3B,+BAA+B;QAC/B,2BAA2B;QAC3B,0BAA0B;QAC1B,gCAAgC;QAChC,2BAA2B;QAE3B,kCAAkC;QAClC,4BAA4B;QAC5B,0BAA0B;QAC1B,2BAA2B;QAC3B,2BAA2B","sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { MarkdownModule } from '@memberjunction/ng-markdown';\nimport { AgGridModule } from 'ag-grid-angular';\n\n// Import MJ modules\nimport { CodeEditorModule } from '@memberjunction/ng-code-editor';\nimport { MJReactModule, AngularAdapterService } from '@memberjunction/ng-react';\nimport { MJNotificationsModule } from '@memberjunction/ng-notifications';\nimport { QueryViewerModule } from '@memberjunction/ng-query-viewer';\nimport { SharedGenericModule } from '@memberjunction/ng-shared-generic';\nimport { NgTreesModule } from '@memberjunction/ng-trees';\n\n// Import plugin components (note: base component is abstract and NOT declared)\nimport { JsonArtifactViewerComponent } from './components/plugins/json-artifact-viewer.component';\nimport { CodeArtifactViewerComponent } from './components/plugins/code-artifact-viewer.component';\nimport { MarkdownArtifactViewerComponent } from './components/plugins/markdown-artifact-viewer.component';\nimport { HtmlArtifactViewerComponent } from './components/plugins/html-artifact-viewer.component';\nimport { SvgArtifactViewerComponent } from './components/plugins/svg-artifact-viewer.component';\nimport { ComponentArtifactViewerComponent } from './components/plugins/component-artifact-viewer.component';\nimport { DataArtifactViewerComponent } from './components/plugins/data-artifact-viewer.component';\nimport { SaveQueryPanelComponent } from './components/plugins/save-query-dialog.component';\nimport { DataRequirementsViewerComponent } from './components/plugins/data-requirements-viewer/data-requirements-viewer.component';\nimport { ComponentFeedbackPanelComponent } from './components/plugins/component-feedback-panel/component-feedback-panel.component';\n\n// File viewer plugins\nimport { FileArtifactToolbarComponent } from './components/file-artifact-toolbar.component';\nimport { PdfArtifactViewerComponent } from './components/plugins/pdf-artifact-viewer.component';\nimport { XlsxArtifactViewerComponent } from './components/plugins/xlsx-artifact-viewer.component';\nimport { DocxArtifactViewerComponent } from './components/plugins/docx-artifact-viewer.component';\n\n// Import artifact type plugin viewer component\nimport { ArtifactTypePluginViewerComponent } from './components/artifact-type-plugin-viewer.component';\nimport { ArtifactVersionHistoryComponent } from './components/artifact-version-history.component';\nimport { ArtifactViewerPanelComponent } from './components/artifact-viewer-panel.component';\nimport { ArtifactMessageCardComponent } from './components/artifact-message-card.component';\n\n/**\n * Module for artifact viewer plugin system.\n * Provides components for viewing different types of artifacts (JSON, Code, Markdown, HTML, SVG, Components).\n *\n * Plugins are automatically registered via @RegisterClass decorator and can be instantiated\n * using MJGlobal.Instance.ClassFactory.CreateInstance('PluginClassName').\n */\n@NgModule({\n declarations: [\n // Artifact type plugin viewer (loads appropriate plugin based on DriverClass)\n ArtifactTypePluginViewerComponent,\n\n // Artifact viewer UI components\n ArtifactViewerPanelComponent,\n ArtifactVersionHistoryComponent,\n ArtifactMessageCardComponent,\n\n // Plugin components\n JsonArtifactViewerComponent,\n CodeArtifactViewerComponent,\n MarkdownArtifactViewerComponent,\n HtmlArtifactViewerComponent,\n SvgArtifactViewerComponent,\n ComponentArtifactViewerComponent,\n DataArtifactViewerComponent,\n SaveQueryPanelComponent,\n\n // Custom tab components (used by plugins via dynamic component tabs)\n DataRequirementsViewerComponent,\n\n // File viewer toolbar and plugins\n FileArtifactToolbarComponent,\n PdfArtifactViewerComponent,\n XlsxArtifactViewerComponent,\n DocxArtifactViewerComponent,\n ],\n imports: [\n CommonModule,\n FormsModule,\n MarkdownModule,\n CodeEditorModule,\n MJReactModule,\n MJNotificationsModule,\n QueryViewerModule,\n SharedGenericModule,\n NgTreesModule,\n ComponentFeedbackPanelComponent,\n AgGridModule,\n ],\n exports: [\n // Export artifact type plugin viewer\n ArtifactTypePluginViewerComponent,\n\n // Export artifact viewer UI components\n ArtifactViewerPanelComponent,\n ArtifactVersionHistoryComponent,\n ArtifactMessageCardComponent,\n\n // Export plugin components\n JsonArtifactViewerComponent,\n CodeArtifactViewerComponent,\n MarkdownArtifactViewerComponent,\n HtmlArtifactViewerComponent,\n SvgArtifactViewerComponent,\n ComponentArtifactViewerComponent,\n DataArtifactViewerComponent,\n\n // File viewer toolbar and plugins\n FileArtifactToolbarComponent,\n PdfArtifactViewerComponent,\n XlsxArtifactViewerComponent,\n DocxArtifactViewerComponent,\n ],\n providers: [\n // Plugins are registered via @RegisterClass decorator on component classes, no providers needed\n ]\n})\nexport class ArtifactsModule {\n constructor(private adapter: AngularAdapterService) {\n // Ensure plugin components are registered on module load by referencing their classes\n // The @RegisterClass decorator on each component handles the actual registration with MJGlobal\n [\n JsonArtifactViewerComponent,\n CodeArtifactViewerComponent,\n MarkdownArtifactViewerComponent,\n HtmlArtifactViewerComponent,\n SvgArtifactViewerComponent,\n ComponentArtifactViewerComponent,\n DataArtifactViewerComponent,\n PdfArtifactViewerComponent,\n XlsxArtifactViewerComponent,\n DocxArtifactViewerComponent,\n ];\n\n // PERF: Eagerly start downloading React, ReactDOM, and Babel from CDN in the background.\n // By the time a user opens an interactive component artifact, the scripts will already\n // be cached. The adapter.preload() is non-blocking and deduplicates with initialize().\n this.adapter.preload();\n }\n}\n"]}
@@ -68,6 +68,9 @@ export declare class ArtifactViewerPanelComponent implements OnInit, OnChanges,
68
68
  displayHtml: string | null;
69
69
  versionAttributes: MJArtifactVersionAttributeEntity[];
70
70
  private artifactTypeDriverClass;
71
+ /** Populated from ArtifactType.ContentCategory. Used to suppress the JSON tab for
72
+ * binary file-type artifacts — driven by metadata, not hardcoded plugin overrides. */
73
+ private artifactContentCategory;
71
74
  originConversation: MJConversationEntity | null;
72
75
  allCollections: MJCollectionEntity[];
73
76
  hasAccessToOriginConversation: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"artifact-viewer-panel.component.d.ts","sourceRoot":"","sources":["../../../src/lib/components/artifact-viewer-panel.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,EAA6C,IAAI,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACxL,OAAO,EAAE,YAAY,EAAY,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,QAAQ,EAA+B,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAE3F,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,gCAAgC,EAAwB,k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IAAI;IAInD;;;OAGG;YACW,yBAAyB;IAoBvC;;OAEG;YACW,mBAAmB;IAiBjC;;OAEG;IACH,OAAO,CAAC,UAAU;IA2BlB;;OAEG;IACI,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IA0BjD;;OAEG;IACI,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAI1C;;OAEG;YACW,kBAAkB;IA4BhC;;;OAGG;IACH,mFAAmF;IAC5E,YAAY,EAAE,MAAM,CAAa;IAExC,sDAAsD;IACtD,OAAO,CAAC,kBAAkB;yCArrCf,4BAA4B;2CAA5B,4BAA4B;CA0rCxC"}
1
+ {"version":3,"file":"artifact-viewer-panel.component.d.ts","sourceRoot":"","sources":["../../../src/lib/components/artifact-viewer-panel.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,EAA6C,IAAI,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACxL,OAAO,EAAE,YAAY,EAAY,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,QAAQ,EAA+B,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAE3F,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,gCAAgC,EAAwB,kBAAkB,EAAE,0BAA0B,EAA0B,oBAAoB,EAAuF,MAAM,+BAA+B,CAAC;AACrU,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAC5F,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACxF,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;;AAGxE,qBAMa,4BAA6B,YAAW,MAAM,EAAE,SAAS,EAAE,SAAS;IAwL7E,OA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B;yCAlsCf,4BAA4B;2CAA5B,4BAA4B;CAusCxC"}
@@ -590,6 +590,9 @@ export class ArtifactViewerPanelComponent {
590
590
  displayHtml = null;
591
591
  versionAttributes = [];
592
592
  artifactTypeDriverClass = null;
593
+ /** Populated from ArtifactType.ContentCategory. Used to suppress the JSON tab for
594
+ * binary file-type artifacts — driven by metadata, not hardcoded plugin overrides. */
595
+ artifactContentCategory = null;
593
596
  // Links tab data
594
597
  originConversation = null;
595
598
  allCollections = [];
@@ -611,8 +614,12 @@ export class ArtifactViewerPanelComponent {
611
614
  // Get tabs to remove from plugin (case-insensitive)
612
615
  const removals = this.pluginViewer?.pluginInstance?.GetStandardTabRemovals?.() || [];
613
616
  const removalsLower = removals.map(r => r.toLowerCase());
614
- // Add standard tabs (unless plugin removed them)
615
- if (!removalsLower.includes('json')) {
617
+ // File-category artifacts (PDF, Excel, Word) have binary content — the JSON tab
618
+ // would show a base64 blob or a storage reference, which is meaningless. Suppress it
619
+ // using ArtifactType.ContentCategory from the database rather than a hardcoded plugin override.
620
+ const isFileArtifact = this.artifactContentCategory === 'File';
621
+ // Add standard tabs (unless suppressed by metadata or plugin)
622
+ if (!isFileArtifact && !removalsLower.includes('json')) {
616
623
  tabs.push('JSON');
617
624
  }
618
625
  if (!removalsLower.includes('details')) {
@@ -882,6 +889,9 @@ export class ArtifactViewerPanelComponent {
882
889
  this.originConversationVersionId = null;
883
890
  }
884
891
  async loadArtifactType() {
892
+ // Reset on every load so a previous artifact's values don't bleed into the next
893
+ this.artifactTypeDriverClass = null;
894
+ this.artifactContentCategory = null;
885
895
  if (!this.artifact?.Type) {
886
896
  return;
887
897
  }
@@ -891,6 +901,7 @@ export class ArtifactViewerPanelComponent {
891
901
  if (artifactType) {
892
902
  // Resolve DriverClass by traversing parent hierarchy if needed
893
903
  this.artifactTypeDriverClass = await this.resolveDriverClassForType(artifactType);
904
+ this.artifactContentCategory = artifactType.ContentCategory;
894
905
  }
895
906
  }
896
907
  catch (err) {