@applica-software-guru/persona-sdk 0.1.44-preview2 → 0.1.44-preview4

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/dist/runtime.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { PropsWithChildren } from 'react';
1
+ import { PropsWithChildren } from '../node_modules/react';
2
2
  import { PersonaConfig, PersonaMessage, PersonaProtocol, PersonaResponse, ProtocolStatus } from './types';
3
3
  import { PersonaWebRTCProtocol } from './protocol';
4
4
  type PersonaRuntimeContextType = {
5
5
  protocols: PersonaProtocol[];
6
6
  protocolsStatus: Map<string, ProtocolStatus>;
7
7
  };
8
- declare function PersonaRuntimeProvider({ children, ...config }: PropsWithChildren<PersonaConfig>): import("react/jsx-runtime").JSX.Element;
8
+ declare function PersonaRuntimeProvider({ children, ...config }: PropsWithChildren<PersonaConfig>): import('../node_modules/react/jsx-runtime').JSX.Element;
9
9
  declare function usePersonaRuntime(): PersonaRuntimeContextType;
10
10
  /**
11
11
  * Retrieves a specific protocol instance from the PersonaRuntimeContext.
package/dist/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { PersonaLogger } from './logging';
2
- import { ReactNode } from 'react';
2
+ import { ReactNode } from '../node_modules/react';
3
3
  export type ReadonlyJSONObject = {
4
4
  readonly [key: string]: string | number | boolean | null | ReadonlyJSONObject | ReadonlyArray<ReadonlyJSONObject>;
5
5
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@applica-software-guru/persona-sdk",
3
3
  "private": false,
4
- "version": "0.1.44-preview2",
4
+ "version": "0.1.44-preview4",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
package/vite.config.ts CHANGED
@@ -8,8 +8,6 @@ import tailwindcss from '@tailwindcss/vite';
8
8
  export default defineConfig((configEnv: ConfigEnv) => {
9
9
  const { mode } = configEnv;
10
10
  const isDevelopment = mode === 'development';
11
- const peerDependencies = Object.keys(packageJson.peerDependencies || {});
12
-
13
11
  const config: UserConfig = {
14
12
  build: {
15
13
  sourcemap: true,
@@ -20,24 +18,26 @@ export default defineConfig((configEnv: ConfigEnv) => {
20
18
  fileName: (format: string) => `bundle.${format}.js`,
21
19
  },
22
20
  rollupOptions: {
23
- external: (id) => /^(react|react-dom)([\/]|$)/.test(id),
21
+ external: Object.keys(packageJson.peerDependencies || {}),
24
22
  input: resolve(__dirname, 'src', 'index.ts'),
25
23
  output: {
26
24
  globals: {
27
25
  'react-dom': 'ReactDOM',
28
26
  react: 'React',
29
- '@assistant-ui/react': 'AssistantUIReact',
30
27
  },
31
28
  },
32
29
  },
33
30
  },
34
31
  resolve: {
35
- dedupe: [...peerDependencies, 'react', 'react-dom'],
32
+ dedupe: Object.keys(packageJson.peerDependencies || {}),
36
33
  alias: {
37
34
  '@applica-software-guru/persona-sdk': resolve(__dirname, 'src'),
38
35
  '@': resolve(__dirname, 'playground/src'),
39
36
  '@/*': resolve(__dirname, 'playground/src/*'),
40
37
  '*': resolve(__dirname, 'src/*'),
38
+ react: resolve(__dirname, 'node_modules', 'react'),
39
+ 'react-dom': resolve(__dirname, 'node_modules', 'react-dom'),
40
+ 'react/jsx-runtime': resolve(__dirname, 'node_modules', 'react/jsx-runtime'),
41
41
  },
42
42
  },
43
43
  plugins: [
@@ -52,7 +52,7 @@ export default defineConfig((configEnv: ConfigEnv) => {
52
52
  },
53
53
  },
54
54
  optimizeDeps: {
55
- exclude: [...peerDependencies, 'react', 'react-dom'],
55
+ include: Object.keys(packageJson.peerDependencies || {}),
56
56
  },
57
57
  };
58
58
  if (isDevelopment) {