@memberjunction/ng-artifacts 2.125.0 → 2.126.1
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/lib/artifacts.module.d.ts +1 -1
- package/dist/lib/artifacts.module.js +6 -5
- package/dist/lib/artifacts.module.js.map +1 -1
- package/dist/lib/components/artifact-type-plugin-viewer.component.d.ts +7 -2
- package/dist/lib/components/artifact-type-plugin-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/artifact-type-plugin-viewer.component.js +12 -3
- package/dist/lib/components/artifact-type-plugin-viewer.component.js.map +1 -1
- package/dist/lib/components/artifact-viewer-panel.component.d.ts +15 -7
- package/dist/lib/components/artifact-viewer-panel.component.d.ts.map +1 -1
- package/dist/lib/components/artifact-viewer-panel.component.js +55 -56
- package/dist/lib/components/artifact-viewer-panel.component.js.map +1 -1
- package/dist/lib/components/plugins/component-artifact-viewer.component.d.ts +14 -1
- package/dist/lib/components/plugins/component-artifact-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/plugins/component-artifact-viewer.component.js +18 -4
- package/dist/lib/components/plugins/component-artifact-viewer.component.js.map +1 -1
- package/dist/lib/components/plugins/json-artifact-viewer.component.d.ts +1 -2
- package/dist/lib/components/plugins/json-artifact-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/plugins/json-artifact-viewer.component.js +16 -23
- package/dist/lib/components/plugins/json-artifact-viewer.component.js.map +1 -1
- package/dist/lib/components/plugins/markdown-artifact-viewer.component.js +3 -3
- package/dist/lib/components/plugins/markdown-artifact-viewer.component.js.map +1 -1
- package/package.json +11 -11
|
@@ -2,6 +2,7 @@ import { AfterViewInit, OnInit, OnChanges, SimpleChanges, EventEmitter } from '@
|
|
|
2
2
|
import { BaseArtifactViewerPluginComponent, ArtifactViewerTab } from '../base-artifact-viewer.component';
|
|
3
3
|
import { MJReactComponent, AngularAdapterService } from '@memberjunction/ng-react';
|
|
4
4
|
import { ComponentSpec } from '@memberjunction/interactive-component-types';
|
|
5
|
+
import { CompositeKey } from '@memberjunction/core';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* Viewer component for interactive Component artifacts (React-based UI components)
|
|
@@ -15,6 +16,10 @@ export declare class ComponentArtifactViewerComponent extends BaseArtifactViewer
|
|
|
15
16
|
private adapter;
|
|
16
17
|
reactComponent?: MJReactComponent;
|
|
17
18
|
tabsChanged: EventEmitter<void>;
|
|
19
|
+
openEntityRecord: EventEmitter<{
|
|
20
|
+
entityName: string;
|
|
21
|
+
compositeKey: CompositeKey;
|
|
22
|
+
}>;
|
|
18
23
|
component: ComponentSpec | null;
|
|
19
24
|
componentCode: string;
|
|
20
25
|
componentName: string;
|
|
@@ -38,7 +43,15 @@ export declare class ComponentArtifactViewerComponent extends BaseArtifactViewer
|
|
|
38
43
|
GetStandardTabRemovals(): string[];
|
|
39
44
|
private extractComponentParts;
|
|
40
45
|
onComponentEvent(event: unknown): void;
|
|
46
|
+
/**
|
|
47
|
+
* Handle entity record open request from React component
|
|
48
|
+
* Propagates the event up to parent components
|
|
49
|
+
*/
|
|
50
|
+
onOpenEntityRecord(event: {
|
|
51
|
+
entityName: string;
|
|
52
|
+
key: CompositeKey;
|
|
53
|
+
}): void;
|
|
41
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<ComponentArtifactViewerComponent, never>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ComponentArtifactViewerComponent, "mj-component-artifact-viewer", never, {}, { "tabsChanged": "tabsChanged"; }, never, never, false, never>;
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ComponentArtifactViewerComponent, "mj-component-artifact-viewer", never, {}, { "tabsChanged": "tabsChanged"; "openEntityRecord": "openEntityRecord"; }, never, never, false, never>;
|
|
43
56
|
}
|
|
44
57
|
//# sourceMappingURL=component-artifact-viewer.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-artifact-viewer.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/plugins/component-artifact-viewer.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAU,YAAY,EAAE,MAAM,eAAe,CAAC;AAE5H,OAAO,EAAE,iCAAiC,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACzG,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACnF,OAAO,EAA8B,aAAa,EAAE,MAAM,6CAA6C,CAAC;;
|
|
1
|
+
{"version":3,"file":"component-artifact-viewer.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/plugins/component-artifact-viewer.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAU,YAAY,EAAE,MAAM,eAAe,CAAC;AAE5H,OAAO,EAAE,iCAAiC,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACzG,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACnF,OAAO,EAA8B,aAAa,EAAE,MAAM,6CAA6C,CAAC;AACxG,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;;AAEpD;;;;;;;GAOG;AACH,qBAMa,gCAAiC,SAAQ,iCAAkC,YAAW,MAAM,EAAE,aAAa,EAAE,SAAS;IAmBrH,OAAO,CAAC,OAAO;IAlBE,cAAc,CAAC,EAAE,gBAAgB,CAAC;IACrD,WAAW,qBAA4B;IACvC,gBAAgB;oBAAiC,MAAM;sBAAgB,YAAY;OAAK;IAG3F,SAAS,EAAE,aAAa,GAAG,IAAI,CAAQ;IACvC,aAAa,EAAE,MAAM,CAAM;IAC3B,aAAa,EAAE,MAAM,CAAM;IAElC,IAAW,qBAAqB,IAAI,aAAa,GAAG,IAAI,CAEvD;IAGM,QAAQ,UAAS;IACjB,YAAY,SAAM;IAClB,YAAY,SAAM;gBAEL,OAAO,EAAE,qBAAqB;IAI5C,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;YAS1C,iBAAiB;IAgBzB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAezB,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;IAItC;;OAEG;IACI,iBAAiB,IAAI,iBAAiB,EAAE;IA6D/C;;;OAGG;IACI,sBAAsB,IAAI,MAAM,EAAE;IAIzC,OAAO,CAAC,qBAAqB;IAS7B,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAItC;;;OAGG;IACH,kBAAkB,CAAC,KAAK,EAAE;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,YAAY,CAAA;KAAC,GAAG,IAAI;yCA5J7D,gCAAgC;2CAAhC,gCAAgC;CAmK5C"}
|
|
@@ -45,7 +45,7 @@ function ComponentArtifactViewerComponent_Conditional_2_Template(rf, ctx) { if (
|
|
|
45
45
|
function ComponentArtifactViewerComponent_Conditional_3_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
46
46
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
47
47
|
i0.ɵɵelementStart(0, "mj-react-component", 6, 0);
|
|
48
|
-
i0.ɵɵlistener("componentEvent", function ComponentArtifactViewerComponent_Conditional_3_Conditional_0_Template_mj_react_component_componentEvent_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.onComponentEvent($event)); });
|
|
48
|
+
i0.ɵɵlistener("componentEvent", function ComponentArtifactViewerComponent_Conditional_3_Conditional_0_Template_mj_react_component_componentEvent_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.onComponentEvent($event)); })("openEntityRecord", function ComponentArtifactViewerComponent_Conditional_3_Conditional_0_Template_mj_react_component_openEntityRecord_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.onOpenEntityRecord($event)); });
|
|
49
49
|
i0.ɵɵelementEnd();
|
|
50
50
|
} if (rf & 2) {
|
|
51
51
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
@@ -79,6 +79,7 @@ let ComponentArtifactViewerComponent = class ComponentArtifactViewerComponent ex
|
|
|
79
79
|
adapter;
|
|
80
80
|
reactComponent;
|
|
81
81
|
tabsChanged = new EventEmitter();
|
|
82
|
+
openEntityRecord = new EventEmitter();
|
|
82
83
|
// Component data
|
|
83
84
|
component = null;
|
|
84
85
|
componentCode = "";
|
|
@@ -209,13 +210,24 @@ let ComponentArtifactViewerComponent = class ComponentArtifactViewerComponent ex
|
|
|
209
210
|
onComponentEvent(event) {
|
|
210
211
|
console.log('Component event:', event);
|
|
211
212
|
}
|
|
213
|
+
/**
|
|
214
|
+
* Handle entity record open request from React component
|
|
215
|
+
* Propagates the event up to parent components
|
|
216
|
+
*/
|
|
217
|
+
onOpenEntityRecord(event) {
|
|
218
|
+
// Transform to use 'compositeKey' name for consistency with Angular components
|
|
219
|
+
this.openEntityRecord.emit({
|
|
220
|
+
entityName: event.entityName,
|
|
221
|
+
compositeKey: event.key
|
|
222
|
+
});
|
|
223
|
+
}
|
|
212
224
|
static ɵfac = function ComponentArtifactViewerComponent_Factory(t) { return new (t || ComponentArtifactViewerComponent)(i0.ɵɵdirectiveInject(i1.AngularAdapterService)); };
|
|
213
225
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ComponentArtifactViewerComponent, selectors: [["mj-component-artifact-viewer"]], viewQuery: function ComponentArtifactViewerComponent_Query(rf, ctx) { if (rf & 1) {
|
|
214
226
|
i0.ɵɵviewQuery(_c0, 5);
|
|
215
227
|
} if (rf & 2) {
|
|
216
228
|
let _t;
|
|
217
229
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.reactComponent = _t.first);
|
|
218
|
-
} }, outputs: { tabsChanged: "tabsChanged" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 4, vars: 2, consts: [["reactComponent", ""], [1, "component-artifact-viewer", 3, "ngClass"], [1, "component-preview"], [1, "error-state"], [1, "fa-solid", "fa-exclamation-triangle"], [3, "component"], [3, "componentEvent", "component"], [1, "fa-solid", "fa-exclamation-circle"]], template: function ComponentArtifactViewerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
230
|
+
} }, outputs: { tabsChanged: "tabsChanged", openEntityRecord: "openEntityRecord" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 4, vars: 2, consts: [["reactComponent", ""], [1, "component-artifact-viewer", 3, "ngClass"], [1, "component-preview"], [1, "error-state"], [1, "fa-solid", "fa-exclamation-triangle"], [3, "component"], [3, "componentEvent", "openEntityRecord", "component"], [1, "fa-solid", "fa-exclamation-circle"]], template: function ComponentArtifactViewerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
219
231
|
i0.ɵɵelementStart(0, "div", 1)(1, "div", 2);
|
|
220
232
|
i0.ɵɵtemplate(2, ComponentArtifactViewerComponent_Conditional_2_Template, 7, 2, "div", 3)(3, ComponentArtifactViewerComponent_Conditional_3_Template, 2, 1);
|
|
221
233
|
i0.ɵɵelementEnd()();
|
|
@@ -231,12 +243,14 @@ ComponentArtifactViewerComponent = __decorate([
|
|
|
231
243
|
export { ComponentArtifactViewerComponent };
|
|
232
244
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ComponentArtifactViewerComponent, [{
|
|
233
245
|
type: Component,
|
|
234
|
-
args: [{ selector: 'mj-component-artifact-viewer', template: "<div class=\"component-artifact-viewer\" [ngClass]=\"cssClass\">\n <!-- Component Preview (full screen) -->\n <div class=\"component-preview\">\n @if (hasError) {\n <div class=\"error-state\">\n <i class=\"fa-solid fa-exclamation-triangle\"></i>\n <h3>Component Error</h3>\n <p>{{ errorMessage }}</p>\n @if (errorDetails) {\n <details>\n <summary>Technical Details</summary>\n <pre>{{ errorDetails }}</pre>\n </details>\n }\n </div>\n } @else {\n @if (component) {\n <mj-react-component\n #reactComponent\n [component]=\"component\"\n (componentEvent)=\"onComponentEvent($event)\">\n </mj-react-component>\n } @else {\n <div class=\"error-state\">\n <i class=\"fa-solid fa-exclamation-circle\"></i>\n <h3>No Component Loaded</h3>\n <p>The component data is missing or invalid.</p>\n </div>\n }\n }\n </div>\n</div>\n\n", styles: [".component-artifact-viewer {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n background: white;\n}\n\n.component-preview {\n flex: 1;\n padding: 15px;\n overflow: auto;\n display: flex;\n flex-direction: column;\n}\n\n.error-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 40px;\n text-align: center;\n color: #dc3545;\n}\n.error-state i {\n font-size: 48px;\n margin-bottom: 16px;\n}\n.error-state h3 {\n margin: 0 0 8px 0;\n font-size: 20px;\n}\n.error-state p {\n margin: 0 0 12px 0;\n color: #6c757d;\n}\n.error-state details {\n margin-top: 16px;\n text-align: left;\n max-width: 600px;\n}\n.error-state details summary {\n cursor: pointer;\n color: #495057;\n font-weight: 500;\n margin-bottom: 8px;\n}\n.error-state details summary:hover {\n color: #212529;\n}\n.error-state details pre {\n background: #f8f9fa;\n padding: 12px;\n border-radius: 4px;\n overflow-x: auto;\n font-size: 12px;\n color: #495057;\n margin: 0;\n}\n"] }]
|
|
246
|
+
args: [{ selector: 'mj-component-artifact-viewer', template: "<div class=\"component-artifact-viewer\" [ngClass]=\"cssClass\">\n <!-- Component Preview (full screen) -->\n <div class=\"component-preview\">\n @if (hasError) {\n <div class=\"error-state\">\n <i class=\"fa-solid fa-exclamation-triangle\"></i>\n <h3>Component Error</h3>\n <p>{{ errorMessage }}</p>\n @if (errorDetails) {\n <details>\n <summary>Technical Details</summary>\n <pre>{{ errorDetails }}</pre>\n </details>\n }\n </div>\n } @else {\n @if (component) {\n <mj-react-component\n #reactComponent\n [component]=\"component\"\n (componentEvent)=\"onComponentEvent($event)\"\n (openEntityRecord)=\"onOpenEntityRecord($event)\">\n </mj-react-component>\n } @else {\n <div class=\"error-state\">\n <i class=\"fa-solid fa-exclamation-circle\"></i>\n <h3>No Component Loaded</h3>\n <p>The component data is missing or invalid.</p>\n </div>\n }\n }\n </div>\n</div>\n\n", styles: [".component-artifact-viewer {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n background: white;\n}\n\n.component-preview {\n flex: 1;\n padding: 15px;\n overflow: auto;\n display: flex;\n flex-direction: column;\n}\n\n.error-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 40px;\n text-align: center;\n color: #dc3545;\n}\n.error-state i {\n font-size: 48px;\n margin-bottom: 16px;\n}\n.error-state h3 {\n margin: 0 0 8px 0;\n font-size: 20px;\n}\n.error-state p {\n margin: 0 0 12px 0;\n color: #6c757d;\n}\n.error-state details {\n margin-top: 16px;\n text-align: left;\n max-width: 600px;\n}\n.error-state details summary {\n cursor: pointer;\n color: #495057;\n font-weight: 500;\n margin-bottom: 8px;\n}\n.error-state details summary:hover {\n color: #212529;\n}\n.error-state details pre {\n background: #f8f9fa;\n padding: 12px;\n border-radius: 4px;\n overflow-x: auto;\n font-size: 12px;\n color: #495057;\n margin: 0;\n}\n"] }]
|
|
235
247
|
}], () => [{ type: i1.AngularAdapterService }], { reactComponent: [{
|
|
236
248
|
type: ViewChild,
|
|
237
249
|
args: ['reactComponent']
|
|
238
250
|
}], tabsChanged: [{
|
|
239
251
|
type: Output
|
|
252
|
+
}], openEntityRecord: [{
|
|
253
|
+
type: Output
|
|
240
254
|
}] }); })();
|
|
241
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ComponentArtifactViewerComponent, { className: "ComponentArtifactViewerComponent", filePath: "src/lib/components/plugins/component-artifact-viewer.component.ts", lineNumber:
|
|
255
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ComponentArtifactViewerComponent, { className: "ComponentArtifactViewerComponent", filePath: "src/lib/components/plugins/component-artifact-viewer.component.ts", lineNumber: 22 }); })();
|
|
242
256
|
//# sourceMappingURL=component-artifact-viewer.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-artifact-viewer.component.js","sourceRoot":"","sources":["../../../../src/lib/components/plugins/component-artifact-viewer.component.ts","../../../../src/lib/components/plugins/component-artifact-viewer.component.html"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAmD,MAAM,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC5H,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAAE,iCAAiC,EAAqB,MAAM,mCAAmC,CAAC;AAEzG,OAAO,EAAE,0BAA0B,EAAiB,MAAM,6CAA6C,CAAC;;;;;;ICM5F,AADF,+BAAS,cACE;IAAA,iCAAiB;IAAA,iBAAU;IACpC,2BAAK;IAAA,YAAkB;IACzB,AADyB,iBAAM,EACrB;;;IADH,eAAkB;IAAlB,yCAAkB;;;IAP7B,8BAAyB;IACvB,uBAAgD;IAChD,0BAAI;IAAA,+BAAe;IAAA,iBAAK;IACxB,yBAAG;IAAA,YAAkB;IAAA,iBAAI;IACzB,wGAAoB;IAMtB,iBAAM;;;IAPD,eAAkB;IAAlB,yCAAkB;IACrB,cAKC;IALD,8CAKC;;;;IAID,
|
|
1
|
+
{"version":3,"file":"component-artifact-viewer.component.js","sourceRoot":"","sources":["../../../../src/lib/components/plugins/component-artifact-viewer.component.ts","../../../../src/lib/components/plugins/component-artifact-viewer.component.html"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAmD,MAAM,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC5H,OAAO,EAAE,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AC/E,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC;YACzB,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,YAAY,EAAE,KAAK,CAAC,GAAG;SACxB,CAAC,CAAC;IACL,CAAC;0FAlKU,gCAAgC;6DAAhC,gCAAgC;;;;;;YCnB3C,AAFF,8BAA4D,aAE3B;YAa3B,AAZF,yFAAgB,kEAYP;YAiBb,AADE,iBAAM,EACF;;YAhCiC,sCAAoB;YAGvD,eA2BC;YA3BD,sCA2BC;;;ADTQ,gCAAgC;IAD5C,aAAa,CAAC,iCAAiC,EAAE,+BAA+B,CAAC;GACrE,gCAAgC,CAmK5C;;iFAnKY,gCAAgC;cAN5C,SAAS;2BACE,8BAA8B;sDAMX,cAAc;kBAA1C,SAAS;mBAAC,gBAAgB;YACjB,WAAW;kBAApB,MAAM;YACG,gBAAgB;kBAAzB,MAAM;;kFAHI,gCAAgC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit, OnDestroy, ChangeDetectorRef, ElementRef } from '@angular/core';
|
|
2
|
-
import { DomSanitizer,
|
|
2
|
+
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
|
|
3
3
|
import { BaseArtifactViewerPluginComponent } from '../base-artifact-viewer.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
@@ -15,7 +15,6 @@ export declare class JsonArtifactViewerComponent extends BaseArtifactViewerPlugi
|
|
|
15
15
|
displayMarkdown: string | null;
|
|
16
16
|
displayHtml: string | null;
|
|
17
17
|
htmlBlobUrl: SafeResourceUrl | null;
|
|
18
|
-
renderedMarkdown: SafeHtml | null;
|
|
19
18
|
private versionAttributes;
|
|
20
19
|
private unsafeBlobUrl;
|
|
21
20
|
constructor(cdr: ChangeDetectorRef, sanitizer: DomSanitizer);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-artifact-viewer.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/plugins/json-artifact-viewer.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAE,SAAS,EAAE,iBAAiB,EAAa,UAAU,EAAE,MAAM,eAAe,CAAC;AACvG,OAAO,EAAE,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"json-artifact-viewer.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/plugins/json-artifact-viewer.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAE,SAAS,EAAE,iBAAiB,EAAa,UAAU,EAAE,MAAM,eAAe,CAAC;AACvG,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE1E,OAAO,EAAE,iCAAiC,EAAE,MAAM,mCAAmC,CAAC;;AAItF;;;;GAIG;AACH,qBAgHa,2BAA4B,SAAQ,iCAAkC,YAAW,MAAM,EAAE,SAAS;IAW3G,OAAO,CAAC,GAAG;IACX,OAAO,CAAC,SAAS;IAXK,SAAS,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC,CAAC;IAE3D,WAAW,SAAM;IACjB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAQ;IACtC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAQ;IAClC,WAAW,EAAE,eAAe,GAAG,IAAI,CAAQ;IAClD,OAAO,CAAC,iBAAiB,CAAwC;IACjE,OAAO,CAAC,aAAa,CAAuB;gBAGlC,GAAG,EAAE,iBAAiB,EACtB,SAAS,EAAE,YAAY;IAKjC,WAAW,IAAI,IAAI;IASb,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAU/B;;;OAGG;IACH,IAAoB,wBAAwB,IAAI,OAAO,CAEtD;IAED;;;;OAIG;IACH,IAAoB,0BAA0B,IAAI,OAAO,CAExD;YAEa,qBAAqB;IA6DnC,OAAO,CAAC,mBAAmB;IAyB3B,YAAY,IAAI,IAAI;IAsDpB,OAAO,CAAC,qBAAqB;IAqC7B,eAAe,IAAI,IAAI;IAUvB,SAAS,IAAI,IAAI;IAWjB,MAAM,IAAI,IAAI;IAYd;;;OAGG;IACH,OAAO,CAAC,sBAAsB;yCA3QnB,2BAA2B;2CAA3B,2BAA2B;CA8RvC"}
|
|
@@ -8,12 +8,12 @@ import { Component, ViewChild } from '@angular/core';
|
|
|
8
8
|
import { RegisterClass } from '@memberjunction/global';
|
|
9
9
|
import { BaseArtifactViewerPluginComponent } from '../base-artifact-viewer.component';
|
|
10
10
|
import { RunView } from '@memberjunction/core';
|
|
11
|
-
import { marked } from 'marked';
|
|
12
11
|
import * as i0 from "@angular/core";
|
|
13
12
|
import * as i1 from "@angular/platform-browser";
|
|
14
13
|
import * as i2 from "@angular/common";
|
|
15
14
|
import * as i3 from "@angular/forms";
|
|
16
|
-
import * as i4 from "@memberjunction/ng-
|
|
15
|
+
import * as i4 from "@memberjunction/ng-markdown";
|
|
16
|
+
import * as i5 from "@memberjunction/ng-code-editor";
|
|
17
17
|
const _c0 = ["htmlFrame"];
|
|
18
18
|
function JsonArtifactViewerComponent_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
19
19
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
@@ -38,14 +38,17 @@ function JsonArtifactViewerComponent_Conditional_7_Template(rf, ctx) { if (rf &
|
|
|
38
38
|
i0.ɵɵproperty("src", ctx_r1.htmlBlobUrl, i0.ɵɵsanitizeResourceUrl);
|
|
39
39
|
} }
|
|
40
40
|
function JsonArtifactViewerComponent_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
41
|
-
i0.ɵɵ
|
|
41
|
+
i0.ɵɵelementStart(0, "div", 7);
|
|
42
|
+
i0.ɵɵelement(1, "mj-markdown", 14);
|
|
43
|
+
i0.ɵɵelementEnd();
|
|
42
44
|
} if (rf & 2) {
|
|
43
45
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
44
|
-
i0.ɵɵ
|
|
46
|
+
i0.ɵɵadvance();
|
|
47
|
+
i0.ɵɵproperty("data", ctx_r1.displayMarkdown);
|
|
45
48
|
} }
|
|
46
49
|
function JsonArtifactViewerComponent_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
47
50
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
48
|
-
i0.ɵɵelementStart(0, "div", 8)(1, "mj-code-editor",
|
|
51
|
+
i0.ɵɵelementStart(0, "div", 8)(1, "mj-code-editor", 15);
|
|
49
52
|
i0.ɵɵtwoWayListener("ngModelChange", function JsonArtifactViewerComponent_Conditional_9_Template_mj_code_editor_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r1.jsonContent, $event) || (ctx_r1.jsonContent = $event); return i0.ɵɵresetView($event); });
|
|
50
53
|
i0.ɵɵelementEnd()();
|
|
51
54
|
} if (rf & 2) {
|
|
@@ -67,7 +70,6 @@ let JsonArtifactViewerComponent = class JsonArtifactViewerComponent extends Base
|
|
|
67
70
|
displayMarkdown = null;
|
|
68
71
|
displayHtml = null;
|
|
69
72
|
htmlBlobUrl = null;
|
|
70
|
-
renderedMarkdown = null;
|
|
71
73
|
versionAttributes = [];
|
|
72
74
|
unsafeBlobUrl = null; // Keep unsafe URL for cleanup
|
|
73
75
|
constructor(cdr, sanitizer) {
|
|
@@ -143,18 +145,7 @@ let JsonArtifactViewerComponent = class JsonArtifactViewerComponent extends Base
|
|
|
143
145
|
// Sanitize the blob URL so Angular trusts it in the iframe
|
|
144
146
|
this.htmlBlobUrl = this.sanitizer.bypassSecurityTrustResourceUrl(this.unsafeBlobUrl);
|
|
145
147
|
}
|
|
146
|
-
//
|
|
147
|
-
if (this.displayMarkdown && !this.displayHtml) {
|
|
148
|
-
try {
|
|
149
|
-
const html = marked.parse(this.displayMarkdown);
|
|
150
|
-
this.renderedMarkdown = this.sanitizer.sanitize(1, html); // 1 = SecurityContext.HTML
|
|
151
|
-
}
|
|
152
|
-
catch (err) {
|
|
153
|
-
console.error('📦 Error converting markdown to HTML:', err);
|
|
154
|
-
// Fallback to plain text
|
|
155
|
-
this.renderedMarkdown = this.displayMarkdown;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
148
|
+
// Note: Markdown rendering is now handled by <mj-markdown> component in template
|
|
158
149
|
console.log(`📦 JSON Plugin: displayHtml=${!!this.displayHtml} (${this.displayHtml?.length || 0} chars), displayMarkdown=${!!this.displayMarkdown} (${this.displayMarkdown?.length || 0} chars)`);
|
|
159
150
|
console.log(`📦 isShowingElevatedDisplay=${this.isShowingElevatedDisplay}`);
|
|
160
151
|
}
|
|
@@ -317,7 +308,7 @@ let JsonArtifactViewerComponent = class JsonArtifactViewerComponent extends Base
|
|
|
317
308
|
} if (rf & 2) {
|
|
318
309
|
let _t;
|
|
319
310
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.htmlFrame = _t.first);
|
|
320
|
-
} }, features: [i0.ɵɵInheritDefinitionFeature], decls: 10, vars: 3, consts: [["htmlFrame", ""], [1, "json-artifact-viewer", 3, "ngClass"], [1, "display-toolbar"], ["title", "Copy Content", 1, "btn-icon", 3, "click"], [1, "fas", "fa-copy"], [1, "display-content"], ["sandbox", "allow-same-origin allow-scripts allow-popups allow-popups-to-escape-sandbox allow-modals", 1, "html-iframe", 3, "src"], [1, "markdown-content"
|
|
311
|
+
} }, features: [i0.ɵɵInheritDefinitionFeature], decls: 10, vars: 3, consts: [["htmlFrame", ""], [1, "json-artifact-viewer", 3, "ngClass"], [1, "display-toolbar"], ["title", "Copy Content", 1, "btn-icon", 3, "click"], [1, "fas", "fa-copy"], [1, "display-content"], ["sandbox", "allow-same-origin allow-scripts allow-popups allow-popups-to-escape-sandbox allow-modals", 1, "html-iframe", 3, "src"], [1, "markdown-content"], [1, "json-editor-container"], ["title", "Open in New Window", 1, "btn-icon", 3, "click"], [1, "fas", "fa-external-link-alt"], ["title", "Print", 1, "btn-icon", 3, "click"], [1, "fas", "fa-print"], ["sandbox", "allow-same-origin allow-scripts allow-popups allow-popups-to-escape-sandbox allow-modals", 1, "html-iframe", 3, "load", "src"], [3, "data"], [2, "width", "100%", "height", "100%", 3, "ngModelChange", "ngModel", "language", "readonly"]], template: function JsonArtifactViewerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
321
312
|
i0.ɵɵelementStart(0, "div", 1)(1, "div", 2)(2, "button", 3);
|
|
322
313
|
i0.ɵɵlistener("click", function JsonArtifactViewerComponent_Template_button_click_2_listener() { return ctx.onCopy(); });
|
|
323
314
|
i0.ɵɵelement(3, "i", 4);
|
|
@@ -326,7 +317,7 @@ let JsonArtifactViewerComponent = class JsonArtifactViewerComponent extends Base
|
|
|
326
317
|
i0.ɵɵtemplate(5, JsonArtifactViewerComponent_Conditional_5_Template, 6, 0);
|
|
327
318
|
i0.ɵɵelementEnd();
|
|
328
319
|
i0.ɵɵelementStart(6, "div", 5);
|
|
329
|
-
i0.ɵɵtemplate(7, JsonArtifactViewerComponent_Conditional_7_Template, 2, 1, "iframe", 6)(8, JsonArtifactViewerComponent_Conditional_8_Template,
|
|
320
|
+
i0.ɵɵtemplate(7, JsonArtifactViewerComponent_Conditional_7_Template, 2, 1, "iframe", 6)(8, JsonArtifactViewerComponent_Conditional_8_Template, 2, 1, "div", 7)(9, JsonArtifactViewerComponent_Conditional_9_Template, 2, 3, "div", 8);
|
|
330
321
|
i0.ɵɵelementEnd()();
|
|
331
322
|
} if (rf & 2) {
|
|
332
323
|
i0.ɵɵproperty("ngClass", ctx.cssClass);
|
|
@@ -334,7 +325,7 @@ let JsonArtifactViewerComponent = class JsonArtifactViewerComponent extends Base
|
|
|
334
325
|
i0.ɵɵconditional(ctx.displayHtml ? 5 : -1);
|
|
335
326
|
i0.ɵɵadvance(2);
|
|
336
327
|
i0.ɵɵconditional(ctx.displayHtml && ctx.htmlBlobUrl ? 7 : ctx.displayMarkdown ? 8 : 9);
|
|
337
|
-
} }, dependencies: [i2.NgClass, i3.NgControlStatus, i3.NgModel, i4.CodeEditorComponent], styles: [".json-artifact-viewer[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n height: 100%;\n }\n\n .display-toolbar[_ngcontent-%COMP%] {\n display: flex;\n justify-content: flex-end;\n gap: 8px;\n padding: 8px;\n background: #f8f9fa;\n border-bottom: 1px solid #dee2e6;\n }\n\n .btn-icon[_ngcontent-%COMP%] {\n padding: 6px 12px;\n background: white;\n border: 1px solid #ccc;\n border-radius: 4px;\n cursor: pointer;\n font-size: 12px;\n display: flex;\n align-items: center;\n gap: 6px;\n transition: all 0.2s;\n }\n\n .btn-icon[_ngcontent-%COMP%]:hover {\n background: #e9ecef;\n border-color: #999;\n }\n\n .display-content[_ngcontent-%COMP%] {\n flex: 1;\n overflow: auto;\n min-height: 0;\n display: flex;\n flex-direction: column;\n }\n\n .html-iframe[_ngcontent-%COMP%] {\n width: 100%;\n border: none;\n background: white;\n display: block;\n }\n\n .markdown-content[_ngcontent-%COMP%] {\n flex: 1;\n padding: 20px;\n overflow: auto;\n min-height: 0;\n background: white;\n }\n\n .json-editor-container[_ngcontent-%COMP%] {\n flex: 1;\n overflow: auto;\n min-height: 0;\n }"] });
|
|
328
|
+
} }, dependencies: [i2.NgClass, i3.NgControlStatus, i3.NgModel, i4.MarkdownComponent, i5.CodeEditorComponent], styles: [".json-artifact-viewer[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n height: 100%;\n }\n\n .display-toolbar[_ngcontent-%COMP%] {\n display: flex;\n justify-content: flex-end;\n gap: 8px;\n padding: 8px;\n background: #f8f9fa;\n border-bottom: 1px solid #dee2e6;\n }\n\n .btn-icon[_ngcontent-%COMP%] {\n padding: 6px 12px;\n background: white;\n border: 1px solid #ccc;\n border-radius: 4px;\n cursor: pointer;\n font-size: 12px;\n display: flex;\n align-items: center;\n gap: 6px;\n transition: all 0.2s;\n }\n\n .btn-icon[_ngcontent-%COMP%]:hover {\n background: #e9ecef;\n border-color: #999;\n }\n\n .display-content[_ngcontent-%COMP%] {\n flex: 1;\n overflow: auto;\n min-height: 0;\n display: flex;\n flex-direction: column;\n }\n\n .html-iframe[_ngcontent-%COMP%] {\n width: 100%;\n border: none;\n background: white;\n display: block;\n }\n\n .markdown-content[_ngcontent-%COMP%] {\n flex: 1;\n padding: 20px;\n overflow: auto;\n min-height: 0;\n background: white;\n }\n\n .json-editor-container[_ngcontent-%COMP%] {\n flex: 1;\n overflow: auto;\n min-height: 0;\n }"] });
|
|
338
329
|
};
|
|
339
330
|
JsonArtifactViewerComponent = __decorate([
|
|
340
331
|
RegisterClass(BaseArtifactViewerPluginComponent, 'JsonArtifactViewerPlugin')
|
|
@@ -371,7 +362,9 @@ export { JsonArtifactViewerComponent };
|
|
|
371
362
|
(load)="onIframeLoad()">
|
|
372
363
|
</iframe>
|
|
373
364
|
} @else if (displayMarkdown) {
|
|
374
|
-
<div class="markdown-content"
|
|
365
|
+
<div class="markdown-content">
|
|
366
|
+
<mj-markdown [data]="displayMarkdown"></mj-markdown>
|
|
367
|
+
</div>
|
|
375
368
|
} @else {
|
|
376
369
|
<div class="json-editor-container">
|
|
377
370
|
<mj-code-editor
|
|
@@ -389,5 +382,5 @@ export { JsonArtifactViewerComponent };
|
|
|
389
382
|
type: ViewChild,
|
|
390
383
|
args: ['htmlFrame']
|
|
391
384
|
}] }); })();
|
|
392
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(JsonArtifactViewerComponent, { className: "JsonArtifactViewerComponent", filePath: "src/lib/components/plugins/json-artifact-viewer.component.ts", lineNumber:
|
|
385
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(JsonArtifactViewerComponent, { className: "JsonArtifactViewerComponent", filePath: "src/lib/components/plugins/json-artifact-viewer.component.ts", lineNumber: 125 }); })();
|
|
393
386
|
//# sourceMappingURL=json-artifact-viewer.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-artifact-viewer.component.js","sourceRoot":"","sources":["../../../../src/lib/components/plugins/json-artifact-viewer.component.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,SAAS,EAAwC,SAAS,EAAc,MAAM,eAAe,CAAC;AAEvG,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,iCAAiC,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC
|
|
1
|
+
{"version":3,"file":"json-artifact-viewer.component.js","sourceRoot":"","sources":["../../../../src/lib/components/plugins/json-artifact-viewer.component.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,SAAS,EAAwC,SAAS,EAAc,MAAM,eAAe,CAAC;AAEvG,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,iCAAiC,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;;;;;;;;;;IAkBrC,iCAAgF;IAA5B,+LAAS,wBAAiB,KAAC;IAC7E,wBAAwC;IAAC,4BAC3C;IAAA,iBAAS;IACT,kCAA6D;IAAtB,+LAAS,kBAAW,KAAC;IAC1D,wBAA4B;IAAC,uBAC/B;IAAA,iBAAS;;;;IAQT,qCAK0B;IAAxB,6LAAQ,qBAAc,KAAC;IACzB,iBAAS;;;IAJP,kEAAmB;;;IAMrB,8BAA8B;IAC5B,kCAAoD;IACtD,iBAAM;;;IADS,cAAwB;IAAxB,6CAAwB;;;;IAIrC,AADF,8BAAmC,yBAKI;IAHnC,kUAAyB;IAK7B,AADE,iBAAiB,EACb;;;IALF,cAAyB;IAAzB,kDAAyB;IAEzB,AADA,iCAAmB,kBACF;;AA5C/B;;;;GAIG;AAiHI,IAAM,2BAA2B,GAAjC,MAAM,2BAA4B,SAAQ,iCAAiC;IAWtE;IACA;IAXc,SAAS,CAAiC;IAE3D,WAAW,GAAG,EAAE,CAAC;IACjB,eAAe,GAAkB,IAAI,CAAC;IACtC,WAAW,GAAkB,IAAI,C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C,6BAA6B;QAC7B,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QAExC,iCAAiC;QACjC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QAExC,OAAO,OAAO,CAAC;IACjB,CAAC;qFA7RU,2BAA2B;6DAA3B,2BAA2B;;;;;;YA1GhC,AADF,AAFF,8BAAuD,aAExB,gBACsC;YAAnB,wGAAS,YAAQ,IAAC;YAC9D,uBAA2B;YAAC,sBAC9B;YAAA,iBAAS;YACT,0EAAmB;YAQrB,iBAAM;YAGN,8BAA6B;YAczB,AAJA,AATF,uFAAkC,uEASJ,uEAIrB;YAWb,AADE,iBAAM,EACF;;YA1C4B,sCAAoB;YAMlD,eAOC;YAPD,0CAOC;YAKD,eAsBC;YAtBD,sFAsBC;;;AAqEI,2BAA2B;IADvC,aAAa,CAAC,iCAAiC,EAAE,0BAA0B,CAAC;GAChE,2BAA2B,CA8RvC;;iFA9RY,2BAA2B;cAhHvC,SAAS;2BACE,yBAAyB,YACzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CT;6EAmEuB,SAAS;kBAAhC,SAAS;mBAAC,WAAW;;kFADX,2BAA2B"}
|
|
@@ -10,11 +10,11 @@ import { BaseArtifactViewerPluginComponent } from '../base-artifact-viewer.compo
|
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
import * as i1 from "@angular/common";
|
|
12
12
|
import * as i2 from "@angular/forms";
|
|
13
|
-
import * as i3 from "
|
|
13
|
+
import * as i3 from "@memberjunction/ng-markdown";
|
|
14
14
|
import * as i4 from "@memberjunction/ng-code-editor";
|
|
15
15
|
function MarkdownArtifactViewerComponent_Conditional_12_Template(rf, ctx) { if (rf & 1) {
|
|
16
16
|
i0.ɵɵelementStart(0, "div", 9);
|
|
17
|
-
i0.ɵɵelement(1, "markdown", 11);
|
|
17
|
+
i0.ɵɵelement(1, "mj-markdown", 11);
|
|
18
18
|
i0.ɵɵelementEnd();
|
|
19
19
|
} if (rf & 2) {
|
|
20
20
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -103,7 +103,7 @@ export { MarkdownArtifactViewerComponent };
|
|
|
103
103
|
<div class="markdown-content-container">
|
|
104
104
|
@if (viewMode === 'preview') {
|
|
105
105
|
<div class="markdown-preview">
|
|
106
|
-
<markdown [data]="markdownContent"></markdown>
|
|
106
|
+
<mj-markdown [data]="markdownContent"></mj-markdown>
|
|
107
107
|
</div>
|
|
108
108
|
} @else {
|
|
109
109
|
<mj-code-editor
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown-artifact-viewer.component.js","sourceRoot":"","sources":["../../../../src/lib/components/plugins/markdown-artifact-viewer.component.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,iCAAiC,EAAE,MAAM,mCAAmC,CAAC;;;;;;;IAwB5E,8BAA8B;IAC5B
|
|
1
|
+
{"version":3,"file":"markdown-artifact-viewer.component.js","sourceRoot":"","sources":["../../../../src/lib/components/plugins/markdown-artifact-viewer.component.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,iCAAiC,EAAE,MAAM,mCAAmC,CAAC;;;;;;;IAwB5E,8BAA8B;IAC5B,kCAAoD;IACtD,iBAAM;;;IADS,cAAwB;IAAxB,6CAAwB;;;;IAGvC,0CAIqC;IAHnC,+UAA6B;IAI/B,iBAAiB;;;IAJf,sDAA6B;IAE7B,AADA,qCAAuB,6BACF;;AA7BjC;;GAEG;AA8II,IAAM,+BAA+B,GAArC,MAAM,+BAAgC,SAAQ,iCAAiC;IAC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CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-artifacts",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.126.1",
|
|
4
4
|
"description": "MemberJunction: Artifact viewer plugin system for rendering different artifact types (JSON, Code, Markdown, HTML, SVG, Components)",
|
|
5
5
|
"main": "./dist/public-api.js",
|
|
6
6
|
"typings": "./dist/public-api.d.ts",
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@angular/cdk": "18.0.2",
|
|
29
29
|
"@angular/forms": "18.0.2",
|
|
30
|
-
"@memberjunction/core": "2.
|
|
31
|
-
"@memberjunction/core-entities": "2.
|
|
32
|
-
"@memberjunction/global": "2.
|
|
33
|
-
"@memberjunction/interactive-component-types": "2.
|
|
34
|
-
"@memberjunction/ng-base-types": "2.
|
|
35
|
-
"@memberjunction/ng-code-editor": "2.
|
|
36
|
-
"@memberjunction/ng-notifications": "2.
|
|
37
|
-
"@memberjunction/ng-react": "2.
|
|
38
|
-
"@memberjunction/ng-shared-generic": "2.
|
|
30
|
+
"@memberjunction/core": "2.126.1",
|
|
31
|
+
"@memberjunction/core-entities": "2.126.1",
|
|
32
|
+
"@memberjunction/global": "2.126.1",
|
|
33
|
+
"@memberjunction/interactive-component-types": "2.126.1",
|
|
34
|
+
"@memberjunction/ng-base-types": "2.126.1",
|
|
35
|
+
"@memberjunction/ng-code-editor": "2.126.1",
|
|
36
|
+
"@memberjunction/ng-notifications": "2.126.1",
|
|
37
|
+
"@memberjunction/ng-react": "2.126.1",
|
|
38
|
+
"@memberjunction/ng-shared-generic": "2.126.1",
|
|
39
|
+
"@memberjunction/ng-markdown": "2.126.1",
|
|
39
40
|
"marked": "^9.1.6",
|
|
40
|
-
"ngx-markdown": "18.0.0",
|
|
41
41
|
"rxjs": "^7.8.1",
|
|
42
42
|
"tslib": "^2.3.0"
|
|
43
43
|
},
|