@embeddable.com/sdk-core 3.5.5 → 3.7.0-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/lib/defineConfig.d.ts +4 -1
- package/lib/index.esm.js +3 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +3 -2
- package/lib/index.js.map +1 -1
- package/lib/src/build.d.ts +2 -0
- package/lib/src/build.test.d.ts +1 -0
- package/lib/src/buildTypes.d.ts +4 -0
- package/lib/src/buildTypes.test.d.ts +1 -0
- package/lib/src/cleanup.d.ts +10 -0
- package/lib/src/cleanup.test.d.ts +1 -0
- package/lib/src/createContext.d.ts +20 -0
- package/lib/src/credentials.d.ts +2 -0
- package/lib/src/defineConfig.d.ts +53 -0
- package/lib/src/dev.d.ts +2 -0
- package/lib/src/generate.d.ts +2 -0
- package/lib/src/globalCleanup.d.ts +2 -0
- package/lib/src/index.d.ts +5 -0
- package/lib/src/login.d.ts +4 -0
- package/lib/src/prepare.d.ts +3 -0
- package/lib/src/provideConfig.d.ts +2 -0
- package/lib/src/provideConfig.test.d.ts +1 -0
- package/lib/src/push.d.ts +13 -0
- package/lib/src/utils.d.ts +23 -0
- package/lib/src/utils.test.d.ts +1 -0
- package/lib/src/validate.d.ts +4 -0
- package/lib/src/validate.test.d.ts +1 -0
- package/loader/custom-esm-loader.mjs +47 -25
- package/package.json +1 -1
- package/src/{defineConfit.test.ts → defineConfig.test.ts} +2 -1
- package/src/defineConfig.ts +4 -0
package/lib/defineConfig.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RollupOptions } from "rollup";
|
|
1
2
|
export type EmbeddableConfig = {
|
|
2
3
|
plugins: (() => {
|
|
3
4
|
pluginName: string;
|
|
@@ -20,8 +21,9 @@ export type EmbeddableConfig = {
|
|
|
20
21
|
alias?: Record<string, string>;
|
|
21
22
|
};
|
|
22
23
|
};
|
|
24
|
+
rollupOptions?: RollupOptions;
|
|
23
25
|
};
|
|
24
|
-
declare const _default: ({ plugins, pushBaseUrl, audienceUrl, authDomain, authClientId, errorFallbackComponent, applicationEnvironment, rollbarAccessToken, previewBaseUrl, modelsSrc, componentsSrc, viteConfig, }: EmbeddableConfig) => {
|
|
26
|
+
declare const _default: ({ plugins, pushBaseUrl, audienceUrl, authDomain, authClientId, errorFallbackComponent, applicationEnvironment, rollbarAccessToken, previewBaseUrl, modelsSrc, componentsSrc, viteConfig, rollupOptions, }: EmbeddableConfig) => {
|
|
25
27
|
core: {
|
|
26
28
|
rootDir: string;
|
|
27
29
|
templatesDir: string;
|
|
@@ -43,6 +45,7 @@ declare const _default: ({ plugins, pushBaseUrl, audienceUrl, authDomain, authCl
|
|
|
43
45
|
alias?: Record<string, string>;
|
|
44
46
|
};
|
|
45
47
|
};
|
|
48
|
+
rollupOptions: RollupOptions;
|
|
46
49
|
};
|
|
47
50
|
outputOptions: {
|
|
48
51
|
typesEntryPointFilename: string;
|
package/lib/index.esm.js
CHANGED
|
@@ -20953,7 +20953,7 @@ const getPreviewWorkspace = async (ctx) => {
|
|
|
20953
20953
|
}
|
|
20954
20954
|
};
|
|
20955
20955
|
|
|
20956
|
-
var defineConfig = ({ plugins, pushBaseUrl, audienceUrl, authDomain, authClientId, errorFallbackComponent, applicationEnvironment, rollbarAccessToken, previewBaseUrl, modelsSrc = "src", componentsSrc = "src", viteConfig = {}, }) => {
|
|
20956
|
+
var defineConfig = ({ plugins, pushBaseUrl, audienceUrl, authDomain, authClientId, errorFallbackComponent, applicationEnvironment, rollbarAccessToken, previewBaseUrl, modelsSrc = "src", componentsSrc = "src", viteConfig = {}, rollupOptions = {}, }) => {
|
|
20957
20957
|
const coreRoot = path$1.resolve(__dirname, "..");
|
|
20958
20958
|
const clientRoot = process.cwd();
|
|
20959
20959
|
if (!path$1.isAbsolute(componentsSrc)) {
|
|
@@ -20988,6 +20988,7 @@ var defineConfig = ({ plugins, pushBaseUrl, audienceUrl, authDomain, authClientI
|
|
|
20988
20988
|
: undefined,
|
|
20989
20989
|
bundleHash: undefined, // This will be set by the build process
|
|
20990
20990
|
viteConfig,
|
|
20991
|
+
rollupOptions,
|
|
20991
20992
|
},
|
|
20992
20993
|
outputOptions: {
|
|
20993
20994
|
typesEntryPointFilename: "embeddable-types-entry-point.js",
|
|
@@ -21004,7 +21005,7 @@ var defineConfig = ({ plugins, pushBaseUrl, audienceUrl, authDomain, authClientI
|
|
|
21004
21005
|
};
|
|
21005
21006
|
|
|
21006
21007
|
var name = "@embeddable.com/sdk-core";
|
|
21007
|
-
var version = "3.
|
|
21008
|
+
var version = "3.6.0";
|
|
21008
21009
|
var description = "Core Embeddable SDK module responsible for web-components bundling and publishing.";
|
|
21009
21010
|
var keywords = [
|
|
21010
21011
|
"embeddable",
|