@embeddable.com/sdk-core 3.2.0-next.9 → 3.2.1
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/bin/embeddable +1 -1
- package/configs/tsconfig.json +4 -11
- package/lib/defineConfig.d.ts +5 -2
- package/lib/index.esm.js +477 -89
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +477 -89
- package/lib/index.js.map +1 -1
- package/lib/push.d.ts +5 -0
- package/lib/utils.d.ts +7 -0
- package/loader/custom-esm-loader.mjs +1 -1
- package/package.json +4 -4
- package/src/buildTypes.ts +7 -0
- package/src/cleanup.ts +40 -8
- package/src/defineConfig.ts +25 -1
- package/src/entryPoint.js +12 -0
- package/src/generate.ts +22 -0
- package/src/prepare.ts +2 -0
- package/src/push.ts +103 -13
- package/src/utils.ts +22 -0
- package/src/validate.ts +30 -4
- package/templates/component.tsx.template +17 -1
- package/lib/entryPoint.d.ts +0 -1
- package/src/entryPoint.ts +0 -18
package/bin/embeddable
CHANGED
|
@@ -9,7 +9,7 @@ const path = require("path");
|
|
|
9
9
|
// Check if the loader is already applied to avoid infinite spawning
|
|
10
10
|
if (!process.env.LOADER_APPLIED) {
|
|
11
11
|
const env = { ...process.env, LOADER_APPLIED: "1" };
|
|
12
|
-
const entryPointPath = path.join(__dirname, "../src/entryPoint.
|
|
12
|
+
const entryPointPath = path.join(__dirname, "../src/entryPoint.js");
|
|
13
13
|
const customLoaderPath = path.join(
|
|
14
14
|
__dirname,
|
|
15
15
|
"../loader/custom-esm-loader.mjs",
|
package/configs/tsconfig.json
CHANGED
|
@@ -4,10 +4,7 @@
|
|
|
4
4
|
"allowUnreachableCode": false,
|
|
5
5
|
"declaration": false,
|
|
6
6
|
"experimentalDecorators": true,
|
|
7
|
-
"lib": [
|
|
8
|
-
"dom",
|
|
9
|
-
"es2017"
|
|
10
|
-
],
|
|
7
|
+
"lib": ["dom", "es2017"],
|
|
11
8
|
"moduleResolution": "node",
|
|
12
9
|
"module": "esnext",
|
|
13
10
|
"target": "es2017",
|
|
@@ -16,10 +13,6 @@
|
|
|
16
13
|
"jsx": "react",
|
|
17
14
|
"jsxFactory": "h"
|
|
18
15
|
},
|
|
19
|
-
"include": [
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"exclude": [
|
|
23
|
-
"node_modules"
|
|
24
|
-
]
|
|
25
|
-
}
|
|
16
|
+
"include": ["component"],
|
|
17
|
+
"exclude": ["node_modules"]
|
|
18
|
+
}
|
package/lib/defineConfig.d.ts
CHANGED
|
@@ -13,8 +13,10 @@ export type EmbeddableConfig = {
|
|
|
13
13
|
applicationEnvironment?: string;
|
|
14
14
|
rollbarAccessToken?: string;
|
|
15
15
|
previewBaseUrl?: string;
|
|
16
|
+
componentsSrc?: string;
|
|
17
|
+
modelsSrc?: string;
|
|
16
18
|
};
|
|
17
|
-
declare const _default: ({ plugins, pushBaseUrl, audienceUrl, authDomain, authClientId, errorFallbackComponent, applicationEnvironment, rollbarAccessToken, previewBaseUrl, }: EmbeddableConfig) => {
|
|
19
|
+
declare const _default: ({ plugins, pushBaseUrl, audienceUrl, authDomain, authClientId, errorFallbackComponent, applicationEnvironment, rollbarAccessToken, previewBaseUrl, modelsSrc, componentsSrc, }: EmbeddableConfig) => {
|
|
18
20
|
core: {
|
|
19
21
|
rootDir: string;
|
|
20
22
|
templatesDir: string;
|
|
@@ -22,8 +24,9 @@ declare const _default: ({ plugins, pushBaseUrl, audienceUrl, authDomain, authCl
|
|
|
22
24
|
};
|
|
23
25
|
client: {
|
|
24
26
|
rootDir: string;
|
|
25
|
-
buildDir: string;
|
|
26
27
|
srcDir: string;
|
|
28
|
+
modelsSrc: string | undefined;
|
|
29
|
+
buildDir: string;
|
|
27
30
|
tmpDir: string;
|
|
28
31
|
componentDir: string;
|
|
29
32
|
stencilBuild: string;
|