Skip to content

Commit d8dca80

Browse files
committed
rename packages
1 parent 71ee53d commit d8dca80

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+141
-150
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p>
2-
<img src="https://assets.solidjs.com/banner?project=Library&type=@lightningtv/solid" alt="SolidJS Lightning" />
2+
<img src="https://assets.solidjs.com/banner?project=Library&type=@solidtv/solid" alt="SolidJS Lightning" />
33
</p>
44

55
# SolidJS for LightningJS
@@ -55,7 +55,7 @@ https://medium.com/@chiefcll/lightning-3-the-basics-of-solidjs-e6e21d73205e
5555
### Hello World
5656

5757
```jsx
58-
import { render, Text } from '@lightningtv/solid';
58+
import { render, Text } from '@solidtv/solid';
5959

6060
render(() => <Text>Hello World</Text>);
6161
```
@@ -67,18 +67,18 @@ For a more detailed Hello World guide check out the [Hello World](HelloWorld.md)
6767
If you're migrating from https://github.com/lightning-js/solid
6868

6969
Find and replace:
70-
"@lightningjs/solid-primitives" with "@lightningtv/solid/primitives"
71-
"@lightningjs/solid" with "@lightningtv/solid"
70+
"@solidtv/solid-primitives" with "@solidtv/solid/primitives"
71+
"@solidtv/solid" with "@solidtv/solid"
7272

7373
Update vite.config to dedupe solid:
7474

7575
```js
7676
resolve: {
7777
dedupe: [
7878
"solid-js",
79-
"@lightningtv/solid",
80-
"@lightningtv/solid/primitives",
81-
"@lightningjs/solid-ui",
79+
"@solidtv/solid",
80+
"@solidtv/solid/primitives",
81+
"@solidtv/solid-ui",
8282
],
8383
},
8484
```
@@ -89,8 +89,8 @@ If you don't want to find and replace you can use alias
8989
resolve: {
9090
alias: {
9191
theme: "@lightningjs/l3-ui-theme-base",
92-
"@lightningjs/solid": "@lightningtv/solid",
93-
"@lightningjs/solid-primitives": "@lightningtv/solid/primitives",
92+
"@solidtv/solid": "@solidtv/solid",
93+
"@solidtv/solid-primitives": "@solidtv/solid/primitives",
9494
},
9595
},
9696
```

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<img src="https://assets.solidjs.com/banner?project=Library&type=solid-lightning" alt="SolidJS LightningJS" />
33
</p>
44

5-
`@lightningtv/solid` is an integration for the [LightningJS 3 Renderer](https://github.com/lightning-js/renderer) built with [SolidJS](https://www.solidjs.com/) [Universal Renderer](https://github.com/solidjs/solid/releases/tag/v1.2.0). It allows you to declaratively construct lightning nodes with SolidJS reactive primitives. It includes everything you need to rapidly build the performant TV Apps.
5+
`@solidtv/solid` is an integration for the [LightningJS 3 Renderer](https://github.com/lightning-js/renderer) built with [SolidJS](https://www.solidjs.com/) [Universal Renderer](https://github.com/solidjs/solid/releases/tag/v1.2.0). It allows you to declaratively construct lightning nodes with SolidJS reactive primitives. It includes everything you need to rapidly build the performant TV Apps.
66

77
## Starter Template
88

docs/articles/basics.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ Now we have a simple button component that accepts props, making it easy to cust
200200
We can improve our button’s flexibility by introducing a style object. This also has the benefit of keeping our styles separate from the UI, similar to how CSS works with HTML. We could import our styles from another file or leave them inline - choice is yours.
201201
202202
```jsx
203-
import { View, Text } from '@lightningtv/solid';
203+
import { View, Text } from '@solidtv/solid';
204204
const buttonStyle = {
205205
width: 300,
206206
height: 150,
@@ -247,7 +247,7 @@ One problem we have no is all the buttons are a set size... let's fix that.
247247
Flex is a fundamental tool for building layouts. By using [flex implementation](https://lightning-tv.github.io/solid/#/flow/layout?id=flex) for Solid, we can create layouts that are responsive and easy to manage. Let’s make a button that resizes based on the size of it's text:
248248
249249
```jsx
250-
import { View, Text } from '@lightningtv/solid';
250+
import { View, Text } from '@solidtv/solid';
251251
const buttonStyle = {
252252
display: 'flex',
253253
height: 150,
@@ -364,7 +364,7 @@ Let’s say you want to dynamically generate buttons based on a list of items. S
364364
365365
```jsx
366366
import { createSignal, For } from 'solid-js';
367-
import { Row } from '@lightningtv/solid-ui';
367+
import { Row } from '@solidtv/solid-ui';
368368
import { Button } from '../components/button';
369369

370370
const HelloWorld = () => {

docs/articles/domrenderer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default defineConfig({
2828
Once the bundle is configured, you must turn on the DOM Renderer in your application's `Config` settings. This allows you to toggle it on and off dynamically within the application code.
2929

3030
```ts
31-
import { Config } from '@lightningjs/solid';
31+
import { Config } from '@solidtv/solid';
3232

3333
Config.domRendererEnabled = true;
3434

docs/articles/migration-2x-to-3.0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ To get the full list of changes from the renderer you can check the [changelog](
88

99
1. Update to the latest version of the renderer beta (v3.0.0-beta20)
1010
2. Update to the latest version of the solid 3.0.0
11-
3. Remove references for @lightningtv/core -> use @lightningtv/solid instead
11+
3. Remove references for @solidtv/core -> use @solidtv/solid instead
1212
4. Update fonts.ts to new format (remove fontWeight information, add to fontFamily)
1313
5. Double check your fontWeightAlias if needed
1414
6. Import shaders in index.ts
@@ -132,7 +132,7 @@ import {
132132
RadialGradient,
133133
LinearGradient,
134134
HolePunch,
135-
} from '@lightningjs/renderer/webgl/shaders';
135+
} from '@solidtv/renderer/webgl/shaders';
136136
const shManager = renderer.stage.shManager;
137137
shManager.registerShaderType('rounded', Rounded);
138138
shManager.registerShaderType('roundedWithBorder', RoundedWithBorder);

docs/articles/solidtv_renderer.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ The SolidTV Renderer is a fork of the official Lightning Renderer optimized to b
44

55
## Installation
66

7-
The renderer is available on NPM under the `@lightningtv/renderer` package. You can install it via your package manager:
7+
The renderer is available on NPM under the `@solidtv/renderer` package. You can install it via your package manager:
88

99
```bash
10-
npm install @lightningtv/renderer
10+
npm install @solidtv/renderer
1111
```
1212

1313
Or edit your package.json with:
1414

1515
```json
16-
"@lightningjs/renderer": "npm:@lightningtv/renderer@3.2.5",
16+
"@solidtv/renderer": "npm:@solidtv/renderer@3.2.5",
1717
```
1818

1919
## Configuration (Vite Defines)

docs/essentials/components.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ The following code demonstrates how to create a simple Counter component using S
88

99
### Imports and Typescript
1010

11-
First, necessary functions and types are imported from `solid-js` and `@lightningtv/solid`:
11+
First, necessary functions and types are imported from `solid-js` and `@solidtv/solid`:
1212

1313
```jsx
1414
import { type Component } from 'solid-js';
15-
import { View, Text, type NodeProps } from '@lightningtv/solid';
15+
import { View, Text, type NodeProps } from '@solidtv/solid';
1616
```
1717

1818
### Component Interface
@@ -31,7 +31,7 @@ The `Counter` component is defined as a SolidJS component that accepts `CounterP
3131

3232
```jsx
3333
import { type Component } from 'solid-js';
34-
import { View, Text, type NodeProps } from '@lightningtv/solid';
34+
import { View, Text, type NodeProps } from '@solidtv/solid';
3535

3636
interface CounterProps extends NodeProps {
3737
count: number;

docs/essentials/effects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const style = {
4242
`linearGradient` and `radialGradient` are effects that can be used by setting the effects prop.
4343

4444
```jsx
45-
import { deg2Rad } from '@lightningjs/solid';
45+
import { deg2Rad } from '@solidtv/solid';
4646

4747
<View
4848
effects={{

docs/essentials/focus.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Adding `skipFocus` to any element will prevent it from receiving focus. This is
4545

4646
```jsx
4747
import { createEffect, on, onMount } from 'solid-js';
48-
import { activeElement } from '@lightningtv/solid';
48+
import { activeElement } from '@solidtv/solid';
4949

5050
// Get notified whenever the activeElement changes
5151
createEffect(
@@ -92,7 +92,7 @@ Keyhandling is added with [useFocusManager](/primitives/useFocusManager.md). It'
9292
You can set
9393

9494
```js
95-
import { Inspector } from '@lightningjs/renderer/inspector';
95+
import { Inspector } from '@solidtv/renderer/inspector';
9696
Config.focusDebug = true;
9797
Config.rendererOptions.inspector = Inspector;
9898
```

docs/essentials/render.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
In this snippet, we are utilizing SolidJS in conjunction with Lightning TV to render a simple "Hello World" text on the screen. SolidJS is a declarative JavaScript library for creating user interfaces, renowned for its performance and fine-grained reactivity. Lightning TV is a framework for building high-performance, animated TV applications. By combining these technologies, we can create dynamic and visually appealing interfaces optimized for TV environments.
44

55
```jsx
6-
import { render, Text } from '@lightningtv/solid';
6+
import { render, Text } from '@solidtv/solid';
77

88
render(() => <Text>Hello World</Text>);
99
```
@@ -28,12 +28,9 @@ You can learn more about SolidJS from their [documentation](https://docs.solidjs
2828
Before calling the Render function, you can set rendererOptions.
2929

3030
```jsx
31-
import { render, Config, Text } from '@lightningtv/solid';
32-
import {
33-
WebGlCoreRenderer,
34-
SdfTextRenderer,
35-
} from '@lightningjs/renderer/webgl';
36-
import { Inspector } from '@lightningjs/renderer/inspector';
31+
import { render, Config, Text } from '@solidtv/solid';
32+
import { WebGlCoreRenderer, SdfTextRenderer } from '@solidtv/renderer/webgl';
33+
import { Inspector } from '@solidtv/renderer/inspector';
3734

3835
Config.rendererOptions = {
3936
fpsUpdateInterval: logFps ? 1000 : 0,
@@ -113,7 +110,7 @@ For the latest renderer options read the official [renderer documentation](https
113110

114111
### Additional Solid-Specific Configurations
115112

116-
Besides `rendererOptions`, the `Config` object exposes several properties specific to `@lightningtv/solid` runtime behavior:
113+
Besides `rendererOptions`, the `Config` object exposes several properties specific to `@solidtv/solid` runtime behavior:
117114

118115
- **debug**: `boolean` (Default: `false`)
119116
Enables general debug logging.

0 commit comments

Comments
 (0)