Skip to content

Commit

Permalink
chore: migrate @lit-labs/react dependency to @lit/react
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 579993111
  • Loading branch information
Extended Component Library Team authored and copybara-github committed Nov 7, 2023
1 parent c7ffd49 commit d3daad7
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions build/make_react.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ let content = `/**
// This file is generated from component definitions. DO NOT EDIT MANUALLY.
import * as React from 'react';
import {createComponent} from '@lit-labs/react';
import type {EventName} from '@lit-labs/react';
import {createComponent} from '@lit/react';
import type {EventName} from '@lit/react';
import {RequestErrorEvent} from '../base/events.js';
`; // Import new event types here (TS compiler will complain otherwise).

Expand Down
27 changes: 13 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@
"registry": "https://wombat-dressing-room.appspot.com"
},
"dependencies": {
"@lit-labs/react": "^1.2.0",
"@lit/context": "^1.0.0",
"@lit/react": "^1.0.0",
"lit": "^3.0.0",
"tslib": "^2.4.0"
},
Expand Down
4 changes: 2 additions & 2 deletions src/react/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
// This file is generated from component definitions. DO NOT EDIT MANUALLY.

import * as React from 'react';
import {createComponent} from '@lit-labs/react';
import type {EventName} from '@lit-labs/react';
import {createComponent} from '@lit/react';
import type {EventName} from '@lit/react';
import {RequestErrorEvent} from '../base/events.js';

import {APILoader as APILoaderWC} from '../api_loader/api_loader.js';
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"allowUnreachableCode": false,
"baseUrl": ".",
"declaration": true,
Expand Down

0 comments on commit d3daad7

Please sign in to comment.