@signalwire/web-components 4.0.0-dev-20260515133934 → 4.0.0-rc.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/dist/embed/signalwire-web-components-embed.iife.js +77 -77
- package/dist/embed/signalwire-web-components-embed.iife.js.map +1 -1
- package/dist/embed/signalwire-web-components-embed.umd.cjs +77 -77
- package/dist/embed/signalwire-web-components-embed.umd.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -35,10 +35,10 @@ import { TranscriptController as ho } from "./context/TranscriptController.js";
|
|
|
35
35
|
import { UserEventController as Lo } from "./context/UserEventController.js";
|
|
36
36
|
import { devicesContext as To } from "./context/devices-context.js";
|
|
37
37
|
import { transcriptContext as Mo } from "./context/transcript-context.js";
|
|
38
|
-
const e = "
|
|
38
|
+
const e = "4.0.0-rc.0", t = !0, r = () => {
|
|
39
39
|
if (typeof window < "u") {
|
|
40
40
|
const o = new CustomEvent("signalwire:web-components:ready", {
|
|
41
|
-
detail: { version: "
|
|
41
|
+
detail: { version: "4.0.0-rc.0" }
|
|
42
42
|
});
|
|
43
43
|
window.dispatchEvent(o);
|
|
44
44
|
}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["/**\n * @signalwire/web-components\n * UI Components Library built with Lit\n */\n\n// SDK-aware components (sw-* family)\nexport { SwCallMedia } from './components/sw-call-media.js';\nexport { SwSelfMedia } from './components/sw-self-media.js';\nexport { SwLocalCamera } from './components/sw-local-camera.js';\nexport { SwParticipants } from './components/sw-participants.js';\nexport { SwParticipantControls } from './components/sw-participant-controls.js';\nexport { SwAudioLevel } from './components/sw-audio-level.js';\nexport { SwCallControls } from './components/sw-call-controls.js';\nexport { SwCallStatus } from './components/sw-call-status.js';\nexport { SwCallProvider } from './components/sw-call-provider.js';\nexport { SwCallDialpad } from './components/sw-call-dialpad.js';\nexport { SwClickToCall } from './components/sw-click-to-call.js';\nexport { SwDirectory } from './components/sw-directory.js';\nexport { SwDeviceSelector } from './components/sw-device-selector/index.js';\nexport { SwCallWidget } from './components/sw-call-widget/sw-call-widget.js';\n\n// UI primitives (sw-ui-* family)\nexport * from './components/UI/index.js';\n\n// Export types (re-exported from core)\nexport type { Call, CallParticipant, CallSelfParticipant, DeviceController, LayoutLayer, Participant } from './types/index.js';\n\n// Export context\nexport * from './context/index.js';\n\n// Theming utilities\nexport { useGoogleFont } from './utils/use-google-font.js';\nexport type { UseGoogleFontOptions } from './utils/use-google-font.js';\nexport { ensureSignalWireTheme, ensureSignalWireFonts } from './utils/theme-loader.js';\n\n// Re-export Lit utilities for convenience\nexport { html, css, LitElement } from 'lit';\nexport type { TemplateResult, CSSResult } from 'lit';\n\n// ============================================================================\n// Library Ready Event (for async/dynamic script loading)\n// ============================================================================\n\ndeclare const __VERSION__: string;\n\n/**\n * Library version from package.json, injected at build time.\n */\nexport const version: string = __VERSION__;\n\n/**\n * Flag indicating the library has been loaded and is ready to use.\n */\nexport const ready: boolean = true;\n\n/**\n * Emits 'signalwire:web-components:ready' event when the library is loaded.\n *\n * Scripts that might load BEFORE the library (check flag first):\n * ```js\n * if (window.SignalWireUI?.ready) {\n * // Library already loaded, use it directly\n * initApp();\n * } else {\n * window.addEventListener('signalwire:web-components:ready', () => initApp());\n * }\n * ```\n */\nconst emitReadyEvent = (): void => {\n if (typeof window !== 'undefined') {\n const event = new CustomEvent('signalwire:web-components:ready', {\n detail: { version: __VERSION__ }\n });\n window.dispatchEvent(event);\n }\n};\n\nemitReadyEvent();\n"],"names":["version","ready","emitReadyEvent","event"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDO,MAAMA,IAAkB,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["/**\n * @signalwire/web-components\n * UI Components Library built with Lit\n */\n\n// SDK-aware components (sw-* family)\nexport { SwCallMedia } from './components/sw-call-media.js';\nexport { SwSelfMedia } from './components/sw-self-media.js';\nexport { SwLocalCamera } from './components/sw-local-camera.js';\nexport { SwParticipants } from './components/sw-participants.js';\nexport { SwParticipantControls } from './components/sw-participant-controls.js';\nexport { SwAudioLevel } from './components/sw-audio-level.js';\nexport { SwCallControls } from './components/sw-call-controls.js';\nexport { SwCallStatus } from './components/sw-call-status.js';\nexport { SwCallProvider } from './components/sw-call-provider.js';\nexport { SwCallDialpad } from './components/sw-call-dialpad.js';\nexport { SwClickToCall } from './components/sw-click-to-call.js';\nexport { SwDirectory } from './components/sw-directory.js';\nexport { SwDeviceSelector } from './components/sw-device-selector/index.js';\nexport { SwCallWidget } from './components/sw-call-widget/sw-call-widget.js';\n\n// UI primitives (sw-ui-* family)\nexport * from './components/UI/index.js';\n\n// Export types (re-exported from core)\nexport type { Call, CallParticipant, CallSelfParticipant, DeviceController, LayoutLayer, Participant } from './types/index.js';\n\n// Export context\nexport * from './context/index.js';\n\n// Theming utilities\nexport { useGoogleFont } from './utils/use-google-font.js';\nexport type { UseGoogleFontOptions } from './utils/use-google-font.js';\nexport { ensureSignalWireTheme, ensureSignalWireFonts } from './utils/theme-loader.js';\n\n// Re-export Lit utilities for convenience\nexport { html, css, LitElement } from 'lit';\nexport type { TemplateResult, CSSResult } from 'lit';\n\n// ============================================================================\n// Library Ready Event (for async/dynamic script loading)\n// ============================================================================\n\ndeclare const __VERSION__: string;\n\n/**\n * Library version from package.json, injected at build time.\n */\nexport const version: string = __VERSION__;\n\n/**\n * Flag indicating the library has been loaded and is ready to use.\n */\nexport const ready: boolean = true;\n\n/**\n * Emits 'signalwire:web-components:ready' event when the library is loaded.\n *\n * Scripts that might load BEFORE the library (check flag first):\n * ```js\n * if (window.SignalWireUI?.ready) {\n * // Library already loaded, use it directly\n * initApp();\n * } else {\n * window.addEventListener('signalwire:web-components:ready', () => initApp());\n * }\n * ```\n */\nconst emitReadyEvent = (): void => {\n if (typeof window !== 'undefined') {\n const event = new CustomEvent('signalwire:web-components:ready', {\n detail: { version: __VERSION__ }\n });\n window.dispatchEvent(event);\n }\n};\n\nemitReadyEvent();\n"],"names":["version","ready","emitReadyEvent","event"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDO,MAAMA,IAAkB,cAKlBC,IAAiB,IAexBC,IAAiB,MAAY;AACjC,MAAI,OAAO,SAAW,KAAa;AACjC,UAAMC,IAAQ,IAAI,YAAY,mCAAmC;AAAA,MAC/D,QAAQ,EAAE,SAAS,aAAA;AAAA,IAAY,CAChC;AACD,WAAO,cAAcA,CAAK;AAAA,EAC5B;AACF;AAEAD,EAAA;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signalwire/web-components",
|
|
3
|
-
"version": "4.0.0-
|
|
3
|
+
"version": "4.0.0-rc.0",
|
|
4
4
|
"description": "UI components library built with Lit",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -176,10 +176,10 @@
|
|
|
176
176
|
"rxjs": "^7.8.2"
|
|
177
177
|
},
|
|
178
178
|
"peerDependencies": {
|
|
179
|
-
"@signalwire/js": "4.0.0-
|
|
179
|
+
"@signalwire/js": "4.0.0-rc.0"
|
|
180
180
|
},
|
|
181
181
|
"devDependencies": {
|
|
182
|
-
"@playwright/test": "^1.
|
|
182
|
+
"@playwright/test": "^1.60.0",
|
|
183
183
|
"@types/node": "^20.19.24",
|
|
184
184
|
"@types/prismjs": "^1.26.6",
|
|
185
185
|
"@typescript-eslint/eslint-plugin": "^8.46.3",
|