@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.
Files changed (50) hide show
  1. package/library/chunks/asset.CtPQLZOf.js +607 -0
  2. package/library/chunks/{color-swatch-group.5Mqr0rNP.js → color-swatch-group.DjjSIHSV.js} +1 -1
  3. package/library/chunks/{document-viewer.Cui5mV3v.js → document-viewer.BIC9iYpZ.js} +1232 -1228
  4. package/library/chunks/{endpoints.DBlquU2-.js → endpoints.CDX5PgQz.js} +251 -251
  5. package/library/chunks/{folder-select.Bc9x2hMO.js → folder-select.8xNjeJfp.js} +1 -1
  6. package/library/chunks/{list-editor.BBgFSBlF.js → list-editor.7zNWfBuW.js} +8 -8
  7. package/library/chunks/{table.DLrle5SR.js → table.BvbReIZh.js} +41 -40
  8. package/library/chunks/{time.BiQnh9wt.js → time.BSmpFe2G.js} +2 -2
  9. package/library/chunks/waveform.1U9U_0rd.js +60 -0
  10. package/library/components/asset-link-format.js +1 -1
  11. package/library/components/atoms.js +2 -2
  12. package/library/components/audio.js +131 -182
  13. package/library/components/color-swatch-group.js +2 -2
  14. package/library/components/document-viewer.js +1 -1
  15. package/library/components/folder-select.js +2 -2
  16. package/library/components/format-time.js +1 -1
  17. package/library/components/list-editor.js +2 -2
  18. package/library/components/molecules.js +2 -2
  19. package/library/components/organisms.js +1 -1
  20. package/library/components/table.js +6 -6
  21. package/library/components/types.js +25325 -25041
  22. package/library/package.json +1 -1
  23. package/library/packages/atoms/src/components/audio/audio.d.ts +36 -28
  24. package/library/packages/events/src/cx-facet-change.d.ts +16 -0
  25. package/library/packages/events/src/cx-faceted-filter-change.d.ts +6 -1
  26. package/library/packages/events/src/events.d.ts +1 -0
  27. package/library/packages/molecules/src/faceted-filter/components/facet-date-picker/facet-date-picker.d.ts +43 -0
  28. package/library/packages/molecules/src/faceted-filter/components/facet-date-picker/facet-date-picker.styles.d.ts +2 -0
  29. package/library/packages/molecules/src/faceted-filter/components/facet-date-range/facet-date-range.d.ts +51 -0
  30. package/library/packages/molecules/src/faceted-filter/components/facet-date-range/facet-date-range.styles.d.ts +2 -0
  31. package/library/packages/molecules/src/faceted-filter/facet-adapters.d.ts +12 -0
  32. package/library/packages/molecules/src/faceted-filter/faceted-filter.d.ts +14 -3
  33. package/library/packages/molecules/src/index.d.ts +3 -0
  34. package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +1 -1
  35. package/library/packages/organisms/src/content-builder/components/gallery-config/gallery-config.d.ts +1 -0
  36. package/library/packages/organisms/src/content-builder/components/page-picker/page-picker.d.ts +1 -0
  37. package/library/packages/organisms/src/content-builder/configs/audio.d.ts +1 -1
  38. package/library/packages/organisms/src/content-builder/configs-controller.d.ts +2 -2
  39. package/library/packages/services/src/api/asset/asset.d.ts +3 -1
  40. package/library/packages/services/src/api/endpoints.d.ts +2 -0
  41. package/library/packages/tools/src/fetch-asset/fetch-asset.d.ts +6 -0
  42. package/library/packages/tools/src/fetch-image/fetch-image.d.ts +11 -4
  43. package/library/packages/types/src/faceted-filter.d.ts +71 -2
  44. package/library/packages/utils/src/image/index.d.ts +1 -0
  45. package/library/packages/utils/src/image/waveform.d.ts +29 -0
  46. package/library/react-web-component.d.ts +317 -194
  47. package/library/utils.js +174 -171
  48. package/package.json +1 -1
  49. package/library/chunks/asset.Drl4D1c7.js +0 -458
  50. 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;