@embeddable.com/sdk-react 3.10.6 → 3.10.7-next.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": "@embeddable.com/sdk-react",
3
- "version": "3.10.6",
3
+ "version": "3.10.7-next.0",
4
4
  "description": "Embeddable SDK React plugin responsible for React components bundling.",
5
5
  "keywords": [
6
6
  "embeddable",
@@ -30,8 +30,8 @@
30
30
  "@babel/generator": "^7.23.0",
31
31
  "@babel/parser": "^7.26.2",
32
32
  "@babel/traverse": "^7.24.7",
33
- "@embeddable.com/sdk-core": "3.12.6",
34
- "@embeddable.com/sdk-utils": "0.6.2",
33
+ "@embeddable.com/sdk-core": "3.13.0-next.0",
34
+ "@embeddable.com/sdk-utils": "0.7.0-next.0",
35
35
  "@happy-dom/global-registrator": "^15.11.0",
36
36
  "@vitejs/plugin-react": "^4.3.2",
37
37
  "astring": "^1.8.6",
@@ -1,14 +0,0 @@
1
- const { fileURLToPath, pathToFileURL } = require("url");
2
-
3
- async function loadModule(modulePath) {
4
- try {
5
- const module = await import(pathToFileURL(modulePath).href);
6
- process.stdout.write(JSON.stringify(module.meta));
7
- } catch (error) {
8
- console.error(`Failed to load module: ${error.message}`);
9
- process.exit(1);
10
- }
11
- }
12
-
13
- const modulePath = fileURLToPath(process.argv[2]);
14
- loadModule(modulePath);
package/lib/plugin.d.ts DELETED
@@ -1,21 +0,0 @@
1
- import type { ModuleInfo } from "rollup";
2
- declare const _default: ({
3
- globalKey,
4
- outputDir,
5
- fileName,
6
- componentFileRegex,
7
- typeFileRegex,
8
- searchEntry,
9
- }: {
10
- globalKey: string;
11
- outputDir: string;
12
- fileName: string;
13
- componentFileRegex: RegExp;
14
- typeFileRegex: RegExp;
15
- searchEntry?: string | undefined;
16
- }) => {
17
- name: string;
18
- moduleParsed: (moduleInfo: ModuleInfo) => Promise<void>;
19
- buildEnd: () => Promise<void>;
20
- };
21
- export default _default;
@@ -1,4 +0,0 @@
1
- export declare const proxyHandler: {
2
- get(target: any, prop: string, receiver: any): any;
3
- set(target: any, prop: string, value: any, receiver: any): boolean;
4
- };
@@ -1,13 +0,0 @@
1
- /**
2
- * Check if a file is a React component file
3
- * @param moduleId - The module ID of the file
4
- * @param relativeModulePath - The relative path of the file
5
- * @returns Whether the file is a React component file
6
- * @example
7
- * isReactComponentFile("path/to/file.ts", "./component.tsx");
8
- * // => true
9
- * */
10
- export declare const isReactComponentFile: (
11
- moduleId: string,
12
- relativeModulePath: string,
13
- ) => boolean;
@@ -1,3 +0,0 @@
1
- import type { ZodIssue } from "zod/lib/ZodError";
2
- export declare const errorFormatter: (issues: ZodIssue[]) => string[];
3
- export declare const formatPath: (path: (string | number)[]) => string;