@printwithsynergy/artwork-pdf-editor 0.2.0 → 0.4.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.
- package/LICENSE +62 -0
- package/dist/components/AccessibilityHintsPanel.d.ts +142 -0
- package/dist/components/AccessibilityHintsPanel.d.ts.map +1 -0
- package/dist/components/AccessibilityHintsPanel.js +158 -0
- package/dist/components/AccessibilityHintsPanel.js.map +1 -0
- package/dist/components/AnnotationOverlay.d.ts +142 -0
- package/dist/components/AnnotationOverlay.d.ts.map +1 -0
- package/dist/components/AnnotationOverlay.js +141 -0
- package/dist/components/AnnotationOverlay.js.map +1 -0
- package/dist/components/AnnotationsSidebar.d.ts +98 -0
- package/dist/components/AnnotationsSidebar.d.ts.map +1 -0
- package/dist/components/AnnotationsSidebar.js +100 -0
- package/dist/components/AnnotationsSidebar.js.map +1 -0
- package/dist/components/BarcodeGeneratorPanel.d.ts +58 -0
- package/dist/components/BarcodeGeneratorPanel.d.ts.map +1 -0
- package/dist/components/BarcodeGeneratorPanel.js +91 -0
- package/dist/components/BarcodeGeneratorPanel.js.map +1 -0
- package/dist/components/BraillePanel.d.ts +99 -0
- package/dist/components/BraillePanel.d.ts.map +1 -0
- package/dist/components/BraillePanel.js +221 -0
- package/dist/components/BraillePanel.js.map +1 -0
- package/dist/components/BrandAssetsPanel.d.ts +130 -0
- package/dist/components/BrandAssetsPanel.d.ts.map +1 -0
- package/dist/components/BrandAssetsPanel.js +125 -0
- package/dist/components/BrandAssetsPanel.js.map +1 -0
- package/dist/components/BrandConsistencyPanel.d.ts +140 -0
- package/dist/components/BrandConsistencyPanel.d.ts.map +1 -0
- package/dist/components/BrandConsistencyPanel.js +158 -0
- package/dist/components/BrandConsistencyPanel.js.map +1 -0
- package/dist/components/ComplianceFindingsPanel.d.ts +62 -0
- package/dist/components/ComplianceFindingsPanel.d.ts.map +1 -0
- package/dist/components/ComplianceFindingsPanel.js +118 -0
- package/dist/components/ComplianceFindingsPanel.js.map +1 -0
- package/dist/components/DesignSuggestionsPanel.d.ts +148 -0
- package/dist/components/DesignSuggestionsPanel.d.ts.map +1 -0
- package/dist/components/DesignSuggestionsPanel.js +154 -0
- package/dist/components/DesignSuggestionsPanel.js.map +1 -0
- package/dist/components/DielineParametersPanel.d.ts +62 -0
- package/dist/components/DielineParametersPanel.d.ts.map +1 -0
- package/dist/components/DielineParametersPanel.js +170 -0
- package/dist/components/DielineParametersPanel.js.map +1 -0
- package/dist/components/DielinePreview.d.ts +150 -0
- package/dist/components/DielinePreview.d.ts.map +1 -0
- package/dist/components/DielinePreview.js +146 -0
- package/dist/components/DielinePreview.js.map +1 -0
- package/dist/components/EditorApp.d.ts +18 -3
- package/dist/components/EditorApp.d.ts.map +1 -1
- package/dist/components/EditorApp.js +42 -7
- package/dist/components/EditorApp.js.map +1 -1
- package/dist/components/EditorCanvas.d.ts +31 -2
- package/dist/components/EditorCanvas.d.ts.map +1 -1
- package/dist/components/EditorCanvas.js +97 -16
- package/dist/components/EditorCanvas.js.map +1 -1
- package/dist/components/EmailNotifyPanel.d.ts +165 -0
- package/dist/components/EmailNotifyPanel.d.ts.map +1 -0
- package/dist/components/EmailNotifyPanel.js +211 -0
- package/dist/components/EmailNotifyPanel.js.map +1 -0
- package/dist/components/FileDropZone.d.ts +9 -1
- package/dist/components/FileDropZone.d.ts.map +1 -1
- package/dist/components/FileDropZone.js +53 -5
- package/dist/components/FileDropZone.js.map +1 -1
- package/dist/components/FoldEditorPanel.d.ts +68 -0
- package/dist/components/FoldEditorPanel.d.ts.map +1 -0
- package/dist/components/FoldEditorPanel.js +65 -0
- package/dist/components/FoldEditorPanel.js.map +1 -0
- package/dist/components/FoldPreviewOverlay.d.ts +48 -0
- package/dist/components/FoldPreviewOverlay.d.ts.map +1 -0
- package/dist/components/FoldPreviewOverlay.js +182 -0
- package/dist/components/FoldPreviewOverlay.js.map +1 -0
- package/dist/components/Gs1DigitalLinkPanel.d.ts +103 -0
- package/dist/components/Gs1DigitalLinkPanel.d.ts.map +1 -0
- package/dist/components/Gs1DigitalLinkPanel.js +199 -0
- package/dist/components/Gs1DigitalLinkPanel.js.map +1 -0
- package/dist/components/HistoryPanel.d.ts +39 -0
- package/dist/components/HistoryPanel.d.ts.map +1 -0
- package/dist/components/HistoryPanel.js +72 -0
- package/dist/components/HistoryPanel.js.map +1 -0
- package/dist/components/IccSoftProofOverlay.d.ts +67 -0
- package/dist/components/IccSoftProofOverlay.d.ts.map +1 -0
- package/dist/components/IccSoftProofOverlay.js +119 -0
- package/dist/components/IccSoftProofOverlay.js.map +1 -0
- package/dist/components/ImposePanel.d.ts +71 -0
- package/dist/components/ImposePanel.d.ts.map +1 -0
- package/dist/components/ImposePanel.js +127 -0
- package/dist/components/ImposePanel.js.map +1 -0
- package/dist/components/InksPanel.d.ts +61 -0
- package/dist/components/InksPanel.d.ts.map +1 -0
- package/dist/components/InksPanel.js +84 -0
- package/dist/components/InksPanel.js.map +1 -0
- package/dist/components/JobSetupPanel.d.ts +118 -0
- package/dist/components/JobSetupPanel.d.ts.map +1 -0
- package/dist/components/JobSetupPanel.js +169 -0
- package/dist/components/JobSetupPanel.js.map +1 -0
- package/dist/components/LayersPanel.d.ts.map +1 -1
- package/dist/components/LayersPanel.js +1 -0
- package/dist/components/LayersPanel.js.map +1 -1
- package/dist/components/MarkLibraryPanel.d.ts +131 -0
- package/dist/components/MarkLibraryPanel.d.ts.map +1 -0
- package/dist/components/MarkLibraryPanel.js +184 -0
- package/dist/components/MarkLibraryPanel.js.map +1 -0
- package/dist/components/MisEstimateButton.d.ts +73 -0
- package/dist/components/MisEstimateButton.d.ts.map +1 -0
- package/dist/components/MisEstimateButton.js +57 -0
- package/dist/components/MisEstimateButton.js.map +1 -0
- package/dist/components/NutritionPanel.d.ts +118 -0
- package/dist/components/NutritionPanel.d.ts.map +1 -0
- package/dist/components/NutritionPanel.js +169 -0
- package/dist/components/NutritionPanel.js.map +1 -0
- package/dist/components/PageNavigator.d.ts.map +1 -1
- package/dist/components/PageNavigator.js +6 -1
- package/dist/components/PageNavigator.js.map +1 -1
- package/dist/components/PaletteManager.d.ts +32 -0
- package/dist/components/PaletteManager.d.ts.map +1 -0
- package/dist/components/PaletteManager.js +89 -0
- package/dist/components/PaletteManager.js.map +1 -0
- package/dist/components/PaletteToSpotPanel.d.ts +122 -0
- package/dist/components/PaletteToSpotPanel.d.ts.map +1 -0
- package/dist/components/PaletteToSpotPanel.js +160 -0
- package/dist/components/PaletteToSpotPanel.js.map +1 -0
- package/dist/components/PreflightAutoFixPanel.d.ts +110 -0
- package/dist/components/PreflightAutoFixPanel.d.ts.map +1 -0
- package/dist/components/PreflightAutoFixPanel.js +119 -0
- package/dist/components/PreflightAutoFixPanel.js.map +1 -0
- package/dist/components/PreflightDiffPanel.d.ts +127 -0
- package/dist/components/PreflightDiffPanel.d.ts.map +1 -0
- package/dist/components/PreflightDiffPanel.js +0 -0
- package/dist/components/PreflightDiffPanel.js.map +1 -0
- package/dist/components/ProcessRulesPanel.d.ts +81 -0
- package/dist/components/ProcessRulesPanel.d.ts.map +1 -0
- package/dist/components/ProcessRulesPanel.js +143 -0
- package/dist/components/ProcessRulesPanel.js.map +1 -0
- package/dist/components/SlackNotifyPanel.d.ts +139 -0
- package/dist/components/SlackNotifyPanel.d.ts.map +1 -0
- package/dist/components/SlackNotifyPanel.js +133 -0
- package/dist/components/SlackNotifyPanel.js.map +1 -0
- package/dist/components/SmartSpotMatchPanel.d.ts +143 -0
- package/dist/components/SmartSpotMatchPanel.d.ts.map +1 -0
- package/dist/components/SmartSpotMatchPanel.js +159 -0
- package/dist/components/SmartSpotMatchPanel.js.map +1 -0
- package/dist/components/StreamingRenderProgress.d.ts +60 -0
- package/dist/components/StreamingRenderProgress.d.ts.map +1 -0
- package/dist/components/StreamingRenderProgress.js +99 -0
- package/dist/components/StreamingRenderProgress.js.map +1 -0
- package/dist/components/SwatchesPicker.d.ts +83 -0
- package/dist/components/SwatchesPicker.d.ts.map +1 -0
- package/dist/components/SwatchesPicker.js +151 -0
- package/dist/components/SwatchesPicker.js.map +1 -0
- package/dist/components/TacOverlay.d.ts +47 -0
- package/dist/components/TacOverlay.d.ts.map +1 -0
- package/dist/components/TacOverlay.js +116 -0
- package/dist/components/TacOverlay.js.map +1 -0
- package/dist/components/TrapEditorPanel.d.ts +52 -0
- package/dist/components/TrapEditorPanel.d.ts.map +1 -0
- package/dist/components/TrapEditorPanel.js +64 -0
- package/dist/components/TrapEditorPanel.js.map +1 -0
- package/dist/components/TrapPreviewOverlay.d.ts +64 -0
- package/dist/components/TrapPreviewOverlay.d.ts.map +1 -0
- package/dist/components/TrapPreviewOverlay.js +120 -0
- package/dist/components/TrapPreviewOverlay.js.map +1 -0
- package/dist/components/VariantMatrixPanel.d.ts +61 -0
- package/dist/components/VariantMatrixPanel.d.ts.map +1 -0
- package/dist/components/VariantMatrixPanel.js +97 -0
- package/dist/components/VariantMatrixPanel.js.map +1 -0
- package/dist/components/VariantMatrixVersionPanel.d.ts +122 -0
- package/dist/components/VariantMatrixVersionPanel.d.ts.map +1 -0
- package/dist/components/VariantMatrixVersionPanel.js +162 -0
- package/dist/components/VariantMatrixVersionPanel.js.map +1 -0
- package/dist/components/WebhookNotifyPanel.d.ts +160 -0
- package/dist/components/WebhookNotifyPanel.d.ts.map +1 -0
- package/dist/components/WebhookNotifyPanel.js +100 -0
- package/dist/components/WebhookNotifyPanel.js.map +1 -0
- package/dist/components/WhiteUnderbasePanel.d.ts +107 -0
- package/dist/components/WhiteUnderbasePanel.d.ts.map +1 -0
- package/dist/components/WhiteUnderbasePanel.js +104 -0
- package/dist/components/WhiteUnderbasePanel.js.map +1 -0
- package/dist/hooks/useEditorMode.d.ts +25 -5
- package/dist/hooks/useEditorMode.d.ts.map +1 -1
- package/dist/hooks/useEditorMode.js +18 -5
- package/dist/hooks/useEditorMode.js.map +1 -1
- package/dist/index.d.ts +51 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +51 -2
- package/dist/index.js.map +1 -1
- package/dist/lens/preflight-findings.d.ts.map +1 -1
- package/dist/lens/preflight-findings.js.map +1 -1
- package/dist/lib/barcode-scan.d.ts +154 -0
- package/dist/lib/barcode-scan.d.ts.map +1 -0
- package/dist/lib/barcode-scan.js +152 -0
- package/dist/lib/barcode-scan.js.map +1 -0
- package/dist/lib/color-math.d.ts +76 -0
- package/dist/lib/color-math.d.ts.map +1 -0
- package/dist/lib/color-math.js +96 -0
- package/dist/lib/color-math.js.map +1 -0
- package/dist/lib/dieline-template.d.ts +87 -0
- package/dist/lib/dieline-template.d.ts.map +1 -1
- package/dist/lib/dieline-template.js +163 -0
- package/dist/lib/dieline-template.js.map +1 -1
- package/dist/lib/editor-config.d.ts +390 -0
- package/dist/lib/editor-config.d.ts.map +1 -1
- package/dist/lib/editor-config.js +90 -0
- package/dist/lib/editor-config.js.map +1 -1
- package/dist/lib/fold-geometry.d.ts +144 -0
- package/dist/lib/fold-geometry.d.ts.map +1 -0
- package/dist/lib/fold-geometry.js +138 -0
- package/dist/lib/fold-geometry.js.map +1 -0
- package/dist/lib/merge-tokens.d.ts +81 -0
- package/dist/lib/merge-tokens.d.ts.map +1 -0
- package/dist/lib/merge-tokens.js +88 -0
- package/dist/lib/merge-tokens.js.map +1 -0
- package/dist/lib/palette-registry.d.ts +40 -0
- package/dist/lib/palette-registry.d.ts.map +1 -0
- package/dist/lib/palette-registry.js +50 -0
- package/dist/lib/palette-registry.js.map +1 -0
- package/dist/lib/panel-anchor.d.ts +101 -0
- package/dist/lib/panel-anchor.d.ts.map +1 -0
- package/dist/lib/panel-anchor.js +68 -0
- package/dist/lib/panel-anchor.js.map +1 -0
- package/dist/lib/preflight/checks.d.ts.map +1 -1
- package/dist/lib/preflight/checks.js +71 -0
- package/dist/lib/preflight/checks.js.map +1 -1
- package/dist/lib/preflight/types.d.ts.map +1 -1
- package/dist/lib/preflight/types.js +11 -0
- package/dist/lib/preflight/types.js.map +1 -1
- package/dist/lib/rasterize.d.ts +93 -0
- package/dist/lib/rasterize.d.ts.map +1 -0
- package/dist/lib/rasterize.js +117 -0
- package/dist/lib/rasterize.js.map +1 -0
- package/dist/lib/separations-registry.d.ts +99 -0
- package/dist/lib/separations-registry.d.ts.map +1 -0
- package/dist/lib/separations-registry.js +59 -0
- package/dist/lib/separations-registry.js.map +1 -0
- package/dist/lib/streaming-render.d.ts +100 -0
- package/dist/lib/streaming-render.d.ts.map +1 -0
- package/dist/lib/streaming-render.js +132 -0
- package/dist/lib/streaming-render.js.map +1 -0
- package/dist/lib/unwired.d.ts +29 -0
- package/dist/lib/unwired.d.ts.map +1 -0
- package/dist/lib/unwired.js +58 -0
- package/dist/lib/unwired.js.map +1 -0
- package/package.json +20 -11
- package/dist/components/SeparationsPanel.d.ts +0 -9
- package/dist/components/SeparationsPanel.d.ts.map +0 -1
- package/dist/components/SeparationsPanel.js +0 -168
- package/dist/components/SeparationsPanel.js.map +0 -1
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wave 3 C2 — White / underbase auto-generation panel.
|
|
3
|
+
*
|
|
4
|
+
* Many packaging substrates (foils, dark plastics, kraft) require an
|
|
5
|
+
* opaque white layer printed *under* the CMYK / spots so the
|
|
6
|
+
* subsequent ink lays down with the colour the designer specified
|
|
7
|
+
* rather than being tinted by the substrate. Manually authoring this
|
|
8
|
+
* separation is tedious and error-prone — C2 asks compile-pdf's
|
|
9
|
+
* `white_underbase` producer to compute the union of CMYK fill
|
|
10
|
+
* coverage on the page and emit a new `White` separation matching
|
|
11
|
+
* that union, optionally choked inward by a small amount so the
|
|
12
|
+
* white doesn't peek out from underneath the chromatic ink.
|
|
13
|
+
*
|
|
14
|
+
* Pure-adapter design (same shape as the rest of the AI / I family
|
|
15
|
+
* panels): the host wires a {@link WhiteUnderbaseGeneratorFn} that
|
|
16
|
+
* fronts the producer; the panel owns config inputs and lifecycle
|
|
17
|
+
* state.
|
|
18
|
+
*
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
import type { ReactElement } from "react";
|
|
22
|
+
/**
|
|
23
|
+
* Spec for one underbase-generation request. Mirrors the
|
|
24
|
+
* `WhiteUnderbaseOptions` shape on compile-pdf's
|
|
25
|
+
* `/v1/white-underbase/apply` endpoint so a host can pass the value
|
|
26
|
+
* straight through.
|
|
27
|
+
*
|
|
28
|
+
* @public
|
|
29
|
+
*/
|
|
30
|
+
export type WhiteUnderbaseSpec = {
|
|
31
|
+
/** Name to assign the new separation. Default `"White"`. */
|
|
32
|
+
separationName: string;
|
|
33
|
+
/** Opacity of the underbase (0..1). 1 = solid white. */
|
|
34
|
+
opacity: number;
|
|
35
|
+
/** Distance (in mm) to choke the white inward from the chromatic
|
|
36
|
+
* ink edges. Prevents the white from peeking out around the
|
|
37
|
+
* printed colour. 0 = no choke. */
|
|
38
|
+
chokeMm: number;
|
|
39
|
+
/** How the underbase relates to overlapping chromatic ink:
|
|
40
|
+
* - `solid` — white covers the entire chromatic region (default)
|
|
41
|
+
* - `subtract-cmyk` — white opacity is scaled down where CMYK
|
|
42
|
+
* coverage approaches 100% (lighter inks need less underbase) */
|
|
43
|
+
knockoutMode: "solid" | "subtract-cmyk";
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Default spec values — sensible for the most common case
|
|
47
|
+
* (white-ink underbase on dark substrate, no choke).
|
|
48
|
+
*
|
|
49
|
+
* @public
|
|
50
|
+
*/
|
|
51
|
+
export declare const DEFAULT_WHITE_UNDERBASE_SPEC: WhiteUnderbaseSpec;
|
|
52
|
+
/**
|
|
53
|
+
* Result returned by the host generator. The host typically wires
|
|
54
|
+
* this to `CompilePdfClient.whiteUnderbase()` which calls
|
|
55
|
+
* `/v1/white-underbase/apply` and returns the producer's
|
|
56
|
+
* `separation_name` + `coverage_pct` fields.
|
|
57
|
+
*
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
export type WhiteUnderbaseResult = {
|
|
61
|
+
separationName: string;
|
|
62
|
+
/** Percentage of the page area covered by the new underbase
|
|
63
|
+
* separation. Useful as a sanity check (e.g. > 95 % suggests the
|
|
64
|
+
* page is mostly chromatic — review the choke). */
|
|
65
|
+
coveragePct: number;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Host adapter — generates the white underbase for the active
|
|
69
|
+
* document. Rejects on transport / validation errors and the panel
|
|
70
|
+
* surfaces the message inline.
|
|
71
|
+
*
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
export type WhiteUnderbaseGeneratorFn = (spec: WhiteUnderbaseSpec) => Promise<WhiteUnderbaseResult>;
|
|
75
|
+
/**
|
|
76
|
+
* Pure helper — validates a spec. Returns the first error message
|
|
77
|
+
* encountered or `null` when the spec is valid. Hosts can call this
|
|
78
|
+
* to disable the "Generate" button preemptively. Pure function.
|
|
79
|
+
*
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
export declare function validateWhiteUnderbaseSpec(spec: WhiteUnderbaseSpec): string | null;
|
|
83
|
+
/**
|
|
84
|
+
* Configuration for the {@link WhiteUnderbasePanel}.
|
|
85
|
+
*
|
|
86
|
+
* @public
|
|
87
|
+
*/
|
|
88
|
+
export type WhiteUnderbasePanelProps = {
|
|
89
|
+
/** Initial spec values — `DEFAULT_WHITE_UNDERBASE_SPEC` if absent. */
|
|
90
|
+
initialSpec?: Partial<WhiteUnderbaseSpec>;
|
|
91
|
+
/** Generator adapter — when absent, the panel renders in
|
|
92
|
+
* read-only mode (config inputs disabled). Useful when the host
|
|
93
|
+
* wants to surface the controls but defer the network wire. */
|
|
94
|
+
generator?: WhiteUnderbaseGeneratorFn;
|
|
95
|
+
/** Fired after a successful generation — typically used to refresh
|
|
96
|
+
* the editor's separations registry / inks panel. */
|
|
97
|
+
onGenerated?: (result: WhiteUnderbaseResult) => void;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Stateful panel — exposes inputs for every {@link WhiteUnderbaseSpec}
|
|
101
|
+
* field, dispatches the generator, and surfaces the result chip /
|
|
102
|
+
* inline error. Handles loading, validation, and success states.
|
|
103
|
+
*
|
|
104
|
+
* @public
|
|
105
|
+
*/
|
|
106
|
+
export declare function WhiteUnderbasePanel({ initialSpec, generator, onGenerated, }: WhiteUnderbasePanelProps): ReactElement;
|
|
107
|
+
//# sourceMappingURL=WhiteUnderbasePanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WhiteUnderbasePanel.d.ts","sourceRoot":"","sources":["../../src/components/WhiteUnderbasePanel.tsx"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C;;;;;;;GAOG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,4DAA4D;IAC5D,cAAc,EAAE,MAAM,CAAC;IACvB,wDAAwD;IACxD,OAAO,EAAE,MAAM,CAAC;IAChB;;wCAEoC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB;;;wEAGoE;IACpE,YAAY,EAAE,OAAO,GAAG,eAAe,CAAC;CACzC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,EAAE,kBAK1C,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,cAAc,EAAE,MAAM,CAAC;IACvB;;wDAEoD;IACpD,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,yBAAyB,GAAG,CACtC,IAAI,EAAE,kBAAkB,KACrB,OAAO,CAAC,oBAAoB,CAAC,CAAC;AAEnC;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,kBAAkB,GAAG,MAAM,GAAG,IAAI,CAalF;AAED;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,sEAAsE;IACtE,WAAW,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAC1C;;oEAEgE;IAChE,SAAS,CAAC,EAAE,yBAAyB,CAAC;IACtC;0DACsD;IACtD,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAC;CACtD,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,WAAW,EACX,SAAS,EACT,WAAW,GACZ,EAAE,wBAAwB,GAAG,YAAY,CAyIzC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
2
|
+
"use client";
|
|
3
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { useCallback, useState } from "react";
|
|
5
|
+
/**
|
|
6
|
+
* Default spec values — sensible for the most common case
|
|
7
|
+
* (white-ink underbase on dark substrate, no choke).
|
|
8
|
+
*
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export const DEFAULT_WHITE_UNDERBASE_SPEC = {
|
|
12
|
+
separationName: "White",
|
|
13
|
+
opacity: 1,
|
|
14
|
+
chokeMm: 0,
|
|
15
|
+
knockoutMode: "solid",
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Pure helper — validates a spec. Returns the first error message
|
|
19
|
+
* encountered or `null` when the spec is valid. Hosts can call this
|
|
20
|
+
* to disable the "Generate" button preemptively. Pure function.
|
|
21
|
+
*
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
export function validateWhiteUnderbaseSpec(spec) {
|
|
25
|
+
// Defensive against partial-spec merges that leave fields undefined
|
|
26
|
+
// (Partial<WhiteUnderbaseSpec> lets a host pass `{ separationName:
|
|
27
|
+
// undefined }`, which would otherwise throw on `.trim()`).
|
|
28
|
+
const name = spec.separationName ?? "";
|
|
29
|
+
if (!name.trim())
|
|
30
|
+
return "Separation name is required.";
|
|
31
|
+
if (!Number.isFinite(spec.opacity) || spec.opacity < 0 || spec.opacity > 1) {
|
|
32
|
+
return "Opacity must be between 0 and 1.";
|
|
33
|
+
}
|
|
34
|
+
if (!Number.isFinite(spec.chokeMm))
|
|
35
|
+
return "Choke must be a number.";
|
|
36
|
+
if (spec.chokeMm < 0)
|
|
37
|
+
return "Choke can't be negative.";
|
|
38
|
+
if (spec.chokeMm > 5)
|
|
39
|
+
return "Choke above 5 mm is implausibly large; double-check.";
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Stateful panel — exposes inputs for every {@link WhiteUnderbaseSpec}
|
|
44
|
+
* field, dispatches the generator, and surfaces the result chip /
|
|
45
|
+
* inline error. Handles loading, validation, and success states.
|
|
46
|
+
*
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
49
|
+
export function WhiteUnderbasePanel({ initialSpec, generator, onGenerated, }) {
|
|
50
|
+
const [spec, setSpec] = useState(() => {
|
|
51
|
+
// Field-wise merge — skip undefined values in initialSpec so hosts
|
|
52
|
+
// passing `{ separationName: undefined }` don't clobber the
|
|
53
|
+
// defaults and leave required fields unset.
|
|
54
|
+
const merged = { ...DEFAULT_WHITE_UNDERBASE_SPEC };
|
|
55
|
+
if (!initialSpec)
|
|
56
|
+
return merged;
|
|
57
|
+
for (const key of Object.keys(initialSpec)) {
|
|
58
|
+
const value = initialSpec[key];
|
|
59
|
+
if (value !== undefined) {
|
|
60
|
+
// biome-ignore lint/suspicious/noExplicitAny: dynamic keyed assignment
|
|
61
|
+
merged[key] = value;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return merged;
|
|
65
|
+
});
|
|
66
|
+
const [status, setStatus] = useState("idle");
|
|
67
|
+
const [result, setResult] = useState(null);
|
|
68
|
+
const [errorMsg, setErrorMsg] = useState(null);
|
|
69
|
+
const validationError = validateWhiteUnderbaseSpec(spec);
|
|
70
|
+
const canGenerate = !!generator && status !== "loading" && !validationError;
|
|
71
|
+
const generate = useCallback(async () => {
|
|
72
|
+
if (!generator)
|
|
73
|
+
return;
|
|
74
|
+
setStatus("loading");
|
|
75
|
+
setErrorMsg(null);
|
|
76
|
+
try {
|
|
77
|
+
const next = await generator(spec);
|
|
78
|
+
setResult(next);
|
|
79
|
+
setStatus("done");
|
|
80
|
+
onGenerated?.(next);
|
|
81
|
+
}
|
|
82
|
+
catch (err) {
|
|
83
|
+
const msg = err instanceof Error ? err.message : "Generation failed.";
|
|
84
|
+
setErrorMsg(msg);
|
|
85
|
+
setStatus("error");
|
|
86
|
+
}
|
|
87
|
+
}, [generator, spec, onGenerated]);
|
|
88
|
+
const update = (key, value) => {
|
|
89
|
+
setSpec((prev) => ({ ...prev, [key]: value }));
|
|
90
|
+
};
|
|
91
|
+
return (_jsxs("div", { "data-testid": "white-underbase-panel", style: { padding: "0.5rem" }, children: [_jsx("header", { style: { marginBottom: "0.5rem" }, children: _jsx("h3", { style: { margin: 0, fontSize: "0.875rem" }, children: "White underbase" }) }), _jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "0.375rem" }, children: [_jsxs("label", { style: { fontSize: "0.75rem", display: "flex", flexDirection: "column" }, children: [_jsx("span", { style: { color: "#595959", marginBottom: "0.125rem" }, children: "Separation name" }), _jsx("input", { type: "text", value: spec.separationName, onChange: (e) => update("separationName", e.target.value), disabled: !generator, style: { fontSize: "0.8125rem", padding: "0.25rem 0.375rem" } })] }), _jsxs("label", { style: { fontSize: "0.75rem", display: "flex", flexDirection: "column" }, children: [_jsxs("span", { style: { color: "#595959", marginBottom: "0.125rem" }, children: ["Opacity (", spec.opacity.toFixed(2), ")"] }), _jsx("input", { type: "range", min: 0, max: 1, step: 0.05, value: spec.opacity, onChange: (e) => {
|
|
92
|
+
const next = Number(e.target.value);
|
|
93
|
+
if (Number.isFinite(next))
|
|
94
|
+
update("opacity", next);
|
|
95
|
+
}, disabled: !generator })] }), _jsxs("label", { style: { fontSize: "0.75rem", display: "flex", flexDirection: "column" }, children: [_jsx("span", { style: { color: "#595959", marginBottom: "0.125rem" }, children: "Choke (mm)" }), _jsx("input", { type: "number", min: 0, max: 5, step: 0.05, value: spec.chokeMm, onChange: (e) => {
|
|
96
|
+
// Empty number input → "" → NaN, which would bypass
|
|
97
|
+
// validation and slip through to the generator. Treat a
|
|
98
|
+
// cleared field as 0 (the no-choke default).
|
|
99
|
+
const next = e.target.value === "" ? 0 : Number(e.target.value);
|
|
100
|
+
if (Number.isFinite(next))
|
|
101
|
+
update("chokeMm", next);
|
|
102
|
+
}, disabled: !generator, style: { fontSize: "0.8125rem", padding: "0.25rem 0.375rem" } })] }), _jsxs("label", { style: { fontSize: "0.75rem", display: "flex", flexDirection: "column" }, children: [_jsx("span", { style: { color: "#595959", marginBottom: "0.125rem" }, children: "Knockout mode" }), _jsxs("select", { value: spec.knockoutMode, onChange: (e) => update("knockoutMode", e.target.value), disabled: !generator, style: { fontSize: "0.8125rem", padding: "0.25rem 0.375rem" }, children: [_jsx("option", { value: "solid", children: "solid \u2014 full coverage" }), _jsx("option", { value: "subtract-cmyk", children: "subtract-cmyk \u2014 scale by ink density" })] })] })] }), validationError && (_jsx("div", { role: "alert", style: { marginTop: "0.5rem", fontSize: "0.75rem", color: "#a60" }, children: validationError })), _jsxs("div", { style: { marginTop: "0.5rem", display: "flex", alignItems: "center", gap: "0.5rem" }, children: [_jsx("button", { type: "button", onClick: generate, disabled: !canGenerate, style: { fontSize: "0.75rem", padding: "0.25rem 0.625rem" }, children: status === "loading" ? "Generating…" : "Generate" }), status === "done" && result && (_jsxs("span", { style: { fontSize: "0.75rem", color: "#595959" }, children: [result.separationName, " \u00B7 ", result.coveragePct.toFixed(1), "% coverage"] })), status === "error" && errorMsg && (_jsx("span", { role: "alert", style: { fontSize: "0.75rem", color: "#a00" }, children: errorMsg }))] })] }));
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=WhiteUnderbasePanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WhiteUnderbasePanel.js","sourceRoot":"","sources":["../../src/components/WhiteUnderbasePanel.tsx"],"names":[],"mappings":"AAAA,6CAA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AM,KAAK,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,UAAU,GAC3C,EACR,MAAM,KAAK,MAAM,IAAI,MAAM,IAAI,CAC9B,gBAAM,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,aACnD,MAAM,CAAC,cAAc,cAAK,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,kBACnD,CACR,EACA,MAAM,KAAK,OAAO,IAAI,QAAQ,IAAI,CACjC,eAAM,IAAI,EAAC,OAAO,EAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAC7D,QAAQ,GACJ,CACR,IACG,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,11 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Editor UI complexity tier. `"basic"` strips advanced controls and
|
|
3
|
+
* is the touch/mobile default; `"pro"` shows the full toolset.
|
|
4
|
+
* Resolved via {@link useEditorMode}.
|
|
5
|
+
*
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
1
8
|
export type EditorMode = "basic" | "pro";
|
|
2
9
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
10
|
+
* Resolve the active editor mode and expose a setter that persists
|
|
11
|
+
* the choice across reloads.
|
|
12
|
+
*
|
|
13
|
+
* Precedence (later wins):
|
|
14
|
+
*
|
|
15
|
+
* 1. Explicit user choice persisted in `localStorage`
|
|
16
|
+
* (`"artworkpdf:editor-mode"`)
|
|
17
|
+
* 2. The `prefer` arg (typically threaded from the host page —
|
|
18
|
+
* `/demo` passes `"auto"` so the viewport heuristic picks)
|
|
19
|
+
* 3. Viewport heuristic: `"pro"` on wider viewports, `"basic"`
|
|
20
|
+
* on narrower ones
|
|
21
|
+
*
|
|
22
|
+
* `setMode(null)` clears the persisted preference and falls back to
|
|
23
|
+
* the heuristic; `isAuto` is true while no explicit choice is saved.
|
|
24
|
+
*
|
|
25
|
+
* SSR-safe: returns the resolved fallback until hydration completes,
|
|
26
|
+
* so the server render matches the first client paint.
|
|
7
27
|
*
|
|
8
|
-
*
|
|
28
|
+
* @public
|
|
9
29
|
*/
|
|
10
30
|
export declare function useEditorMode(prefer?: EditorMode | "auto"): {
|
|
11
31
|
mode: EditorMode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEditorMode.d.ts","sourceRoot":"","sources":["../../src/hooks/useEditorMode.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,KAAK,CAAC;AAIzC
|
|
1
|
+
{"version":3,"file":"useEditorMode.d.ts","sourceRoot":"","sources":["../../src/hooks/useEditorMode.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,KAAK,CAAC;AAIzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,aAAa,CAAC,MAAM,GAAE,UAAU,GAAG,MAAe,GAAG;IACnE,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,EAAE,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI,KAAK,IAAI,CAAC;IAC3C,MAAM,EAAE,OAAO,CAAC;CACjB,CAqCA"}
|
|
@@ -3,12 +3,25 @@
|
|
|
3
3
|
import { useCallback, useEffect, useState } from "react";
|
|
4
4
|
const STORAGE_KEY = "artworkpdf:editor-mode";
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* 2. `prefer` prop (set by the page — e.g. demo passes "auto")
|
|
9
|
-
* 3. Viewport heuristic: pro on >= 900 CSS px, basic otherwise
|
|
6
|
+
* Resolve the active editor mode and expose a setter that persists
|
|
7
|
+
* the choice across reloads.
|
|
10
8
|
*
|
|
11
|
-
*
|
|
9
|
+
* Precedence (later wins):
|
|
10
|
+
*
|
|
11
|
+
* 1. Explicit user choice persisted in `localStorage`
|
|
12
|
+
* (`"artworkpdf:editor-mode"`)
|
|
13
|
+
* 2. The `prefer` arg (typically threaded from the host page —
|
|
14
|
+
* `/demo` passes `"auto"` so the viewport heuristic picks)
|
|
15
|
+
* 3. Viewport heuristic: `"pro"` on wider viewports, `"basic"`
|
|
16
|
+
* on narrower ones
|
|
17
|
+
*
|
|
18
|
+
* `setMode(null)` clears the persisted preference and falls back to
|
|
19
|
+
* the heuristic; `isAuto` is true while no explicit choice is saved.
|
|
20
|
+
*
|
|
21
|
+
* SSR-safe: returns the resolved fallback until hydration completes,
|
|
22
|
+
* so the server render matches the first client paint.
|
|
23
|
+
*
|
|
24
|
+
* @public
|
|
12
25
|
*/
|
|
13
26
|
export function useEditorMode(prefer = "auto") {
|
|
14
27
|
const [stored, setStored] = useState(null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEditorMode.js","sourceRoot":"","sources":["../../src/hooks/useEditorMode.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,YAAY,CAAC;AACb,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"useEditorMode.js","sourceRoot":"","sources":["../../src/hooks/useEditorMode.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,YAAY,CAAC;AACb,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAWzD,MAAM,WAAW,GAAG,wBAAwB,CAAC;AAE7C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,aAAa,CAAC,SAA8B,MAAM;IAKhE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAoB,IAAI,CAAC,CAAC;IAC9D,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAU,KAAK,CAAC,CAAC;IAC/D,MAAM,CAAC,QAAQ,EAAE,WAAW,CA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C,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC;IAC/D,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;IAEpD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,EAAE,CAAC;AACpD,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -15,9 +15,58 @@ export { EditorApp, type EditorAppProps } from "./components/EditorApp";
|
|
|
15
15
|
export type { CanvasObj } from "./components/EditorCanvas";
|
|
16
16
|
export { TopBar, ArtworkPdfLogo, type TopBarProps, type TopBarButton } from "./components/TopBar";
|
|
17
17
|
export { MobileToolDrawer, type MobileToolDrawerProps } from "./components/MobileToolDrawer";
|
|
18
|
+
export { HistoryPanel, type HistoryPanelProps } from "./components/HistoryPanel";
|
|
19
|
+
export { DielineParametersPanel, type DielineParameters, type DielineParametersPanelProps, } from "./components/DielineParametersPanel";
|
|
20
|
+
export { computeDielinePreviewLayout, DielinePreview, type DielinePreviewFoldConfig, type DielinePreviewFoldEdge, type DielinePreviewLaidOutHinge, type DielinePreviewLaidOutPanel, type DielinePreviewLayout, type DielinePreviewPanel, type DielinePreviewPanelMetadata, type DielinePreviewProps, } from "./components/DielinePreview";
|
|
21
|
+
export { TacOverlay, type TacOverlayProps } from "./components/TacOverlay";
|
|
22
|
+
export { TrapPreviewOverlay, type TrapPreviewFn, type TrapPreviewOperation, type TrapPreviewOverlayProps, } from "./components/TrapPreviewOverlay";
|
|
23
|
+
export { TrapEditorPanel, type TrapEditorPanelProps, type TrapEditorValue, } from "./components/TrapEditorPanel";
|
|
24
|
+
export { ImposePanel, type ImposePanelPreset, type ImposePanelProps, type ImposePanelValue, } from "./components/ImposePanel";
|
|
25
|
+
export { FoldPreviewOverlay, type FoldPreviewOverlayProps, } from "./components/FoldPreviewOverlay";
|
|
26
|
+
export { FoldEditorPanel, type FoldEditorEdge, type FoldEditorPanelProps, type FoldEditorPanelValue, } from "./components/FoldEditorPanel";
|
|
27
|
+
export { VariantMatrixPanel, type VariantMatrixPanelProps, type VariantMatrixPanelValue, type VariantMatrixPanelVariant, } from "./components/VariantMatrixPanel";
|
|
28
|
+
export { diffVariantMatrices, resolveSnapshot, type VariantMatrixDiffResult, type VariantMatrixModifiedVariant, type VariantMatrixSnapshot, VariantMatrixVersionPanel, type VariantMatrixVersionPanelProps, } from "./components/VariantMatrixVersionPanel";
|
|
29
|
+
export { filterMarks, groupMarksByCategory, MARK_CATEGORY_ORDER, type MarkCategory, MarkLibraryPanel, type MarkLibraryEntry, type MarkLibraryFilter, type MarkLibraryGroup, type MarkLibraryLoaderFn, type MarkLibraryPanelProps, } from "./components/MarkLibraryPanel";
|
|
30
|
+
export { composeSlackMessage, SLACK_NOTIFICATION_EVENT_LABELS, type SlackNotificationContext, type SlackNotificationEventKind, type SlackNotificationPayload, SlackNotifyPanel, type SlackNotifyFn, type SlackNotifyPanelProps, } from "./components/SlackNotifyPanel";
|
|
31
|
+
export { findingKey, indexFixSetsByFinding, PreflightAutoFixPanel, type PreflightAutoFixPanelProps, type PreflightFixLoaderFn, type PreflightFixSet, type PreflightFixSuggestion, } from "./components/PreflightAutoFixPanel";
|
|
32
|
+
export { type DeltaEQuality, deltaEQuality, formatDeltaE, isQueryReady, SmartSpotMatchPanel, type SmartSpotMatchPanelProps, type SpotMatch, type SpotMatchLoaderFn, type SpotMatchQuery, sortMatchesByDeltaE, } from "./components/SmartSpotMatchPanel";
|
|
33
|
+
export { DESIGN_SUGGESTION_CATEGORY_ORDER, DesignSuggestionsPanel, type DesignSuggestion, type DesignSuggestionCategory, type DesignSuggestionFilter, type DesignSuggestionGroup, type DesignSuggestionLoaderFn, type DesignSuggestionsPanelProps, filterDesignSuggestions, groupDesignSuggestionsByCategory, } from "./components/DesignSuggestionsPanel";
|
|
34
|
+
export { AnnotationsSidebar, type AnnotationsSidebarFilter, type AnnotationsSidebarProps, type AnnotationStatusFilter, filterAnnotationsForSidebar, sortAnnotationsByDate, } from "./components/AnnotationsSidebar";
|
|
35
|
+
export { BRAND_CONSISTENCY_SEVERITY_ORDER, BrandConsistencyPanel, type BrandConsistencyFilter, type BrandConsistencyFinding, type BrandConsistencyGroup, type BrandConsistencyLoaderFn, type BrandConsistencyPanelProps, type BrandConsistencySeverity, filterBrandConsistencyFindings, groupBrandConsistencyFindingsBySeverity, } from "./components/BrandConsistencyPanel";
|
|
36
|
+
export { composeWebhookEvent, WEBHOOK_NOTIFICATION_EVENT_LABELS, type WebhookNotificationContext, type WebhookNotificationEvent, type WebhookNotificationEventKind, type WebhookNotifyFn, WebhookNotifyPanel, type WebhookNotifyPanelProps, } from "./components/WebhookNotifyPanel";
|
|
37
|
+
export { composeEmailMessage, EMAIL_NOTIFICATION_EVENT_LABELS, type EmailNotificationContext, type EmailNotificationEventKind, type EmailNotificationPayload, EmailNotifyPanel, type EmailNotifyFn, type EmailNotifyPanelProps, parseEmailList, } from "./components/EmailNotifyPanel";
|
|
38
|
+
export { ACCESSIBILITY_SEVERITY_ORDER, AccessibilityHintsPanel, type AccessibilityCategory, type AccessibilityFilter, type AccessibilityFinding, type AccessibilityGroup, type AccessibilityHintsLoaderFn, type AccessibilityHintsPanelProps, type AccessibilitySeverity, filterAccessibilityFindings, groupAccessibilityFindingsBySeverity, } from "./components/AccessibilityHintsPanel";
|
|
39
|
+
export { type PaletteColor, type PaletteCoverageSummary, PaletteToSpotPanel, type PaletteToSpotPanelProps, type PaletteToSpotRow, type SpotCommitFn, summarizePaletteCoverage, } from "./components/PaletteToSpotPanel";
|
|
40
|
+
export { buildFoldScene, type FoldHingeAxis, type FoldPanelQuad, type FoldSceneSpec, } from "./lib/fold-geometry";
|
|
41
|
+
export { PaletteManager, type PaletteManagerProps } from "./components/PaletteManager";
|
|
42
|
+
export { SwatchesPicker, type SwatchesPickerProps, type Spot, type SpotSearchFn, type SpotLibrary, } from "./components/SwatchesPicker";
|
|
43
|
+
export { InksPanel, type Ink, type InksLoaderFn, type InksPanelProps, } from "./components/InksPanel";
|
|
44
|
+
export { DEFAULT_WHITE_UNDERBASE_SPEC, validateWhiteUnderbaseSpec, WhiteUnderbasePanel, type WhiteUnderbaseGeneratorFn, type WhiteUnderbasePanelProps, type WhiteUnderbaseResult, type WhiteUnderbaseSpec, } from "./components/WhiteUnderbasePanel";
|
|
45
|
+
export { StreamingRenderProgress, type StreamingRenderConnectFn, type StreamingRenderProgressProps, } from "./components/StreamingRenderProgress";
|
|
46
|
+
export { parseStreamingRenderEvent, type StreamingProgress, type StreamingRenderEvent, summarizeStreamingProgress, } from "./lib/streaming-render";
|
|
47
|
+
export { ComplianceFindingsPanel, type ComplianceFinding, type ComplianceFindingsPanelProps, type ComplianceLoaderFn, } from "./components/ComplianceFindingsPanel";
|
|
48
|
+
export { groupRulesByProcess, ProcessRulesPanel, type ProcessRule, type ProcessRuleGroup, type ProcessRulesLoaderFn, type ProcessRulesPanelProps, } from "./components/ProcessRulesPanel";
|
|
49
|
+
export { diffPreflightFindings, PreflightDiffPanel, type PreflightDiffPanelProps, type PreflightDiffResult, type PreflightFinding, type PreflightSnapshotInput, resolveBaselineSnapshot, } from "./components/PreflightDiffPanel";
|
|
50
|
+
export { BRAND_ASSET_KIND_ORDER, BrandAssetsPanel, type BrandAsset, type BrandAssetFilter, type BrandAssetGroup, type BrandAssetKind, type BrandAssetsPanelProps, filterBrandAssets, groupBrandAssetsByKind, } from "./components/BrandAssetsPanel";
|
|
51
|
+
export { AnnotationOverlay, type AnnotationBaseInput, type AnnotationOverlayAnnotation, type AnnotationOverlayProps, type AreaAnnotationInput, describeAnnotation, isPointInsideAnnotation, type PointAnnotationInput, type TextAnnotationInput, visibleAnnotations, } from "./components/AnnotationOverlay";
|
|
52
|
+
export { IccSoftProofOverlay, type IccSoftProofLoaderFn, type IccSoftProofOverlayProps, type IccSoftProofResult, type SoftProofIntent, } from "./components/IccSoftProofOverlay";
|
|
53
|
+
export { BarcodeGeneratorPanel, type BarcodeGeneratorPanelProps, type BarcodeRenderFn, type BarcodeRenderResult, } from "./components/BarcodeGeneratorPanel";
|
|
54
|
+
export { composeGs1DigitalLink, DEFAULT_GS1_DOMAIN, Gs1DigitalLinkPanel, isValidGs1Ai17, type Gs1AiEntry, type Gs1DigitalLinkPanelProps, type Gs1DigitalLinkResult, } from "./components/Gs1DigitalLinkPanel";
|
|
55
|
+
export { composeNutritionFacts, FDA_DAILY_VALUES, NutritionPanel, type NutritionFacts, type NutritionPanelProps, type NutritionPanelSpec, type NutritionRow, } from "./components/NutritionPanel";
|
|
56
|
+
export { BraillePanel, composeBraille, MARBURG_MEDIUM, type BrailleCell, type BrailleComposeResult, type BraillePanelProps, } from "./components/BraillePanel";
|
|
57
|
+
export { extractMergeTokens, mergeAllRows, mergeRow, validateMergeManifest, type MergeRow, type MergeValidationResult, } from "./lib/merge-tokens";
|
|
58
|
+
export { JobSetupPanel, type JobSetupPanelProps, type JobSetupValue, type PreflightContext, preflightContextOf, type PrintProcess, type SubstrateClass, type SubstrateFinish, } from "./components/JobSetupPanel";
|
|
59
|
+
export { MisEstimateButton, type MisEstimateButtonProps, type MisEstimateManifest, type MisSubmitFn, } from "./components/MisEstimateButton";
|
|
18
60
|
export { useIsMobile } from "./hooks/useIsMobile";
|
|
19
61
|
export { type EditorMode, useEditorMode } from "./hooks/useEditorMode";
|
|
20
|
-
export { type EditorConfig, DEFAULT_EDITOR_CONFIG, BASIC_MODE_OVERRIDES, PRO_MODE_OVERRIDES, resolveConfig, } from "./lib/editor-config";
|
|
21
|
-
export {
|
|
62
|
+
export { type EditorConfig, type FeatureKey, type PaletteId, DEFAULT_EDITOR_CONFIG, BASIC_MODE_OVERRIDES, PRO_MODE_OVERRIDES, resolveConfig, showFeature, isPanelVisible, } from "./lib/editor-config";
|
|
63
|
+
export { markUnwired, isUnwired } from "./lib/unwired";
|
|
64
|
+
export { type EditorDielinePanel, isPointInPanel, findPanelAt, getPanelById, resolveAnchorPanel, } from "./lib/panel-anchor";
|
|
65
|
+
export { type EditorSeparation, type RegisterSpotOptions, registerSpot, unregisterSpot, findSpotByColor, listSpots, } from "./lib/separations-registry";
|
|
66
|
+
export { hexToCmyk, parseHex, rgbToCmyk, tacPercent, } from "./lib/color-math";
|
|
67
|
+
export { rasterizeStage, sampleTACFromImageData, tacForHex, } from "./lib/rasterize";
|
|
68
|
+
export { type BarcodeDetection, type BarcodeFormat, type BarcodeValidation, ALL_BARCODE_FORMATS, scanBarcodes, validateBarcode, validateEAN13, validateGS1128, validateUPCA, } from "./lib/barcode-scan";
|
|
69
|
+
export { type PaletteRegistryEntry, PALETTE_REGISTRY, PALETTE_IDS, } from "./lib/palette-registry";
|
|
70
|
+
export { type DielineTemplate, type Page, type TemplateSet, TEMPLATES, TEMPLATE_SETS, dielineToPage, getDefaultTemplate, getTemplateById, getTemplateSetById, templateToInitialState, templateToPage, templatesToPages, templateSetToPages, } from "./lib/dieline-template";
|
|
22
71
|
export { DEFAULT_BLEED_MM, parseBleed, formatBleed } from "./lib/bleed";
|
|
23
72
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxE,YAAY,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAClG,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC7F,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,KAAK,UAAU,EAAE,aAAa,EAAE,MAAM,uBA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ACnB,YAAY,EACZ,eAAe,EACf,aAAa,EACb,cAAc,EACd,YAAY,GACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,oBAAoB,EACzB,gBAAgB,EAChB,WAAW,GACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,IAAI,EACT,KAAK,WAAW,EAChB,SAAS,EACT,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EAClB,sBAAsB,EACtB,cAAc,EACd,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -15,9 +15,58 @@
|
|
|
15
15
|
export { EditorApp } from "./components/EditorApp";
|
|
16
16
|
export { TopBar, ArtworkPdfLogo } from "./components/TopBar";
|
|
17
17
|
export { MobileToolDrawer } from "./components/MobileToolDrawer";
|
|
18
|
+
export { HistoryPanel } from "./components/HistoryPanel";
|
|
19
|
+
export { DielineParametersPanel, } from "./components/DielineParametersPanel";
|
|
20
|
+
export { computeDielinePreviewLayout, DielinePreview, } from "./components/DielinePreview";
|
|
21
|
+
export { TacOverlay } from "./components/TacOverlay";
|
|
22
|
+
export { TrapPreviewOverlay, } from "./components/TrapPreviewOverlay";
|
|
23
|
+
export { TrapEditorPanel, } from "./components/TrapEditorPanel";
|
|
24
|
+
export { ImposePanel, } from "./components/ImposePanel";
|
|
25
|
+
export { FoldPreviewOverlay, } from "./components/FoldPreviewOverlay";
|
|
26
|
+
export { FoldEditorPanel, } from "./components/FoldEditorPanel";
|
|
27
|
+
export { VariantMatrixPanel, } from "./components/VariantMatrixPanel";
|
|
28
|
+
export { diffVariantMatrices, resolveSnapshot, VariantMatrixVersionPanel, } from "./components/VariantMatrixVersionPanel";
|
|
29
|
+
export { filterMarks, groupMarksByCategory, MARK_CATEGORY_ORDER, MarkLibraryPanel, } from "./components/MarkLibraryPanel";
|
|
30
|
+
export { composeSlackMessage, SLACK_NOTIFICATION_EVENT_LABELS, SlackNotifyPanel, } from "./components/SlackNotifyPanel";
|
|
31
|
+
export { findingKey, indexFixSetsByFinding, PreflightAutoFixPanel, } from "./components/PreflightAutoFixPanel";
|
|
32
|
+
export { deltaEQuality, formatDeltaE, isQueryReady, SmartSpotMatchPanel, sortMatchesByDeltaE, } from "./components/SmartSpotMatchPanel";
|
|
33
|
+
export { DESIGN_SUGGESTION_CATEGORY_ORDER, DesignSuggestionsPanel, filterDesignSuggestions, groupDesignSuggestionsByCategory, } from "./components/DesignSuggestionsPanel";
|
|
34
|
+
export { AnnotationsSidebar, filterAnnotationsForSidebar, sortAnnotationsByDate, } from "./components/AnnotationsSidebar";
|
|
35
|
+
export { BRAND_CONSISTENCY_SEVERITY_ORDER, BrandConsistencyPanel, filterBrandConsistencyFindings, groupBrandConsistencyFindingsBySeverity, } from "./components/BrandConsistencyPanel";
|
|
36
|
+
export { composeWebhookEvent, WEBHOOK_NOTIFICATION_EVENT_LABELS, WebhookNotifyPanel, } from "./components/WebhookNotifyPanel";
|
|
37
|
+
export { composeEmailMessage, EMAIL_NOTIFICATION_EVENT_LABELS, EmailNotifyPanel, parseEmailList, } from "./components/EmailNotifyPanel";
|
|
38
|
+
export { ACCESSIBILITY_SEVERITY_ORDER, AccessibilityHintsPanel, filterAccessibilityFindings, groupAccessibilityFindingsBySeverity, } from "./components/AccessibilityHintsPanel";
|
|
39
|
+
export { PaletteToSpotPanel, summarizePaletteCoverage, } from "./components/PaletteToSpotPanel";
|
|
40
|
+
export { buildFoldScene, } from "./lib/fold-geometry";
|
|
41
|
+
export { PaletteManager } from "./components/PaletteManager";
|
|
42
|
+
export { SwatchesPicker, } from "./components/SwatchesPicker";
|
|
43
|
+
export { InksPanel, } from "./components/InksPanel";
|
|
44
|
+
export { DEFAULT_WHITE_UNDERBASE_SPEC, validateWhiteUnderbaseSpec, WhiteUnderbasePanel, } from "./components/WhiteUnderbasePanel";
|
|
45
|
+
export { StreamingRenderProgress, } from "./components/StreamingRenderProgress";
|
|
46
|
+
export { parseStreamingRenderEvent, summarizeStreamingProgress, } from "./lib/streaming-render";
|
|
47
|
+
export { ComplianceFindingsPanel, } from "./components/ComplianceFindingsPanel";
|
|
48
|
+
export { groupRulesByProcess, ProcessRulesPanel, } from "./components/ProcessRulesPanel";
|
|
49
|
+
export { diffPreflightFindings, PreflightDiffPanel, resolveBaselineSnapshot, } from "./components/PreflightDiffPanel";
|
|
50
|
+
export { BRAND_ASSET_KIND_ORDER, BrandAssetsPanel, filterBrandAssets, groupBrandAssetsByKind, } from "./components/BrandAssetsPanel";
|
|
51
|
+
export { AnnotationOverlay, describeAnnotation, isPointInsideAnnotation, visibleAnnotations, } from "./components/AnnotationOverlay";
|
|
52
|
+
export { IccSoftProofOverlay, } from "./components/IccSoftProofOverlay";
|
|
53
|
+
export { BarcodeGeneratorPanel, } from "./components/BarcodeGeneratorPanel";
|
|
54
|
+
export { composeGs1DigitalLink, DEFAULT_GS1_DOMAIN, Gs1DigitalLinkPanel, isValidGs1Ai17, } from "./components/Gs1DigitalLinkPanel";
|
|
55
|
+
export { composeNutritionFacts, FDA_DAILY_VALUES, NutritionPanel, } from "./components/NutritionPanel";
|
|
56
|
+
export { BraillePanel, composeBraille, MARBURG_MEDIUM, } from "./components/BraillePanel";
|
|
57
|
+
export { extractMergeTokens, mergeAllRows, mergeRow, validateMergeManifest, } from "./lib/merge-tokens";
|
|
58
|
+
export { JobSetupPanel, preflightContextOf, } from "./components/JobSetupPanel";
|
|
59
|
+
export { MisEstimateButton, } from "./components/MisEstimateButton";
|
|
18
60
|
export { useIsMobile } from "./hooks/useIsMobile";
|
|
19
61
|
export { useEditorMode } from "./hooks/useEditorMode";
|
|
20
|
-
export { DEFAULT_EDITOR_CONFIG, BASIC_MODE_OVERRIDES, PRO_MODE_OVERRIDES, resolveConfig, } from "./lib/editor-config";
|
|
21
|
-
export {
|
|
62
|
+
export { DEFAULT_EDITOR_CONFIG, BASIC_MODE_OVERRIDES, PRO_MODE_OVERRIDES, resolveConfig, showFeature, isPanelVisible, } from "./lib/editor-config";
|
|
63
|
+
export { markUnwired, isUnwired } from "./lib/unwired";
|
|
64
|
+
export { isPointInPanel, findPanelAt, getPanelById, resolveAnchorPanel, } from "./lib/panel-anchor";
|
|
65
|
+
export { registerSpot, unregisterSpot, findSpotByColor, listSpots, } from "./lib/separations-registry";
|
|
66
|
+
export { hexToCmyk, parseHex, rgbToCmyk, tacPercent, } from "./lib/color-math";
|
|
67
|
+
export { rasterizeStage, sampleTACFromImageData, tacForHex, } from "./lib/rasterize";
|
|
68
|
+
export { ALL_BARCODE_FORMATS, scanBarcodes, validateBarcode, validateEAN13, validateGS1128, validateUPCA, } from "./lib/barcode-scan";
|
|
69
|
+
export { PALETTE_REGISTRY, PALETTE_IDS, } from "./lib/palette-registry";
|
|
70
|
+
export { TEMPLATES, TEMPLATE_SETS, dielineToPage, getDefaultTemplate, getTemplateById, getTemplateSetById, templateToInitialState, templateToPage, templatesToPages, templateSetToPages, } from "./lib/dieline-template";
|
|
22
71
|
export { DEFAULT_BLEED_MM, parseBleed, formatBleed } from "./lib/bleed";
|
|
23
72
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAE7C;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,SAAS,EAAuB,MAAM,wBAAwB,CAAC;AAExE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAuC,MAAM,qBAAqB,CAAC;AAClG,OAAO,EAAE,gBAAgB,EAA8B,MAAM,+BAA+B,CAAC;AAC7F,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAmB,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO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pC,OAAO,EACL,SAAS,EACT,QAAQ,EACR,SAAS,EACT,UAAU,GACX,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,cAAc,EACd,sBAAsB,EACtB,SAAS,GACV,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAIL,mBAAmB,EACnB,YAAY,EACZ,eAAe,EACf,aAAa,EACb,cAAc,EACd,YAAY,GACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAEL,gBAAgB,EAChB,WAAW,GACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAIL,SAAS,EACT,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EAClB,sBAAsB,EACtB,cAAc,EACd,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preflight-findings.d.ts","sourceRoot":"","sources":["../../src/lens/preflight-findings.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAiB,MAAM,4BAA4B,CAAC;AAC7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAO9D;;;;;;;;;;;GAWG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE;IAC5C,mDAAmD;IACnD,MAAM,EAAE,eAAe,GAAG,IAAI,CAAC;IAC/B,mEAAmE;IACnE,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;CACnE,GAAG,WAAW,
|
|
1
|
+
{"version":3,"file":"preflight-findings.d.ts","sourceRoot":"","sources":["../../src/lens/preflight-findings.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAiB,MAAM,4BAA4B,CAAC;AAC7E,OAAO,KAAK,EAAE,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aAAa,EAAE,QAAQ;oBACvB,QAAQ,EAAE,QAAQ;iBACnB,aAED,kBACE,KAAK,EAAE;4BACL,OAAO,EAAE,gBAAgB;4BACzB,YAAY,EAAE,aAAa,MAAM,EAAE;4BACnC,OAAO,EAAE,MAAM;4BACf,UAAU,EAAE,QAAQ;4BACpB,GAAG,EAAE,QAAQ;yBACd,aAED,eACE,KAAK,EAAE;oCACL,KAAK,EAAE,CAAC;oCACR,MAAM,EAAE,CAAC;oCACT,YAAY,EAAE,CAAC;oCACf,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;iCAClD,wBAED,EACF,eAAM,KAAK,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"preflight-findings.js","sourceRoot":"","sources":["../../src/lens/preflight-findings.tsx"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,YAAY,CAAC;;AAIb,MAAM,QAAQ,GAAG,SAAS,CAAC;AAC3B,MAAM,MAAM,GAAG,SAAS,CAAC;AACzB,MAAM,KAAK,GAAG,SAAS,CAAC;AACxB,MAAM,KAAK,GAAG,MAAM,CAAC;AAErB;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,uBAAuB,CAAC,IAKvC;IACC,OAAO;QACL,EAAE,EAAE,4BAA4B;QAChC,OAAO,EAAE,OAAO;QAChB,IAAI,EAAE,aAAa;QACnB,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,EAAE;QACT,KAAK,CAAC,IAAmB;YACvB,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;YAC3B,IAAI,CAAC,MAAM,EAAE,CAAC;gBACZ,OAAO,CACL,cACE,KAAK,EAAE;wBACL,OAAO,EAAE,SAAS;wBAClB,QAAQ,EAAE,SAAS;wBACnB,KAAK,EAAE,KAAK;wBACZ,UAAU,EAAE,QAAQ;wBACpB,MAAM,EAAE,MAAM;qBACf,+DAGG,CACP,CAAC;YACJ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