@embeddable.com/sdk-core 2.0.0 → 2.1.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/bin/embeddable CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict';
3
3
 
4
- const COMMANDS_MAP = require("../dist");
4
+ const COMMANDS_MAP = require("../lib");
5
5
 
6
6
  async function main () {
7
7
  const command = process.argv[2];
@@ -1,6 +1,13 @@
1
- export declare const defineConfig: ({ plugins }: {
2
- plugins: any;
3
- }) => {
1
+ export type EmbeddableConfig = {
2
+ plugins: (() => {
3
+ pluginName: string;
4
+ build: (config: EmbeddableConfig) => Promise<void>;
5
+ cleanup: (config: EmbeddableConfig) => Promise<void>;
6
+ validate: (config: EmbeddableConfig) => Promise<void>;
7
+ })[];
8
+ pushBaseUrl?: string;
9
+ };
10
+ declare const _default: ({ plugins, pushBaseUrl }: EmbeddableConfig) => {
4
11
  core: {
5
12
  rootDir: string;
6
13
  templatesDir: string;
@@ -18,5 +25,12 @@ export declare const defineConfig: ({ plugins }: {
18
25
  outputOptions: {
19
26
  typesEntryPointFilename: string;
20
27
  };
21
- plugins: any;
28
+ pushBaseUrl: string;
29
+ plugins: (() => {
30
+ pluginName: string;
31
+ build: (config: EmbeddableConfig) => Promise<void>;
32
+ cleanup: (config: EmbeddableConfig) => Promise<void>;
33
+ validate: (config: EmbeddableConfig) => Promise<void>;
34
+ })[];
22
35
  };
36
+ export default _default;
package/lib/index.d.ts CHANGED
@@ -1,6 +1,4 @@
1
- export * from "./loadData";
2
- export { defineConfig } from "./defineConfig";
3
- export { Value } from "./operations";
4
- export { setValue } from "./setValue";
5
- export { embedType } from "./embedType";
6
- export { embedOption } from "./embedOption";
1
+ export { default as build } from "./build";
2
+ export { default as login } from "./login";
3
+ export { default as push } from "./push";
4
+ export { default as defineConfig } from "./defineConfig";