@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.
- package/package.json +17 -17
- package/src/lib/jobs/ai-site-import-compile.js +23 -3
- package/src/lib/jobs/ai-site-import-compile.js.map +1 -1
- package/src/lib/layout-language/ai-layout-compiler.js +90 -8
- package/src/lib/layout-language/ai-layout-compiler.js.map +1 -1
- package/src/lib/layout-language/ai-layout-language.d.ts +8 -2
- package/src/lib/layout-language/ai-layout-language.js +4 -2
- package/src/lib/layout-language/ai-layout-language.js.map +1 -1
- package/src/lib/model/ai-site-import-fidelity.d.ts +9 -0
- package/src/lib/model/ai-site-import-fidelity.js +64 -6
- package/src/lib/model/ai-site-import-fidelity.js.map +1 -1
- package/src/lib/model/ai-site-import.d.ts +7 -0
- package/src/lib/model/ai-site-import.js.map +1 -1
- package/src/lib/runtime/site-inventory.js +2 -3
- package/src/lib/runtime/site-inventory.js.map +1 -1
- package/src/lib/server/assist-view-context.js +3 -3
- package/src/lib/server/assist-view-context.js.map +1 -1
- package/src/lib/site-import/fixtures/site-import-fidelity-replay.d.ts +12 -1
- package/src/lib/site-import/fixtures/site-import-fidelity-replay.js +19 -9
- package/src/lib/site-import/fixtures/site-import-fidelity-replay.js.map +1 -1
- package/src/lib/site-import/site-import-concealed.d.ts +30 -0
- package/src/lib/site-import/site-import-concealed.js +231 -0
- package/src/lib/site-import/site-import-concealed.js.map +1 -0
- package/src/lib/site-import/site-import-crawl.d.ts +3 -1
- package/src/lib/site-import/site-import-crawl.js +8 -1
- package/src/lib/site-import/site-import-crawl.js.map +1 -1
- package/src/lib/site-import/site-import-css.js +13 -2
- package/src/lib/site-import/site-import-css.js.map +1 -1
- package/src/lib/site-import/site-import-html.d.ts +28 -0
- package/src/lib/site-import/site-import-html.js +246 -49
- package/src/lib/site-import/site-import-html.js.map +1 -1
- package/src/lib/site-import/site-import-layout.js +211 -12
- package/src/lib/site-import/site-import-layout.js.map +1 -1
- package/src/lib/site-import/site-import-page.js +2 -0
- package/src/lib/site-import/site-import-page.js.map +1 -1
- package/src/lib/testing/stand-in-dataset-index.js +6 -2
- package/src/lib/testing/stand-in-dataset-index.js.map +1 -1
|
@@ -166,6 +166,11 @@ export interface SiteImportExtract {
|
|
|
166
166
|
};
|
|
167
167
|
/** Its videos (AGL-4140), each once, in the order they were found; absent on a page with none. */
|
|
168
168
|
videos?: SiteImportVideo[];
|
|
169
|
+
/**
|
|
170
|
+
* What the page holds that a visitor cannot see (AGL-4152), left out of all
|
|
171
|
+
* the rest: the fidelity holds a build to not drawing it. Absent on a page with none.
|
|
172
|
+
*/
|
|
173
|
+
concealed?: SiteImportConcealedParts;
|
|
169
174
|
/** True when the page has a password field; nothing else is extracted. */
|
|
170
175
|
loginForm: boolean;
|
|
171
176
|
/**
|
|
@@ -176,6 +181,11 @@ export interface SiteImportExtract {
|
|
|
176
181
|
*/
|
|
177
182
|
structure?: SiteImportStructure;
|
|
178
183
|
}
|
|
184
|
+
/** The pictures and the words a page holds that a visitor cannot see (AGL-4152). */
|
|
185
|
+
export interface SiteImportConcealedParts {
|
|
186
|
+
pictures: string[];
|
|
187
|
+
words: string[];
|
|
188
|
+
}
|
|
179
189
|
/** The attributes of an element the layout reader reads; everything else is dropped. */
|
|
180
190
|
export interface SiteImportElementAttrs {
|
|
181
191
|
class?: string;
|
|
@@ -188,6 +198,18 @@ export interface SiteImportElementAttrs {
|
|
|
188
198
|
href?: string;
|
|
189
199
|
/** `hidden`, or `aria-hidden="true"`. */
|
|
190
200
|
hidden?: true;
|
|
201
|
+
/** The `hidden` attribute: drawn nowhere (AGL-4152). */
|
|
202
|
+
notDrawn?: true;
|
|
203
|
+
/** `aria-hidden="true"`: a screen reader skips it, a visitor may still see it (AGL-4152). */
|
|
204
|
+
ariaHidden?: true;
|
|
205
|
+
/** A `<dialog>` left open (AGL-4152). */
|
|
206
|
+
open?: true;
|
|
207
|
+
/** A picture still to load: an address in its `data-` attributes and none of its own (AGL-4152). */
|
|
208
|
+
lazy?: true;
|
|
209
|
+
/** A picture sized to nothing, or to a tracking pixel (AGL-4152). */
|
|
210
|
+
tiny?: true;
|
|
211
|
+
/** The share of the screen's width a picture's `sizes` says it is drawn at on a wide screen, in percent (AGL-4152). */
|
|
212
|
+
share?: number;
|
|
191
213
|
/** `data-section-theme` or `data-theme`: a site builder's name for a band's look. */
|
|
192
214
|
theme?: string;
|
|
193
215
|
type?: string;
|
|
@@ -287,6 +309,10 @@ export interface SiteImportStructure {
|
|
|
287
309
|
export interface SiteImportExtractOptions {
|
|
288
310
|
/** Keep how the page is built (`structure`), for the layout reader (AGL-4106). */
|
|
289
311
|
structure?: boolean;
|
|
312
|
+
/** The text of the stylesheets the page links: what a visitor cannot see is read through them, as through its own `<style>`s (AGL-4152). */
|
|
313
|
+
stylesheets?: readonly string[];
|
|
314
|
+
/** Read what a visitor cannot see as well: the page as an older read saw it, for a check that holds a build to not drawing it. */
|
|
315
|
+
readConcealed?: boolean;
|
|
290
316
|
}
|
|
291
317
|
/** Ceilings that keep one odd page from becoming the whole inventory. */
|
|
292
318
|
export declare const SITE_IMPORT_PAGE_LIMITS: {
|
|
@@ -310,6 +336,8 @@ export declare const SITE_IMPORT_PAGE_LIMITS: {
|
|
|
310
336
|
readonly stylesheets: 24;
|
|
311
337
|
/** A page's videos (AGL-4140). */
|
|
312
338
|
readonly videos: 10;
|
|
339
|
+
/** What a page conceals that the fidelity is told of (AGL-4152). */
|
|
340
|
+
readonly concealed: 40;
|
|
313
341
|
};
|
|
314
342
|
/** Character references to characters; an unknown name stays as written. */
|
|
315
343
|
export declare function decodeHtmlEntities(text: string): string;
|