Files
advanced-camera-card/package.json
T
Dermot Duffy abcba884e5 feat: Add 'call' support to improve 2-way audio experience (#2486)
Draws significant inspiration (and direct styling) from
https://github.com/dermotduffy/advanced-camera-card/pull/2447 . Thank
you @Maudfer !

BREAKING CHANGE:

The microphone condition previously bundled two unrelated signals —
whether a two-way-audio session was connected and whether the microphone
was muted. Connection state is now its own dedicated call condition, and
microphone is reserved purely for mute state. Configs are upgraded
automatically (the card rewrites affected conditions under overrides,
elements, and automations). If you maintain config by hand, convert as
follows:

If you only used connected:

# Before
```yaml
condition: microphone
connected: true
```

# After
```yaml
condition: call
call: true
```
If you used both connected and muted — they must be split into two
conditions, since they no longer live together:

# Before
```yaml
condition: microphone
connected: true
muted: false
```

# After
```yaml
condition: and
conditions:
  - condition: call
    call: true
  - condition: microphone
    muted: false
```
2026-06-30 17:45:13 -07:00

202 lines
6.1 KiB
JSON

{
"name": "advanced-camera-card",
"version": "0.0.0-dev",
"description": "Advanced Camera Card for Home Assistant",
"keywords": [
"advanced",
"camera",
"card",
"frigate",
"home-assistant",
"homeassistant",
"hass",
"lovelace"
],
"type": "module",
"module": "advanced-camera-card.js",
"repository": "github:dermotduffy/advanced-camera-card",
"author": "Dermot Duffy <dermot.duffy@gmail.com>",
"license": "MIT",
"dependencies": {
"@cycjimmy/jsmpeg-player": "^6.0.5",
"@dermotduffy/panzoom": "^4.5.1",
"@egjs/hammerjs": "^2.0.17",
"@graphiteds/core": "^1.9.21",
"@lit-labs/scoped-registry-mixin": "^1.0.3",
"@lit-labs/task": "^1.1.3",
"@use-gesture/vanilla": "^10.3.1",
"any-date-parser": "^2.2.0",
"component-emitter": "^1.3.1",
"compute-scroll-into-view": "^3.1.1",
"date-fns": "^3.6.0",
"embla-carousel": "^8.6.0",
"embla-carousel-wheel-gestures": "^8.0.1",
"ha-nunjucks": "^1.3.0",
"home-assistant-js-websocket": "^9.4.0",
"js-yaml": "^4.1.0",
"keycharm": "^0.4.0",
"lit": "^3.1.4",
"lodash-es": "^4.17.21",
"masonry-layout": "^4.2.2",
"moment": "^2.30.1",
"p-queue": "^8.0.1",
"propagating-hammerjs": "^2.0.1",
"quick-lru": "^6.1.2",
"screenfull": "^6.0.2",
"side-drawer": "^3.1.0",
"uuid": "^8.3.2",
"vis-data": "^7.1.9",
"vis-timeline": "^7.7.3",
"vis-util": "^5.0.7",
"web-dialog": "^0.0.11",
"xss": "^1.0.15",
"zod": "^4.3.6"
},
"devDependencies": {
"@babel/core": "^7.24.7",
"@babel/plugin-proposal-decorators": "^7.24.7",
"@babel/plugin-transform-class-properties": "^7.24.7",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-image": "^3.0.3",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.7",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@semantic-release/github": "^10.3.3",
"@types/js-yaml": "^4",
"@types/lodash-es": "^4.17.12",
"@types/masonry-layout": "^4.2.8",
"@typescript-eslint/eslint-plugin": "^8.30.1",
"@typescript-eslint/parser": "^8.30.1",
"@vitest/coverage-istanbul": "^1.6.0",
"conventional-changelog-conventionalcommits": "^8.0.0",
"docsify-cli": "^4.4.4",
"eslint": "^9.24.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"jsdom": "^21.1.2",
"prettier": "^3.3.2",
"rollup": "^3.29.4",
"rollup-plugin-git-info": "^1.0.0",
"rollup-plugin-serve": "^1.1.1",
"rollup-plugin-styler": "^1.8.0",
"rollup-plugin-svgo": "^2.0.0",
"rollup-plugin-visualizer": "^5.12.0",
"sass": "patch:sass@npm%3A1.77.4#~/.yarn/patches/sass-npm-1.77.4-13b6910aea.patch",
"semantic-release": "^24.1.1",
"semantic-release-export-data": "^1.1.0",
"ts-prune": "^0.10.3",
"type-fest": "^4.41.0",
"typescript": "^5.8.3",
"vitest": "^1.6.0",
"vitest-mock-extended": "^1.3.1"
},
"release": {
"branches": [
"main",
{
"name": "next",
"channel": "next",
"prerelease": "rc"
}
],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits"
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits",
"presetConfig": {
"types": [
{
"type": "feat",
"section": ":rocket: Features"
},
{
"type": "fix",
"section": ":bug: Bug Fixes"
},
{
"type": "docs",
"section": ":books: Documentation"
},
{
"type": "test",
"section": ":rotating_light: Tests"
},
{
"type": "ci",
"section": ":construction_worker: Continuous Integration"
},
{
"type": "refactor",
"section": ":hammer: Code Refactoring"
},
{
"type": "perf",
"section": ":racehorse: Performance Improvements"
},
{
"type": "chore",
"section": ":wrench: Chores"
}
]
}
}
],
"semantic-release-export-data",
[
"@semantic-release/github",
{
"assets": [
{
"path": "advanced-camera-card.zip",
"label": "Zip distribution"
},
{
"path": "dist/*.js"
}
],
"draftRelease": false,
"labels": [
"ci"
],
"assignees": [
"dermotduffy"
],
"successComment": ":tada: This issue has been resolved in version ${nextRelease.version} :tada:\n\nSee: [GitHub release](https://github.com/dermotduffy/advanced-camera-card/releases/tag/${nextRelease.gitTag})",
"releaseNameTemplate": "v${nextRelease.version}"
}
]
]
},
"scripts": {
"start": "rollup -c --watch",
"build": "yarn run lint && yarn run rollup",
"docs": "docsify serve ./docs",
"docs-check-links": "docker run --init --rm -v \"$(pwd):/input\" -w /input lycheeverse/lychee --config lychee.toml \"./docs/\"",
"docs-update-images": "./scripts/docs-update-images.sh",
"docs-update-dependencies": "./scripts/docs-update-dependencies.sh",
"docs-update-uml": "docker run --init --rm -u \"$(id -u):$(id -g)\" -e HOME=/tmp -e JAVA_TOOL_OPTIONS=-Duser.home=/tmp -v \"$(pwd):/data\" -w /data plantuml/plantuml -tsvg docs/uml/call-sequence.puml -o /data/docs/images",
"lint": "eslint '{src,tests}/**/*.ts'",
"format": "prettier --write .",
"format-check": "prettier --check .",
"rollup": "rollup -c",
"prune": "ts-prune",
"test": "vitest run",
"coverage": "vitest run --coverage"
},
"volta": {
"node": "22.14.0",
"yarn": "4.9.1"
}
}