@webiny/project 0.0.0-unstable.9f53ea597d → 0.0.0-unstable.a4f3e4ea8b

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.
@@ -36,7 +36,6 @@ class GetFeatureFlagsWithLicenseDecorator {
36
36
  } else featureFlagsDto.advancedAccessControlLayer = false;
37
37
  featureFlagsDto.auditLogs = applyLicenseFlag(featureFlagsDto.auditLogs, license.canUseAuditLogs());
38
38
  featureFlagsDto.recordLocking = applyLicenseFlag(featureFlagsDto.recordLocking, license.canUseRecordLocking());
39
- featureFlagsDto.abTesting = applyLicenseFlag(featureFlagsDto.abTesting, license.canUseAbTesting());
40
39
  if (!featureFlagsDto.fileManager) featureFlagsDto.fileManager = {};
41
40
  featureFlagsDto.fileManager.threatDetection = applyLicenseFlag(featureFlagsDto.fileManager.threatDetection, license.canUseFileManagerThreatDetection());
42
41
  return featureFlagsDto;
@@ -1 +1 @@
1
- {"version":3,"file":"decorators/GetFeatureFlagsWithLicense.js","sources":["../../src/decorators/GetFeatureFlagsWithLicense.ts"],"sourcesContent":["import { License } from \"@webiny/wcp\";\nimport type { ILicense, DecryptedWcpProjectLicense } from \"@webiny/wcp/types.js\";\nimport { FeatureFlags } from \"@webiny/feature-flags\";\nimport type { IFeatureFlagsDto, IAaclFeatureFlags } from \"@webiny/feature-flags\";\nimport { GetFeatureFlags } from \"~/abstractions/index.js\";\n\n/* Returns the user's value when the license permits it, otherwise false.\n * This preserves an explicit user false (opt-out), while blocking features\n * the license doesn't cover. */\nfunction applyLicenseFlag<T extends boolean | undefined>(\n userValue: T,\n licenseAllows: boolean\n): T | false {\n return licenseAllows ? userValue : false;\n}\n\nclass GetFeatureFlagsWithLicenseDecorator implements GetFeatureFlags.Interface {\n constructor(private decoratee: GetFeatureFlags.Interface) {}\n\n async execute(): Promise<FeatureFlags> {\n const userFlags = await this.decoratee.execute();\n const license = this.getLicenseFromEnv();\n // toDto() returns a structuredClone, so we can safely mutate it in applyLicense.\n return FeatureFlags.fromDto(this.applyLicense(userFlags.toDto(), license));\n }\n\n private getLicenseFromEnv(): ILicense {\n const licenseEnv = process.env.WCP_PROJECT_LICENSE;\n if (!licenseEnv) {\n return License.fromLicenseDto(null);\n }\n\n try {\n const licenseDto = JSON.parse(licenseEnv) as DecryptedWcpProjectLicense;\n return License.fromLicenseDto(licenseDto);\n } catch {\n return License.fromLicenseDto(null);\n }\n }\n\n /* For each licensable flag: final = user_value && license_allows.\n * If the user disables a feature they have access to, we respect false.\n * If the user enables a feature the license doesn't allow, we force false.\n * fileManager (base) is always allowed; only threatDetection is restricted. */\n private applyLicense(featureFlagsDto: IFeatureFlagsDto, license: ILicense): IFeatureFlagsDto {\n featureFlagsDto.multiTenancy = applyLicenseFlag(\n featureFlagsDto.multiTenancy,\n license.canUseFeature(\"multiTenancy\")\n );\n\n featureFlagsDto.advancedPublishingWorkflow = applyLicenseFlag(\n featureFlagsDto.advancedPublishingWorkflow,\n license.canUseWorkflows()\n );\n\n // advancedAccessControlLayer.\n if (featureFlagsDto.advancedAccessControlLayer !== false) {\n if (!license.canUseAacl()) {\n // License doesn't allow AACL at all.\n featureFlagsDto.advancedAccessControlLayer = false;\n } else if (typeof featureFlagsDto.advancedAccessControlLayer === \"object\") {\n // License allows AACL; constrain sub-options.\n const aacl = featureFlagsDto.advancedAccessControlLayer as IAaclFeatureFlags;\n aacl.teams = applyLicenseFlag(aacl.teams, license.canUseTeams());\n aacl.privateFiles = applyLicenseFlag(\n aacl.privateFiles,\n license.canUsePrivateFiles()\n );\n aacl.folderLevelPermissions = applyLicenseFlag(\n aacl.folderLevelPermissions,\n license.canUseFolderLevelPermissions()\n );\n }\n }\n\n featureFlagsDto.auditLogs = applyLicenseFlag(\n featureFlagsDto.auditLogs,\n license.canUseAuditLogs()\n );\n featureFlagsDto.recordLocking = applyLicenseFlag(\n featureFlagsDto.recordLocking,\n license.canUseRecordLocking()\n );\n featureFlagsDto.abTesting = applyLicenseFlag(\n featureFlagsDto.abTesting,\n license.canUseAbTesting()\n );\n\n // fileManager is always enabled; only restrict threatDetection via license.\n if (!featureFlagsDto.fileManager) {\n featureFlagsDto.fileManager = {};\n }\n featureFlagsDto.fileManager.threatDetection = applyLicenseFlag(\n featureFlagsDto.fileManager.threatDetection,\n license.canUseFileManagerThreatDetection()\n );\n\n return featureFlagsDto;\n }\n}\n\nexport const getFeatureFlagsWithLicense = GetFeatureFlags.createDecorator({\n decorator: GetFeatureFlagsWithLicenseDecorator,\n dependencies: []\n});\n"],"names":["applyLicenseFlag","userValue","licenseAllows","GetFeatureFlagsWithLicenseDecorator","decoratee","userFlags","license","FeatureFlags","licenseEnv","process","License","licenseDto","JSON","featureFlagsDto","aacl","getFeatureFlagsWithLicense","GetFeatureFlags"],"mappings":";;;AASA,SAASA,iBACLC,SAAY,EACZC,aAAsB;IAEtB,OAAOA,gBAAgBD,YAAY;AACvC;AAEA,MAAME;IACF,YAAoBC,SAAoC,CAAE;aAAtCA,SAAS,GAATA;IAAuC;IAE3D,MAAM,UAAiC;QACnC,MAAMC,YAAY,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO;QAC9C,MAAMC,UAAU,IAAI,CAAC,iBAAiB;QAEtC,OAAOC,aAAa,OAAO,CAAC,IAAI,CAAC,YAAY,CAACF,UAAU,KAAK,IAAIC;IACrE;IAEQ,oBAA8B;QAClC,MAAME,aAAaC,QAAQ,GAAG,CAAC,mBAAmB;QAClD,IAAI,CAACD,YACD,OAAOE,QAAQ,cAAc,CAAC;QAGlC,IAAI;YACA,MAAMC,aAAaC,KAAK,KAAK,CAACJ;YAC9B,OAAOE,QAAQ,cAAc,CAACC;QAClC,EAAE,OAAM;YACJ,OAAOD,QAAQ,cAAc,CAAC;QAClC;IACJ;IAMQ,aAAaG,eAAiC,EAAEP,OAAiB,EAAoB;QACzFO,gBAAgB,YAAY,GAAGb,iBAC3Ba,gBAAgB,YAAY,EAC5BP,QAAQ,aAAa,CAAC;QAG1BO,gBAAgB,0BAA0B,GAAGb,iBACzCa,gBAAgB,0BAA0B,EAC1CP,QAAQ,eAAe;QAI3B,IAAIO,AAA+C,UAA/CA,gBAAgB,0BAA0B,EAC1C,IAAKP,QAAQ,UAAU,IAGhB;YAAA,IAAI,AAAsD,YAAtD,OAAOO,gBAAgB,0BAA0B,EAAe;gBAEvE,MAAMC,OAAOD,gBAAgB,0BAA0B;gBACvDC,KAAK,KAAK,GAAGd,iBAAiBc,KAAK,KAAK,EAAER,QAAQ,WAAW;gBAC7DQ,KAAK,YAAY,GAAGd,iBAChBc,KAAK,YAAY,EACjBR,QAAQ,kBAAkB;gBAE9BQ,KAAK,sBAAsB,GAAGd,iBAC1Bc,KAAK,sBAAsB,EAC3BR,QAAQ,4BAA4B;YAE5C;QAAA,OAbIO,gBAAgB,0BAA0B,GAAG;QAgBrDA,gBAAgB,SAAS,GAAGb,iBACxBa,gBAAgB,SAAS,EACzBP,QAAQ,eAAe;QAE3BO,gBAAgB,aAAa,GAAGb,iBAC5Ba,gBAAgB,aAAa,EAC7BP,QAAQ,mBAAmB;QAE/BO,gBAAgB,SAAS,GAAGb,iBACxBa,gBAAgB,SAAS,EACzBP,QAAQ,eAAe;QAI3B,IAAI,CAACO,gBAAgB,WAAW,EAC5BA,gBAAgB,WAAW,GAAG,CAAC;QAEnCA,gBAAgB,WAAW,CAAC,eAAe,GAAGb,iBAC1Ca,gBAAgB,WAAW,CAAC,eAAe,EAC3CP,QAAQ,gCAAgC;QAG5C,OAAOO;IACX;AACJ;AAEO,MAAME,6BAA6BC,gBAAgB,eAAe,CAAC;IACtE,WAAWb;IACX,cAAc,EAAE;AACpB"}
1
+ {"version":3,"file":"decorators/GetFeatureFlagsWithLicense.js","sources":["../../src/decorators/GetFeatureFlagsWithLicense.ts"],"sourcesContent":["import { License } from \"@webiny/wcp\";\nimport type { ILicense, DecryptedWcpProjectLicense } from \"@webiny/wcp/types.js\";\nimport { FeatureFlags } from \"@webiny/feature-flags\";\nimport type { IFeatureFlagsDto, IAaclFeatureFlags } from \"@webiny/feature-flags\";\nimport { GetFeatureFlags } from \"~/abstractions/index.js\";\n\n/* Returns the user's value when the license permits it, otherwise false.\n * This preserves an explicit user false (opt-out), while blocking features\n * the license doesn't cover. */\nfunction applyLicenseFlag<T extends boolean | undefined>(\n userValue: T,\n licenseAllows: boolean\n): T | false {\n return licenseAllows ? userValue : false;\n}\n\nclass GetFeatureFlagsWithLicenseDecorator implements GetFeatureFlags.Interface {\n constructor(private decoratee: GetFeatureFlags.Interface) {}\n\n async execute(): Promise<FeatureFlags> {\n const userFlags = await this.decoratee.execute();\n const license = this.getLicenseFromEnv();\n // toDto() returns a structuredClone, so we can safely mutate it in applyLicense.\n return FeatureFlags.fromDto(this.applyLicense(userFlags.toDto(), license));\n }\n\n private getLicenseFromEnv(): ILicense {\n const licenseEnv = process.env.WCP_PROJECT_LICENSE;\n if (!licenseEnv) {\n return License.fromLicenseDto(null);\n }\n\n try {\n const licenseDto = JSON.parse(licenseEnv) as DecryptedWcpProjectLicense;\n return License.fromLicenseDto(licenseDto);\n } catch {\n return License.fromLicenseDto(null);\n }\n }\n\n /* For each licensable flag: final = user_value && license_allows.\n * If the user disables a feature they have access to, we respect false.\n * If the user enables a feature the license doesn't allow, we force false.\n * fileManager (base) is always allowed; only threatDetection is restricted. */\n private applyLicense(featureFlagsDto: IFeatureFlagsDto, license: ILicense): IFeatureFlagsDto {\n featureFlagsDto.multiTenancy = applyLicenseFlag(\n featureFlagsDto.multiTenancy,\n license.canUseFeature(\"multiTenancy\")\n );\n\n featureFlagsDto.advancedPublishingWorkflow = applyLicenseFlag(\n featureFlagsDto.advancedPublishingWorkflow,\n license.canUseWorkflows()\n );\n\n // advancedAccessControlLayer.\n if (featureFlagsDto.advancedAccessControlLayer !== false) {\n if (!license.canUseAacl()) {\n // License doesn't allow AACL at all.\n featureFlagsDto.advancedAccessControlLayer = false;\n } else if (typeof featureFlagsDto.advancedAccessControlLayer === \"object\") {\n // License allows AACL; constrain sub-options.\n const aacl = featureFlagsDto.advancedAccessControlLayer as IAaclFeatureFlags;\n aacl.teams = applyLicenseFlag(aacl.teams, license.canUseTeams());\n aacl.privateFiles = applyLicenseFlag(\n aacl.privateFiles,\n license.canUsePrivateFiles()\n );\n aacl.folderLevelPermissions = applyLicenseFlag(\n aacl.folderLevelPermissions,\n license.canUseFolderLevelPermissions()\n );\n }\n }\n\n featureFlagsDto.auditLogs = applyLicenseFlag(\n featureFlagsDto.auditLogs,\n license.canUseAuditLogs()\n );\n featureFlagsDto.recordLocking = applyLicenseFlag(\n featureFlagsDto.recordLocking,\n license.canUseRecordLocking()\n );\n\n // fileManager is always enabled; only restrict threatDetection via license.\n if (!featureFlagsDto.fileManager) {\n featureFlagsDto.fileManager = {};\n }\n featureFlagsDto.fileManager.threatDetection = applyLicenseFlag(\n featureFlagsDto.fileManager.threatDetection,\n license.canUseFileManagerThreatDetection()\n );\n\n return featureFlagsDto;\n }\n}\n\nexport const getFeatureFlagsWithLicense = GetFeatureFlags.createDecorator({\n decorator: GetFeatureFlagsWithLicenseDecorator,\n dependencies: []\n});\n"],"names":["applyLicenseFlag","userValue","licenseAllows","GetFeatureFlagsWithLicenseDecorator","decoratee","userFlags","license","FeatureFlags","licenseEnv","process","License","licenseDto","JSON","featureFlagsDto","aacl","getFeatureFlagsWithLicense","GetFeatureFlags"],"mappings":";;;AASA,SAASA,iBACLC,SAAY,EACZC,aAAsB;IAEtB,OAAOA,gBAAgBD,YAAY;AACvC;AAEA,MAAME;IACF,YAAoBC,SAAoC,CAAE;aAAtCA,SAAS,GAATA;IAAuC;IAE3D,MAAM,UAAiC;QACnC,MAAMC,YAAY,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO;QAC9C,MAAMC,UAAU,IAAI,CAAC,iBAAiB;QAEtC,OAAOC,aAAa,OAAO,CAAC,IAAI,CAAC,YAAY,CAACF,UAAU,KAAK,IAAIC;IACrE;IAEQ,oBAA8B;QAClC,MAAME,aAAaC,QAAQ,GAAG,CAAC,mBAAmB;QAClD,IAAI,CAACD,YACD,OAAOE,QAAQ,cAAc,CAAC;QAGlC,IAAI;YACA,MAAMC,aAAaC,KAAK,KAAK,CAACJ;YAC9B,OAAOE,QAAQ,cAAc,CAACC;QAClC,EAAE,OAAM;YACJ,OAAOD,QAAQ,cAAc,CAAC;QAClC;IACJ;IAMQ,aAAaG,eAAiC,EAAEP,OAAiB,EAAoB;QACzFO,gBAAgB,YAAY,GAAGb,iBAC3Ba,gBAAgB,YAAY,EAC5BP,QAAQ,aAAa,CAAC;QAG1BO,gBAAgB,0BAA0B,GAAGb,iBACzCa,gBAAgB,0BAA0B,EAC1CP,QAAQ,eAAe;QAI3B,IAAIO,AAA+C,UAA/CA,gBAAgB,0BAA0B,EAC1C,IAAKP,QAAQ,UAAU,IAGhB;YAAA,IAAI,AAAsD,YAAtD,OAAOO,gBAAgB,0BAA0B,EAAe;gBAEvE,MAAMC,OAAOD,gBAAgB,0BAA0B;gBACvDC,KAAK,KAAK,GAAGd,iBAAiBc,KAAK,KAAK,EAAER,QAAQ,WAAW;gBAC7DQ,KAAK,YAAY,GAAGd,iBAChBc,KAAK,YAAY,EACjBR,QAAQ,kBAAkB;gBAE9BQ,KAAK,sBAAsB,GAAGd,iBAC1Bc,KAAK,sBAAsB,EAC3BR,QAAQ,4BAA4B;YAE5C;QAAA,OAbIO,gBAAgB,0BAA0B,GAAG;QAgBrDA,gBAAgB,SAAS,GAAGb,iBACxBa,gBAAgB,SAAS,EACzBP,QAAQ,eAAe;QAE3BO,gBAAgB,aAAa,GAAGb,iBAC5Ba,gBAAgB,aAAa,EAC7BP,QAAQ,mBAAmB;QAI/B,IAAI,CAACO,gBAAgB,WAAW,EAC5BA,gBAAgB,WAAW,GAAG,CAAC;QAEnCA,gBAAgB,WAAW,CAAC,eAAe,GAAGb,iBAC1Ca,gBAAgB,WAAW,CAAC,eAAe,EAC3CP,QAAQ,gCAAgC;QAG5C,OAAOO;IACX;AACJ;AAEO,MAAME,6BAA6BC,gBAAgB,eAAe,CAAC;IACtE,WAAWb;IACX,cAAc,EAAE;AACpB"}
@@ -32,6 +32,5 @@ export declare const FeatureFlags: import("~/defineExtension/index.js").Extensio
32
32
  }, z.core.$strip>>;
33
33
  }, z.core.$strip>>;
34
34
  }, z.core.$strip>>;
35
- abTesting: z.ZodOptional<z.ZodBoolean>;
36
35
  }, z.core.$strip>;
37
36
  }, z.core.$strip>>;
@@ -44,8 +44,7 @@ const FeatureFlags = defineExtension({
44
44
  entryTranslation: z.boolean().optional()
45
45
  }).optional()
46
46
  }).optional()
47
- }).optional(),
48
- abTesting: z.boolean().optional()
47
+ }).optional()
49
48
  })
50
49
  }),
51
50
  render: ({ features = {} })=>/*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement(BuildParam, {
@@ -1 +1 @@
1
- {"version":3,"file":"extensions/FeatureFlags.js","sources":["../../src/extensions/FeatureFlags.tsx"],"sourcesContent":["import React from \"react\";\nimport { z } from \"zod\";\nimport { BuildParam } from \"./ApiBuildParam.js\";\nimport { AdminBuildParam } from \"./AdminBuildParam.js\";\nimport { defineExtension } from \"~/defineExtension/index.js\";\n\nexport const FeatureFlags = defineExtension({\n type: \"FeatureFlags\",\n tags: { runtimeContext: \"project\" },\n description: \"Enable or disable WCP features.\",\n paramsSchema: z.object({\n // Follows `IFeatureFlagsDto` from `packages/feature-flags/src/types.ts`.\n features: z.object({\n multiTenancy: z.boolean().optional(),\n advancedPublishingWorkflow: z.boolean().optional(),\n advancedAccessControlLayer: z\n .union([\n z.boolean(),\n z.object({\n teams: z.boolean().optional(),\n privateFiles: z.boolean().optional(),\n folderLevelPermissions: z.boolean().optional(),\n hcmsFieldPermissions: z.boolean().optional()\n })\n ])\n .optional(),\n auditLogs: z.boolean().optional(),\n recordLocking: z.boolean().optional(),\n fileManager: z\n .object({\n threatDetection: z.boolean().optional()\n })\n .optional(),\n aiPowerups: z\n .object({\n enabled: z.boolean().optional(),\n options: z\n .object({\n websiteBuilder: z\n .object({\n pageGeneration: z.boolean().optional(),\n pageTranslation: z.boolean().optional()\n })\n .optional(),\n fileManager: z\n .object({\n imageEnrichment: z.boolean().optional()\n })\n .optional(),\n lexicalGeneration: z.boolean().optional(),\n cms: z\n .object({\n entryGeneration: z.boolean().optional(),\n entryComparison: z.boolean().optional(),\n entryTranslation: z.boolean().optional()\n })\n .optional()\n })\n .optional()\n })\n .optional(),\n abTesting: z.boolean().optional()\n })\n }),\n render: ({ features = {} }) => {\n return (\n <>\n <BuildParam paramName=\"FeatureFlags\" value={features} />\n <AdminBuildParam paramName=\"FeatureFlags\" value={features} />\n </>\n );\n }\n});\n"],"names":["FeatureFlags","defineExtension","z","features","BuildParam","AdminBuildParam"],"mappings":";;;;;AAMO,MAAMA,eAAeC,gBAAgB;IACxC,MAAM;IACN,MAAM;QAAE,gBAAgB;IAAU;IAClC,aAAa;IACb,cAAcC,EAAE,MAAM,CAAC;QAEnB,UAAUA,EAAE,MAAM,CAAC;YACf,cAAcA,EAAE,OAAO,GAAG,QAAQ;YAClC,4BAA4BA,EAAE,OAAO,GAAG,QAAQ;YAChD,4BAA4BA,EAAAA,KAClB,CAAC;gBACHA,EAAE,OAAO;gBACTA,EAAE,MAAM,CAAC;oBACL,OAAOA,EAAE,OAAO,GAAG,QAAQ;oBAC3B,cAAcA,EAAE,OAAO,GAAG,QAAQ;oBAClC,wBAAwBA,EAAE,OAAO,GAAG,QAAQ;oBAC5C,sBAAsBA,EAAE,OAAO,GAAG,QAAQ;gBAC9C;aACH,EACA,QAAQ;YACb,WAAWA,EAAE,OAAO,GAAG,QAAQ;YAC/B,eAAeA,EAAE,OAAO,GAAG,QAAQ;YACnC,aAAaA,EAAAA,MACF,CAAC;gBACJ,iBAAiBA,EAAE,OAAO,GAAG,QAAQ;YACzC,GACC,QAAQ;YACb,YAAYA,EAAAA,MACD,CAAC;gBACJ,SAASA,EAAE,OAAO,GAAG,QAAQ;gBAC7B,SAASA,EAAAA,MACE,CAAC;oBACJ,gBAAgBA,EAAAA,MACL,CAAC;wBACJ,gBAAgBA,EAAE,OAAO,GAAG,QAAQ;wBACpC,iBAAiBA,EAAE,OAAO,GAAG,QAAQ;oBACzC,GACC,QAAQ;oBACb,aAAaA,EAAAA,MACF,CAAC;wBACJ,iBAAiBA,EAAE,OAAO,GAAG,QAAQ;oBACzC,GACC,QAAQ;oBACb,mBAAmBA,EAAE,OAAO,GAAG,QAAQ;oBACvC,KAAKA,EAAAA,MACM,CAAC;wBACJ,iBAAiBA,EAAE,OAAO,GAAG,QAAQ;wBACrC,iBAAiBA,EAAE,OAAO,GAAG,QAAQ;wBACrC,kBAAkBA,EAAE,OAAO,GAAG,QAAQ;oBAC1C,GACC,QAAQ;gBACjB,GACC,QAAQ;YACjB,GACC,QAAQ;YACb,WAAWA,EAAE,OAAO,GAAG,QAAQ;QACnC;IACJ;IACA,QAAQ,CAAC,EAAEC,WAAW,CAAC,CAAC,EAAE,GACf,WAAP,GACI,wDACI,oBAACC,YAAUA;YAAC,WAAU;YAAe,OAAOD;0BAC5C,oBAACE,iBAAeA;YAAC,WAAU;YAAe,OAAOF;;AAIjE"}
1
+ {"version":3,"file":"extensions/FeatureFlags.js","sources":["../../src/extensions/FeatureFlags.tsx"],"sourcesContent":["import React from \"react\";\nimport { z } from \"zod\";\nimport { BuildParam } from \"./ApiBuildParam.js\";\nimport { AdminBuildParam } from \"./AdminBuildParam.js\";\nimport { defineExtension } from \"~/defineExtension/index.js\";\n\nexport const FeatureFlags = defineExtension({\n type: \"FeatureFlags\",\n tags: { runtimeContext: \"project\" },\n description: \"Enable or disable WCP features.\",\n paramsSchema: z.object({\n // Follows `IFeatureFlagsDto` from `packages/feature-flags/src/types.ts`.\n features: z.object({\n multiTenancy: z.boolean().optional(),\n advancedPublishingWorkflow: z.boolean().optional(),\n advancedAccessControlLayer: z\n .union([\n z.boolean(),\n z.object({\n teams: z.boolean().optional(),\n privateFiles: z.boolean().optional(),\n folderLevelPermissions: z.boolean().optional(),\n hcmsFieldPermissions: z.boolean().optional()\n })\n ])\n .optional(),\n auditLogs: z.boolean().optional(),\n recordLocking: z.boolean().optional(),\n fileManager: z\n .object({\n threatDetection: z.boolean().optional()\n })\n .optional(),\n aiPowerups: z\n .object({\n enabled: z.boolean().optional(),\n options: z\n .object({\n websiteBuilder: z\n .object({\n pageGeneration: z.boolean().optional(),\n pageTranslation: z.boolean().optional()\n })\n .optional(),\n fileManager: z\n .object({\n imageEnrichment: z.boolean().optional()\n })\n .optional(),\n lexicalGeneration: z.boolean().optional(),\n cms: z\n .object({\n entryGeneration: z.boolean().optional(),\n entryComparison: z.boolean().optional(),\n entryTranslation: z.boolean().optional()\n })\n .optional()\n })\n .optional()\n })\n .optional()\n })\n }),\n render: ({ features = {} }) => {\n return (\n <>\n <BuildParam paramName=\"FeatureFlags\" value={features} />\n <AdminBuildParam paramName=\"FeatureFlags\" value={features} />\n </>\n );\n }\n});\n"],"names":["FeatureFlags","defineExtension","z","features","BuildParam","AdminBuildParam"],"mappings":";;;;;AAMO,MAAMA,eAAeC,gBAAgB;IACxC,MAAM;IACN,MAAM;QAAE,gBAAgB;IAAU;IAClC,aAAa;IACb,cAAcC,EAAE,MAAM,CAAC;QAEnB,UAAUA,EAAE,MAAM,CAAC;YACf,cAAcA,EAAE,OAAO,GAAG,QAAQ;YAClC,4BAA4BA,EAAE,OAAO,GAAG,QAAQ;YAChD,4BAA4BA,EAAAA,KAClB,CAAC;gBACHA,EAAE,OAAO;gBACTA,EAAE,MAAM,CAAC;oBACL,OAAOA,EAAE,OAAO,GAAG,QAAQ;oBAC3B,cAAcA,EAAE,OAAO,GAAG,QAAQ;oBAClC,wBAAwBA,EAAE,OAAO,GAAG,QAAQ;oBAC5C,sBAAsBA,EAAE,OAAO,GAAG,QAAQ;gBAC9C;aACH,EACA,QAAQ;YACb,WAAWA,EAAE,OAAO,GAAG,QAAQ;YAC/B,eAAeA,EAAE,OAAO,GAAG,QAAQ;YACnC,aAAaA,EAAAA,MACF,CAAC;gBACJ,iBAAiBA,EAAE,OAAO,GAAG,QAAQ;YACzC,GACC,QAAQ;YACb,YAAYA,EAAAA,MACD,CAAC;gBACJ,SAASA,EAAE,OAAO,GAAG,QAAQ;gBAC7B,SAASA,EAAAA,MACE,CAAC;oBACJ,gBAAgBA,EAAAA,MACL,CAAC;wBACJ,gBAAgBA,EAAE,OAAO,GAAG,QAAQ;wBACpC,iBAAiBA,EAAE,OAAO,GAAG,QAAQ;oBACzC,GACC,QAAQ;oBACb,aAAaA,EAAAA,MACF,CAAC;wBACJ,iBAAiBA,EAAE,OAAO,GAAG,QAAQ;oBACzC,GACC,QAAQ;oBACb,mBAAmBA,EAAE,OAAO,GAAG,QAAQ;oBACvC,KAAKA,EAAAA,MACM,CAAC;wBACJ,iBAAiBA,EAAE,OAAO,GAAG,QAAQ;wBACrC,iBAAiBA,EAAE,OAAO,GAAG,QAAQ;wBACrC,kBAAkBA,EAAE,OAAO,GAAG,QAAQ;oBAC1C,GACC,QAAQ;gBACjB,GACC,QAAQ;YACjB,GACC,QAAQ;QACjB;IACJ;IACA,QAAQ,CAAC,EAAEC,WAAW,CAAC,CAAC,EAAE,GACf,WAAP,GACI,wDACI,oBAACC,YAAUA;YAAC,WAAU;YAAe,OAAOD;0BAC5C,oBAACE,iBAAeA;YAAC,WAAU;YAAe,OAAOF;;AAIjE"}
@@ -109,7 +109,6 @@ export declare const definitions: (import("./index.js").ExtensionDefinitionModel
109
109
  }, import("zod/v4/core").$strip>>;
110
110
  }, import("zod/v4/core").$strip>>;
111
111
  }, import("zod/v4/core").$strip>>;
112
- abTesting: import("zod").ZodOptional<import("zod").ZodBoolean>;
113
112
  }, import("zod/v4/core").$strip>;
114
113
  }, import("zod/v4/core").$strip>> | import("./index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
115
114
  environments: import("zod").ZodArray<import("zod").ZodString>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/project",
3
- "version": "0.0.0-unstable.9f53ea597d",
3
+ "version": "0.0.0-unstable.a4f3e4ea8b",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.js",
@@ -13,17 +13,17 @@
13
13
  "description": "An SDK for managing Webiny projects.",
14
14
  "license": "MIT",
15
15
  "dependencies": {
16
- "@webiny/aws-sdk": "0.0.0-unstable.9f53ea597d",
17
- "@webiny/build-tools": "0.0.0-unstable.9f53ea597d",
16
+ "@webiny/aws-sdk": "0.0.0-unstable.a4f3e4ea8b",
17
+ "@webiny/build-tools": "0.0.0-unstable.a4f3e4ea8b",
18
18
  "@webiny/di": "1.0.2",
19
- "@webiny/feature-flags": "0.0.0-unstable.9f53ea597d",
20
- "@webiny/global-config": "0.0.0-unstable.9f53ea597d",
21
- "@webiny/pulumi-sdk": "0.0.0-unstable.9f53ea597d",
22
- "@webiny/react-properties": "0.0.0-unstable.9f53ea597d",
23
- "@webiny/system-requirements": "0.0.0-unstable.9f53ea597d",
24
- "@webiny/telemetry": "0.0.0-unstable.9f53ea597d",
25
- "@webiny/utils": "0.0.0-unstable.9f53ea597d",
26
- "@webiny/wcp": "0.0.0-unstable.9f53ea597d",
19
+ "@webiny/feature-flags": "0.0.0-unstable.a4f3e4ea8b",
20
+ "@webiny/global-config": "0.0.0-unstable.a4f3e4ea8b",
21
+ "@webiny/pulumi-sdk": "0.0.0-unstable.a4f3e4ea8b",
22
+ "@webiny/react-properties": "0.0.0-unstable.a4f3e4ea8b",
23
+ "@webiny/system-requirements": "0.0.0-unstable.a4f3e4ea8b",
24
+ "@webiny/telemetry": "0.0.0-unstable.a4f3e4ea8b",
25
+ "@webiny/utils": "0.0.0-unstable.a4f3e4ea8b",
26
+ "@webiny/wcp": "0.0.0-unstable.a4f3e4ea8b",
27
27
  "chalk": "5.6.2",
28
28
  "chokidar": "5.0.0",
29
29
  "ci-info": "4.4.0",