@botonic/example-blank 0.37.0 → 0.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botonic/example-blank",
3
- "version": "0.37.0",
3
+ "version": "0.39.0",
4
4
  "scripts": {
5
5
  "build": "ENVIRONMENT=production NODE_ENV=production rspack build --env target=all --mode=production",
6
6
  "start": "ENVIRONMENT=local NODE_ENV=development rspack serve --env target=dev --mode=development",
@@ -9,10 +9,10 @@
9
9
  },
10
10
  "dependencies": {
11
11
  "@babel/runtime": "^7.26.0",
12
- "@botonic/react": "^0.37.0"
12
+ "@botonic/react": "^0.39.0"
13
13
  },
14
14
  "devDependencies": {
15
- "@botonic/dx": "^0.37.0"
15
+ "@botonic/dx": "^0.39.0"
16
16
  },
17
17
  "engines": {
18
18
  "node": ">=20.0.0"
@@ -5,11 +5,13 @@ import { locales } from '../src/locales'
5
5
  import { plugins } from '../src/plugins'
6
6
  import { routes } from '../src/routes'
7
7
  import { webchat } from '../src/webchat'
8
+ import { webviews } from '../src/webviews'
8
9
 
9
10
  export const app = new DevApp({
10
11
  routes,
11
12
  locales,
12
13
  plugins,
14
+ webviews,
13
15
  ...webchat,
14
16
  ...config,
15
17
  })
package/rspack.config.ts CHANGED
@@ -19,8 +19,8 @@ enum BotonicTarget {
19
19
  WEBCHAT = 'webchat',
20
20
  }
21
21
 
22
- const WEBPACK_ENTRIES_DIRNAME = 'webpack-entries'
23
- const WEBPACK_ENTRIES = {
22
+ const RSPACK_ENTRIES_DIRNAME = 'rspack-entries'
23
+ const RSPACK_ENTRIES = {
24
24
  DEV: 'dev-entry.js',
25
25
  NODE: 'node-entry.js',
26
26
  WEBCHAT: 'webchat-entry.js',
@@ -232,7 +232,7 @@ function botonicDevConfig(mode: Mode): Configuration {
232
232
  mode,
233
233
  devtool: sourceMap(mode),
234
234
  target: 'web',
235
- entry: path.resolve(WEBPACK_ENTRIES_DIRNAME, WEBPACK_ENTRIES.DEV),
235
+ entry: path.resolve(RSPACK_ENTRIES_DIRNAME, RSPACK_ENTRIES.DEV),
236
236
  module: {
237
237
  rules: [
238
238
  ...typescriptLoaderConfig,
@@ -275,7 +275,7 @@ function botonicWebchatConfig(mode: Mode): Configuration {
275
275
  mode,
276
276
  devtool: sourceMap(mode),
277
277
  target: 'web',
278
- entry: path.resolve(WEBPACK_ENTRIES_DIRNAME, WEBPACK_ENTRIES.WEBCHAT),
278
+ entry: path.resolve(RSPACK_ENTRIES_DIRNAME, RSPACK_ENTRIES.WEBCHAT),
279
279
  output: {
280
280
  path: OUTPUT_PATH,
281
281
  filename: FILENAME.WEBCHAT,
@@ -310,7 +310,7 @@ function botonicWebviewsConfig(mode: Mode): Configuration {
310
310
  mode,
311
311
  devtool: sourceMap(mode),
312
312
  target: 'web',
313
- entry: path.resolve(WEBPACK_ENTRIES_DIRNAME, WEBPACK_ENTRIES.WEBVIEWS),
313
+ entry: path.resolve(RSPACK_ENTRIES_DIRNAME, RSPACK_ENTRIES.WEBVIEWS),
314
314
  output: {
315
315
  path: WEBVIEWS_PATH,
316
316
  filename: FILENAME.WEBVIEWS,
@@ -344,7 +344,7 @@ function botonicServerConfig(mode: string): Configuration {
344
344
  context: ROOT_PATH,
345
345
  // 'mode' removed so that we're forced to be explicit
346
346
  target: 'node',
347
- entry: path.resolve(WEBPACK_ENTRIES_DIRNAME, WEBPACK_ENTRIES.NODE),
347
+ entry: path.resolve(RSPACK_ENTRIES_DIRNAME, RSPACK_ENTRIES.NODE),
348
348
  output: {
349
349
  filename: FILENAME.BOT,
350
350
  library: LIBRARY_NAME.BOT,