@prolibu-suite/cobalt-core 0.11.4 → 0.11.6
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/custom-elements.json +65 -31
- package/dist/cjs/co-audio-player.cjs.entry.js +198 -46
- package/dist/cjs/co-kbd_2.cjs.entry.js +10 -3
- package/dist/cjs/cobalt.cjs.js +1 -1
- package/dist/cjs/index-bHoidDwv.js +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cobalt/cobalt.esm.js +1 -1
- package/dist/cobalt/p-4a7fd0b4.entry.js +1 -0
- package/dist/cobalt/p-868d1a18.entry.js +1 -0
- package/dist/collection/components/co-audio-player/co-audio-player.js +40 -47
- package/dist/collection/components/co-audio-player/co-audio-player.peaks-cache.js +104 -0
- package/dist/collection/components/co-audio-player/co-audio-player.utils.js +61 -0
- package/dist/collection/components/co-autocomplete/co-autocomplete.js +1 -1
- package/dist/collection/components/co-avatar-group/co-avatar-group.js +1 -1
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.js +1 -1
- package/dist/collection/components/co-color-area/co-color-area.js +2 -2
- package/dist/collection/components/co-color-slider/co-color-slider.js +1 -1
- package/dist/collection/components/co-combobox/co-combobox.js +1 -1
- package/dist/collection/components/co-command-search/co-command-search.js +1 -1
- package/dist/collection/components/co-data-table/co-data-table.js +1 -1
- package/dist/collection/components/co-date-range-picker/co-date-range-picker.js +2 -2
- package/dist/collection/components/co-document-editor/co-document-editor.js +5 -5
- package/dist/collection/components/co-popover/co-popover.js +1 -1
- package/dist/collection/components/co-radio-group/co-radio-group.js +1 -1
- package/dist/collection/components/co-ref-field/co-ref-field.js +4 -4
- package/dist/collection/components/co-segmented-bar/co-segmented-bar.js +1 -1
- package/dist/collection/components/co-select/co-select.js +1 -1
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.js +1 -1
- package/dist/collection/components/co-toast/co-toast.js +2 -2
- package/dist/collection/components/co-tooltip/co-tooltip.css +14 -5
- package/dist/collection/components/co-tooltip/co-tooltip.js +29 -2
- package/dist/collection/components/co-transfer-list/co-transfer-list.js +1 -1
- package/dist/collection/components/co-tree-item/co-tree-item.js +2 -2
- package/dist/components/co-audio-player.js +1 -1
- package/dist/components/co-autocomplete.js +1 -1
- package/dist/components/co-avatar-group.js +1 -1
- package/dist/components/co-avatar.js +1 -1
- package/dist/components/co-combobox.js +1 -1
- package/dist/components/co-command-search.js +1 -1
- package/dist/components/co-data-table.js +1 -1
- package/dist/components/co-document-editor.js +1 -1
- package/dist/components/co-file-field.js +1 -1
- package/dist/components/co-list-item.js +1 -1
- package/dist/components/co-option-list.js +1 -1
- package/dist/components/co-ref-field.js +1 -1
- package/dist/components/co-sidebar-nav.js +1 -1
- package/dist/components/co-tooltip.js +1 -1
- package/dist/components/{p-BqFBZ1PT.js → p-BW10Sgiy.js} +1 -1
- package/dist/components/{p-VcrjNCew.js → p-BzNBPHen.js} +1 -1
- package/dist/components/p-V7HYy0VO.js +1 -0
- package/dist/esm/co-audio-player.entry.js +198 -46
- package/dist/esm/co-kbd_2.entry.js +10 -3
- package/dist/esm/cobalt.js +1 -1
- package/dist/esm/index-DJkaRtbb.js +4 -4
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/co-audio-player/co-audio-player.d.ts +8 -1
- package/dist/types/components/co-audio-player/co-audio-player.peaks-cache.d.ts +58 -0
- package/dist/types/components/co-audio-player/co-audio-player.utils.d.ts +33 -0
- package/dist/types/components/co-tooltip/co-tooltip.d.ts +6 -0
- package/dist/types/components.d.ts +11 -0
- package/package.json +4 -4
- package/dist/cobalt/p-358a6c2a.entry.js +0 -1
- package/dist/cobalt/p-db623519.entry.js +0 -1
- package/dist/components/p-9VoFSbIH.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as o,a as i}from"./p-DJkaRtbb.js";import{c as s,g as e,f as a}from"./p-BtliEQAT.js";const r={es:{ctrl:"Ctrl",shift:"Shift",alt:"Alt",win:"Win"},en:{ctrl:"Ctrl",shift:"Shift",alt:"Alt",win:"Win"},pt:{ctrl:"Ctrl",shift:"Shift",alt:"Alt",win:"Win"}},n={mod:"command",cmd:"command",shift:"arrow-fat-up",alt:"option",ctrl:"control"};function c(t){return"mod"===t||"cmd"===t||"shift"===t||"alt"===t||"ctrl"===t}function l(t,o,i){if("mac"===o)switch(t){case"mod":case"cmd":return"Cmd";case"shift":return"Shift";case"alt":return"Option";case"ctrl":return"Control"}switch(t){case"mod":case"ctrl":return i.ctrl;case"cmd":return i.win;case"shift":return i.shift;case"alt":return i.alt}}const h=class{constructor(o){t(this,o),this.keys="",this.platform="auto",this.surface="light",this.size="sm",this.chord=!1}resolvePlatform(){return"mac"===this.platform?"mac":"win"===this.platform?"win":function(){if("undefined"==typeof navigator)return!1;const t=navigator.platform||"",o=navigator.userAgent||"";return/Mac/i.test(t)||/Mac/i.test(o)}()?"mac":"win"}render(){const t=this.keys.split("+").map((t=>t.trim().toLowerCase())).filter(Boolean),i=this.resolvePlatform(),s=r[function(t){const o=(t||"").toLowerCase();return o.startsWith("es")?"es":o.startsWith("pt")?"pt":"en"}(this.locale)],e="sm"===this.size?12:10,a=t.map((t=>c(t)?l(t,i,s):t.toUpperCase())).join(" + "),h=t=>c(t)&&"mac"===i,p=(t,e)=>h(t)?o("co-icon",{name:n[t],size:e}):c(t)?l(t,i,s):t.toUpperCase(),d=[];return this.chord?d.push(o("kbd",{class:"co-kbd__key co-kbd__key--chord",part:"key",key:"chord"},t.map(((t,i)=>o("span",{class:{"co-kbd__cell":!0,"co-kbd__cell--icon":h(t),"co-kbd__cell--text":!h(t)},part:"cell",key:`cell-${i}`},p(t,12)))))):t.forEach(((t,i)=>{i>0&&d.push(o("span",{class:"co-kbd__sep",part:"sep",key:`sep-${i}`},"+")),d.push(o("kbd",{class:"co-kbd__key",part:"key",key:`key-${i}`},p(t,e)))})),o("span",{key:"d2b28cba40938051dd4488ceb0e06391e9e4b31d",class:{"co-kbd":!0,[`co-kbd--${this.size}`]:!0,[`co-kbd--${this.surface}`]:!0,"co-kbd--chord":this.chord},role:"group","aria-label":a,part:"group"},d)}};h.style=":host{display:inline-flex}.co-kbd{display:inline-flex;align-items:center;gap:var(--co-spacing-xxs, 2px)}.co-kbd__sep{font-family:var(--co-font-family-primary, 'Geist', sans-serif);font-size:var(--co-font-size-10, 10px);line-height:1;opacity:0.6}.co-kbd__key{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;font-family:var(--co-font-family-primary, 'Geist', sans-serif);font-style:normal;font-weight:var(--co-font-weight-medium, 500);font-size:var(--co-font-size-10, 10px);line-height:1;text-transform:uppercase;border-radius:var(--co-border-radius-xxs, 4px)}.co-kbd--sm .co-kbd__key{min-width:30px;height:18px;padding:0 3px}.co-kbd--xs .co-kbd__key{width:16px;height:16px;padding:0}.co-kbd__cell{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:12px;height:12px;flex-shrink:0;white-space:nowrap}.co-kbd__cell--icon{width:12px}.co-kbd__cell--text{width:auto;padding:0 1px}.co-kbd--xs .co-kbd__key--chord{width:auto;min-width:16px;height:16px;padding:0 2px}.co-kbd--light .co-kbd__key{background:var(--co-semantic-surface-control, #f6f6f6);color:var(--co-semantic-text-default, #1f1c1b)}.co-kbd--light .co-kbd__sep{color:var(--co-semantic-text-default, #1f1c1b)}.co-kbd--dark .co-kbd__key{background:var(--co-color-opacity-blanco-16, rgba(255, 255, 255, 0.16));color:var(--co-color-base-blanco, #fff)}.co-kbd--dark .co-kbd__sep{color:var(--co-color-base-blanco, #fff)}";const p=class{constructor(o){t(this,o),this.content="",this.placement="top",this.offset=8,this.showDelay=80,this.hideDelay=100,this.disabled=!1,this.arrow=!0,this.flip=!0,this.maxWidth="280px",this.block=!1,this.variant="default",this.tone="default",this.visible=!1,this.actualPlacement="top",this.closing=!1,this.suppressed=!1,this.scrollParents=[],this.cachedOffsetAncestor=null,this.offsetAncestorComputed=!1,this.scheduleShow=()=>{this.disabled||!this.content||this.suppressed||(this.clearHideTimeout(),this.visible||(this.showTimeout=setTimeout((()=>{this.visible=!0}),this.showDelay)))},this.scheduleHide=()=>{this.clearShowTimeout(),this.visible&&(this.hideTimeout=setTimeout((()=>{this.visible=!1}),this.hideDelay))},this.hideImmediate=()=>{this.clearTimers(),this.visible=!1},this.finishClose=()=>{clearTimeout(this.closeFallbackTimer),this.visible||(this.closing=!1,this.panelEl=void 0)},this.handlePanelTransitionEnd=t=>{!this.visible&&this.closing&&t.target===this.panelEl&&"opacity"===t.propertyName&&this.finishClose()},this.handleMouseEnter=()=>{this.scheduleShow()},this.handleMouseLeave=()=>{this.suppressed=!1,this.scheduleHide()},this.handlePointerDown=()=>{this.suppressed=!0,this.hideImmediate()},this.handleFocusIn=()=>{this.scheduleShow()},this.handleFocusOut=()=>{this.suppressed=!1,this.scheduleHide()},this.handleKeyDown=t=>{"Escape"===t.key&&this.visible&&this.hideImmediate()},this.updatePosition=()=>{if(!this.visible||!this.triggerEl||!this.panelEl)return;const t=this.triggerEl.getBoundingClientRect(),o=this.panelEl.getBoundingClientRect();if(0===o.width&&0===o.height)return;const{top:i,left:a,actualPlacement:r}=s(t,o,{placement:this.placement,offset:this.offset,flip:this.flip});this.actualPlacement=r;let n=i,c=a;if(!this.panelEl.matches(":popover-open")&&(this.offsetAncestorComputed||(this.cachedOffsetAncestor=e(this.panelEl),(this.cachedOffsetAncestor||this.panelEl.isConnected)&&(this.offsetAncestorComputed=!0)),this.cachedOffsetAncestor)){const t=this.cachedOffsetAncestor.getBoundingClientRect();n-=t.top,c-=t.left}this.panelEl&&(this.panelEl.style.top=`${n}px`,this.panelEl.style.left=`${c}px`,this.panelEl.classList.add("co-tooltip__panel--positioned"))},this.scheduleUpdate=()=>{this.rafId&&cancelAnimationFrame(this.rafId),this.rafId=requestAnimationFrame(this.updatePosition)}}disconnectedCallback(){this.clearTimers(),this.cleanupListeners(),clearTimeout(this.closeFallbackTimer),this.closing=!1}onVisibleChange(t){t?(this.closing=!1,clearTimeout(this.closeFallbackTimer),this.scheduleUpdate(),requestAnimationFrame((()=>{requestAnimationFrame((()=>{this.updatePosition()}))})),this.addScrollListeners()):(this.cleanupListeners(),this.cachedOffsetAncestor=null,this.offsetAncestorComputed=!1,this.closing=!0,clearTimeout(this.closeFallbackTimer),this.closeFallbackTimer=setTimeout((()=>this.finishClose()),250))}onDisabledChange(t){t&&this.visible&&(this.visible=!1,this.clearTimers())}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=void 0)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=void 0)}clearTimers(){this.clearShowTimeout(),this.clearHideTimeout()}promotePanel(){const t=this.panelEl;if(t&&"function"==typeof t.showPopover)try{t.matches(":popover-open")||t.showPopover()}catch(t){}}addScrollListeners(){window.addEventListener("resize",this.scheduleUpdate,{passive:!0}),window.addEventListener("scroll",this.scheduleUpdate,{passive:!0,capture:!0}),this.scrollParents=a(this.el);for(const t of this.scrollParents)t.addEventListener("scroll",this.scheduleUpdate,{passive:!0})}cleanupListeners(){this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=void 0),window.removeEventListener("resize",this.scheduleUpdate),window.removeEventListener("scroll",this.scheduleUpdate,{capture:!0});for(const t of this.scrollParents)t.removeEventListener("scroll",this.scheduleUpdate);this.scrollParents=[]}render(){const t=this.actualPlacement.split("-")[0];return o("div",{key:"53c8dbd21619fd8caa4105b86b4b1765c2361252",class:"co-tooltip"},o("div",{key:"f9e5e3b352b37c69a67538c6db3d10f9fc945976",class:"co-tooltip__trigger",ref:t=>this.triggerEl=t,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onPointerDown:this.handlePointerDown,onFocusin:this.handleFocusIn,onFocusout:this.handleFocusOut,onKeyDown:this.handleKeyDown,"aria-describedby":this.visible?"tooltip-panel":void 0},o("slot",{key:"067ac53e5b491c7990acfa7c236ae2090a6657fc"})),(this.visible||this.closing)&&this.content&&o("div",{key:"42436edfbd802bfd8c23dea5b8cfdd290fa150c7",id:"tooltip-panel",class:{"co-tooltip__panel":!0,[`co-tooltip__panel--${t}`]:!0,"co-tooltip__panel--closing":this.closing,"co-tooltip__panel--label":"label"===this.variant,"co-tooltip__panel--tone-error":"error"===this.tone,"co-tooltip__panel--with-shortcut":!!this.shortcut},role:"tooltip",popover:"manual",part:"panel",onTransitionEnd:this.handlePanelTransitionEnd,ref:t=>{t&&t!==this.panelEl&&(this.panelEl=t,this.promotePanel(),this.scheduleUpdate())},style:{maxWidth:this.maxWidth}},this.arrow&&o("div",{key:"7520aaa3245fea55a7fcac31f33c56247b1fb5d8",class:`co-tooltip__arrow co-tooltip__arrow--${t}`}),o("span",{key:"d3797d1c3a31c64cb30d4d8f448204e3a9f8c017",class:"co-tooltip__content"},this.content),this.shortcut&&o("co-kbd",{key:"01354b1fd110de3000d48ad9eaef0e3329a64e48",keys:this.shortcut,surface:"dark",size:"xs"})))}get el(){return i(this)}static get watchers(){return{visible:[{onVisibleChange:0}],disabled:[{onDisabledChange:0}]}}};p.style=":host{display:inline-block;position:relative}.co-tooltip{display:inline-block}.co-tooltip__trigger{display:inline-block}:host([block]){display:block;width:100%;min-width:0}:host([block]) .co-tooltip,:host([block]) .co-tooltip__trigger{display:block;width:100%;min-width:0}.co-tooltip__panel{position:fixed;inset:auto;top:0;left:0;margin:0;border:0;max-height:none;overflow:visible;z-index:10000;visibility:hidden;opacity:0;pointer-events:none;--co-tooltip-surface:var(--co-color-base-negro, #1f1c1b);background:var(--co-tooltip-surface);color:var(--co-color-base-blanco, #fff);font-family:var(--co-font-family-primary, 'Geist', sans-serif);font-size:var(--co-font-size-12, 12px);line-height:1.4;font-weight:400;text-transform:none;letter-spacing:var(--co-font-letter-spacing-body, normal);padding:var(--co-spacing-xs, 4px) var(--co-spacing-sm, 8px);border-radius:var(--co-border-radius-xxs, 4px);box-shadow:0 4px 12px rgba(31, 28, 27, 0.12);white-space:normal;word-wrap:break-word;transition:opacity var(--co-motion-duration-fast) var(--co-motion-ease-out), transform var(--co-motion-duration-fast) var(--co-motion-ease-out)}.co-tooltip__panel--positioned{visibility:visible;opacity:1}.co-tooltip__panel--closing{visibility:visible;opacity:0;transition:opacity var(--co-motion-duration-instant) var(--co-motion-ease-in), transform var(--co-motion-duration-instant) var(--co-motion-ease-in)}.co-tooltip__panel--top{transform:translateY(4px)}.co-tooltip__panel--top.co-tooltip__panel--positioned{transform:translateY(0)}.co-tooltip__panel--bottom{transform:translateY(-4px)}.co-tooltip__panel--bottom.co-tooltip__panel--positioned{transform:translateY(0)}.co-tooltip__panel--left{transform:translateX(4px)}.co-tooltip__panel--left.co-tooltip__panel--positioned{transform:translateX(0)}.co-tooltip__panel--right{transform:translateX(-4px)}.co-tooltip__panel--right.co-tooltip__panel--positioned{transform:translateX(0)}.co-tooltip__arrow{position:absolute;width:0;height:0;border:5px solid transparent}.co-tooltip__arrow--top{bottom:-10px;left:50%;transform:translateX(-50%);border-top-color:var(--co-tooltip-surface);border-bottom:none}.co-tooltip__arrow--bottom{top:-5px;left:50%;transform:translateX(-50%);border-bottom-color:var(--co-tooltip-surface);border-top:none}.co-tooltip__arrow--left{right:-10px;top:50%;transform:translateY(-50%);border-left-color:var(--co-tooltip-surface);border-right:none}.co-tooltip__arrow--right{left:-5px;top:50%;transform:translateY(-50%);border-right-color:var(--co-tooltip-surface);border-left:none}.co-tooltip__panel--tone-error{--co-tooltip-surface:var(--co-semantic-status-error, #aa2e1b)}.co-tooltip__content{display:block}.co-tooltip__panel--label{padding:4px 8px;border-radius:var(--co-border-radius-xs, 8px);font-weight:var(--co-font-weight-medium, 500);line-height:1;box-shadow:none}.co-tooltip__panel--label .co-tooltip__arrow{display:none}.co-tooltip__panel--with-shortcut{display:flex;align-items:center;gap:6px}.co-tooltip__panel--with-shortcut:not(.co-tooltip__panel--label){padding-right:10px;}.co-tooltip__panel--label.co-tooltip__panel--with-shortcut{padding-right:4px}";export{h as co_kbd,p as co_tooltip}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { formatTime,
|
|
2
|
+
import { formatTime, resampleEnvelope, fallbackPeaks, scrubFraction, resolveDuration } from "./co-audio-player.utils";
|
|
3
|
+
import { loadAudioPeaks } from "./co-audio-player.peaks-cache";
|
|
3
4
|
/**
|
|
4
5
|
* Reproductor de audio compacto con forma de onda: play/pausa, progreso sobre la
|
|
5
6
|
* onda, tiempo, velocidad y descarga (notas de voz, grabaciones de llamadas).
|
|
@@ -42,8 +43,15 @@ export class CoAudioPlayer {
|
|
|
42
43
|
this.containerWidth = 0;
|
|
43
44
|
/** Current playback rate; the speed control cycles through `SPEEDS`. */
|
|
44
45
|
this.playbackRate = 1;
|
|
45
|
-
//
|
|
46
|
-
|
|
46
|
+
// Envolvente acotada del decode (≤ PEAK_ENVELOPE_BINS máximos por bloque), para
|
|
47
|
+
// re-derivar las barras al redimensionar sin volver a descargar. NUNCA el PCM
|
|
48
|
+
// completo: ese pesaba ~32 MB por 3 min de audio y por instancia. La envolvente es
|
|
49
|
+
// la misma referencia que guarda el caché de módulo (compartida, no copiada).
|
|
50
|
+
this.peakEnvelope = null;
|
|
51
|
+
// Barras exactas (del PCM, calculadas dentro del decode) para los anchos que esta
|
|
52
|
+
// instancia —u otra con la misma src— tenía mientras el decode estaba en vuelo.
|
|
53
|
+
// Un ancho que no esté acá sale de la envolvente.
|
|
54
|
+
this.exactPeaks = null;
|
|
47
55
|
// Length reported by the WebAudio decode; NaN when nothing has decoded (yet).
|
|
48
56
|
// It is the only trustworthy duration for a container without a duration header.
|
|
49
57
|
this.decodedDuration = NaN;
|
|
@@ -172,17 +180,22 @@ export class CoAudioPlayer {
|
|
|
172
180
|
this.resizeObserver = undefined;
|
|
173
181
|
}
|
|
174
182
|
onSrcChange() { this.init(); }
|
|
175
|
-
// Re-derive bars for the current width: from
|
|
183
|
+
// Re-derive bars for the current width: from the decoded envelope if any, else the
|
|
176
184
|
// deterministic fallback shape. Reassign the array so Stencil re-renders.
|
|
177
185
|
rebuildBars() {
|
|
178
|
-
this.peaks = this.
|
|
179
|
-
?
|
|
186
|
+
this.peaks = this.peakEnvelope
|
|
187
|
+
? this.decodedBars(this.effectiveBars)
|
|
180
188
|
: fallbackPeaks(this.effectiveBars);
|
|
181
189
|
}
|
|
190
|
+
decodedBars(bars) {
|
|
191
|
+
var _a, _b;
|
|
192
|
+
return (_b = (_a = this.exactPeaks) === null || _a === void 0 ? void 0 : _a.get(bars)) !== null && _b !== void 0 ? _b : resampleEnvelope(this.peakEnvelope, bars);
|
|
193
|
+
}
|
|
182
194
|
init() {
|
|
183
195
|
this.teardown();
|
|
184
196
|
const token = ++this.loadToken;
|
|
185
|
-
this.
|
|
197
|
+
this.peakEnvelope = null;
|
|
198
|
+
this.exactPeaks = null;
|
|
186
199
|
this.decodedDuration = NaN;
|
|
187
200
|
this.peaks = fallbackPeaks(this.effectiveBars); // draw immediately; refine with real peaks
|
|
188
201
|
this.currentTime = 0;
|
|
@@ -221,56 +234,36 @@ export class CoAudioPlayer {
|
|
|
221
234
|
}
|
|
222
235
|
this.isPlaying = false;
|
|
223
236
|
}
|
|
237
|
+
/**
|
|
238
|
+
* Picos + duración del decode, vía el caché de módulo (`co-audio-player.peaks-cache`):
|
|
239
|
+
* dos instancias con la misma `src` comparten UNA descarga y UN decode, y lo que
|
|
240
|
+
* vuelve es la envolvente acotada, no el PCM.
|
|
241
|
+
*/
|
|
224
242
|
async extractPeaks(url, token) {
|
|
225
|
-
var _a;
|
|
226
|
-
let ctx;
|
|
227
243
|
try {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
* created before the user has interacted trips the browser's autoplay
|
|
232
|
-
* policy — "The AudioContext was not allowed to start. It must be resumed
|
|
233
|
-
* (or created) after a user gesture on the page", once per player. A page
|
|
234
|
-
* with 15 recordings logged it 15 times. The offline one has no output
|
|
235
|
-
* device, so the policy does not apply to it.
|
|
236
|
-
*
|
|
237
|
-
* Its arguments are placeholders: nothing is ever rendered through this
|
|
238
|
-
* context, it is only the host for `decodeAudioData`.
|
|
239
|
-
*/
|
|
240
|
-
const OfflineCtx = window.OfflineAudioContext || window.webkitOfflineAudioContext;
|
|
241
|
-
const Ctx = window.AudioContext || window.webkitAudioContext;
|
|
242
|
-
if ((!OfflineCtx && !Ctx) || typeof fetch === 'undefined')
|
|
243
|
-
return; // keep fallback
|
|
244
|
-
ctx = OfflineCtx ? new OfflineCtx(1, 1, 44100) : new Ctx();
|
|
245
|
-
const buf = await (await fetch(url)).arrayBuffer();
|
|
246
|
-
const audioBuf = await ctx.decodeAudioData(buf);
|
|
244
|
+
// El ancho se consulta al TERMINAR el decode (no ahora: acá todavía no se midió);
|
|
245
|
+
// 0 si esta carga ya no es la vigente, para no pagar barras que nadie pinta.
|
|
246
|
+
const res = await loadAudioPeaks(url, () => (token === this.loadToken ? this.effectiveBars : 0));
|
|
247
247
|
if (token !== this.loadToken)
|
|
248
248
|
return; // a newer src superseded this decode
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
this.
|
|
249
|
+
if (!res)
|
|
250
|
+
return; // no WebAudio/fetch here: keep the fallback
|
|
251
|
+
this.peakEnvelope = res.envelope;
|
|
252
|
+
this.exactPeaks = res.exact;
|
|
253
|
+
this.decodedDuration = res.duration;
|
|
254
|
+
this.peaks = this.decodedBars(this.effectiveBars);
|
|
252
255
|
}
|
|
253
|
-
catch (
|
|
256
|
+
catch (_a) {
|
|
254
257
|
if (token !== this.loadToken)
|
|
255
258
|
return;
|
|
256
259
|
// Undecodable (codec WebAudio can't handle, CORS, network): keep the
|
|
257
260
|
// deterministic fallback wave and let <audio> own the duration — playback,
|
|
258
261
|
// seek and the time readout all still work, or degrade to `--:--`.
|
|
259
|
-
this.
|
|
262
|
+
this.peakEnvelope = null;
|
|
263
|
+
this.exactPeaks = null;
|
|
260
264
|
this.decodedDuration = NaN;
|
|
261
265
|
this.peaks = fallbackPeaks(this.effectiveBars); // stays functional
|
|
262
266
|
}
|
|
263
|
-
finally {
|
|
264
|
-
// Always release the context. Chrome caps concurrent AudioContexts per
|
|
265
|
-
// document, so leaking one per failed decode would eventually stop every
|
|
266
|
-
// later player on the page from decoding at all. `close()` lives on
|
|
267
|
-
// AudioContext, not on every BaseAudioContext (an OfflineAudioContext
|
|
268
|
-
// needs no closing and may not implement it): optional call, not a cast.
|
|
269
|
-
try {
|
|
270
|
-
await ((_a = ctx === null || ctx === void 0 ? void 0 : ctx.close) === null || _a === void 0 ? void 0 : _a.call(ctx));
|
|
271
|
-
}
|
|
272
|
-
catch ( /* already closed */_c) { /* already closed */ }
|
|
273
|
-
}
|
|
274
267
|
if (token === this.loadToken)
|
|
275
268
|
this.syncDuration();
|
|
276
269
|
}
|
|
@@ -351,13 +344,13 @@ export class CoAudioPlayer {
|
|
|
351
344
|
// below `aria-valuenow` the moment playback advances. ARIA 1.2 makes valuemax
|
|
352
345
|
// optional for `slider`, so leaving it off while unknown is well-formed.
|
|
353
346
|
const ariaMax = total ? Math.floor(total) : undefined;
|
|
354
|
-
const bar = (hFrac, i, played = false) => (h("rect", { key: '
|
|
355
|
-
return (h("div", { key: '
|
|
347
|
+
const bar = (hFrac, i, played = false) => (h("rect", { key: 'a3d5a225a904e22ba9905ef8198fa7e1b14e0e2f', x: i * UNIT, y: H / 2 - (hFrac * H) / 2, width: W, height: Math.max(hFrac * H, 2), rx: R, class: { 'co-audio-player__bar': true, 'co-audio-player__bar--played': played } }));
|
|
348
|
+
return (h("div", { key: 'afbbf524713a1146653e69928ee21e263202315f', class: {
|
|
356
349
|
'co-audio-player': true,
|
|
357
350
|
'co-audio-player--compact': this.compact,
|
|
358
351
|
'co-audio-player--error': this.hasError,
|
|
359
352
|
'co-audio-player--playing': this.isPlaying,
|
|
360
|
-
}, part: "player" }, h("button", { key: '
|
|
353
|
+
}, part: "player" }, h("button", { key: '5918385fbd8fb6fad4795e1a75eed5d073e0654c', type: "button", class: "co-audio-player__play", part: "play", "aria-label": this.hasError ? 'Audio no disponible' : this.isPlaying ? 'Pausar' : 'Reproducir', "aria-busy": this.isLoading ? 'true' : 'false', disabled: this.hasError || !this.src, onClick: this.toggle }, h("co-icon", { key: 'e7a566257df253914593712bd20029bb8f1bcdfd', name: this.hasError ? 'warning-circle' : this.isPlaying ? 'pause' : 'play', weight: "fill", size: this.compact ? 12 : 14 })), h("div", { key: '70488015726d0c966fa3e738d9f2893d71b99ebf', class: "co-audio-player__wave", part: "wave", role: "slider", tabindex: "0", "aria-label": "Progreso de reproducci\u00F3n", "aria-valuemin": 0, "aria-valuemax": ariaMax, "aria-valuenow": Math.floor(this.currentTime), ref: (el) => (this.waveEl = el), onClick: (e) => this.seekAt(e.clientX), onKeyDown: this.onWaveKey }, h("svg", { key: '8c70e4f74537e5f8ab6f66bc0da464a72507e81c', class: "co-audio-player__svg", viewBox: `0 0 ${vbW} ${H}`, preserveAspectRatio: "none", "aria-hidden": "true" }, this.peaks.map((hFrac, i) => bar(hFrac, i)), h("clipPath", { key: 'f0d37d76b3d6ab09dbd09582c8657b3fe7cb8c4c', id: "co-ap-clip" }, h("rect", { key: '436de0ce10f98c868760c76505d134f3db2dbb54', x: "0", y: "0", width: (pct / 100) * vbW, height: H })), h("g", { key: '939a1a8851d6e41b4d3c37d7201f87a6403830bb', "clip-path": "url(#co-ap-clip)" }, this.peaks.map((hFrac, i) => bar(hFrac, i, true))))), h("span", { key: 'bd57bdd97a780864aa633ec5174d4f733799a278', class: "co-audio-player__time", part: "time" }, formatTime(this.currentTime), " / ", formatTime(this.duration)), !this.compact && (h("button", { key: 'd1f559546da0b0f97009afca79fe922ce569e67f', type: "button", class: "co-audio-player__speed", part: "speed", "aria-label": `Velocidad de reproducción ${this.playbackRate}x`, onClick: this.cycleSpeed }, this.playbackRate, "x")), !this.compact && !this.noDownload && (h("button", { key: 'a1503b85bb2edf02566dcad9b8e83b1fea20b159', type: "button", class: "co-audio-player__dl", part: "download", "aria-label": "Descargar", onClick: () => this.download() }, h("co-icon", { key: 'dc96b8afdb8036e76a0c515d76c625460f4fc44d', name: "download-simple", size: 14 })))));
|
|
361
354
|
}
|
|
362
355
|
static get is() { return "co-audio-player"; }
|
|
363
356
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { buildPeakEnvelope, resamplePeaks } from "./co-audio-player.utils";
|
|
2
|
+
/** Tope de entradas. Cada una pesa ≤ 256 KB (`PEAK_ENVELOPE_BINS` Float32) más unas
|
|
3
|
+
* pocas listas de barras exactas, así que el caché lleno queda en ~4 MB. Una
|
|
4
|
+
* instancia montada conserva SU envolvente aunque la entrada se desaloje (es la
|
|
5
|
+
* misma referencia, no una copia). */
|
|
6
|
+
export const PEAKS_CACHE_MAX = 16;
|
|
7
|
+
// Map conserva el orden de inserción: la primera clave es la menos usada (LRU).
|
|
8
|
+
const cache = new Map();
|
|
9
|
+
const inflight = new Map();
|
|
10
|
+
function remember(url, value) {
|
|
11
|
+
cache.delete(url);
|
|
12
|
+
cache.set(url, value);
|
|
13
|
+
while (cache.size > PEAKS_CACHE_MAX)
|
|
14
|
+
cache.delete(cache.keys().next().value);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Picos + duración de `url`: del caché si están, uniéndose a la carga en vuelo si
|
|
18
|
+
* otra instancia ya la pidió, o cargándolos. Solo se cachea un resultado real: un
|
|
19
|
+
* error (CORS, red, códec) o un `null` se devuelven tal cual y el próximo pedido
|
|
20
|
+
* reintenta.
|
|
21
|
+
*/
|
|
22
|
+
export function loadAudioPeaks(url, wantBars, loader = decodeAudioPeaks) {
|
|
23
|
+
const hit = cache.get(url);
|
|
24
|
+
if (hit) {
|
|
25
|
+
remember(url, hit); // refresca su posición LRU
|
|
26
|
+
return Promise.resolve(hit);
|
|
27
|
+
}
|
|
28
|
+
const pending = inflight.get(url);
|
|
29
|
+
if (pending) {
|
|
30
|
+
if (wantBars)
|
|
31
|
+
pending.wanted.add(wantBars);
|
|
32
|
+
return pending.promise;
|
|
33
|
+
}
|
|
34
|
+
const wanted = new Set(wantBars ? [wantBars] : []);
|
|
35
|
+
const p = loader(url, wanted).then((res) => {
|
|
36
|
+
inflight.delete(url);
|
|
37
|
+
if (res)
|
|
38
|
+
remember(url, res);
|
|
39
|
+
return res;
|
|
40
|
+
}, (err) => {
|
|
41
|
+
inflight.delete(url);
|
|
42
|
+
throw err;
|
|
43
|
+
});
|
|
44
|
+
inflight.set(url, { promise: p, wanted });
|
|
45
|
+
return p;
|
|
46
|
+
}
|
|
47
|
+
/** Vacía el caché (tests; y un host que necesite liberar memoria a mano). */
|
|
48
|
+
export function clearAudioPeaksCache() {
|
|
49
|
+
cache.clear();
|
|
50
|
+
inflight.clear();
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Descarga + decode con Web Audio, reducido a la envolvente. El `AudioBuffer`
|
|
54
|
+
* (y con él el PCM completo) no sale de esta función: queda sin referencias
|
|
55
|
+
* apenas se calcula la envolvente.
|
|
56
|
+
*/
|
|
57
|
+
export async function decodeAudioPeaks(url, wanted = new Set()) {
|
|
58
|
+
var _a;
|
|
59
|
+
let ctx;
|
|
60
|
+
try {
|
|
61
|
+
/**
|
|
62
|
+
* `OfflineAudioContext` FIRST, and a live `AudioContext` only as the
|
|
63
|
+
* fallback: decoding a waveform needs no audio OUTPUT, and a live context
|
|
64
|
+
* created before the user has interacted trips the browser's autoplay
|
|
65
|
+
* policy — "The AudioContext was not allowed to start. It must be resumed
|
|
66
|
+
* (or created) after a user gesture on the page", once per player. A page
|
|
67
|
+
* with 15 recordings logged it 15 times. The offline one has no output
|
|
68
|
+
* device, so the policy does not apply to it.
|
|
69
|
+
*
|
|
70
|
+
* Its arguments are placeholders: nothing is ever rendered through this
|
|
71
|
+
* context, it is only the host for `decodeAudioData`.
|
|
72
|
+
*/
|
|
73
|
+
const OfflineCtx = window.OfflineAudioContext || window.webkitOfflineAudioContext;
|
|
74
|
+
const Ctx = window.AudioContext || window.webkitAudioContext;
|
|
75
|
+
if ((!OfflineCtx && !Ctx) || typeof fetch === 'undefined')
|
|
76
|
+
return null;
|
|
77
|
+
ctx = OfflineCtx ? new OfflineCtx(1, 1, 44100) : new Ctx();
|
|
78
|
+
const buf = await (await fetch(url)).arrayBuffer();
|
|
79
|
+
const audioBuf = await ctx.decodeAudioData(buf);
|
|
80
|
+
const pcm = audioBuf.getChannelData(0);
|
|
81
|
+
return { envelope: buildPeakEnvelope(pcm), exact: exactBarsFor(pcm, wanted), duration: audioBuf.duration };
|
|
82
|
+
}
|
|
83
|
+
finally {
|
|
84
|
+
// Always release the context. Chrome caps concurrent AudioContexts per
|
|
85
|
+
// document, so leaking one per failed decode would eventually stop every
|
|
86
|
+
// later player on the page from decoding at all. `close()` lives on
|
|
87
|
+
// AudioContext, not on every BaseAudioContext (an OfflineAudioContext
|
|
88
|
+
// needs no closing and may not implement it): optional call, not a cast.
|
|
89
|
+
try {
|
|
90
|
+
await ((_a = ctx === null || ctx === void 0 ? void 0 : ctx.close) === null || _a === void 0 ? void 0 : _a.call(ctx));
|
|
91
|
+
}
|
|
92
|
+
catch ( /* already closed */_b) { /* already closed */ }
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
/** Barras exactas para cada ancho que las instancias en espera quieren ahora mismo. */
|
|
96
|
+
export function exactBarsFor(pcm, wanted) {
|
|
97
|
+
const exact = new Map();
|
|
98
|
+
for (const want of wanted) {
|
|
99
|
+
const bars = want();
|
|
100
|
+
if (bars > 0 && !exact.has(bars))
|
|
101
|
+
exact.set(bars, resamplePeaks(pcm, bars));
|
|
102
|
+
}
|
|
103
|
+
return exact;
|
|
104
|
+
}
|
|
@@ -49,6 +49,67 @@ export function resamplePeaks(channelData, bars) {
|
|
|
49
49
|
}
|
|
50
50
|
return peaks;
|
|
51
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Resolución de la envolvente que se retiene por grabación, en bloques.
|
|
54
|
+
*
|
|
55
|
+
* Las barras EXACTAS del ancho vigente se calculan del PCM antes de soltarlo (ver
|
|
56
|
+
* `co-audio-player.peaks-cache`); la envolvente solo sirve los anchos que aparecen
|
|
57
|
+
* DESPUÉS (resize, o una segunda instancia que llega con el caché ya caliente). El
|
|
58
|
+
* reproductor deriva las barras del ancho (`floor(ancho / barDensity)`, ~853 a
|
|
59
|
+
* 2560 px), así que la envolvente tiene que ir muy por encima de eso: 65 536 bloques
|
|
60
|
+
* = ≥ 76 bloques por barra hasta 2560 px, y pesan 256 KB (Float32) frente a ~32 MB
|
|
61
|
+
* del PCM de 3 min a 44,1 kHz. Medido contra el exacto con PCM sintético de 3 min:
|
|
62
|
+
* desvío máx. ≈ 1 px de 40 en las barras que difieren (≈ 0,8 px con ruido blanco).
|
|
63
|
+
*/
|
|
64
|
+
export const PEAK_ENVELOPE_BINS = 65536;
|
|
65
|
+
/** PCM → envolvente de a lo sumo `maxBins` bloques. Con `length ≤ maxBins` el bloque
|
|
66
|
+
* es de 1 muestra y la envolvente ES |PCM| (sin pérdida). */
|
|
67
|
+
export function buildPeakEnvelope(channelData, maxBins = PEAK_ENVELOPE_BINS) {
|
|
68
|
+
const length = channelData.length;
|
|
69
|
+
const blockSize = Math.max(1, Math.ceil(length / Math.max(1, maxBins)));
|
|
70
|
+
const bins = Math.ceil(length / blockSize);
|
|
71
|
+
const peaks = new Float32Array(bins);
|
|
72
|
+
for (let b = 0; b < bins; b++) {
|
|
73
|
+
let max = 0;
|
|
74
|
+
const end = Math.min(length, (b + 1) * blockSize);
|
|
75
|
+
for (let j = b * blockSize; j < end; j++) {
|
|
76
|
+
const abs = Math.abs(channelData[j]);
|
|
77
|
+
if (abs > max)
|
|
78
|
+
max = abs;
|
|
79
|
+
}
|
|
80
|
+
peaks[b] = max;
|
|
81
|
+
}
|
|
82
|
+
return { peaks, blockSize, length };
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Las mismas barras que `resamplePeaks(pcm, bars)`, calculadas desde la envolvente:
|
|
86
|
+
* mismo paso (`floor(length / bars)` muestras), mismo recorte de la cola y misma
|
|
87
|
+
* fórmula de altura. Cada barra toma el máximo de los bloques que TOCA su rango de
|
|
88
|
+
* muestras, así que el resultado es IDÉNTICO cuando `blockSize` es 1 o divide el
|
|
89
|
+
* paso, y en el caso general solo puede sumar el pico de un bloque parcial en cada
|
|
90
|
+
* borde (nunca queda por debajo del exacto).
|
|
91
|
+
*/
|
|
92
|
+
export function resampleEnvelope(env, bars) {
|
|
93
|
+
const { peaks: blocks, blockSize, length: len } = env;
|
|
94
|
+
if (!len || bars <= 0)
|
|
95
|
+
return [];
|
|
96
|
+
const step = Math.max(1, Math.floor(len / bars));
|
|
97
|
+
const peaks = [];
|
|
98
|
+
for (let i = 0; i < bars; i++) {
|
|
99
|
+
const start = i * step;
|
|
100
|
+
const end = Math.min(start + step, len); // exclusivo, como el bucle de resamplePeaks
|
|
101
|
+
let max = 0;
|
|
102
|
+
if (start < end) {
|
|
103
|
+
const last = Math.floor((end - 1) / blockSize);
|
|
104
|
+
for (let b = Math.floor(start / blockSize); b <= last; b++) {
|
|
105
|
+
if (blocks[b] > max)
|
|
106
|
+
max = blocks[b];
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
peaks.push(0.12 + max * 0.88);
|
|
110
|
+
}
|
|
111
|
+
return peaks;
|
|
112
|
+
}
|
|
52
113
|
/** Deterministic pseudo-waveform (stable render + testable — no Math.random). */
|
|
53
114
|
export function fallbackPeaks(bars) {
|
|
54
115
|
if (bars <= 0)
|
|
@@ -431,7 +431,7 @@ export class CoAutocomplete {
|
|
|
431
431
|
"references": {
|
|
432
432
|
"AutocompleteOption": {
|
|
433
433
|
"location": "local",
|
|
434
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
434
|
+
"path": "/Users/agox/worktrees/cobalt-tooltip-tone/packages/core/src/components/co-autocomplete/co-autocomplete.tsx",
|
|
435
435
|
"id": "src/components/co-autocomplete/co-autocomplete.tsx::AutocompleteOption"
|
|
436
436
|
}
|
|
437
437
|
}
|
|
@@ -92,7 +92,7 @@ export class CoAvatarGroup {
|
|
|
92
92
|
"references": {
|
|
93
93
|
"CoAvatarGroupItem": {
|
|
94
94
|
"location": "local",
|
|
95
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
95
|
+
"path": "/Users/agox/worktrees/cobalt-tooltip-tone/packages/core/src/components/co-avatar-group/co-avatar-group.tsx",
|
|
96
96
|
"id": "src/components/co-avatar-group/co-avatar-group.tsx::CoAvatarGroupItem"
|
|
97
97
|
}
|
|
98
98
|
}
|
|
@@ -236,7 +236,7 @@ export class CoCheckboxGroup {
|
|
|
236
236
|
"references": {
|
|
237
237
|
"CheckboxOption": {
|
|
238
238
|
"location": "local",
|
|
239
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
239
|
+
"path": "/Users/agox/worktrees/cobalt-tooltip-tone/packages/core/src/components/co-checkbox-group/co-checkbox-group.tsx",
|
|
240
240
|
"id": "src/components/co-checkbox-group/co-checkbox-group.tsx::CheckboxOption"
|
|
241
241
|
}
|
|
242
242
|
}
|
|
@@ -310,7 +310,7 @@ export class CoColorArea {
|
|
|
310
310
|
"references": {
|
|
311
311
|
"ColorAreaDetail": {
|
|
312
312
|
"location": "local",
|
|
313
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
313
|
+
"path": "/Users/agox/worktrees/cobalt-tooltip-tone/packages/core/src/components/co-color-area/co-color-area.tsx",
|
|
314
314
|
"id": "src/components/co-color-area/co-color-area.tsx::ColorAreaDetail"
|
|
315
315
|
}
|
|
316
316
|
}
|
|
@@ -331,7 +331,7 @@ export class CoColorArea {
|
|
|
331
331
|
"references": {
|
|
332
332
|
"ColorAreaDetail": {
|
|
333
333
|
"location": "local",
|
|
334
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
334
|
+
"path": "/Users/agox/worktrees/cobalt-tooltip-tone/packages/core/src/components/co-color-area/co-color-area.tsx",
|
|
335
335
|
"id": "src/components/co-color-area/co-color-area.tsx::ColorAreaDetail"
|
|
336
336
|
}
|
|
337
337
|
}
|
|
@@ -215,7 +215,7 @@ export class CoColorSlider {
|
|
|
215
215
|
"references": {
|
|
216
216
|
"ColorSliderChannel": {
|
|
217
217
|
"location": "local",
|
|
218
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
218
|
+
"path": "/Users/agox/worktrees/cobalt-tooltip-tone/packages/core/src/components/co-color-slider/co-color-slider.tsx",
|
|
219
219
|
"id": "src/components/co-color-slider/co-color-slider.tsx::ColorSliderChannel"
|
|
220
220
|
}
|
|
221
221
|
}
|
|
@@ -545,7 +545,7 @@ export class CoCombobox {
|
|
|
545
545
|
"references": {
|
|
546
546
|
"ComboboxOption": {
|
|
547
547
|
"location": "local",
|
|
548
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
548
|
+
"path": "/Users/agox/worktrees/cobalt-tooltip-tone/packages/core/src/components/co-combobox/co-combobox.tsx",
|
|
549
549
|
"id": "src/components/co-combobox/co-combobox.tsx::ComboboxOption"
|
|
550
550
|
}
|
|
551
551
|
}
|
|
@@ -257,7 +257,7 @@ export class CoCommandSearch {
|
|
|
257
257
|
"references": {
|
|
258
258
|
"CommandItem": {
|
|
259
259
|
"location": "local",
|
|
260
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
260
|
+
"path": "/Users/agox/worktrees/cobalt-tooltip-tone/packages/core/src/components/co-command-search/co-command-search.tsx",
|
|
261
261
|
"id": "src/components/co-command-search/co-command-search.tsx::CommandItem"
|
|
262
262
|
}
|
|
263
263
|
}
|
|
@@ -509,7 +509,7 @@ export class CoDataTable {
|
|
|
509
509
|
"references": {
|
|
510
510
|
"CoDataTableColumn": {
|
|
511
511
|
"location": "local",
|
|
512
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
512
|
+
"path": "/Users/agox/worktrees/cobalt-tooltip-tone/packages/core/src/components/co-data-table/co-data-table.tsx",
|
|
513
513
|
"id": "src/components/co-data-table/co-data-table.tsx::CoDataTableColumn"
|
|
514
514
|
}
|
|
515
515
|
}
|
|
@@ -1055,7 +1055,7 @@ export class CoDateRangePicker {
|
|
|
1055
1055
|
"references": {
|
|
1056
1056
|
"DateRangeValue": {
|
|
1057
1057
|
"location": "local",
|
|
1058
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
1058
|
+
"path": "/Users/agox/worktrees/cobalt-tooltip-tone/packages/core/src/components/co-date-range-picker/co-date-range-picker.tsx",
|
|
1059
1059
|
"id": "src/components/co-date-range-picker/co-date-range-picker.tsx::DateRangeValue"
|
|
1060
1060
|
}
|
|
1061
1061
|
}
|
|
@@ -1076,7 +1076,7 @@ export class CoDateRangePicker {
|
|
|
1076
1076
|
"references": {
|
|
1077
1077
|
"DateRangeValue": {
|
|
1078
1078
|
"location": "local",
|
|
1079
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
1079
|
+
"path": "/Users/agox/worktrees/cobalt-tooltip-tone/packages/core/src/components/co-date-range-picker/co-date-range-picker.tsx",
|
|
1080
1080
|
"id": "src/components/co-date-range-picker/co-date-range-picker.tsx::DateRangeValue"
|
|
1081
1081
|
}
|
|
1082
1082
|
}
|
|
@@ -936,7 +936,7 @@ export class CoDocumentEditor {
|
|
|
936
936
|
"references": {
|
|
937
937
|
"DocumentPageSize": {
|
|
938
938
|
"location": "local",
|
|
939
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
939
|
+
"path": "/Users/agox/worktrees/cobalt-tooltip-tone/packages/core/src/components/co-document-editor/co-document-editor.tsx",
|
|
940
940
|
"id": "src/components/co-document-editor/co-document-editor.tsx::DocumentPageSize"
|
|
941
941
|
}
|
|
942
942
|
}
|
|
@@ -962,7 +962,7 @@ export class CoDocumentEditor {
|
|
|
962
962
|
"references": {
|
|
963
963
|
"DocumentMargins": {
|
|
964
964
|
"location": "local",
|
|
965
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
965
|
+
"path": "/Users/agox/worktrees/cobalt-tooltip-tone/packages/core/src/components/co-document-editor/co-document-editor.tsx",
|
|
966
966
|
"id": "src/components/co-document-editor/co-document-editor.tsx::DocumentMargins"
|
|
967
967
|
}
|
|
968
968
|
}
|
|
@@ -1027,7 +1027,7 @@ export class CoDocumentEditor {
|
|
|
1027
1027
|
"references": {
|
|
1028
1028
|
"DocumentFeatures": {
|
|
1029
1029
|
"location": "local",
|
|
1030
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
1030
|
+
"path": "/Users/agox/worktrees/cobalt-tooltip-tone/packages/core/src/components/co-document-editor/co-document-editor.tsx",
|
|
1031
1031
|
"id": "src/components/co-document-editor/co-document-editor.tsx::DocumentFeatures"
|
|
1032
1032
|
}
|
|
1033
1033
|
}
|
|
@@ -1220,7 +1220,7 @@ export class CoDocumentEditor {
|
|
|
1220
1220
|
"references": {
|
|
1221
1221
|
"DocumentHeaderDetail": {
|
|
1222
1222
|
"location": "local",
|
|
1223
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
1223
|
+
"path": "/Users/agox/worktrees/cobalt-tooltip-tone/packages/core/src/components/co-document-editor/co-document-editor.tsx",
|
|
1224
1224
|
"id": "src/components/co-document-editor/co-document-editor.tsx::DocumentHeaderDetail"
|
|
1225
1225
|
}
|
|
1226
1226
|
}
|
|
@@ -1256,7 +1256,7 @@ export class CoDocumentEditor {
|
|
|
1256
1256
|
"references": {
|
|
1257
1257
|
"DocumentActionDetail": {
|
|
1258
1258
|
"location": "local",
|
|
1259
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
1259
|
+
"path": "/Users/agox/worktrees/cobalt-tooltip-tone/packages/core/src/components/co-document-editor/co-document-editor.tsx",
|
|
1260
1260
|
"id": "src/components/co-document-editor/co-document-editor.tsx::DocumentActionDetail"
|
|
1261
1261
|
}
|
|
1262
1262
|
}
|
|
@@ -446,7 +446,7 @@ export class CoPopover {
|
|
|
446
446
|
"references": {
|
|
447
447
|
"PopoverPlacement": {
|
|
448
448
|
"location": "local",
|
|
449
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
449
|
+
"path": "/Users/agox/worktrees/cobalt-tooltip-tone/packages/core/src/components/co-popover/co-popover.tsx",
|
|
450
450
|
"id": "src/components/co-popover/co-popover.tsx::PopoverPlacement"
|
|
451
451
|
}
|
|
452
452
|
}
|
|
@@ -224,7 +224,7 @@ export class CoRadioGroup {
|
|
|
224
224
|
"references": {
|
|
225
225
|
"RadioOption": {
|
|
226
226
|
"location": "local",
|
|
227
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
227
|
+
"path": "/Users/agox/worktrees/cobalt-tooltip-tone/packages/core/src/components/co-radio-group/co-radio-group.tsx",
|
|
228
228
|
"id": "src/components/co-radio-group/co-radio-group.tsx::RadioOption"
|
|
229
229
|
}
|
|
230
230
|
}
|
|
@@ -1349,7 +1349,7 @@ export class CoRefField {
|
|
|
1349
1349
|
"references": {
|
|
1350
1350
|
"RefFieldOption": {
|
|
1351
1351
|
"location": "local",
|
|
1352
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
1352
|
+
"path": "/Users/agox/worktrees/cobalt-tooltip-tone/packages/core/src/components/co-ref-field/co-ref-field.tsx",
|
|
1353
1353
|
"id": "src/components/co-ref-field/co-ref-field.tsx::RefFieldOption"
|
|
1354
1354
|
}
|
|
1355
1355
|
}
|
|
@@ -1490,7 +1490,7 @@ export class CoRefField {
|
|
|
1490
1490
|
"references": {
|
|
1491
1491
|
"RefFieldOption": {
|
|
1492
1492
|
"location": "local",
|
|
1493
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
1493
|
+
"path": "/Users/agox/worktrees/cobalt-tooltip-tone/packages/core/src/components/co-ref-field/co-ref-field.tsx",
|
|
1494
1494
|
"id": "src/components/co-ref-field/co-ref-field.tsx::RefFieldOption"
|
|
1495
1495
|
}
|
|
1496
1496
|
}
|
|
@@ -1511,7 +1511,7 @@ export class CoRefField {
|
|
|
1511
1511
|
"references": {
|
|
1512
1512
|
"RefFieldOption": {
|
|
1513
1513
|
"location": "local",
|
|
1514
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
1514
|
+
"path": "/Users/agox/worktrees/cobalt-tooltip-tone/packages/core/src/components/co-ref-field/co-ref-field.tsx",
|
|
1515
1515
|
"id": "src/components/co-ref-field/co-ref-field.tsx::RefFieldOption"
|
|
1516
1516
|
}
|
|
1517
1517
|
}
|
|
@@ -1550,7 +1550,7 @@ export class CoRefField {
|
|
|
1550
1550
|
},
|
|
1551
1551
|
"RefFieldOption": {
|
|
1552
1552
|
"location": "local",
|
|
1553
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
1553
|
+
"path": "/Users/agox/worktrees/cobalt-tooltip-tone/packages/core/src/components/co-ref-field/co-ref-field.tsx",
|
|
1554
1554
|
"id": "src/components/co-ref-field/co-ref-field.tsx::RefFieldOption"
|
|
1555
1555
|
}
|
|
1556
1556
|
},
|
|
@@ -160,7 +160,7 @@ export class CoSegmentedBar {
|
|
|
160
160
|
"references": {
|
|
161
161
|
"CoSegment": {
|
|
162
162
|
"location": "local",
|
|
163
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
163
|
+
"path": "/Users/agox/worktrees/cobalt-tooltip-tone/packages/core/src/components/co-segmented-bar/co-segmented-bar.tsx",
|
|
164
164
|
"id": "src/components/co-segmented-bar/co-segmented-bar.tsx::CoSegment"
|
|
165
165
|
}
|
|
166
166
|
}
|
|
@@ -846,7 +846,7 @@ export class CoSelect {
|
|
|
846
846
|
"references": {
|
|
847
847
|
"SelectOption": {
|
|
848
848
|
"location": "local",
|
|
849
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
849
|
+
"path": "/Users/agox/worktrees/cobalt-tooltip-tone/packages/core/src/components/co-select/co-select.tsx",
|
|
850
850
|
"id": "src/components/co-select/co-select.tsx::SelectOption"
|
|
851
851
|
}
|
|
852
852
|
}
|
|
@@ -718,7 +718,7 @@ export class CoSidebarNav {
|
|
|
718
718
|
"references": {
|
|
719
719
|
"NavigateDetail": {
|
|
720
720
|
"location": "local",
|
|
721
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
721
|
+
"path": "/Users/agox/worktrees/cobalt-tooltip-tone/packages/core/src/components/co-sidebar-nav/co-sidebar-nav.tsx",
|
|
722
722
|
"id": "src/components/co-sidebar-nav/co-sidebar-nav.tsx::NavigateDetail"
|
|
723
723
|
}
|
|
724
724
|
}
|