@wix/create-new 0.0.108 → 0.0.110

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/build/index.js CHANGED
@@ -83764,14 +83764,17 @@ function generateProjectSlug(name) {
83764
83764
  }
83765
83765
 
83766
83766
  // ../create-new-packages/headless-command/src/validations/validate-business-name.ts
83767
- var schema3 = external_exports.string().min(1).max(255);
83767
+ var lengthErrorMessage = "The name must be 1 to 255 characters long";
83768
+ var schema3 = external_exports.string().trim().min(1, lengthErrorMessage).max(255, lengthErrorMessage).refine((value2) => !value2.toLowerCase().includes("wix"), {
83769
+ message: "The business name cannot contain 'wix'. Choose a different name."
83770
+ });
83768
83771
  var validateBusinessName = (value2) => {
83769
83772
  const result = schema3.safeParse(value2);
83770
83773
  if (!result.success) {
83771
- throw new InvalidArgumentError("The name must be 1 to 255 characters long");
83774
+ throw new InvalidArgumentError(result.error.issues[0].message);
83772
83775
  }
83773
- isProjectSlugValid(value2);
83774
- return value2;
83776
+ isProjectSlugValid(result.data);
83777
+ return result.data;
83775
83778
  };
83776
83779
 
83777
83780
  // ../create-new-packages/headless-command/src/validations/folder-name.ts
@@ -92955,6 +92958,8 @@ async function modifyAstroConfig(projectFolder) {
92955
92958
  addIntegration2(loadedFile, react);
92956
92959
  const wix = setImport(loadedFile, "@wix/astro", "wix");
92957
92960
  addIntegration2(loadedFile, wix);
92961
+ const wixPages = setImport(loadedFile, "@wix/astro-pages", "wixPages");
92962
+ addIntegration2(loadedFile, wixPages);
92958
92963
  setAdapter(loadedFile);
92959
92964
  const config = getDefineConfigOptions(loadedFile);
92960
92965
  config.image ??= {};
@@ -93041,6 +93046,7 @@ async function extend2(projectFolder) {
93041
93046
  "@types/react-dom": "^18.3.1",
93042
93047
  "@wix/cli": "^1.1.92",
93043
93048
  "@wix/astro": "^2.39.0",
93049
+ "@wix/astro-pages": "^2.0.4",
93044
93050
  react: "18.3.1",
93045
93051
  "react-dom": "18.3.1",
93046
93052
  "@wix/astro-wix-hosting-adapter": "^2.0.0"
@@ -95556,7 +95562,7 @@ import { randomUUID as randomUUID3 } from "node:crypto";
95556
95562
  var package_default = {
95557
95563
  name: "@wix/create-new",
95558
95564
  description: "General entry point for creating Wix projects",
95559
- version: "0.0.108",
95565
+ version: "0.0.110",
95560
95566
  bin: "bin/index.cjs",
95561
95567
  devDependencies: {
95562
95568
  "@commander-js/extra-typings": "^13.0.0",