attio 0.0.1-experimental.20240624 → 0.0.1-experimental.20240627
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/commands/dev.d.ts +13 -1
- package/lib/commands/dev.d.ts.map +1 -1
- package/lib/commands/dev.js +32 -4
- package/lib/commands/dev.js.map +1 -1
- package/lib/commands/index.d.ts +1 -4
- package/lib/commands/index.d.ts.map +1 -1
- package/lib/commands/index.js +19 -30
- package/lib/commands/index.js.map +1 -1
- package/lib/components/Disclaimer.js +3 -3
- package/lib/components/Disclaimer.js.map +1 -1
- package/lib/components/InitialInstructions.d.ts.map +1 -1
- package/lib/components/InitialInstructions.js +19 -15
- package/lib/components/InitialInstructions.js.map +1 -1
- package/lib/env.d.ts +5 -0
- package/lib/env.d.ts.map +1 -0
- package/lib/env.js +6 -0
- package/lib/env.js.map +1 -0
- package/lib/machines/dev-machine.d.ts +30 -10
- package/lib/machines/dev-machine.d.ts.map +1 -1
- package/lib/machines/dev-machine.js +38 -19
- package/lib/machines/dev-machine.js.map +1 -1
- package/lib/machines/scaffold-machine.d.ts +100 -147
- package/lib/machines/scaffold-machine.d.ts.map +1 -1
- package/lib/machines/scaffold-machine.js +142 -152
- package/lib/machines/scaffold-machine.js.map +1 -1
- package/lib/templates/javascript/package.json +3 -3
- package/lib/templates/typescript/package.json +4 -4
- package/lib/util/slugify-extension.d.ts +2 -0
- package/lib/util/slugify-extension.d.ts.map +1 -0
- package/lib/util/slugify-extension.js +15 -0
- package/lib/util/slugify-extension.js.map +1 -0
- package/lib/util/upload-bundle.d.ts +1 -9
- package/lib/util/upload-bundle.d.ts.map +1 -1
- package/lib/util/upload-bundle.js +25 -13
- package/lib/util/upload-bundle.js.map +1 -1
- package/lib/util/validate-slug.d.ts +3 -0
- package/lib/util/validate-slug.d.ts.map +1 -0
- package/lib/util/validate-slug.js +14 -0
- package/lib/util/validate-slug.js.map +1 -0
- package/package.json +3 -3
- package/lib/util/make-extension-name.d.ts +0 -3
- package/lib/util/make-extension-name.d.ts.map +0 -1
- package/lib/util/make-extension-name.js +0 -14
- package/lib/util/make-extension-name.js.map +0 -1
- package/lib/util/validate-project-name.d.ts +0 -3
- package/lib/util/validate-project-name.d.ts.map +0 -1
- package/lib/util/validate-project-name.js +0 -28
- package/lib/util/validate-project-name.js.map +0 -1
|
@@ -25,6 +25,23 @@ export const devMachine = setup({
|
|
|
25
25
|
}
|
|
26
26
|
sendBack({ type: "Initialized", config });
|
|
27
27
|
}),
|
|
28
|
+
ping: fromCallback(({ input, sendBack }) => {
|
|
29
|
+
const { config, devVersion } = input;
|
|
30
|
+
if (!config)
|
|
31
|
+
throw new Error("No config");
|
|
32
|
+
if (!devVersion)
|
|
33
|
+
return;
|
|
34
|
+
const { token, developer_slug } = config;
|
|
35
|
+
const { integration_id, integration_dev_version_id } = devVersion;
|
|
36
|
+
const sendPing = () => {
|
|
37
|
+
ping(token, developer_slug, integration_id, integration_dev_version_id).then(() => {
|
|
38
|
+
sendBack({ type: "Ping", time: new Date() });
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
sendPing();
|
|
42
|
+
const interval = setInterval(sendPing, 20000);
|
|
43
|
+
return () => clearInterval(interval);
|
|
44
|
+
}),
|
|
28
45
|
prepareUpload: fromCallback(({ sendBack }) => {
|
|
29
46
|
const prepareUpload = async () => {
|
|
30
47
|
const config = await loadConfig();
|
|
@@ -79,15 +96,6 @@ export const devMachine = setup({
|
|
|
79
96
|
},
|
|
80
97
|
actions: {
|
|
81
98
|
clearUploadError: assign({ uploadError: undefined }),
|
|
82
|
-
ping: ({ context: { config, devVersion } }) => {
|
|
83
|
-
if (!config)
|
|
84
|
-
throw new Error("No config");
|
|
85
|
-
if (!devVersion)
|
|
86
|
-
throw new Error("No config");
|
|
87
|
-
const { token, developer_slug } = config;
|
|
88
|
-
const { integration_id, integration_dev_version_id } = devVersion;
|
|
89
|
-
ping(token, developer_slug, integration_id, integration_dev_version_id);
|
|
90
|
-
},
|
|
91
99
|
sendChange: enqueueActions(({ enqueue, event }) => {
|
|
92
100
|
enqueue.sendTo("javascript", event);
|
|
93
101
|
enqueue.sendTo("typescript", event);
|
|
@@ -101,6 +109,7 @@ export const devMachine = setup({
|
|
|
101
109
|
setDevVersion: assign({
|
|
102
110
|
devVersion: (_, params) => params.devVersion,
|
|
103
111
|
}),
|
|
112
|
+
setLastPing: assign({ lastPing: (_, params) => params.time }),
|
|
104
113
|
setSuccess: assign({
|
|
105
114
|
jsContents: (_, params) => params.contents,
|
|
106
115
|
lastSuccessfulJavaScriptBuild: (_, params) => params.time,
|
|
@@ -146,7 +155,18 @@ export const devMachine = setup({
|
|
|
146
155
|
},
|
|
147
156
|
},
|
|
148
157
|
},
|
|
149
|
-
"Watching": {
|
|
158
|
+
"Watching": {
|
|
159
|
+
invoke: {
|
|
160
|
+
src: "ping",
|
|
161
|
+
input: ({ context }) => context,
|
|
162
|
+
},
|
|
163
|
+
on: {
|
|
164
|
+
Ping: {
|
|
165
|
+
target: "Watching",
|
|
166
|
+
actions: { type: "setLastPing", params: ({ event }) => event },
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
},
|
|
150
170
|
"Uploading": {
|
|
151
171
|
on: {
|
|
152
172
|
"Upload Complete": "Watching",
|
|
@@ -187,6 +207,14 @@ export const devMachine = setup({
|
|
|
187
207
|
actions: "sendChange",
|
|
188
208
|
description: `Re-enter to invoke prepareUpload again`,
|
|
189
209
|
},
|
|
210
|
+
Ping: {
|
|
211
|
+
target: "Upload Error",
|
|
212
|
+
actions: { type: "setLastPing", params: ({ event }) => event },
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
invoke: {
|
|
216
|
+
src: "ping",
|
|
217
|
+
input: ({ context }) => context,
|
|
190
218
|
},
|
|
191
219
|
},
|
|
192
220
|
},
|
|
@@ -223,15 +251,6 @@ export const devMachine = setup({
|
|
|
223
251
|
},
|
|
224
252
|
initial: "Validating",
|
|
225
253
|
},
|
|
226
|
-
Ping: {
|
|
227
|
-
after: {
|
|
228
|
-
"25000": {
|
|
229
|
-
target: "Ping",
|
|
230
|
-
actions: "ping",
|
|
231
|
-
reenter: true,
|
|
232
|
-
},
|
|
233
|
-
},
|
|
234
|
-
},
|
|
235
254
|
},
|
|
236
255
|
type: "parallel",
|
|
237
256
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev-machine.js","sourceRoot":"","sources":["../../src/machines/dev-machine.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAA;AAC/B,OAAO,EAAC,QAAQ,IAAI,EAAE,EAAC,MAAM,IAAI,CAAA;AACjC,OAAO,EAAC,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,cAAc,EAAC,MAAM,QAAQ,CAAA;AAElE,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAA;AACrC,OAAO,EAIH,oBAAoB,EACpB,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,qBAAqB,EACrB,IAAI,EACJ,WAAW,GACd,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAA;AACzC,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"dev-machine.js","sourceRoot":"","sources":["../../src/machines/dev-machine.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAA;AAC/B,OAAO,EAAC,QAAQ,IAAI,EAAE,EAAC,MAAM,IAAI,CAAA;AACjC,OAAO,EAAC,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,cAAc,EAAC,MAAM,QAAQ,CAAA;AAElE,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAA;AACrC,OAAO,EAIH,oBAAoB,EACpB,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,qBAAqB,EACrB,IAAI,EACJ,WAAW,GACd,MAAM,0BAA0B,CAAA;AACjC,OAAO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AAE,UAAU;SACnB;QAED,aAAa,EAAE;YACX,EAAE,EAAE;gBACA,aAAa,EAAE;oBACX,MAAM,EAAE,UAAU;oBAClB,OAAO,EAAE,EAAC,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,KAAK,EAAC;iBAC3D;gBAED,sBAAsB,EAAE;oBACpB,MAAM,EAAE,WAAW;oBACnB,OAAO,EAAE;wBACL,IAAI,EAAE,gBAAgB;wBACtB,MAAM,EAAE,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,KAAK;qBAC7B;iBACJ;aACJ;YAED,MAAM,EAAE;gBACJ,GAAG,EAAE,YAAY;aACpB;SACJ;QAED,WAAW,EAAE;YACT,IAAI,EAAE,OAAO;SAChB;KACJ;CACJ,CAAC,CAAA"}
|
|
@@ -34,12 +34,11 @@ interface Context {
|
|
|
34
34
|
error?: string;
|
|
35
35
|
configError?: InitialConfigError;
|
|
36
36
|
language?: Language;
|
|
37
|
-
name: string;
|
|
38
37
|
token: string;
|
|
39
38
|
developerSlug: string;
|
|
40
|
-
|
|
39
|
+
title: string;
|
|
41
40
|
integrationId: string;
|
|
42
|
-
|
|
41
|
+
slug: string;
|
|
43
42
|
outlets?: Array<Outlet>;
|
|
44
43
|
packageManager?: PackageManager;
|
|
45
44
|
}
|
|
@@ -59,17 +58,21 @@ type Event = {
|
|
|
59
58
|
} | {
|
|
60
59
|
type: "Error";
|
|
61
60
|
error: string;
|
|
61
|
+
} | {
|
|
62
|
+
type: "Fatal Error";
|
|
63
|
+
error: string;
|
|
62
64
|
} | {
|
|
63
65
|
type: "Integration Created";
|
|
64
66
|
integrationId: string;
|
|
65
67
|
} | {
|
|
66
|
-
type: "Invalid
|
|
68
|
+
type: "Invalid Slug";
|
|
67
69
|
error: string;
|
|
68
70
|
} | {
|
|
69
|
-
type: "Invalid
|
|
71
|
+
type: "Invalid Title";
|
|
70
72
|
error: string;
|
|
71
73
|
} | {
|
|
72
|
-
type: "
|
|
74
|
+
type: "Invalid Slug";
|
|
75
|
+
error: string;
|
|
73
76
|
} | {
|
|
74
77
|
type: "No Config";
|
|
75
78
|
configError: InitialConfigError;
|
|
@@ -81,18 +84,16 @@ type Event = {
|
|
|
81
84
|
} | {
|
|
82
85
|
type: "Success";
|
|
83
86
|
} | {
|
|
84
|
-
type: "Update
|
|
85
|
-
|
|
87
|
+
type: "Update Slug";
|
|
88
|
+
slug: string;
|
|
89
|
+
} | {
|
|
90
|
+
type: "Update Title";
|
|
91
|
+
title: string;
|
|
86
92
|
} | {
|
|
87
93
|
type: "Update Integration Title";
|
|
88
94
|
integrationTitle: string;
|
|
89
95
|
} | {
|
|
90
|
-
type: "
|
|
91
|
-
integrationSlug: string;
|
|
92
|
-
} | {
|
|
93
|
-
type: "Valid Integration Slug";
|
|
94
|
-
} | {
|
|
95
|
-
type: "Valid Name";
|
|
96
|
+
type: "Valid Slug";
|
|
96
97
|
};
|
|
97
98
|
export declare const scaffoldMachine: import("xstate").StateMachine<Context, {
|
|
98
99
|
type: "Choose Language";
|
|
@@ -110,17 +111,21 @@ export declare const scaffoldMachine: import("xstate").StateMachine<Context, {
|
|
|
110
111
|
} | {
|
|
111
112
|
type: "Error";
|
|
112
113
|
error: string;
|
|
114
|
+
} | {
|
|
115
|
+
type: "Fatal Error";
|
|
116
|
+
error: string;
|
|
113
117
|
} | {
|
|
114
118
|
type: "Integration Created";
|
|
115
119
|
integrationId: string;
|
|
116
120
|
} | {
|
|
117
|
-
type: "Invalid
|
|
121
|
+
type: "Invalid Slug";
|
|
118
122
|
error: string;
|
|
119
123
|
} | {
|
|
120
|
-
type: "Invalid
|
|
124
|
+
type: "Invalid Title";
|
|
121
125
|
error: string;
|
|
122
126
|
} | {
|
|
123
|
-
type: "
|
|
127
|
+
type: "Invalid Slug";
|
|
128
|
+
error: string;
|
|
124
129
|
} | {
|
|
125
130
|
type: "No Config";
|
|
126
131
|
configError: InitialConfigError;
|
|
@@ -132,30 +137,26 @@ export declare const scaffoldMachine: import("xstate").StateMachine<Context, {
|
|
|
132
137
|
} | {
|
|
133
138
|
type: "Success";
|
|
134
139
|
} | {
|
|
135
|
-
type: "Update
|
|
136
|
-
|
|
140
|
+
type: "Update Slug";
|
|
141
|
+
slug: string;
|
|
142
|
+
} | {
|
|
143
|
+
type: "Update Title";
|
|
144
|
+
title: string;
|
|
137
145
|
} | {
|
|
138
146
|
type: "Update Integration Title";
|
|
139
147
|
integrationTitle: string;
|
|
140
148
|
} | {
|
|
141
|
-
type: "
|
|
142
|
-
integrationSlug: string;
|
|
143
|
-
} | {
|
|
144
|
-
type: "Valid Integration Slug";
|
|
145
|
-
} | {
|
|
146
|
-
type: "Valid Name";
|
|
149
|
+
type: "Valid Slug";
|
|
147
150
|
}, {
|
|
148
|
-
[x: string]: import("xstate").ActorRef<import("xstate").CallbackSnapshot<import("xstate").NonReducibleUnknown>, import("xstate").EventObject, import("xstate").EventObject> | import("xstate").ActorRef<import("xstate").CallbackSnapshot<Required<Pick<Context, "
|
|
151
|
+
[x: string]: import("xstate").ActorRef<import("xstate").CallbackSnapshot<import("xstate").NonReducibleUnknown>, import("xstate").EventObject, import("xstate").EventObject> | import("xstate").ActorRef<import("xstate").CallbackSnapshot<Required<Pick<Context, "slug" | "packageManager">>>, Event, import("xstate").EventObject> | import("xstate").ActorRef<import("xstate").CallbackSnapshot<Required<Pick<Context, "title" | "slug" | "language" | "packageManager" | "integrationId">>>, Event, import("xstate").EventObject> | import("xstate").ActorRef<import("xstate").CallbackSnapshot<Required<Pick<Context, "title" | "slug" | "token" | "developerSlug">>>, Event, import("xstate").EventObject> | import("xstate").ActorRef<import("xstate").CallbackSnapshot<{
|
|
149
152
|
token: string;
|
|
153
|
+
slug: string;
|
|
150
154
|
developerSlug: string;
|
|
151
|
-
integrationSlug: string;
|
|
152
|
-
}>, any, import("xstate").EventObject> | import("xstate").ActorRef<import("xstate").CallbackSnapshot<{
|
|
153
|
-
name: string;
|
|
154
155
|
}>, Event, import("xstate").EventObject> | undefined;
|
|
155
156
|
}, import("xstate").Values<{
|
|
156
157
|
build: {
|
|
157
158
|
src: "build";
|
|
158
|
-
logic: import("xstate").CallbackActorLogic<Event, Required<Pick<Context, "
|
|
159
|
+
logic: import("xstate").CallbackActorLogic<Event, Required<Pick<Context, "slug" | "packageManager">>>;
|
|
159
160
|
id: string | undefined;
|
|
160
161
|
};
|
|
161
162
|
loadConfig: {
|
|
@@ -165,12 +166,12 @@ export declare const scaffoldMachine: import("xstate").StateMachine<Context, {
|
|
|
165
166
|
};
|
|
166
167
|
createProject: {
|
|
167
168
|
src: "createProject";
|
|
168
|
-
logic: import("xstate").CallbackActorLogic<Event, Required<Pick<Context, "
|
|
169
|
+
logic: import("xstate").CallbackActorLogic<Event, Required<Pick<Context, "title" | "slug" | "language" | "packageManager" | "integrationId">>>;
|
|
169
170
|
id: string | undefined;
|
|
170
171
|
};
|
|
171
172
|
createIntegration: {
|
|
172
173
|
src: "createIntegration";
|
|
173
|
-
logic: import("xstate").CallbackActorLogic<Event, Required<Pick<Context, "
|
|
174
|
+
logic: import("xstate").CallbackActorLogic<Event, Required<Pick<Context, "title" | "slug" | "token" | "developerSlug">>>;
|
|
174
175
|
id: string | undefined;
|
|
175
176
|
};
|
|
176
177
|
detectPackageManagers: {
|
|
@@ -178,19 +179,12 @@ export declare const scaffoldMachine: import("xstate").StateMachine<Context, {
|
|
|
178
179
|
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown>;
|
|
179
180
|
id: string | undefined;
|
|
180
181
|
};
|
|
181
|
-
|
|
182
|
-
src: "
|
|
183
|
-
logic: import("xstate").CallbackActorLogic<
|
|
182
|
+
validateSlug: {
|
|
183
|
+
src: "validateSlug";
|
|
184
|
+
logic: import("xstate").CallbackActorLogic<Event, {
|
|
184
185
|
token: string;
|
|
186
|
+
slug: string;
|
|
185
187
|
developerSlug: string;
|
|
186
|
-
integrationSlug: string;
|
|
187
|
-
}>;
|
|
188
|
-
id: string | undefined;
|
|
189
|
-
};
|
|
190
|
-
validateName: {
|
|
191
|
-
src: "validateName";
|
|
192
|
-
logic: import("xstate").CallbackActorLogic<Event, {
|
|
193
|
-
name: string;
|
|
194
188
|
}>;
|
|
195
189
|
id: string | undefined;
|
|
196
190
|
};
|
|
@@ -212,6 +206,12 @@ export declare const scaffoldMachine: import("xstate").StateMachine<Context, {
|
|
|
212
206
|
developerSlug: string;
|
|
213
207
|
};
|
|
214
208
|
};
|
|
209
|
+
setConfigError: {
|
|
210
|
+
type: "setConfigError";
|
|
211
|
+
params: {
|
|
212
|
+
configError: InitialConfigError;
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
215
|
setAvailablePackageManagers: {
|
|
216
216
|
type: "setAvailablePackageManagers";
|
|
217
217
|
params: {
|
|
@@ -230,16 +230,10 @@ export declare const scaffoldMachine: import("xstate").StateMachine<Context, {
|
|
|
230
230
|
packageManager: PackageManager;
|
|
231
231
|
};
|
|
232
232
|
};
|
|
233
|
-
|
|
234
|
-
type: "
|
|
233
|
+
setTitle: {
|
|
234
|
+
type: "setTitle";
|
|
235
235
|
params: {
|
|
236
|
-
|
|
237
|
-
};
|
|
238
|
-
};
|
|
239
|
-
setIntegrationTitle: {
|
|
240
|
-
type: "setIntegrationTitle";
|
|
241
|
-
params: {
|
|
242
|
-
integrationTitle: string;
|
|
236
|
+
title: string;
|
|
243
237
|
};
|
|
244
238
|
};
|
|
245
239
|
setIntegrationId: {
|
|
@@ -248,10 +242,10 @@ export declare const scaffoldMachine: import("xstate").StateMachine<Context, {
|
|
|
248
242
|
integrationId: string;
|
|
249
243
|
};
|
|
250
244
|
};
|
|
251
|
-
|
|
252
|
-
type: "
|
|
245
|
+
setSlug: {
|
|
246
|
+
type: "setSlug";
|
|
253
247
|
params: {
|
|
254
|
-
|
|
248
|
+
slug: string;
|
|
255
249
|
};
|
|
256
250
|
};
|
|
257
251
|
setOutlets: {
|
|
@@ -260,41 +254,23 @@ export declare const scaffoldMachine: import("xstate").StateMachine<Context, {
|
|
|
260
254
|
outlets: Array<Outlet>;
|
|
261
255
|
};
|
|
262
256
|
};
|
|
263
|
-
|
|
264
|
-
type: "
|
|
265
|
-
params: {
|
|
266
|
-
integrationTitle: string;
|
|
267
|
-
};
|
|
268
|
-
};
|
|
269
|
-
slugifyIntegrationSlug: {
|
|
270
|
-
type: "slugifyIntegrationSlug";
|
|
271
|
-
params: {
|
|
272
|
-
integrationSlug: string;
|
|
273
|
-
};
|
|
274
|
-
};
|
|
275
|
-
slugifyName: {
|
|
276
|
-
type: "slugifyName";
|
|
257
|
+
slugifyTitle: {
|
|
258
|
+
type: "slugifyTitle";
|
|
277
259
|
params: {
|
|
278
|
-
|
|
260
|
+
title: string;
|
|
279
261
|
};
|
|
280
262
|
};
|
|
281
263
|
}>, import("xstate").Values<{
|
|
282
|
-
"have
|
|
283
|
-
type: "have
|
|
264
|
+
"have title": {
|
|
265
|
+
type: "have title";
|
|
284
266
|
params: {
|
|
285
|
-
|
|
267
|
+
title: string;
|
|
286
268
|
};
|
|
287
269
|
};
|
|
288
|
-
"have
|
|
289
|
-
type: "have
|
|
270
|
+
"have slug": {
|
|
271
|
+
type: "have slug";
|
|
290
272
|
params: {
|
|
291
|
-
|
|
292
|
-
};
|
|
293
|
-
};
|
|
294
|
-
"have integration slug": {
|
|
295
|
-
type: "have integration slug";
|
|
296
|
-
params: {
|
|
297
|
-
integrationSlug: string;
|
|
273
|
+
slug: string;
|
|
298
274
|
};
|
|
299
275
|
};
|
|
300
276
|
"have language": {
|
|
@@ -316,7 +292,7 @@ export declare const scaffoldMachine: import("xstate").StateMachine<Context, {
|
|
|
316
292
|
outlets?: ("tool" | "action")[] | undefined;
|
|
317
293
|
};
|
|
318
294
|
};
|
|
319
|
-
}>, never, "Success" | "Building" | "Error" | "
|
|
295
|
+
}>, never, "Success" | "Building" | "Error" | "Do we need title?" | "Validate Slug From CLI Title" | "Ask for title" | "Validate Slug From Title" | "Ask for language" | "Detecting Package Managers" | "Do we need package manager?" | "Ask for package manager" | "Do we need outlets?" | "Ask for outlets" | "Create Integration" | "Creating Project" | "Do we need language?" | "Validate Slug" | "Ask for slug" | "Load Config" | "Show config instructions", string, Pick<Context, "title" | "language" | "outlets" | "packageManager">, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, {
|
|
320
296
|
type: "Choose Language";
|
|
321
297
|
language: Language;
|
|
322
298
|
} | {
|
|
@@ -332,17 +308,21 @@ export declare const scaffoldMachine: import("xstate").StateMachine<Context, {
|
|
|
332
308
|
} | {
|
|
333
309
|
type: "Error";
|
|
334
310
|
error: string;
|
|
311
|
+
} | {
|
|
312
|
+
type: "Fatal Error";
|
|
313
|
+
error: string;
|
|
335
314
|
} | {
|
|
336
315
|
type: "Integration Created";
|
|
337
316
|
integrationId: string;
|
|
338
317
|
} | {
|
|
339
|
-
type: "Invalid
|
|
318
|
+
type: "Invalid Slug";
|
|
340
319
|
error: string;
|
|
341
320
|
} | {
|
|
342
|
-
type: "Invalid
|
|
321
|
+
type: "Invalid Title";
|
|
343
322
|
error: string;
|
|
344
323
|
} | {
|
|
345
|
-
type: "
|
|
324
|
+
type: "Invalid Slug";
|
|
325
|
+
error: string;
|
|
346
326
|
} | {
|
|
347
327
|
type: "No Config";
|
|
348
328
|
configError: InitialConfigError;
|
|
@@ -354,22 +334,20 @@ export declare const scaffoldMachine: import("xstate").StateMachine<Context, {
|
|
|
354
334
|
} | {
|
|
355
335
|
type: "Success";
|
|
356
336
|
} | {
|
|
357
|
-
type: "Update
|
|
358
|
-
|
|
337
|
+
type: "Update Slug";
|
|
338
|
+
slug: string;
|
|
339
|
+
} | {
|
|
340
|
+
type: "Update Title";
|
|
341
|
+
title: string;
|
|
359
342
|
} | {
|
|
360
343
|
type: "Update Integration Title";
|
|
361
344
|
integrationTitle: string;
|
|
362
345
|
} | {
|
|
363
|
-
type: "
|
|
364
|
-
integrationSlug: string;
|
|
365
|
-
} | {
|
|
366
|
-
type: "Valid Integration Slug";
|
|
367
|
-
} | {
|
|
368
|
-
type: "Valid Name";
|
|
346
|
+
type: "Valid Slug";
|
|
369
347
|
}, import("xstate").Values<{
|
|
370
348
|
build: {
|
|
371
349
|
src: "build";
|
|
372
|
-
logic: import("xstate").CallbackActorLogic<Event, Required<Pick<Context, "
|
|
350
|
+
logic: import("xstate").CallbackActorLogic<Event, Required<Pick<Context, "slug" | "packageManager">>>;
|
|
373
351
|
id: string | undefined;
|
|
374
352
|
};
|
|
375
353
|
loadConfig: {
|
|
@@ -379,12 +357,12 @@ export declare const scaffoldMachine: import("xstate").StateMachine<Context, {
|
|
|
379
357
|
};
|
|
380
358
|
createProject: {
|
|
381
359
|
src: "createProject";
|
|
382
|
-
logic: import("xstate").CallbackActorLogic<Event, Required<Pick<Context, "
|
|
360
|
+
logic: import("xstate").CallbackActorLogic<Event, Required<Pick<Context, "title" | "slug" | "language" | "packageManager" | "integrationId">>>;
|
|
383
361
|
id: string | undefined;
|
|
384
362
|
};
|
|
385
363
|
createIntegration: {
|
|
386
364
|
src: "createIntegration";
|
|
387
|
-
logic: import("xstate").CallbackActorLogic<Event, Required<Pick<Context, "
|
|
365
|
+
logic: import("xstate").CallbackActorLogic<Event, Required<Pick<Context, "title" | "slug" | "token" | "developerSlug">>>;
|
|
388
366
|
id: string | undefined;
|
|
389
367
|
};
|
|
390
368
|
detectPackageManagers: {
|
|
@@ -392,19 +370,12 @@ export declare const scaffoldMachine: import("xstate").StateMachine<Context, {
|
|
|
392
370
|
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown>;
|
|
393
371
|
id: string | undefined;
|
|
394
372
|
};
|
|
395
|
-
|
|
396
|
-
src: "
|
|
397
|
-
logic: import("xstate").CallbackActorLogic<
|
|
373
|
+
validateSlug: {
|
|
374
|
+
src: "validateSlug";
|
|
375
|
+
logic: import("xstate").CallbackActorLogic<Event, {
|
|
398
376
|
token: string;
|
|
377
|
+
slug: string;
|
|
399
378
|
developerSlug: string;
|
|
400
|
-
integrationSlug: string;
|
|
401
|
-
}>;
|
|
402
|
-
id: string | undefined;
|
|
403
|
-
};
|
|
404
|
-
validateName: {
|
|
405
|
-
src: "validateName";
|
|
406
|
-
logic: import("xstate").CallbackActorLogic<Event, {
|
|
407
|
-
name: string;
|
|
408
379
|
}>;
|
|
409
380
|
id: string | undefined;
|
|
410
381
|
};
|
|
@@ -426,6 +397,12 @@ export declare const scaffoldMachine: import("xstate").StateMachine<Context, {
|
|
|
426
397
|
developerSlug: string;
|
|
427
398
|
};
|
|
428
399
|
};
|
|
400
|
+
setConfigError: {
|
|
401
|
+
type: "setConfigError";
|
|
402
|
+
params: {
|
|
403
|
+
configError: InitialConfigError;
|
|
404
|
+
};
|
|
405
|
+
};
|
|
429
406
|
setAvailablePackageManagers: {
|
|
430
407
|
type: "setAvailablePackageManagers";
|
|
431
408
|
params: {
|
|
@@ -444,16 +421,10 @@ export declare const scaffoldMachine: import("xstate").StateMachine<Context, {
|
|
|
444
421
|
packageManager: PackageManager;
|
|
445
422
|
};
|
|
446
423
|
};
|
|
447
|
-
|
|
448
|
-
type: "
|
|
424
|
+
setTitle: {
|
|
425
|
+
type: "setTitle";
|
|
449
426
|
params: {
|
|
450
|
-
|
|
451
|
-
};
|
|
452
|
-
};
|
|
453
|
-
setIntegrationTitle: {
|
|
454
|
-
type: "setIntegrationTitle";
|
|
455
|
-
params: {
|
|
456
|
-
integrationTitle: string;
|
|
427
|
+
title: string;
|
|
457
428
|
};
|
|
458
429
|
};
|
|
459
430
|
setIntegrationId: {
|
|
@@ -462,10 +433,10 @@ export declare const scaffoldMachine: import("xstate").StateMachine<Context, {
|
|
|
462
433
|
integrationId: string;
|
|
463
434
|
};
|
|
464
435
|
};
|
|
465
|
-
|
|
466
|
-
type: "
|
|
436
|
+
setSlug: {
|
|
437
|
+
type: "setSlug";
|
|
467
438
|
params: {
|
|
468
|
-
|
|
439
|
+
slug: string;
|
|
469
440
|
};
|
|
470
441
|
};
|
|
471
442
|
setOutlets: {
|
|
@@ -474,41 +445,23 @@ export declare const scaffoldMachine: import("xstate").StateMachine<Context, {
|
|
|
474
445
|
outlets: Array<Outlet>;
|
|
475
446
|
};
|
|
476
447
|
};
|
|
477
|
-
|
|
478
|
-
type: "
|
|
479
|
-
params: {
|
|
480
|
-
integrationTitle: string;
|
|
481
|
-
};
|
|
482
|
-
};
|
|
483
|
-
slugifyIntegrationSlug: {
|
|
484
|
-
type: "slugifyIntegrationSlug";
|
|
485
|
-
params: {
|
|
486
|
-
integrationSlug: string;
|
|
487
|
-
};
|
|
488
|
-
};
|
|
489
|
-
slugifyName: {
|
|
490
|
-
type: "slugifyName";
|
|
448
|
+
slugifyTitle: {
|
|
449
|
+
type: "slugifyTitle";
|
|
491
450
|
params: {
|
|
492
|
-
|
|
451
|
+
title: string;
|
|
493
452
|
};
|
|
494
453
|
};
|
|
495
454
|
}>, import("xstate").Values<{
|
|
496
|
-
"have
|
|
497
|
-
type: "have
|
|
498
|
-
params: {
|
|
499
|
-
name: string;
|
|
500
|
-
};
|
|
501
|
-
};
|
|
502
|
-
"have integration title": {
|
|
503
|
-
type: "have integration title";
|
|
455
|
+
"have title": {
|
|
456
|
+
type: "have title";
|
|
504
457
|
params: {
|
|
505
|
-
|
|
458
|
+
title: string;
|
|
506
459
|
};
|
|
507
460
|
};
|
|
508
|
-
"have
|
|
509
|
-
type: "have
|
|
461
|
+
"have slug": {
|
|
462
|
+
type: "have slug";
|
|
510
463
|
params: {
|
|
511
|
-
|
|
464
|
+
slug: string;
|
|
512
465
|
};
|
|
513
466
|
};
|
|
514
467
|
"have language": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scaffold-machine.d.ts","sourceRoot":"","sources":["../../src/machines/scaffold-machine.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scaffold-machine.d.ts","sourceRoot":"","sources":["../../src/machines/scaffold-machine.ts"],"names":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