Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove non-published orphaned icons #647

Merged
merged 6 commits into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/yellow-goats-compare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@livekit/components-react": patch
---

Remove non-exposed orphaned icons `QualityUnknownIcon.tsx` and `UserSilhouetteIcon.tsx`.
5 changes: 3 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"scripts": {
"build": "yarn gen:svg && tsup --onSuccess \"tsc --declaration --emitDeclarationOnly\"",
"dev": "tsup --watch --onSuccess \"tsc --declaration --emitDeclarationOnly\"",
"gen:icons": "svgr --out-dir ./src/assets/icons --typescript ../styles/assets/icons",
"gen:images": "svgr --out-dir ./src/assets/images --typescript --no-svgo ../styles/assets/images",
"gen:icons": "rimraf -I -g ./src/assets/icons/*Icon.tsx && svgr --template ./src/assets/template.js --out-dir ./src/assets/icons --typescript ../styles/assets/icons",
"gen:images": "rimraf -I -g ./src/assets/images/*.tsx && svgr --template ./src/assets/template.js --out-dir ./src/assets/images --typescript --no-svgo ../styles/assets/images",
"gen:svg": "yarn gen:images && yarn gen:icons",
"lint": "eslint -f unix \"src/**/*.{ts,tsx}\"",
"test": "vitest --run",
Expand Down Expand Up @@ -70,6 +70,7 @@
"jsdom": "^22.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rimraf": "^5.0.5",
"size-limit": "^8.2.4",
"tsup": "^7.0.0",
"typescript": "5.2.2",
Expand Down
3 changes: 3 additions & 0 deletions packages/react/src/assets/icons/CameraDisabledIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* WARNING: This file was auto-generated by svgr. Do not edit.
*/
import * as React from 'react';
import type { SVGProps } from 'react';
const SvgCameraDisabledIcon = (props: SVGProps<SVGSVGElement>) => (
Expand Down
3 changes: 3 additions & 0 deletions packages/react/src/assets/icons/CameraIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* WARNING: This file was auto-generated by svgr. Do not edit.
*/
import * as React from 'react';
import type { SVGProps } from 'react';
const SvgCameraIcon = (props: SVGProps<SVGSVGElement>) => (
Expand Down
3 changes: 3 additions & 0 deletions packages/react/src/assets/icons/ChatIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* WARNING: This file was auto-generated by svgr. Do not edit.
*/
import * as React from 'react';
import type { SVGProps } from 'react';
const SvgChatIcon = (props: SVGProps<SVGSVGElement>) => (
Expand Down
3 changes: 3 additions & 0 deletions packages/react/src/assets/icons/Chevron.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* WARNING: This file was auto-generated by svgr. Do not edit.
*/
import * as React from 'react';
import type { SVGProps } from 'react';
const SvgChevron = (props: SVGProps<SVGSVGElement>) => (
Expand Down
3 changes: 3 additions & 0 deletions packages/react/src/assets/icons/FocusToggleIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* WARNING: This file was auto-generated by svgr. Do not edit.
*/
import * as React from 'react';
import type { SVGProps } from 'react';
const SvgFocusToggleIcon = (props: SVGProps<SVGSVGElement>) => (
Expand Down
3 changes: 3 additions & 0 deletions packages/react/src/assets/icons/GearIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* WARNING: This file was auto-generated by svgr. Do not edit.
*/
import * as React from 'react';
import type { SVGProps } from 'react';
const SvgGearIcon = (props: SVGProps<SVGSVGElement>) => (
Expand Down
3 changes: 3 additions & 0 deletions packages/react/src/assets/icons/LeaveIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* WARNING: This file was auto-generated by svgr. Do not edit.
*/
import * as React from 'react';
import type { SVGProps } from 'react';
const SvgLeaveIcon = (props: SVGProps<SVGSVGElement>) => (
Expand Down
3 changes: 3 additions & 0 deletions packages/react/src/assets/icons/LockLockedIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* WARNING: This file was auto-generated by svgr. Do not edit.
*/
import * as React from 'react';
import type { SVGProps } from 'react';
const SvgLockLockedIcon = (props: SVGProps<SVGSVGElement>) => (
Expand Down
3 changes: 3 additions & 0 deletions packages/react/src/assets/icons/MicDisabledIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* WARNING: This file was auto-generated by svgr. Do not edit.
*/
import * as React from 'react';
import type { SVGProps } from 'react';
const SvgMicDisabledIcon = (props: SVGProps<SVGSVGElement>) => (
Expand Down
3 changes: 3 additions & 0 deletions packages/react/src/assets/icons/MicIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* WARNING: This file was auto-generated by svgr. Do not edit.
*/
import * as React from 'react';
import type { SVGProps } from 'react';
const SvgMicIcon = (props: SVGProps<SVGSVGElement>) => (
Expand Down
3 changes: 3 additions & 0 deletions packages/react/src/assets/icons/QualityExcellentIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* WARNING: This file was auto-generated by svgr. Do not edit.
*/
import * as React from 'react';
import type { SVGProps } from 'react';
const SvgQualityExcellentIcon = (props: SVGProps<SVGSVGElement>) => (
Expand Down
3 changes: 3 additions & 0 deletions packages/react/src/assets/icons/QualityGoodIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* WARNING: This file was auto-generated by svgr. Do not edit.
*/
import * as React from 'react';
import type { SVGProps } from 'react';
const SvgQualityGoodIcon = (props: SVGProps<SVGSVGElement>) => (
Expand Down
3 changes: 3 additions & 0 deletions packages/react/src/assets/icons/QualityPoorIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* WARNING: This file was auto-generated by svgr. Do not edit.
*/
import * as React from 'react';
import type { SVGProps } from 'react';
const SvgQualityPoorIcon = (props: SVGProps<SVGSVGElement>) => (
Expand Down
3 changes: 3 additions & 0 deletions packages/react/src/assets/icons/QualityUnknownIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* WARNING: This file was auto-generated by svgr. Do not edit.
*/
import * as React from 'react';
import type { SVGProps } from 'react';
const SvgQualityUnknownIcon = (props: SVGProps<SVGSVGElement>) => (
Expand Down
11 changes: 0 additions & 11 deletions packages/react/src/assets/icons/QualityUnkownIcon.tsx

This file was deleted.

3 changes: 3 additions & 0 deletions packages/react/src/assets/icons/ScreenShareIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* WARNING: This file was auto-generated by svgr. Do not edit.
*/
import * as React from 'react';
import type { SVGProps } from 'react';
const SvgScreenShareIcon = (props: SVGProps<SVGSVGElement>) => (
Expand Down
3 changes: 3 additions & 0 deletions packages/react/src/assets/icons/ScreenShareStopIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* WARNING: This file was auto-generated by svgr. Do not edit.
*/
import * as React from 'react';
import type { SVGProps } from 'react';
const SvgScreenShareStopIcon = (props: SVGProps<SVGSVGElement>) => (
Expand Down
3 changes: 3 additions & 0 deletions packages/react/src/assets/icons/SpinnerIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* WARNING: This file was auto-generated by svgr. Do not edit.
*/
import * as React from 'react';
import type { SVGProps } from 'react';
const SvgSpinnerIcon = (props: SVGProps<SVGSVGElement>) => (
Expand Down
3 changes: 3 additions & 0 deletions packages/react/src/assets/icons/UnfocusToggleIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* WARNING: This file was auto-generated by svgr. Do not edit.
*/
import * as React from 'react';
import type { SVGProps } from 'react';
const SvgUnfocusToggleIcon = (props: SVGProps<SVGSVGElement>) => (
Expand Down
12 changes: 0 additions & 12 deletions packages/react/src/assets/icons/UserSilhouetteIcon.tsx

This file was deleted.

3 changes: 3 additions & 0 deletions packages/react/src/assets/images/ParticipantPlaceholder.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* WARNING: This file was auto-generated by svgr. Do not edit.
*/
import * as React from 'react';
import type { SVGProps } from 'react';
const SvgParticipantPlaceholder = (props: SVGProps<SVGSVGElement>) => (
Expand Down
20 changes: 20 additions & 0 deletions packages/react/src/assets/template.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* This function is used as a template to generate SVG components with svgr.
* @internal
*/
function template(variables, { tpl }) {
return tpl`
${'/**\n * WARNING: This file was auto-generated by svgr. Do not edit.\n */\n'}
${variables.imports};

${variables.interfaces};

const ${variables.componentName} = (${variables.props}) => (
${variables.jsx}
);

${variables.exports};
`;
}

module.exports = template;
27 changes: 27 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8158,6 +8158,17 @@ glob@^10.0.0, glob@^10.2.5:
minipass "^5.0.0 || ^6.0.2 || ^7.0.0"
path-scurry "^1.10.1"

glob@^10.3.7:
version "10.3.10"
resolved "https://registry.yarnpkg.com/glob/-/glob-10.3.10.tgz#0351ebb809fd187fe421ab96af83d3a70715df4b"
integrity sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==
dependencies:
foreground-child "^3.1.0"
jackspeak "^2.3.5"
minimatch "^9.0.1"
minipass "^5.0.0 || ^6.0.2 || ^7.0.0"
path-scurry "^1.10.1"

glob@^7.1.3, glob@^7.1.4, glob@^7.2.0:
version "7.2.3"
resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b"
Expand Down Expand Up @@ -8932,6 +8943,15 @@ jackspeak@^2.0.3:
optionalDependencies:
"@pkgjs/parseargs" "^0.11.0"

jackspeak@^2.3.5:
version "2.3.5"
resolved "https://registry.yarnpkg.com/jackspeak/-/jackspeak-2.3.5.tgz#443f237f9eeeb0d7c6ec34835ef5289bb4acb068"
integrity sha512-Ratx+B8WeXLAtRJn26hrhY8S1+Jz6pxPMrkrdkgb/NstTNiqMhX0/oFVu5wX+g5n6JlEu2LPsDJmY8nRP4+alw==
dependencies:
"@isaacs/cliui" "^8.0.2"
optionalDependencies:
"@pkgjs/parseargs" "^0.11.0"

jake@^10.8.5:
version "10.8.7"
resolved "https://registry.yarnpkg.com/jake/-/jake-10.8.7.tgz#63a32821177940c33f356e0ba44ff9d34e1c7d8f"
Expand Down Expand Up @@ -11598,6 +11618,13 @@ rimraf@^5.0.0:
dependencies:
glob "^10.2.5"

rimraf@^5.0.5:
version "5.0.5"
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-5.0.5.tgz#9be65d2d6e683447d2e9013da2bf451139a61ccf"
integrity sha512-CqDakW+hMe/Bz202FPEymy68P+G50RfMQK+Qo5YUqc9SPipvbGjCGKd0RSKEelbsfQuw3g5NZDSrlZZAJurH1A==
dependencies:
glob "^10.3.7"

rimraf@~2.6.2:
version "2.6.3"
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab"
Expand Down
Loading