@orangelogic/design-system 2.114.0 → 2.115.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/library/chunks/asset.CtPQLZOf.js +607 -0
- package/library/chunks/{color-swatch-group.5Mqr0rNP.js → color-swatch-group.DjjSIHSV.js} +1 -1
- package/library/chunks/{document-viewer.Cui5mV3v.js → document-viewer.BIC9iYpZ.js} +1232 -1228
- package/library/chunks/{endpoints.DBlquU2-.js → endpoints.CDX5PgQz.js} +251 -251
- package/library/chunks/{folder-select.Bc9x2hMO.js → folder-select.8xNjeJfp.js} +1 -1
- package/library/chunks/{list-editor.BBgFSBlF.js → list-editor.7zNWfBuW.js} +8 -8
- package/library/chunks/{table.DLrle5SR.js → table.BvbReIZh.js} +41 -40
- package/library/chunks/{time.BiQnh9wt.js → time.BSmpFe2G.js} +2 -2
- package/library/chunks/waveform.1U9U_0rd.js +60 -0
- package/library/components/asset-link-format.js +1 -1
- package/library/components/atoms.js +2 -2
- package/library/components/audio.js +131 -182
- package/library/components/color-swatch-group.js +2 -2
- package/library/components/document-viewer.js +1 -1
- package/library/components/folder-select.js +2 -2
- package/library/components/format-time.js +1 -1
- package/library/components/list-editor.js +2 -2
- package/library/components/molecules.js +2 -2
- package/library/components/organisms.js +1 -1
- package/library/components/table.js +6 -6
- package/library/components/types.js +25325 -25041
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/audio/audio.d.ts +36 -28
- package/library/packages/events/src/cx-facet-change.d.ts +16 -0
- package/library/packages/events/src/cx-faceted-filter-change.d.ts +6 -1
- package/library/packages/events/src/events.d.ts +1 -0
- package/library/packages/molecules/src/faceted-filter/components/facet-date-picker/facet-date-picker.d.ts +43 -0
- package/library/packages/molecules/src/faceted-filter/components/facet-date-picker/facet-date-picker.styles.d.ts +2 -0
- package/library/packages/molecules/src/faceted-filter/components/facet-date-range/facet-date-range.d.ts +51 -0
- package/library/packages/molecules/src/faceted-filter/components/facet-date-range/facet-date-range.styles.d.ts +2 -0
- package/library/packages/molecules/src/faceted-filter/facet-adapters.d.ts +12 -0
- package/library/packages/molecules/src/faceted-filter/faceted-filter.d.ts +14 -3
- package/library/packages/molecules/src/index.d.ts +3 -0
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +1 -1
- package/library/packages/organisms/src/content-builder/components/gallery-config/gallery-config.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/components/page-picker/page-picker.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/audio.d.ts +1 -1
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +2 -2
- package/library/packages/services/src/api/asset/asset.d.ts +3 -1
- package/library/packages/services/src/api/endpoints.d.ts +2 -0
- package/library/packages/tools/src/fetch-asset/fetch-asset.d.ts +6 -0
- package/library/packages/tools/src/fetch-image/fetch-image.d.ts +11 -4
- package/library/packages/types/src/faceted-filter.d.ts +71 -2
- package/library/packages/utils/src/image/index.d.ts +1 -0
- package/library/packages/utils/src/image/waveform.d.ts +29 -0
- package/library/react-web-component.d.ts +317 -194
- package/library/utils.js +174 -171
- package/package.json +1 -1
- package/library/chunks/asset.Drl4D1c7.js +0 -458
- package/library/chunks/wavesurfer.esm.Cwi1pz64.js +0 -1276
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface WaveformExtractionOptions {
|
|
2
|
+
/** Target number of sample columns. Defaults to the image's natural pixel width for maximum detail. */
|
|
3
|
+
sampleCount?: number;
|
|
4
|
+
/** Luminance threshold 0–1 for non-white detection. Default: 0.92. */
|
|
5
|
+
threshold?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface WaveformData {
|
|
8
|
+
height: number;
|
|
9
|
+
/** Normalized 0–1 amplitudes, length === sampleCount. */
|
|
10
|
+
peaks: number[];
|
|
11
|
+
width: number;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Loads an image from `url`, draws it onto an offscreen canvas, and samples
|
|
15
|
+
* `sampleCount` columns to extract the visible waveform amplitude.
|
|
16
|
+
* When `sampleCount` is omitted the image's natural pixel width is used, giving
|
|
17
|
+
* one sample per source column for maximum fidelity.
|
|
18
|
+
*
|
|
19
|
+
* Returns `null` on any error (network, CORS, canvas SecurityError, etc.).
|
|
20
|
+
*/
|
|
21
|
+
export declare function extractWaveformPeaks(url: string, options?: WaveformExtractionOptions): Promise<WaveformData | null>;
|
|
22
|
+
/**
|
|
23
|
+
* Builds a filled, vertically mirrored SVG path string representing a waveform.
|
|
24
|
+
* Each sample is rendered as a flat-topped bar (step-function) so the output
|
|
25
|
+
* matches server-rendered bar-style waveform images without diagonal interpolation.
|
|
26
|
+
*
|
|
27
|
+
* Returns an empty string when `peaks` is empty.
|
|
28
|
+
*/
|
|
29
|
+
export declare function buildWaveformPath(peaks: number[], viewBoxWidth: number, viewBoxHeight: number): string;
|