@ng-prism/plugin-figma 21.4.5 → 21.5.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.
@@ -1 +1 @@
1
- {"version":3,"file":"figma-panel.component.d.ts","sourceRoot":"","sources":["../src/figma-panel.component.ts"],"names":[],"mappings":";AAYA,qBAkDa,mBAAmB;IAC9B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAqB;IAC9C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmC;IAE1D,QAAQ,CAAC,eAAe,+CAAwB;IAEhD,SAAS,CAAC,QAAQ,CAAC,QAAQ,gDAKxB;;yCAXQ,mBAAmB;2CAAnB,mBAAmB;CA0B/B"}
1
+ {"version":3,"file":"figma-panel.component.d.ts","sourceRoot":"","sources":["../src/figma-panel.component.ts"],"names":[],"mappings":";AAYA,qBAkCa,mBAAmB;IAC9B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAqB;IAC9C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmC;IAE1D,QAAQ,CAAC,eAAe,+CAAwB;IAEhD,SAAS,CAAC,QAAQ,CAAC,QAAQ,gDAKxB;;yCAXQ,mBAAmB;2CAAnB,mBAAmB;CA4B/B"}
@@ -45,22 +45,20 @@ export class FigmaPanelComponent {
45
45
  i0.ɵɵconditionalCreate(0, FigmaPanelComponent_Conditional_0_Template, 2, 0, "iframe", 1)(1, FigmaPanelComponent_Conditional_1_Template, 5, 2, "div", 2);
46
46
  } if (rf & 2) {
47
47
  i0.ɵɵconditional(ctx.figmaUrl() ? 0 : 1);
48
- } }, styles: ["[_nghost-%COMP%] {\n display: block;\n width: 100%;\n height: 100%;\n }\n\n .prism-figma-panel__iframe[_ngcontent-%COMP%] {\n width: 100%;\n height: 100%;\n min-height: 400px;\n border: none;\n }\n\n .prism-figma-panel__empty[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n min-height: 200px;\n color: var(--prism-text-muted, #6b7280);\n font-size: 14px;\n }\n\n .prism-figma-panel__empty[_ngcontent-%COMP%] code[_ngcontent-%COMP%] {\n font-family: var(--prism-font-mono, monospace);\n background: var(--prism-bg-surface, #f3f4f6);\n padding: 2px 6px;\n border-radius: 4px;\n font-size: 13px;\n }"], changeDetection: 0 });
48
+ } }, styles: ["[_nghost-%COMP%] { display: block; width: 100%; height: 100%; }\n .prism-figma-panel__iframe[_ngcontent-%COMP%] {\n width: 100%; height: 100%; min-height: 400px; border: none;\n }\n .prism-figma-panel__empty[_ngcontent-%COMP%] {\n display: flex; align-items: center; justify-content: center;\n height: 100%; min-height: 200px;\n color: var(--prism-text-muted); font-size: 14px;\n }\n .prism-figma-panel__empty[_ngcontent-%COMP%] code[_ngcontent-%COMP%] {\n font-family: var(--font-mono);\n background: color-mix(in srgb, var(--prism-primary) 8%, transparent);\n color: var(--prism-primary);\n padding: 2px 6px; border-radius: var(--radius-xs);\n font-size: var(--fs-lg);\n }"], changeDetection: 0 });
49
49
  }
50
50
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FigmaPanelComponent, [{
51
51
  type: Component,
52
52
  args: [{ selector: 'prism-figma-panel', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
53
53
  @if (figmaUrl()) {
54
- <iframe
55
- #iframe
56
- class="prism-figma-panel__iframe"
57
- allowfullscreen
58
- ></iframe>
54
+ <iframe #iframe class="prism-figma-panel__iframe" allowfullscreen></iframe>
59
55
  } @else {
60
- <div class="prism-figma-panel__empty">
61
- No Figma design linked. Add <code>meta: {{ '{' }} figma: 'https://...' {{ '}' }}</code> to &#64;Showcase.
62
- </div>
56
+ <div class="prism-figma-panel__empty">
57
+ No Figma design linked. Add
58
+ <code>meta: {{ '{' }} figma: 'https://...' {{ '}' }}</code> to
59
+ &#64;Showcase.
60
+ </div>
63
61
  }
64
- `, styles: ["\n :host {\n display: block;\n width: 100%;\n height: 100%;\n }\n\n .prism-figma-panel__iframe {\n width: 100%;\n height: 100%;\n min-height: 400px;\n border: none;\n }\n\n .prism-figma-panel__empty {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n min-height: 200px;\n color: var(--prism-text-muted, #6b7280);\n font-size: 14px;\n }\n\n .prism-figma-panel__empty code {\n font-family: var(--prism-font-mono, monospace);\n background: var(--prism-bg-surface, #f3f4f6);\n padding: 2px 6px;\n border-radius: 4px;\n font-size: 13px;\n }\n "] }]
62
+ `, styles: ["\n :host { display: block; width: 100%; height: 100%; }\n .prism-figma-panel__iframe {\n width: 100%; height: 100%; min-height: 400px; border: none;\n }\n .prism-figma-panel__empty {\n display: flex; align-items: center; justify-content: center;\n height: 100%; min-height: 200px;\n color: var(--prism-text-muted); font-size: 14px;\n }\n .prism-figma-panel__empty code {\n font-family: var(--font-mono);\n background: color-mix(in srgb, var(--prism-primary) 8%, transparent);\n color: var(--prism-primary);\n padding: 2px 6px; border-radius: var(--radius-xs);\n font-size: var(--fs-lg);\n }\n "] }]
65
63
  }], () => [], { iframe: [{ type: i0.ViewChild, args: ['iframe', { isSignal: true }] }], activeComponent: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeComponent", required: false }] }] }); })();
66
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FigmaPanelComponent, { className: "FigmaPanelComponent", filePath: "figma-panel.component.ts", lineNumber: 63 }); })();
64
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FigmaPanelComponent, { className: "FigmaPanelComponent", filePath: "figma-panel.component.ts", lineNumber: 47 }); })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ng-prism/plugin-figma",
3
- "version": "21.4.5",
3
+ "version": "21.5.0",
4
4
  "description": "Figma design embed panel for ng-prism.",
5
5
  "keywords": [
6
6
  "@ng-prism/core",