@aglyn/plugins-ai 1.13.0 → 1.14.0

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.
Files changed (37) hide show
  1. package/package.json +17 -17
  2. package/src/lib/jobs/ai-site-import-compile.js +23 -3
  3. package/src/lib/jobs/ai-site-import-compile.js.map +1 -1
  4. package/src/lib/layout-language/ai-layout-compiler.js +90 -8
  5. package/src/lib/layout-language/ai-layout-compiler.js.map +1 -1
  6. package/src/lib/layout-language/ai-layout-language.d.ts +8 -2
  7. package/src/lib/layout-language/ai-layout-language.js +4 -2
  8. package/src/lib/layout-language/ai-layout-language.js.map +1 -1
  9. package/src/lib/model/ai-site-import-fidelity.d.ts +9 -0
  10. package/src/lib/model/ai-site-import-fidelity.js +64 -6
  11. package/src/lib/model/ai-site-import-fidelity.js.map +1 -1
  12. package/src/lib/model/ai-site-import.d.ts +7 -0
  13. package/src/lib/model/ai-site-import.js.map +1 -1
  14. package/src/lib/runtime/site-inventory.js +2 -3
  15. package/src/lib/runtime/site-inventory.js.map +1 -1
  16. package/src/lib/server/assist-view-context.js +3 -3
  17. package/src/lib/server/assist-view-context.js.map +1 -1
  18. package/src/lib/site-import/fixtures/site-import-fidelity-replay.d.ts +12 -1
  19. package/src/lib/site-import/fixtures/site-import-fidelity-replay.js +19 -9
  20. package/src/lib/site-import/fixtures/site-import-fidelity-replay.js.map +1 -1
  21. package/src/lib/site-import/site-import-concealed.d.ts +30 -0
  22. package/src/lib/site-import/site-import-concealed.js +231 -0
  23. package/src/lib/site-import/site-import-concealed.js.map +1 -0
  24. package/src/lib/site-import/site-import-crawl.d.ts +3 -1
  25. package/src/lib/site-import/site-import-crawl.js +8 -1
  26. package/src/lib/site-import/site-import-crawl.js.map +1 -1
  27. package/src/lib/site-import/site-import-css.js +13 -2
  28. package/src/lib/site-import/site-import-css.js.map +1 -1
  29. package/src/lib/site-import/site-import-html.d.ts +28 -0
  30. package/src/lib/site-import/site-import-html.js +246 -49
  31. package/src/lib/site-import/site-import-html.js.map +1 -1
  32. package/src/lib/site-import/site-import-layout.js +211 -12
  33. package/src/lib/site-import/site-import-layout.js.map +1 -1
  34. package/src/lib/site-import/site-import-page.js +2 -0
  35. package/src/lib/site-import/site-import-page.js.map +1 -1
  36. package/src/lib/testing/stand-in-dataset-index.js +6 -2
  37. package/src/lib/testing/stand-in-dataset-index.js.map +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aglyn/plugins-ai",
3
- "version": "1.13.0",
3
+ "version": "1.14.0",
4
4
  "license": "Apache-2.0",
5
5
  "homepage": "https://aglyn.com",
6
6
  "repository": {
@@ -25,22 +25,22 @@
25
25
  "./package.json": "./package.json"
26
26
  },
27
27
  "dependencies": {
28
- "@aglyn/aglyn": "1.13.0",
29
- "@aglyn/shared-data-enums": "1.13.0",
30
- "@aglyn/shared-data-mdi": "1.13.0",
31
- "@aglyn/shared-data-types": "1.13.0",
32
- "@aglyn/shared-ui-email-campaigns": "1.13.0",
33
- "@aglyn/shared-ui-jsx": "1.13.0",
34
- "@aglyn/shared-ui-snackstack": "1.13.0",
35
- "@aglyn/shared-ui-theme": "1.13.0",
36
- "@aglyn/shared-util-email": "1.13.0",
37
- "@aglyn/shared-util-errors": "1.13.0",
38
- "@aglyn/shared-util-http": "1.13.0",
39
- "@aglyn/shared-util-timestamp": "1.13.0",
40
- "@aglyn/shared-util-tools": "1.13.0",
41
- "@aglyn/tenant-data-admin": "1.13.0",
42
- "@aglyn/tenant-feature-instance": "1.13.0",
43
- "@aglyn/tenant-runtime": "1.13.0",
28
+ "@aglyn/aglyn": "1.14.0",
29
+ "@aglyn/shared-data-enums": "1.14.0",
30
+ "@aglyn/shared-data-mdi": "1.14.0",
31
+ "@aglyn/shared-data-types": "1.14.0",
32
+ "@aglyn/shared-ui-email-campaigns": "1.14.0",
33
+ "@aglyn/shared-ui-jsx": "1.14.0",
34
+ "@aglyn/shared-ui-snackstack": "1.14.0",
35
+ "@aglyn/shared-ui-theme": "1.14.0",
36
+ "@aglyn/shared-util-email": "1.14.0",
37
+ "@aglyn/shared-util-errors": "1.14.0",
38
+ "@aglyn/shared-util-http": "1.14.0",
39
+ "@aglyn/shared-util-timestamp": "1.14.0",
40
+ "@aglyn/shared-util-tools": "1.14.0",
41
+ "@aglyn/tenant-data-admin": "1.14.0",
42
+ "@aglyn/tenant-feature-instance": "1.14.0",
43
+ "@aglyn/tenant-runtime": "1.14.0",
44
44
  "@swc/helpers": "0.5.23"
45
45
  },
46
46
  "peerDependencies": {
@@ -961,11 +961,15 @@ const HEX = /^#[0-9a-f]{6}$/i;
961
961
  }
962
962
  ] : [];
963
963
  });
964
+ // A gallery is its photos in the source's columns (AGL-4152), not a strip of marks.
964
965
  return items.length ? [
965
- {
966
+ _extends({
966
967
  kind: 'logos',
967
968
  items
968
- }
969
+ }, group.gallery ? {
970
+ variant: 'pictures',
971
+ columns
972
+ } : {})
969
973
  ] : [];
970
974
  }
971
975
  const items = group.items.map((item)=>itemOf(scope, group, item, kind));
@@ -1095,8 +1099,24 @@ const HEX = /^#[0-9a-f]{6}$/i;
1095
1099
  col
1096
1100
  }));
1097
1101
  });
1102
+ } else if (cells.length >= 2 && cells.length <= AI_LAYOUT_MAX_COLS) {
1103
+ // A second row of a section, or one inside a column (AGL-4152): in its columns too.
1104
+ const columns = node.cells.map((cell, index)=>{
1105
+ var _node_cols_index;
1106
+ return {
1107
+ weight: Math.min(12, Math.max(1, Math.round((_node_cols_index = node.cols[index]) != null ? _node_cols_index : 1))),
1108
+ blocks: nodeBlocks(scope, cell.nodes, {
1109
+ cols: null,
1110
+ allowed: false
1111
+ })
1112
+ };
1113
+ });
1114
+ out.push({
1115
+ kind: 'row',
1116
+ row: columns.filter((column)=>column.blocks.length)
1117
+ });
1098
1118
  } else {
1099
- // A second row of a section, or one inside a column: its cells one under another.
1119
+ // Wider than a row may be: its cells one under another.
1100
1120
  for (const cell of node.cells)out.push(...nodeBlocks(scope, cell.nodes, {
1101
1121
  cols: null,
1102
1122
  allowed: false