@embeddable.com/sdk-core 3.13.0 → 3.13.2-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.
@@ -8,6 +8,8 @@ export type EmbeddableConfig = {
8
8
  cleanup: (config: EmbeddableConfig) => Promise<unknown>;
9
9
  validate: (config: EmbeddableConfig) => Promise<unknown>;
10
10
  })[];
11
+ pushModels?: boolean;
12
+ pushComponents?: boolean;
11
13
  pushBaseUrl?: string;
12
14
  audienceUrl?: string;
13
15
  authDomain?: string;
@@ -28,9 +30,51 @@ export type EmbeddableConfig = {
28
30
  rollupOptions?: RollupOptions;
29
31
  region?: Region;
30
32
  };
33
+ export type ResolvedEmbeddableConfig = {
34
+ core: {
35
+ rootDir: string;
36
+ templatesDir: string;
37
+ configsDir: string;
38
+ };
39
+ client: {
40
+ rootDir: string;
41
+ srcDir: string;
42
+ modelsSrc?: string;
43
+ presetsSrc?: string;
44
+ buildDir: string;
45
+ tmpDir: string;
46
+ globalCss: string;
47
+ componentDir: string;
48
+ stencilBuild: string;
49
+ archiveFile: string;
50
+ errorFallbackComponent?: string;
51
+ bundleHash?: string;
52
+ viteConfig: {
53
+ resolve?: {
54
+ alias?: Record<string, string>;
55
+ };
56
+ };
57
+ rollupOptions: RollupOptions;
58
+ };
59
+ outputOptions: {
60
+ typesEntryPointFilename: string;
61
+ };
62
+ pushModels: boolean;
63
+ pushComponents: boolean;
64
+ pushBaseUrl: string;
65
+ audienceUrl: string;
66
+ previewBaseUrl: string;
67
+ authDomain: string;
68
+ authClientId: string;
69
+ applicationEnvironment: string;
70
+ rollbarAccessToken: string;
71
+ plugins: EmbeddableConfig["plugins"];
72
+ };
31
73
  export declare const embeddableConfigSchema: z.ZodObject<{
32
74
  plugins: z.ZodArray<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>, "many">;
33
75
  region: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"EU">, z.ZodLiteral<"US">, z.ZodLiteral<"legacy-US">]>>;
76
+ pushModels: z.ZodOptional<z.ZodBoolean>;
77
+ pushComponents: z.ZodOptional<z.ZodBoolean>;
34
78
  pushBaseUrl: z.ZodOptional<z.ZodString>;
35
79
  audienceUrl: z.ZodOptional<z.ZodString>;
36
80
  authDomain: z.ZodOptional<z.ZodString>;
@@ -64,6 +108,8 @@ export declare const embeddableConfigSchema: z.ZodObject<{
64
108
  }, "strict", z.ZodTypeAny, {
65
109
  plugins: ((...args: unknown[]) => unknown)[];
66
110
  region?: "EU" | "US" | "legacy-US" | undefined;
111
+ pushModels?: boolean | undefined;
112
+ pushComponents?: boolean | undefined;
67
113
  pushBaseUrl?: string | undefined;
68
114
  audienceUrl?: string | undefined;
69
115
  authDomain?: string | undefined;
@@ -85,6 +131,8 @@ export declare const embeddableConfigSchema: z.ZodObject<{
85
131
  }, {
86
132
  plugins: ((...args: unknown[]) => unknown)[];
87
133
  region?: "EU" | "US" | "legacy-US" | undefined;
134
+ pushModels?: boolean | undefined;
135
+ pushComponents?: boolean | undefined;
88
136
  pushBaseUrl?: string | undefined;
89
137
  audienceUrl?: string | undefined;
90
138
  authDomain?: string | undefined;
@@ -133,6 +181,8 @@ declare const _default: (config: EmbeddableConfig) => {
133
181
  outputOptions: {
134
182
  typesEntryPointFilename: string;
135
183
  };
184
+ pushModels: boolean;
185
+ pushComponents: boolean;
136
186
  pushBaseUrl: string;
137
187
  audienceUrl: string;
138
188
  previewBaseUrl: string;