@embeddable.com/sdk-react 3.11.6-next.0 → 3.11.6
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.
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EntrypointModifier } from "./EntrypointModifier";
|
|
2
|
+
/**
|
|
3
|
+
* Modifies entry point only if Emotion is installed in the client's package.json.
|
|
4
|
+
* Wraps the app with CacheProvider and creates a custom cache to inject Emotion styles
|
|
5
|
+
* into the Shadow DOM or desired container.
|
|
6
|
+
*/
|
|
7
|
+
export declare const emotionReactEntrypointModifier: EntrypointModifier;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type PackageJson = {
|
|
2
|
+
dependencies?: Record<string, string>;
|
|
3
|
+
devDependencies?: Record<string, string>;
|
|
4
|
+
[key: string]: unknown;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Checks if a given package exists in dependencies or devDependencies of a package.json object.
|
|
8
|
+
* @param packageJson The parsed package.json object.
|
|
9
|
+
* @param packageName The name of the package to check.
|
|
10
|
+
* @returns True if the package exists, false otherwise.
|
|
11
|
+
*/
|
|
12
|
+
export declare function hasPackage(packageJson: PackageJson, packageName: string): boolean;
|
|
13
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@embeddable.com/sdk-react",
|
|
3
|
-
"version": "3.11.6
|
|
3
|
+
"version": "3.11.6",
|
|
4
4
|
"description": "Embeddable SDK React plugin responsible for React components bundling.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"embeddable",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@babel/generator": "^7.23.0",
|
|
35
35
|
"@babel/parser": "^7.26.2",
|
|
36
36
|
"@babel/traverse": "^7.24.7",
|
|
37
|
-
"@embeddable.com/sdk-core": "3.14.6
|
|
37
|
+
"@embeddable.com/sdk-core": "3.14.6",
|
|
38
38
|
"@embeddable.com/sdk-utils": "0.8.0",
|
|
39
39
|
"@happy-dom/global-registrator": "^15.11.0",
|
|
40
40
|
"@vitejs/plugin-react": "^4.3.2",
|