siteplane 0.1.65 → 0.1.67
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/dist/bin/siteplane.js +0 -8
- package/dist/index.js +0 -3
- package/dist/next.js +4 -1
- package/package.json +1 -1
package/dist/bin/siteplane.js
CHANGED
|
@@ -899,7 +899,6 @@ var bookingMoveResponseSchema = z9.union([
|
|
|
899
899
|
var bookingManifestSchema = z9.object({
|
|
900
900
|
schemaVersion: z9.number().int().positive(),
|
|
901
901
|
siteId: z9.string().trim().min(1),
|
|
902
|
-
siteKeyPrefix: z9.string().startsWith("bk_pub_"),
|
|
903
902
|
bookingPageSlug: z9.string().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/).min(2).max(64),
|
|
904
903
|
integration: z9.literal("rewrite").optional(),
|
|
905
904
|
productionOrigin: z9.string().url().optional()
|
|
@@ -3352,7 +3351,6 @@ async function bookingCheckCommand(input) {
|
|
|
3352
3351
|
]);
|
|
3353
3352
|
const scanInput = {
|
|
3354
3353
|
siteId: validatedManifest.manifest.siteId,
|
|
3355
|
-
siteKeyPrefix: validatedManifest.manifest.siteKeyPrefix,
|
|
3356
3354
|
bookingPageSlug: validatedManifest.manifest.bookingPageSlug,
|
|
3357
3355
|
...validatedManifest.manifest.productionOrigin ? { productionOrigin: validatedManifest.manifest.productionOrigin } : {}
|
|
3358
3356
|
};
|
|
@@ -3395,7 +3393,6 @@ async function bookingInitCommand(input) {
|
|
|
3395
3393
|
const manifest = {
|
|
3396
3394
|
schemaVersion: 1,
|
|
3397
3395
|
siteId: input.siteId,
|
|
3398
|
-
siteKeyPrefix: input.siteKeyPrefix,
|
|
3399
3396
|
bookingPageSlug: input.bookingPageSlug,
|
|
3400
3397
|
...input.productionOrigin ? { productionOrigin: input.productionOrigin } : {}
|
|
3401
3398
|
};
|
|
@@ -6814,10 +6811,6 @@ async function runBookingCommand(args, dependencies) {
|
|
|
6814
6811
|
const manifestPath = join14(projectDir, "siteplane.booking.json");
|
|
6815
6812
|
if (subcommand === "init") {
|
|
6816
6813
|
const siteId = readRequiredOption(subcommandArgs, "--site-id");
|
|
6817
|
-
const siteKeyPrefix = readRequiredOption(
|
|
6818
|
-
subcommandArgs,
|
|
6819
|
-
"--site-key-prefix"
|
|
6820
|
-
);
|
|
6821
6814
|
const bookingPageSlug = readRequiredOption(
|
|
6822
6815
|
subcommandArgs,
|
|
6823
6816
|
"--booking-page-slug"
|
|
@@ -6827,7 +6820,6 @@ async function runBookingCommand(args, dependencies) {
|
|
|
6827
6820
|
const result2 = await dependencies.commands.bookingInitCommand({
|
|
6828
6821
|
projectDir,
|
|
6829
6822
|
siteId,
|
|
6830
|
-
siteKeyPrefix,
|
|
6831
6823
|
bookingPageSlug,
|
|
6832
6824
|
...productionOrigin ? { productionOrigin } : {},
|
|
6833
6825
|
...agentClient ? { agentClient } : {}
|
package/dist/index.js
CHANGED
|
@@ -838,7 +838,6 @@ var bookingMoveResponseSchema = z9.union([
|
|
|
838
838
|
var bookingManifestSchema = z9.object({
|
|
839
839
|
schemaVersion: z9.number().int().positive(),
|
|
840
840
|
siteId: z9.string().trim().min(1),
|
|
841
|
-
siteKeyPrefix: z9.string().startsWith("bk_pub_"),
|
|
842
841
|
bookingPageSlug: z9.string().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/).min(2).max(64),
|
|
843
842
|
integration: z9.literal("rewrite").optional(),
|
|
844
843
|
productionOrigin: z9.string().url().optional()
|
|
@@ -2415,7 +2414,6 @@ async function bookingCheckCommand(input) {
|
|
|
2415
2414
|
]);
|
|
2416
2415
|
const scanInput = {
|
|
2417
2416
|
siteId: validatedManifest.manifest.siteId,
|
|
2418
|
-
siteKeyPrefix: validatedManifest.manifest.siteKeyPrefix,
|
|
2419
2417
|
bookingPageSlug: validatedManifest.manifest.bookingPageSlug,
|
|
2420
2418
|
...validatedManifest.manifest.productionOrigin ? { productionOrigin: validatedManifest.manifest.productionOrigin } : {}
|
|
2421
2419
|
};
|
|
@@ -2458,7 +2456,6 @@ async function bookingInitCommand(input) {
|
|
|
2458
2456
|
const manifest = {
|
|
2459
2457
|
schemaVersion: 1,
|
|
2460
2458
|
siteId: input.siteId,
|
|
2461
|
-
siteKeyPrefix: input.siteKeyPrefix,
|
|
2462
2459
|
bookingPageSlug: input.bookingPageSlug,
|
|
2463
2460
|
...input.productionOrigin ? { productionOrigin: input.productionOrigin } : {}
|
|
2464
2461
|
};
|
package/dist/next.js
CHANGED
|
@@ -845,7 +845,6 @@ var bookingMoveResponseSchema = z9.union([
|
|
|
845
845
|
var bookingManifestSchema = z9.object({
|
|
846
846
|
schemaVersion: z9.number().int().positive(),
|
|
847
847
|
siteId: z9.string().trim().min(1),
|
|
848
|
-
siteKeyPrefix: z9.string().startsWith("bk_pub_"),
|
|
849
848
|
bookingPageSlug: z9.string().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/).min(2).max(64),
|
|
850
849
|
integration: z9.literal("rewrite").optional(),
|
|
851
850
|
productionOrigin: z9.string().url().optional()
|
|
@@ -4314,6 +4313,10 @@ async function withSiteplane(nextConfig, options = {}) {
|
|
|
4314
4313
|
const rules = Array.isArray(existing) ? { beforeFiles: [], afterFiles: existing, fallback: [] } : existing;
|
|
4315
4314
|
return {
|
|
4316
4315
|
beforeFiles: [
|
|
4316
|
+
{
|
|
4317
|
+
source: "/booking",
|
|
4318
|
+
destination: `https://siteplane.io/booking?site=${booking.site}`
|
|
4319
|
+
},
|
|
4317
4320
|
{
|
|
4318
4321
|
source: "/booking/:path*",
|
|
4319
4322
|
destination: `https://siteplane.io/booking/:path*?site=${booking.site}`
|