Skip to content

Commit 835d6d5

Browse files
committed
chore: replace @vaadin/hilla-frontend with @vaadin/hilla-frontend
Follow-up for vaadin/hilla#2052 Fixes #3177
1 parent 44b6304 commit 835d6d5

File tree

15 files changed

+32
-32
lines changed

15 files changed

+32
-32
lines changed

articles/hilla/lit/guides/client-middleware.adoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Here is an example of logging middleware, with an explanation of the structure.
3232
.my-log-middleware.ts
3333
[source,typescript]
3434
----
35-
import { Middleware, MiddlewareContext, MiddlewareNext } from '@vaadin/hilla-core';
35+
import { Middleware, MiddlewareContext, MiddlewareNext } from '@vaadin/hilla-frontend';
3636
3737
// A middleware is an async function, that receives the `context` and `next`
3838
export const MyLogMiddleware: Middleware = async function(
@@ -80,7 +80,7 @@ To use middleware, when the Hilla TypeScript client is instantiated, include you
8080
.`connect-client.ts`
8181
[source,typescript]
8282
----
83-
import { ConnectClient } from '@vaadin/hilla-core';
83+
import { ConnectClient } from '@vaadin/hilla-frontend';
8484
import { MyLogMiddleware } from './my-log-middleware';
8585
8686
const client = new ConnectClient({
@@ -114,7 +114,7 @@ To make a low-level modification of the request in middleware, replace the `cont
114114
.`my-api-dispatcher-middleware.ts`
115115
[source,typescript]
116116
----
117-
import { Middleware, MiddlewareContext, MiddlewareNext } from '@vaadin/hilla-core';
117+
import { Middleware, MiddlewareContext, MiddlewareNext } from '@vaadin/hilla-frontend';
118118
119119
// An example middleware that uses a different server for selected requests
120120
export const MyApiDispatcherMiddleware: Middleware = async function(
@@ -140,7 +140,7 @@ Middleware can also replace the response by returning a custom [interfacename]`R
140140
.`my-stub-middleware.ts`
141141
[source,typescript]
142142
----
143-
import { Middleware, MiddlewareContext, MiddlewareNext } from '@vaadin/hilla-core';
143+
import { Middleware, MiddlewareContext, MiddlewareNext } from '@vaadin/hilla-frontend';
144144
145145
// An example middleware that returns an empty response instead of calling the backend endpoint
146146
export const MyStubMiddleware: Middleware = async function(

articles/hilla/lit/guides/reactive-endpoints.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Create the [filename]`frontend/views/reactive/ReactiveView.tsx` file to add a ne
9393

9494
[source,typescript]
9595
----
96-
import { Subscription } from "@vaadin/hilla-core";
96+
import { Subscription } from "@vaadin/hilla-frontend";
9797
import { Button } from "@vaadin/react-components/Button.js";
9898
import { TextField } from "@vaadin/react-components/TextField.js";
9999
import { getClockCancellable } from "Frontend/generated/ReactiveEndpoint";

articles/hilla/lit/reference/connection-indicator.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ For example:
108108
[source,typescript]
109109
----
110110
// ...
111-
import { connectionIndicator } from '@vaadin/hilla-core';
111+
import { connectionIndicator } from '@vaadin/hilla-frontend';
112112
113113
// Use custom theming
114114
connectionIndicator.applyDefaultTheme = false;

articles/hilla/lit/reference/typescript-client.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: Understanding the Hilla TypeScript client library, the default Type
77
= TypeScript Client Library
88

99
Hilla consists of two parts: a backend and a client.
10-
The client part is represented by the `@vaadin/hilla-core` library, which is able to support the features the backend provides.
10+
The client part is represented by the `@vaadin/hilla-frontend` library, which is able to support the features the backend provides.
1111

1212
One of the main public entities of the library is the [classname]`ConnectClient` object, which provides a seamless way to communicate with Hilla endpoints on the backend.
1313

@@ -27,7 +27,7 @@ These modules also use the default TypeScript client described above to communic
2727
Consider a Hilla backend that's started on the `/customEndpoint` endpoint and has a single endpoint with the name [classname]`SingleEndpoint` and a method [methodname]`customMethod()` that takes a parameter `number`.
2828

2929
To access this method from the client part, depending on how many generated files are present, you can use one of the following approaches.
30-
The required `@vaadin/hilla-core` TypeScript library is automatically installed by the Hilla Maven plugin.
30+
The required `@vaadin/hilla-frontend` TypeScript library is automatically installed by the Hilla Maven plugin.
3131

3232
=== Using the Generated Client Module
3333

@@ -67,7 +67,7 @@ Using the client library requires an extra step where we specify the endpoint of
6767
[source,typescript]
6868
[[client-library]]
6969
----
70-
import { ConnectClient } from '@vaadin/hilla-core';
70+
import { ConnectClient } from '@vaadin/hilla-frontend';
7171
const client = new ConnectClient({endpoint: '/customEndpoint'});
7272
7373
(async() => {

articles/hilla/lit/start/basics/index.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ import { Button } from '@vaadin/react-components/Button.js';
509509
import { Checkbox } from '@vaadin/react-components/Checkbox.js';
510510
import { TextField } from '@vaadin/react-components/TextField.js';
511511
import { TodoEndpoint } from 'Frontend/generated/endpoints';
512-
import { EndpointValidationError } from '@vaadin/hilla-core';
512+
import { EndpointValidationError } from '@vaadin/hilla-frontend';
513513
514514
export default function TodoView() { // <2>
515515
return (

frontend/demo/fusion/authentication/auth.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// tag::impl[]
22
// Uses the Vaadin provided login an logout helper methods
3-
import { login as loginImpl, LoginResult, logout as logoutImpl } from '@vaadin/hilla-core';
3+
import { login as loginImpl, LoginResult, logout as logoutImpl } from '@vaadin/hilla-frontend';
44
// end::impl[]
55
// tag::userinfo[]
66
import { UserInfoService } from 'Frontend/generated/endpoints';

frontend/demo/fusion/authentication/handle-session-expiration/connect-client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ConnectClient, InvalidSessionMiddleware } from '@vaadin/hilla-core';
1+
import { ConnectClient, InvalidSessionMiddleware } from '@vaadin/hilla-frontend';
22
import { setSessionExpired } from '../auth';
33
const client = new ConnectClient({
44
prefix: 'connect',

frontend/demo/fusion/authentication/handle-session-expiration/login-overlay.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { LitElement } from 'lit';
22
import { customElement } from 'lit/decorators.js';
33
import { Router } from '@vaadin/router';
4-
import { LoginResult } from '@vaadin/hilla-core';
4+
import { LoginResult } from '@vaadin/hilla-frontend';
55

66
@customElement('login-view')
77
export class LoginView extends LitElement {

frontend/demo/fusion/authentication/login-view.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { html, LitElement } from 'lit';
22
import { customElement, state } from 'lit/decorators.js';
3-
import { LoginResult } from '@vaadin/hilla-core';
3+
import { LoginResult } from '@vaadin/hilla-frontend';
44
import { login } from './auth';
55
import { AfterEnterObserver, RouterLocation } from '@vaadin/router';
66
import '@vaadin/login';

frontend/demo/fusion/errorhandling/catch-error.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { EndpointError } from '@vaadin/hilla-core';
1+
import { EndpointError } from '@vaadin/hilla-frontend';
22

33
import { DataEndpoint } from 'Frontend/generated/endpoints';
44

frontend/demo/fusion/errorhandling/catch-invalid-args.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { EndpointValidationError } from '@vaadin/hilla-core';
1+
import { EndpointValidationError } from '@vaadin/hilla-frontend';
22

33
import { DateEndpoint } from 'Frontend/generated/endpoints';
44

frontend/demo/fusion/reactive/reactive-view.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Subscription } from '@vaadin/hilla-core';
1+
import { Subscription } from '@vaadin/hilla-frontend';
22
import '@vaadin/button';
33
import '@vaadin/notification';
44
import '@vaadin/text-field';

frontend/demo/pwa/offline/ts-view-with-endpoint.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { EndpointError } from '@vaadin/hilla-core';
1+
import { EndpointError } from '@vaadin/hilla-frontend';
22

33
// Import the remote endpoint
44
import { DataEndpoint } from 'Frontend/generated/endpoints';

package-lock.json

+11-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@vaadin/form-layout": "24.4.0-alpha5",
3939
"@vaadin/grid": "24.4.0-alpha5",
4040
"@vaadin/grid-pro": "24.4.0-alpha5",
41-
"@vaadin/hilla-core": "24.4.0-alpha2",
41+
"@vaadin/hilla-frontend": "24.4.0-alpha2",
4242
"@vaadin/hilla-generator-cli": "24.4.0-alpha2",
4343
"@vaadin/hilla-generator-core": "24.4.0-alpha2",
4444
"@vaadin/hilla-generator-plugin-backbone": "24.4.0-alpha2",
@@ -189,7 +189,7 @@
189189
"@vaadin/form-layout": "$@vaadin/form-layout",
190190
"@vaadin/grid": "$@vaadin/grid",
191191
"@vaadin/grid-pro": "$@vaadin/grid-pro",
192-
"@vaadin/hilla-core": "$@vaadin/hilla-core",
192+
"@vaadin/hilla-frontend": "$@vaadin/hilla-frontend",
193193
"@vaadin/hilla-generator-cli": "$@vaadin/hilla-generator-cli",
194194
"@vaadin/hilla-generator-core": "$@vaadin/hilla-generator-core",
195195
"@vaadin/hilla-generator-plugin-backbone": "$@vaadin/hilla-generator-plugin-backbone",
@@ -304,7 +304,7 @@
304304
"@vaadin/form-layout": "24.4.0-alpha5",
305305
"@vaadin/grid": "24.4.0-alpha5",
306306
"@vaadin/grid-pro": "24.4.0-alpha5",
307-
"@vaadin/hilla-core": "24.4.0-alpha2",
307+
"@vaadin/hilla-frontend": "24.4.0-alpha2",
308308
"@vaadin/hilla-generator-cli": "24.4.0-alpha2",
309309
"@vaadin/hilla-generator-core": "24.4.0-alpha2",
310310
"@vaadin/hilla-generator-plugin-backbone": "24.4.0-alpha2",

0 commit comments

Comments
 (0)