@embeddable.com/sdk-core 3.12.0-next.3 → 3.12.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/lib/index.esm.js +3 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +3 -1
- 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 +16 -0
- package/lib/src/cleanup.test.d.ts +1 -0
- package/lib/src/createContext.d.ts +23 -0
- package/lib/src/credentials.d.ts +2 -0
- package/lib/src/defineConfig.d.ts +65 -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 +26 -0
- package/lib/src/utils.d.ts +25 -0
- package/lib/src/utils.test.d.ts +1 -0
- package/lib/src/validate.d.ts +8 -0
- package/lib/src/validate.test.d.ts +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: (ctx: any) => Promise<void>;
|
|
2
|
+
export default _default;
|
|
3
|
+
type ManifestArgs = {
|
|
4
|
+
ctx: any;
|
|
5
|
+
typesFileName: string;
|
|
6
|
+
metaFileName: string;
|
|
7
|
+
editorsMetaFileName: string;
|
|
8
|
+
stencilWrapperFileName: string;
|
|
9
|
+
};
|
|
10
|
+
export declare function createManifest({
|
|
11
|
+
ctx,
|
|
12
|
+
typesFileName,
|
|
13
|
+
metaFileName,
|
|
14
|
+
editorsMetaFileName,
|
|
15
|
+
stencilWrapperFileName,
|
|
16
|
+
}: ManifestArgs): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare const _default: (
|
|
2
|
+
coreRoot: string,
|
|
3
|
+
clientRoot: string,
|
|
4
|
+
) => {
|
|
5
|
+
core: {
|
|
6
|
+
rootDir: string;
|
|
7
|
+
templatesDir: string;
|
|
8
|
+
configsDir: string;
|
|
9
|
+
};
|
|
10
|
+
client: {
|
|
11
|
+
rootDir: string;
|
|
12
|
+
buildDir: string;
|
|
13
|
+
srcDir: string;
|
|
14
|
+
tmpDir: string;
|
|
15
|
+
componentDir: string;
|
|
16
|
+
stencilBuild: string;
|
|
17
|
+
archiveFile: string;
|
|
18
|
+
};
|
|
19
|
+
outputOptions: {
|
|
20
|
+
typesEntryPointFilename: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export type EmbeddableConfig = {
|
|
2
|
+
plugins: (() => {
|
|
3
|
+
pluginName: string;
|
|
4
|
+
build: (config: EmbeddableConfig) => Promise<unknown>;
|
|
5
|
+
cleanup: (config: EmbeddableConfig) => Promise<unknown>;
|
|
6
|
+
validate: (config: EmbeddableConfig) => Promise<unknown>;
|
|
7
|
+
})[];
|
|
8
|
+
pushBaseUrl?: string;
|
|
9
|
+
audienceUrl?: string;
|
|
10
|
+
authDomain?: string;
|
|
11
|
+
authClientId?: string;
|
|
12
|
+
errorFallbackComponent?: string;
|
|
13
|
+
applicationEnvironment?: string;
|
|
14
|
+
rollbarAccessToken?: string;
|
|
15
|
+
previewBaseUrl?: string;
|
|
16
|
+
componentsSrc?: string;
|
|
17
|
+
modelsSrc?: string;
|
|
18
|
+
};
|
|
19
|
+
declare const _default: ({
|
|
20
|
+
plugins,
|
|
21
|
+
pushBaseUrl,
|
|
22
|
+
audienceUrl,
|
|
23
|
+
authDomain,
|
|
24
|
+
authClientId,
|
|
25
|
+
errorFallbackComponent,
|
|
26
|
+
applicationEnvironment,
|
|
27
|
+
rollbarAccessToken,
|
|
28
|
+
previewBaseUrl,
|
|
29
|
+
modelsSrc,
|
|
30
|
+
componentsSrc,
|
|
31
|
+
}: EmbeddableConfig) => {
|
|
32
|
+
core: {
|
|
33
|
+
rootDir: string;
|
|
34
|
+
templatesDir: string;
|
|
35
|
+
configsDir: string;
|
|
36
|
+
};
|
|
37
|
+
client: {
|
|
38
|
+
rootDir: string;
|
|
39
|
+
srcDir: string;
|
|
40
|
+
modelsSrc: string | undefined;
|
|
41
|
+
buildDir: string;
|
|
42
|
+
tmpDir: string;
|
|
43
|
+
componentDir: string;
|
|
44
|
+
stencilBuild: string;
|
|
45
|
+
archiveFile: string;
|
|
46
|
+
errorFallbackComponent: string | undefined;
|
|
47
|
+
};
|
|
48
|
+
outputOptions: {
|
|
49
|
+
typesEntryPointFilename: string;
|
|
50
|
+
};
|
|
51
|
+
pushBaseUrl: string;
|
|
52
|
+
audienceUrl: string;
|
|
53
|
+
previewBaseUrl: string;
|
|
54
|
+
authDomain: string;
|
|
55
|
+
authClientId: string;
|
|
56
|
+
applicationEnvironment: string;
|
|
57
|
+
rollbarAccessToken: string;
|
|
58
|
+
plugins: (() => {
|
|
59
|
+
pluginName: string;
|
|
60
|
+
build: (config: EmbeddableConfig) => Promise<unknown>;
|
|
61
|
+
cleanup: (config: EmbeddableConfig) => Promise<unknown>;
|
|
62
|
+
validate: (config: EmbeddableConfig) => Promise<unknown>;
|
|
63
|
+
})[];
|
|
64
|
+
};
|
|
65
|
+
export default _default;
|
package/lib/src/dev.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const YAML_OR_JS_FILES: RegExp;
|
|
2
|
+
declare const _default: () => Promise<void>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare function archive(
|
|
5
|
+
ctx: any,
|
|
6
|
+
yamlFiles: [string, string][],
|
|
7
|
+
includeBuild?: boolean,
|
|
8
|
+
): Promise<unknown>;
|
|
9
|
+
export declare function sendBuildByApiKey(
|
|
10
|
+
ctx: any,
|
|
11
|
+
{ apiKey, email, message }: any,
|
|
12
|
+
): Promise<{
|
|
13
|
+
bundleId: any;
|
|
14
|
+
email: any;
|
|
15
|
+
message: any;
|
|
16
|
+
}>;
|
|
17
|
+
export declare function sendBuild(
|
|
18
|
+
ctx: any,
|
|
19
|
+
{
|
|
20
|
+
workspaceId,
|
|
21
|
+
token,
|
|
22
|
+
}: {
|
|
23
|
+
workspaceId: string;
|
|
24
|
+
token: string;
|
|
25
|
+
},
|
|
26
|
+
): Promise<void>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const checkNodeVersion: () => Promise<boolean>;
|
|
2
|
+
/**
|
|
3
|
+
* Get the value of a process argument by key
|
|
4
|
+
* Example: getArgumentByKey("--email") or getArgumentByKey(["--email", "-e"])
|
|
5
|
+
* @param key The key to search for in the process arguments
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
export declare const getArgumentByKey: (
|
|
9
|
+
key: string | string[],
|
|
10
|
+
) => string | undefined;
|
|
11
|
+
export declare const SUCCESS_FLAG_FILE: string;
|
|
12
|
+
/**
|
|
13
|
+
* Store a flag in the credentials directory to indicate a successful build
|
|
14
|
+
* This is used to determine if the build was successful or not
|
|
15
|
+
*/
|
|
16
|
+
export declare const storeBuildSuccessFlag: () => Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* Remove the success flag from the credentials directory
|
|
19
|
+
*/
|
|
20
|
+
export declare const removeBuildSuccessFlag: () => Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* Check if the build was successful
|
|
23
|
+
*/
|
|
24
|
+
export declare const checkBuildSuccess: () => Promise<boolean>;
|
|
25
|
+
export declare const getPackageVersion: (packageName: string) => any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const _default: (ctx: any, exitIfInvalid?: boolean) => Promise<boolean>;
|
|
2
|
+
export default _default;
|
|
3
|
+
export declare function dataModelsValidation(
|
|
4
|
+
filesList: [string, string][],
|
|
5
|
+
): Promise<string[]>;
|
|
6
|
+
export declare function securityContextValidation(
|
|
7
|
+
filesList: [string, string][],
|
|
8
|
+
): Promise<string[]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@embeddable.com/sdk-core",
|
|
3
|
-
"version": "3.12.
|
|
3
|
+
"version": "3.12.1",
|
|
4
4
|
"description": "Core Embeddable SDK module responsible for web-components bundling and publishing.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"embeddable",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"license": "MIT",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@embeddable.com/sdk-utils": "0.6.
|
|
41
|
+
"@embeddable.com/sdk-utils": "0.6.1",
|
|
42
42
|
"@inquirer/prompts": "^7.1.0",
|
|
43
43
|
"@stencil/core": "^4.22.3",
|
|
44
44
|
"@swc-node/register": "^1.10.9",
|