@webiny/ai-powerups 6.6.0-alpha.6 → 6.6.0-alpha.7

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/AiPowerups.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import react from "react";
2
- import { Admin, Api } from "@webiny/project-aws";
2
+ import { Api } from "@webiny/project-aws/api.js";
3
+ import { Admin } from "@webiny/project-aws/admin.js";
3
4
  const AiPowerups = ()=>/*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement(Api.Extension, {
4
5
  src: import.meta.dirname + "/api/Extension.js"
5
6
  }), /*#__PURE__*/ react.createElement(Admin.Extension, {
package/AiPowerups.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"AiPowerups.js","sources":["../src/AiPowerups.tsx"],"sourcesContent":["import React from \"react\";\nimport { Api, Admin } from \"@webiny/project-aws\";\n\n/**\n * Both extensions load unconditionally; each gates itself at runtime.\n *\n * This used to sit inside `FeatureFlag.CanUseAiPowerups`, which reads project config while the\n * project graph is built, so the decision was baked in at deploy time. A WCP licence that granted\n * AI Power-Ups therefore did nothing until the next deploy, which is the wrong shape for something\n * a customer can buy at any moment.\n *\n * The gate now lives where the licence is readable: `api/Extension.ts` checks the effective flags\n * at `register()` (the licence is refreshed per request, before any feature registers), and\n * `admin/Extension.tsx` checks them on render. `ai-chat` and `api-aco` already gate this way.\n */\nexport const AiPowerups = () => {\n return (\n <>\n {/* Api extensions */}\n <Api.Extension src={import.meta.dirname + \"/api/Extension.js\"} />\n\n {/* Admin extensions */}\n <Admin.Extension src={import.meta.dirname + \"/admin/Extension.js\"} />\n </>\n );\n};\n"],"names":["AiPowerups","Api","Admin"],"mappings":";;AAeO,MAAMA,aAAa,IACf,WAAP,GACI,wDAEI,oBAACC,IAAI,SAAS;QAAC,KAAK,YAAY,OAAO,GAAG;sBAG1C,oBAACC,MAAM,SAAS;QAAC,KAAK,YAAY,OAAO,GAAG"}
1
+ {"version":3,"file":"AiPowerups.js","sources":["../src/AiPowerups.tsx"],"sourcesContent":["import React from \"react\";\nimport { Api } from \"@webiny/project-aws/api.js\";\nimport { Admin } from \"@webiny/project-aws/admin.js\";\n\n/**\n * Both extensions load unconditionally; each gates itself at runtime.\n *\n * This used to sit inside `FeatureFlag.CanUseAiPowerups`, which reads project config while the\n * project graph is built, so the decision was baked in at deploy time. A WCP licence that granted\n * AI Power-Ups therefore did nothing until the next deploy, which is the wrong shape for something\n * a customer can buy at any moment.\n *\n * The gate now lives where the licence is readable: `api/Extension.ts` checks the effective flags\n * at `register()` (the licence is refreshed per request, before any feature registers), and\n * `admin/Extension.tsx` checks them on render. `ai-chat` and `api-aco` already gate this way.\n */\nexport const AiPowerups = () => {\n return (\n <>\n {/* Api extensions */}\n <Api.Extension src={import.meta.dirname + \"/api/Extension.js\"} />\n\n {/* Admin extensions */}\n <Admin.Extension src={import.meta.dirname + \"/admin/Extension.js\"} />\n </>\n );\n};\n"],"names":["AiPowerups","Api","Admin"],"mappings":";;;AAgBO,MAAMA,aAAa,IACf,WAAP,GACI,wDAEI,oBAACC,IAAI,SAAS;QAAC,KAAK,YAAY,OAAO,GAAG;sBAG1C,oBAACC,MAAM,SAAS;QAAC,KAAK,YAAY,OAAO,GAAG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/ai-powerups",
3
- "version": "6.6.0-alpha.6",
3
+ "version": "6.6.0-alpha.7",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {
@@ -18,26 +18,26 @@
18
18
  "author": "Webiny Ltd.",
19
19
  "license": "Webiny Enterprise",
20
20
  "dependencies": {
21
- "@webiny/admin-ui": "6.6.0-alpha.6",
22
- "@webiny/api-core": "6.6.0-alpha.6",
23
- "@webiny/api-file-manager": "6.6.0-alpha.6",
24
- "@webiny/api-headless-cms": "6.6.0-alpha.6",
25
- "@webiny/api-website-builder": "6.6.0-alpha.6",
26
- "@webiny/api-websockets": "6.6.0-alpha.6",
27
- "@webiny/app": "6.6.0-alpha.6",
28
- "@webiny/app-admin": "6.6.0-alpha.6",
29
- "@webiny/app-headless-cms": "6.6.0-alpha.6",
30
- "@webiny/app-website-builder": "6.6.0-alpha.6",
31
- "@webiny/app-websockets": "6.6.0-alpha.6",
32
- "@webiny/background-tasks": "6.6.0-alpha.6",
21
+ "@webiny/admin-ui": "6.6.0-alpha.7",
22
+ "@webiny/api-core": "6.6.0-alpha.7",
23
+ "@webiny/api-file-manager": "6.6.0-alpha.7",
24
+ "@webiny/api-headless-cms": "6.6.0-alpha.7",
25
+ "@webiny/api-website-builder": "6.6.0-alpha.7",
26
+ "@webiny/api-websockets": "6.6.0-alpha.7",
27
+ "@webiny/app": "6.6.0-alpha.7",
28
+ "@webiny/app-admin": "6.6.0-alpha.7",
29
+ "@webiny/app-headless-cms": "6.6.0-alpha.7",
30
+ "@webiny/app-website-builder": "6.6.0-alpha.7",
31
+ "@webiny/app-websockets": "6.6.0-alpha.7",
32
+ "@webiny/background-tasks": "6.6.0-alpha.7",
33
33
  "@webiny/di": "1.1.0",
34
- "@webiny/event-handler-core": "6.6.0-alpha.6",
35
- "@webiny/feature": "6.6.0-alpha.6",
36
- "@webiny/icons": "6.6.0-alpha.6",
37
- "@webiny/languages": "6.6.0-alpha.6",
38
- "@webiny/lexical-converter": "6.6.0-alpha.6",
39
- "@webiny/project-aws": "6.6.0-alpha.6",
40
- "@webiny/utils": "6.6.0-alpha.6",
34
+ "@webiny/event-handler-core": "6.6.0-alpha.7",
35
+ "@webiny/feature": "6.6.0-alpha.7",
36
+ "@webiny/icons": "6.6.0-alpha.7",
37
+ "@webiny/languages": "6.6.0-alpha.7",
38
+ "@webiny/lexical-converter": "6.6.0-alpha.7",
39
+ "@webiny/project-aws": "6.6.0-alpha.7",
40
+ "@webiny/utils": "6.6.0-alpha.7",
41
41
  "ai": "7.0.73",
42
42
  "front-matter": "4.0.2",
43
43
  "happy-dom": "20.11.6",
@@ -49,10 +49,10 @@
49
49
  "zod": "4.4.3"
50
50
  },
51
51
  "devDependencies": {
52
- "@webiny/api-graphql": "6.6.0-alpha.6",
53
- "@webiny/build-tools": "6.6.0-alpha.6",
54
- "@webiny/feature-flags": "6.6.0-alpha.6",
55
- "@webiny/wcp": "6.6.0-alpha.6",
52
+ "@webiny/api-graphql": "6.6.0-alpha.7",
53
+ "@webiny/build-tools": "6.6.0-alpha.7",
54
+ "@webiny/feature-flags": "6.6.0-alpha.7",
55
+ "@webiny/wcp": "6.6.0-alpha.7",
56
56
  "rimraf": "6.1.3",
57
57
  "typescript": "7.0.2",
58
58
  "vitest": "4.1.11"