bestax-migrate 2.32.1 → 2.34.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/dist/sources/bulma-classes/class-map.d.ts +49 -11
- package/dist/sources/bulma-classes/class-map.d.ts.map +1 -1
- package/dist/sources/bulma-classes/class-map.js +106 -4
- package/dist/sources/bulma-classes/glyph.d.ts +22 -7
- package/dist/sources/bulma-classes/glyph.d.ts.map +1 -1
- package/dist/sources/bulma-classes/glyph.js +50 -20
- package/dist/sources/bulma-classes/html-assets.d.ts +18 -6
- package/dist/sources/bulma-classes/html-assets.d.ts.map +1 -1
- package/dist/sources/bulma-classes/html-assets.js +41 -10
- package/dist/sources/bulma-classes/html.d.ts +3 -2
- package/dist/sources/bulma-classes/html.d.ts.map +1 -1
- package/dist/sources/bulma-classes/html.js +65 -23
- package/dist/sources/bulma-classes/plan.d.ts +25 -2
- package/dist/sources/bulma-classes/plan.d.ts.map +1 -1
- package/dist/sources/bulma-classes/plan.js +108 -11
- package/dist/sources/bulma-classes/transform.d.ts +20 -2
- package/dist/sources/bulma-classes/transform.d.ts.map +1 -1
- package/dist/sources/bulma-classes/transform.js +113 -11
- package/package.json +2 -2
|
@@ -9,9 +9,14 @@
|
|
|
9
9
|
* library and compared with the raw markup it replaces. The exceptions are
|
|
10
10
|
* on purpose. Font Awesome's own `<i aria-hidden="true">` alone in a `.icon`
|
|
11
11
|
* that carries nothing assistive tech reads converts to `Icon`, which writes
|
|
12
|
-
* the attribute on the `.icon` instead, since the glyph is hidden either way
|
|
13
|
-
*
|
|
14
|
-
*
|
|
12
|
+
* the attribute on the `.icon` instead, since the glyph is hidden either way;
|
|
13
|
+
* a `.icon` around a bare glyph in a link or button its own label names
|
|
14
|
+
* converts too, and `Icon` writes the attribute it doesn't carry, since that
|
|
15
|
+
* label is what assistive tech reads for the control; and Font Awesome 6's
|
|
16
|
+
* long name for a style (`fa-brands`) is written as the skill's `variant`,
|
|
17
|
+
* which `Icon` renders as the short one (`fab`), the same style (see
|
|
18
|
+
* `readsGlyph`). And a Bulma 0.9 helper v1 removed, which styles nothing
|
|
19
|
+
* under v1, converts as the v1 helper that does its job (see
|
|
15
20
|
* `REPLACED_IN_V1`).
|
|
16
21
|
*
|
|
17
22
|
* Data only: `scripts/gen-mcp-index.mjs` imports it directly for the MCP
|
|
@@ -166,13 +171,14 @@ export interface Absorbs {
|
|
|
166
171
|
export interface ReadsGlyph {
|
|
167
172
|
/**
|
|
168
173
|
* The attributes the element may carry and still take Font Awesome's
|
|
169
|
-
* `aria-hidden` up off its `<i
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
*
|
|
174
|
+
* `aria-hidden` up off its `<i>`, or take the one the target writes on an
|
|
175
|
+
* icon in a link or button its own label names: ones the target renders
|
|
176
|
+
* as given that assistive tech doesn't read, a name ending in `*` standing
|
|
177
|
+
* for every attribute it starts. Read by name, whatever the value, since
|
|
178
|
+
* an expression may render as anything. Anything else (a name, a
|
|
179
|
+
* description, a `title`, a `role`, a `tabIndex`, a handler) keeps the
|
|
180
|
+
* element as it is: the attribute would hide what it exposes, and `Icon`
|
|
181
|
+
* writes no `aria-hidden` beside a `role` or `tabIndex` at all.
|
|
176
182
|
*/
|
|
177
183
|
readonly hiddenMovesBeside: readonly string[];
|
|
178
184
|
}
|
|
@@ -339,7 +345,9 @@ export interface RootEntry {
|
|
|
339
345
|
* the `aria-hidden` the target writes, as Font Awesome's own markup does,
|
|
340
346
|
* reads too when the element carries nothing assistive tech reads: the
|
|
341
347
|
* attribute moves up onto it, a difference in markup a conversion makes
|
|
342
|
-
* on purpose.
|
|
348
|
+
* on purpose. So does a bare `<i>` in an element that carries no
|
|
349
|
+
* `aria-hidden` and nothing else assistive tech reads, in a link or button
|
|
350
|
+
* its own label names: the target writes the attribute there.
|
|
343
351
|
*/
|
|
344
352
|
readonly readsGlyph?: ReadsGlyph;
|
|
345
353
|
/**
|
|
@@ -480,6 +488,36 @@ export declare const FORWARDS_REF: readonly string[];
|
|
|
480
488
|
export declare const WRAPPERS: Readonly<Record<string, string>>;
|
|
481
489
|
/** The wrappers' own props, as `ROOTS` lists them for the components. */
|
|
482
490
|
export declare const WRAPPER_OWN_PROPS: Readonly<Record<string, readonly string[]>>;
|
|
491
|
+
/**
|
|
492
|
+
* Plain tags a bestax component renders as they are, with no class of its
|
|
493
|
+
* own, that this source leaves as markup all the same: it converts a table's
|
|
494
|
+
* `.table` and not the rows and cells inside it. Never read by the codemod.
|
|
495
|
+
* The MCP lookup names the component for one of these, which would otherwise
|
|
496
|
+
* say bestax has no component for the tag (#1236), and the index carries the
|
|
497
|
+
* props each takes beside the helper props, read off its record.
|
|
498
|
+
*/
|
|
499
|
+
export declare const BY_HAND: Readonly<Record<string, string>>;
|
|
500
|
+
/**
|
|
501
|
+
* The bulma-social brand colors, the classes it adds to Bulma's `.button`,
|
|
502
|
+
* across its majors: read off the stylesheet each publishes (`css/all.css`
|
|
503
|
+
* in 2 and 3, `bin/bulma-social.css` in 1). Nothing here installs it, so a
|
|
504
|
+
* brand a later release adds is missing until it is added here. The HTML
|
|
505
|
+
* input reads them too, to name the per-brand stylesheets a page needs.
|
|
506
|
+
*/
|
|
507
|
+
export declare const BULMA_SOCIAL: string[];
|
|
508
|
+
/**
|
|
509
|
+
* Classes no Bulma 1 rule matches that a page takes from another stylesheet
|
|
510
|
+
* it loads, grouped by that stylesheet, each with what to do about them. The
|
|
511
|
+
* codemod leaves a class it doesn't convert where it is, so it never reads
|
|
512
|
+
* these; the MCP lookup does, for a class Bulma 1's stylesheet lacks, which
|
|
513
|
+
* it would otherwise call a class nothing styles (#1236). A `glyph` group's
|
|
514
|
+
* classes name an icon font's glyph, which bestax `Icon` writes from props.
|
|
515
|
+
*/
|
|
516
|
+
export declare const ELSEWHERE: ReadonlyArray<{
|
|
517
|
+
readonly why: string;
|
|
518
|
+
readonly match: RegExp;
|
|
519
|
+
readonly glyph?: boolean;
|
|
520
|
+
}>;
|
|
483
521
|
/**
|
|
484
522
|
* Every class Bulma 0.9.4's compiled stylesheet has and v1's does not, read
|
|
485
523
|
* off the two with the class walk `e2e/bulma-classes-vocabulary.test.ts`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"class-map.d.ts","sourceRoot":"","sources":["../../../src/sources/bulma-classes/class-map.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"class-map.d.ts","sourceRoot":"","sources":["../../../src/sources/bulma-classes/class-map.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,uCAAuC;IACvC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,qEAAqE;IACrE,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,MAAM,MAAM,GAChB;IAAE,QAAQ,CAAC,EAAE,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,GAAG;IAAE,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,CAAC;AAE9E,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAE1D;AAED,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,MAAM,EAAE,SAAS,SAAS,EAAE,CAAC;IACtC,6EAA6E;IAC7E,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;;;OAMG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IACv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AC;IACtC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB,CA6CA,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEnE;AAiBD,qCAAqC;AACrC,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAE5D;AAED,wEAAwE;AACxE,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAE7D;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAGlE;AAED,qCAAqC;AACrC,wBAAgB,WAAW,CACzB,KAAK,EAAE,SAAS,EAChB,KAAK,EAAE,MAAM,GACZ,QAAQ,GAAG,SAAS,CAEtB;AAED,0EAA0E;AAC1E,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAKrE;AAED,wEAAwE;AACxE,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAI7D;AAED,kDAAkD;AAClD,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAE5D;AAED,4DAA4D;AAC5D,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAE5D;AAED,0CAA0C;AAC1C,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAE1D"}
|
|
@@ -9,9 +9,14 @@
|
|
|
9
9
|
* library and compared with the raw markup it replaces. The exceptions are
|
|
10
10
|
* on purpose. Font Awesome's own `<i aria-hidden="true">` alone in a `.icon`
|
|
11
11
|
* that carries nothing assistive tech reads converts to `Icon`, which writes
|
|
12
|
-
* the attribute on the `.icon` instead, since the glyph is hidden either way
|
|
13
|
-
*
|
|
14
|
-
*
|
|
12
|
+
* the attribute on the `.icon` instead, since the glyph is hidden either way;
|
|
13
|
+
* a `.icon` around a bare glyph in a link or button its own label names
|
|
14
|
+
* converts too, and `Icon` writes the attribute it doesn't carry, since that
|
|
15
|
+
* label is what assistive tech reads for the control; and Font Awesome 6's
|
|
16
|
+
* long name for a style (`fa-brands`) is written as the skill's `variant`,
|
|
17
|
+
* which `Icon` renders as the short one (`fab`), the same style (see
|
|
18
|
+
* `readsGlyph`). And a Bulma 0.9 helper v1 removed, which styles nothing
|
|
19
|
+
* under v1, converts as the v1 helper that does its job (see
|
|
15
20
|
* `REPLACED_IN_V1`).
|
|
16
21
|
*
|
|
17
22
|
* Data only: `scripts/gen-mcp-index.mjs` imports it directly for the MCP
|
|
@@ -1405,7 +1410,11 @@ export const ROOTS = {
|
|
|
1405
1410
|
ownProps: ['variant', 'lines'],
|
|
1406
1411
|
},
|
|
1407
1412
|
// ---- Families bestax has but that do not map element by element yet ------
|
|
1408
|
-
|
|
1413
|
+
// `Checkbox` renders a `<label class="styled-checkbox checkbox">` around
|
|
1414
|
+
// its `<input>`, hidden, and a box of its own drawn beside it. It puts its
|
|
1415
|
+
// `className` on the `<label>` and the rest of what it's given on the
|
|
1416
|
+
// `<input>`, and its `indeterminate` sets the input's mixed state.
|
|
1417
|
+
checkbox: todo('Checkbox', "bestax `Checkbox` renders its own styled markup, not Bulma's. Write it by hand in place of the element that carries `.checkbox`, Bulma's `<label>` or a bare `<input>`, with the `<input>`'s attributes on it: `id`, `name`, `aria-label` and the rest reach its `<input>`, and a `<label>`'s text is its children. Drive it with `checked` and `onChange`, and add `indeterminate` for a select-all box. Its `className` goes on its `<label>`, which declares the `--bulma-checkbox-*` variables, so set the page's colors with those in a rule for your class beside `.styled-checkbox`. Where the page put `.checkbox` on a bare `<input>`, drop its own rules for that box, since bestax draws its own and `.checkbox` is on its `<label>` now"),
|
|
1409
1418
|
checkboxes: todo('Checkboxes', 'bestax `Checkboxes` renders its own `.field` and `.control` wrappers'),
|
|
1410
1419
|
radio: todo('Radio', "bestax `Radio` renders its own styled markup, not Bulma's"),
|
|
1411
1420
|
radios: todo('Radios', 'bestax `Radios` renders its own `.field` and `.control` wrappers'),
|
|
@@ -1483,6 +1492,16 @@ export const ROOTS = {
|
|
|
1483
1492
|
tag: 'span',
|
|
1484
1493
|
readsGlyph: { hiddenMovesBeside: ['id', 'style', 'key', 'data-*'] },
|
|
1485
1494
|
modifiers: tokens('is-', ['small', 'medium', 'large'], 'size'),
|
|
1495
|
+
// Bulma places an icon with these inside a `.control` that has icons on
|
|
1496
|
+
// that side, and `Control` renders that icon itself from a prop, which
|
|
1497
|
+
// writes the class with the rest of the icon. On `Icon` the class stays.
|
|
1498
|
+
omits: Object.fromEntries(['left', 'right'].map(side => {
|
|
1499
|
+
const prop = side === 'left' ? 'iconLeft' : 'iconRight';
|
|
1500
|
+
return [
|
|
1501
|
+
`is-${side}`,
|
|
1502
|
+
`Bulma places it inside a \`.control\` with \`has-icons-${side}\`, and bestax \`Control\` renders that icon itself from \`${prop}\` (\`${prop}={{ library: "fa", name: "envelope", size: "small" }}\`), after its children, so a hidden \`.icon\` there can go as that prop; on \`Icon\` the class stays in \`className\`, which renders the same`,
|
|
1503
|
+
];
|
|
1504
|
+
})),
|
|
1486
1505
|
defaults: { 'aria-hidden': 'true' },
|
|
1487
1506
|
namedDefaults: {
|
|
1488
1507
|
by: ['aria-label', 'aria-labelledby'],
|
|
@@ -2110,6 +2129,89 @@ export const WRAPPER_OWN_PROPS = {
|
|
|
2110
2129
|
UnorderedList: ['textColor', 'bgColor'],
|
|
2111
2130
|
Figure: ['textColor', 'bgColor'],
|
|
2112
2131
|
};
|
|
2132
|
+
/**
|
|
2133
|
+
* Plain tags a bestax component renders as they are, with no class of its
|
|
2134
|
+
* own, that this source leaves as markup all the same: it converts a table's
|
|
2135
|
+
* `.table` and not the rows and cells inside it. Never read by the codemod.
|
|
2136
|
+
* The MCP lookup names the component for one of these, which would otherwise
|
|
2137
|
+
* say bestax has no component for the tag (#1236), and the index carries the
|
|
2138
|
+
* props each takes beside the helper props, read off its record.
|
|
2139
|
+
*/
|
|
2140
|
+
export const BY_HAND = {
|
|
2141
|
+
thead: 'Table.Thead',
|
|
2142
|
+
tbody: 'Table.Tbody',
|
|
2143
|
+
tfoot: 'Table.Tfoot',
|
|
2144
|
+
tr: 'Table.Tr',
|
|
2145
|
+
th: 'Table.Th',
|
|
2146
|
+
td: 'Table.Td',
|
|
2147
|
+
};
|
|
2148
|
+
/**
|
|
2149
|
+
* The bulma-social brand colors, the classes it adds to Bulma's `.button`,
|
|
2150
|
+
* across its majors: read off the stylesheet each publishes (`css/all.css`
|
|
2151
|
+
* in 2 and 3, `bin/bulma-social.css` in 1). Nothing here installs it, so a
|
|
2152
|
+
* brand a later release adds is missing until it is added here. The HTML
|
|
2153
|
+
* input reads them too, to name the per-brand stylesheets a page needs.
|
|
2154
|
+
*/
|
|
2155
|
+
export const BULMA_SOCIAL = [
|
|
2156
|
+
'apple',
|
|
2157
|
+
'bitbucket',
|
|
2158
|
+
'discord',
|
|
2159
|
+
'dropbox',
|
|
2160
|
+
'facebook',
|
|
2161
|
+
'flickr',
|
|
2162
|
+
'foursquare',
|
|
2163
|
+
'github',
|
|
2164
|
+
'gitlab',
|
|
2165
|
+
'instagram',
|
|
2166
|
+
'linkedin',
|
|
2167
|
+
'microsoft',
|
|
2168
|
+
'odnoklassniki',
|
|
2169
|
+
'openid',
|
|
2170
|
+
'pinterest',
|
|
2171
|
+
'reddit',
|
|
2172
|
+
'slack',
|
|
2173
|
+
'soundcloud',
|
|
2174
|
+
'tumblr',
|
|
2175
|
+
'twitch',
|
|
2176
|
+
'twitter',
|
|
2177
|
+
'vimeo',
|
|
2178
|
+
'vk',
|
|
2179
|
+
'x',
|
|
2180
|
+
'yahoo',
|
|
2181
|
+
'youtube',
|
|
2182
|
+
];
|
|
2183
|
+
/**
|
|
2184
|
+
* Classes no Bulma 1 rule matches that a page takes from another stylesheet
|
|
2185
|
+
* it loads, grouped by that stylesheet, each with what to do about them. The
|
|
2186
|
+
* codemod leaves a class it doesn't convert where it is, so it never reads
|
|
2187
|
+
* these; the MCP lookup does, for a class Bulma 1's stylesheet lacks, which
|
|
2188
|
+
* it would otherwise call a class nothing styles (#1236). A `glyph` group's
|
|
2189
|
+
* classes name an icon font's glyph, which bestax `Icon` writes from props.
|
|
2190
|
+
*/
|
|
2191
|
+
export const ELSEWHERE = [
|
|
2192
|
+
{
|
|
2193
|
+
why: "a Font Awesome class: Font Awesome's own stylesheet styles it, not Bulma's, so keep loading Font Awesome (the bestax-migrate skill's `html-asset:font-awesome` says how). bestax `Icon` writes these classes from its props, on the <i> it renders inside a `.icon`",
|
|
2194
|
+
match: /^(?:fa|fa[srbldt]|fa-[a-z0-9]+(?:-[a-z0-9]+)*|svg-inline--fa)$/,
|
|
2195
|
+
glyph: true,
|
|
2196
|
+
},
|
|
2197
|
+
{
|
|
2198
|
+
why: 'a Material Design Icons class: its own stylesheet styles it, not Bulma\'s, so keep loading it. bestax `Icon` writes these classes from its props, with `library="mdi"`, on the <i> it renders inside a `.icon`',
|
|
2199
|
+
match: /^mdi(?:-[a-z0-9]+)*$/,
|
|
2200
|
+
glyph: true,
|
|
2201
|
+
},
|
|
2202
|
+
{
|
|
2203
|
+
why: "a bulma-social class, a Bulma extension's brand color for Bulma's `.button`, which bestax's `Button` renders: keep loading bulma-social and keep the class on `Button` in `className`, since bestax has no component for it (the bestax-migrate skill's `html-asset:bulma-extension` has the recipe)",
|
|
2204
|
+
match: new RegExp(`^is-(?:${BULMA_SOCIAL.join('|')}|animated)$`),
|
|
2205
|
+
},
|
|
2206
|
+
{
|
|
2207
|
+
why: "a bulma-social helper, a Bulma extension's text or background color in a brand's color, with `-dark` and `-light` for its shades: keep loading bulma-social and keep the class in `className` on the element that has it, since bestax has no prop for it (the bestax-migrate skill's `html-asset:bulma-extension` has the recipe, and the brand's own stylesheet holds it)",
|
|
2208
|
+
match: new RegExp(`^has-(?:text|background)-(?:${BULMA_SOCIAL.join('|')})(?:-dark|-light)?$`),
|
|
2209
|
+
},
|
|
2210
|
+
{
|
|
2211
|
+
why: "a bulma-carousel class, a Bulma extension bestax's `Carousel` does the job of (the bestax-migrate skill's `html-asset:bulma-extension` says how). Once the page stops loading bulma-carousel nothing styles it: `is-covered`'s `object-fit: cover` on a slide's image goes in the app's own CSS",
|
|
2212
|
+
match: /^(?:has-carousel|hero-carousel|is-background|is-covered|slider-(?:container|item|navigation-next|navigation-previous|page|pagination)|video-container)$/,
|
|
2213
|
+
},
|
|
2214
|
+
];
|
|
2113
2215
|
/**
|
|
2114
2216
|
* Every class Bulma 0.9.4's compiled stylesheet has and v1's does not, read
|
|
2115
2217
|
* off the two with the class walk `e2e/bulma-classes-vocabulary.test.ts`
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Read an icon's glyph, the `<i>` inside a `.icon`, as the props bestax
|
|
3
|
-
* `Icon` builds it from
|
|
4
|
-
* given those props, renders that `<i>`
|
|
5
|
-
*
|
|
6
|
-
* `
|
|
3
|
+
* `Icon` builds it from, spelled the way the bestax-icons skill writes them.
|
|
4
|
+
* Pure: a glyph reads only when `Icon`, given those props, renders that `<i>`
|
|
5
|
+
* with exactly its classes and nothing else, but for one exception on
|
|
6
|
+
* purpose. Font Awesome 6's long name for a style (`fa-brands`) is written as
|
|
7
|
+
* the skill's `variant` (`brands`), which `Icon` renders as the short name
|
|
8
|
+
* (`fab`), the same style in 6 and 7 (`longStyle` says so). `library` is left
|
|
9
|
+
* out for Font Awesome, `Icon`'s default, as the skill writes it: like every
|
|
10
|
+
* conversion, this assumes no `ConfigProvider` sets another default (its
|
|
11
|
+
* `iconLibrary` here, as its `classPrefix` would for any component).
|
|
7
12
|
*/
|
|
8
13
|
import type { ChildFacts } from './plan.js';
|
|
9
14
|
export interface Glyph {
|
|
@@ -13,6 +18,13 @@ export interface Glyph {
|
|
|
13
18
|
variant?: string;
|
|
14
19
|
/** The glyph's other classes, which `Icon` renders after its own. */
|
|
15
20
|
features?: string[];
|
|
21
|
+
/**
|
|
22
|
+
* The long name of Font Awesome's style the `<i>` was written with
|
|
23
|
+
* (`fa-brands`), when `variant` is the skill's name for it, which `Icon`
|
|
24
|
+
* renders as the short one (`fab`): a way a conversion's markup differs
|
|
25
|
+
* on purpose. The render tests compare it with the short name restated.
|
|
26
|
+
*/
|
|
27
|
+
longStyle?: string;
|
|
16
28
|
}
|
|
17
29
|
/**
|
|
18
30
|
* The props `Icon` renders this glyph from, or undefined when it can't: the
|
|
@@ -28,8 +40,9 @@ export declare function readGlyph(glyph: ChildFacts | undefined): Glyph | undefi
|
|
|
28
40
|
*/
|
|
29
41
|
export declare function readHiddenGlyph(glyph: ChildFacts | undefined): Glyph | undefined;
|
|
30
42
|
/**
|
|
31
|
-
* A glyph as the props `Icon` is given, in the order they're written:
|
|
32
|
-
*
|
|
43
|
+
* A glyph as the props `Icon` is given, in the order they're written: no
|
|
44
|
+
* `library` for Font Awesome, `Icon`'s default, and one feature as a string,
|
|
45
|
+
* more than one as a list.
|
|
33
46
|
*/
|
|
34
47
|
export declare function glyphProps(glyph: Glyph): Array<[name: string, value: string | readonly string[]]>;
|
|
35
48
|
/**
|
|
@@ -37,7 +50,9 @@ export declare function glyphProps(glyph: Glyph): Array<[name: string, value: st
|
|
|
37
50
|
* as the props `Icon` renders the `<i>` it was drawn from: the name from its
|
|
38
51
|
* `data-icon` (else its one class naming a glyph), the style from its
|
|
39
52
|
* `data-prefix`, and its other classes but the width one the script adds.
|
|
40
|
-
*
|
|
53
|
+
* The script is Font Awesome 5's or later, which reads the `fa` prefix as
|
|
54
|
+
* solid, so that one is `Icon`'s default here. For advice only: `Icon`
|
|
55
|
+
* renders that `<i>`, never the `<svg>`.
|
|
41
56
|
*/
|
|
42
57
|
export declare function readDrawnGlyph(svg: ChildFacts | undefined): Glyph | undefined;
|
|
43
58
|
//# sourceMappingURL=glyph.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glyph.d.ts","sourceRoot":"","sources":["../../../src/sources/bulma-classes/glyph.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"glyph.d.ts","sourceRoot":"","sources":["../../../src/sources/bulma-classes/glyph.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE5C,MAAM,WAAW,KAAK;IACpB,OAAO,EAAE,IAAI,GAAG,KAAK,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,kEAAkE;IAClE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAuGD;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,CAsC1E;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,UAAU,GAAG,SAAS,GAC5B,KAAK,GAAG,SAAS,CAMnB;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CACxB,KAAK,EAAE,KAAK,GACX,KAAK,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAAC,CAAC,CAiB1D;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,UAAU,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,CA0B7E"}
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Read an icon's glyph, the `<i>` inside a `.icon`, as the props bestax
|
|
3
|
-
* `Icon` builds it from
|
|
4
|
-
* given those props, renders that `<i>`
|
|
5
|
-
*
|
|
6
|
-
* `
|
|
3
|
+
* `Icon` builds it from, spelled the way the bestax-icons skill writes them.
|
|
4
|
+
* Pure: a glyph reads only when `Icon`, given those props, renders that `<i>`
|
|
5
|
+
* with exactly its classes and nothing else, but for one exception on
|
|
6
|
+
* purpose. Font Awesome 6's long name for a style (`fa-brands`) is written as
|
|
7
|
+
* the skill's `variant` (`brands`), which `Icon` renders as the short name
|
|
8
|
+
* (`fab`), the same style in 6 and 7 (`longStyle` says so). `library` is left
|
|
9
|
+
* out for Font Awesome, `Icon`'s default, as the skill writes it: like every
|
|
10
|
+
* conversion, this assumes no `ConfigProvider` sets another default (its
|
|
11
|
+
* `iconLibrary` here, as its `classPrefix` would for any component).
|
|
7
12
|
*/
|
|
8
13
|
/**
|
|
9
|
-
* Font Awesome's style classes
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
14
|
+
* Font Awesome's style classes, as the `variant` the bestax-icons skill
|
|
15
|
+
* writes for each. `Icon` renders its `variant` through a table of the
|
|
16
|
+
* skill's names (`regular` as `far`), and as written otherwise, so `fa`, Font
|
|
17
|
+
* Awesome 4's, reads as itself: 4 styles nothing else, and 5 and later read
|
|
18
|
+
* it as solid. `fas` is `Icon`'s default.
|
|
13
19
|
*/
|
|
14
20
|
const FA_STYLES = {
|
|
15
21
|
fas: undefined,
|
|
@@ -19,13 +25,29 @@ const FA_STYLES = {
|
|
|
19
25
|
fad: 'duotone',
|
|
20
26
|
fat: 'thin',
|
|
21
27
|
fa: 'fa',
|
|
22
|
-
'fa-solid':
|
|
23
|
-
'fa-regular': '
|
|
24
|
-
'fa-brands': '
|
|
25
|
-
'fa-light': '
|
|
26
|
-
'fa-thin': '
|
|
27
|
-
'fa-duotone': '
|
|
28
|
+
'fa-solid': undefined,
|
|
29
|
+
'fa-regular': 'regular',
|
|
30
|
+
'fa-brands': 'brands',
|
|
31
|
+
'fa-light': 'light',
|
|
32
|
+
'fa-thin': 'thin',
|
|
33
|
+
'fa-duotone': 'duotone',
|
|
28
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
* Font Awesome 6's long names for its styles, which `Icon` writes as the
|
|
37
|
+
* short ones (`fab`) once read as the skill's `variant`. Font Awesome 6
|
|
38
|
+
* styles an `<i>` the same either way, and 7 does too, but that its short
|
|
39
|
+
* names also set the classic family: so beside `fa-sharp`, which sets
|
|
40
|
+
* another, the long name is kept as written. 5 and older have no long
|
|
41
|
+
* names.
|
|
42
|
+
*/
|
|
43
|
+
const LONG_STYLES = new Set([
|
|
44
|
+
'fa-solid',
|
|
45
|
+
'fa-regular',
|
|
46
|
+
'fa-brands',
|
|
47
|
+
'fa-light',
|
|
48
|
+
'fa-thin',
|
|
49
|
+
'fa-duotone',
|
|
50
|
+
]);
|
|
29
51
|
/** Font Awesome's classes that modify a glyph rather than name one. */
|
|
30
52
|
const FA_MODIFIERS = new Set([
|
|
31
53
|
'fa-2xs',
|
|
@@ -105,12 +127,15 @@ export function readGlyph(glyph) {
|
|
|
105
127
|
const named = nameIn(tokens, 'fa-', FA_MODIFIERS, style);
|
|
106
128
|
if (!named)
|
|
107
129
|
return undefined;
|
|
108
|
-
|
|
130
|
+
// Beside another family, the long name stays as written (`LONG_STYLES`).
|
|
131
|
+
const long = LONG_STYLES.has(style) && !tokens.includes('fa-sharp');
|
|
132
|
+
const variant = long || !LONG_STYLES.has(style) ? FA_STYLES[style] : style;
|
|
109
133
|
return {
|
|
110
134
|
library: 'fa',
|
|
111
135
|
name: named.name,
|
|
112
136
|
...(variant && { variant }),
|
|
113
137
|
...(named.features.length > 0 && { features: named.features }),
|
|
138
|
+
...(long && { longStyle: style }),
|
|
114
139
|
};
|
|
115
140
|
}
|
|
116
141
|
if (mdi && styles.length === 0) {
|
|
@@ -139,13 +164,16 @@ export function readHiddenGlyph(glyph) {
|
|
|
139
164
|
return readGlyph({ ...glyph, attributes: new Map() });
|
|
140
165
|
}
|
|
141
166
|
/**
|
|
142
|
-
* A glyph as the props `Icon` is given, in the order they're written:
|
|
143
|
-
*
|
|
167
|
+
* A glyph as the props `Icon` is given, in the order they're written: no
|
|
168
|
+
* `library` for Font Awesome, `Icon`'s default, and one feature as a string,
|
|
169
|
+
* more than one as a list.
|
|
144
170
|
*/
|
|
145
171
|
export function glyphProps(glyph) {
|
|
146
172
|
const { features } = glyph;
|
|
147
173
|
return [
|
|
148
|
-
|
|
174
|
+
...(glyph.library === 'fa'
|
|
175
|
+
? []
|
|
176
|
+
: [['library', glyph.library]]),
|
|
149
177
|
['name', glyph.name],
|
|
150
178
|
...(glyph.variant ? [['variant', glyph.variant]] : []),
|
|
151
179
|
...(features
|
|
@@ -160,7 +188,9 @@ export function glyphProps(glyph) {
|
|
|
160
188
|
* as the props `Icon` renders the `<i>` it was drawn from: the name from its
|
|
161
189
|
* `data-icon` (else its one class naming a glyph), the style from its
|
|
162
190
|
* `data-prefix`, and its other classes but the width one the script adds.
|
|
163
|
-
*
|
|
191
|
+
* The script is Font Awesome 5's or later, which reads the `fa` prefix as
|
|
192
|
+
* solid, so that one is `Icon`'s default here. For advice only: `Icon`
|
|
193
|
+
* renders that `<i>`, never the `<svg>`.
|
|
164
194
|
*/
|
|
165
195
|
export function readDrawnGlyph(svg) {
|
|
166
196
|
if (svg?.tag !== 'svg' || !svg.tokens?.includes(DRAWN))
|
|
@@ -179,7 +209,7 @@ export function readDrawnGlyph(svg) {
|
|
|
179
209
|
: nameIn(tokens, 'fa-', FA_MODIFIERS, style);
|
|
180
210
|
if (!named)
|
|
181
211
|
return undefined;
|
|
182
|
-
const variant = FA_STYLES[style];
|
|
212
|
+
const variant = style === 'fa' ? undefined : FA_STYLES[style];
|
|
183
213
|
return {
|
|
184
214
|
library: 'fa',
|
|
185
215
|
name: named.name,
|
|
@@ -77,12 +77,24 @@ export declare function fontAwesomeMessage(asset: Extract<Asset, {
|
|
|
77
77
|
export declare const EXTENSION_COMPONENTS: Readonly<Record<string, string>>;
|
|
78
78
|
/** An extension's package without its scope, in lower case (`bulma-tooltip`). */
|
|
79
79
|
export declare function extensionPackage(name: string): string;
|
|
80
|
-
/**
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
80
|
+
/** The bulma-social brand a class is for (`github`), or null for any other. */
|
|
81
|
+
export declare function socialBrand(token: string): string | null;
|
|
82
|
+
/** What the page shows that bears on keeping an extension. */
|
|
83
|
+
export interface ExtensionFacts {
|
|
84
|
+
/**
|
|
85
|
+
* The page has images with bulma-carousel's `is-covered`, which its
|
|
86
|
+
* stylesheet crops only inside its own slides, so keeping the extension
|
|
87
|
+
* doesn't keep them cropped.
|
|
88
|
+
*/
|
|
89
|
+
covered?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* The bulma-social brands its markup shows (`socialBrand`), each once, in
|
|
92
|
+
* the page's order: the per-brand stylesheets it needs.
|
|
93
|
+
*/
|
|
94
|
+
brands?: readonly string[];
|
|
95
|
+
}
|
|
96
|
+
/** What a page's link to an extension leaves to do. */
|
|
97
|
+
export declare function extensionMessage(name: string, quoted: string[], loads: ReadonlySet<Loads>, css: CssMode, facts?: ExtensionFacts): string;
|
|
86
98
|
export declare function jqueryMessage(quoted: string): string;
|
|
87
99
|
export declare function webfontMessage(asset: Extract<Asset, {
|
|
88
100
|
kind: 'webfont';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"html-assets.d.ts","sourceRoot":"","sources":["../../../src/sources/bulma-classes/html-assets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"html-assets.d.ts","sourceRoot":"","sources":["../../../src/sources/bulma-classes/html-assets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAI9C,MAAM,MAAM,KAAK,GAAG,YAAY,GAAG,QAAQ,CAAC;AAE5C,MAAM,MAAM,KAAK;AACf,iEAA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EAA4E;IAC5E,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,oCAAoC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,iFAAiF;IACjF,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,IAAI,CAAC,EAAE,cAAc,GACpB,MAAM,CAeR;AAED,wBAAgB,aAAa,CAC3B,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,GACb,MAAM,CAQR"}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* what the extension did; each claim here was read off the component.
|
|
10
10
|
*/
|
|
11
11
|
import { FONT_AWESOME_PEER_RANGE } from '../_shared/deps-common.js';
|
|
12
|
+
import { BULMA_SOCIAL } from './class-map.js';
|
|
12
13
|
/** A URL's path, without its query and fragment. */
|
|
13
14
|
function pathOf(url) {
|
|
14
15
|
return url.trim().replace(/[?#].*$/, '');
|
|
@@ -164,6 +165,8 @@ export function bulmaBuildMessage(build, quoted) {
|
|
|
164
165
|
}
|
|
165
166
|
// ---- Font Awesome ------------------------------------------------------------
|
|
166
167
|
const ICON_LOADS_NO_FONT = "bestax's `Icon` loads no font of its own";
|
|
168
|
+
/** Where the older names that draw another glyph in 6 and 7 are listed. */
|
|
169
|
+
const OLDER_NAMES = "the bestax-icons skill's `references/icon-libraries.md` names the older names that draw another glyph in 6 and 7";
|
|
167
170
|
const INSTALL_FONT_AWESOME = `install \`@fortawesome/fontawesome-free\` (bestax-bulma's optional peer range is \`${FONT_AWESOME_PEER_RANGE}\`) and import its \`css/all.min.css\` from the app's entry`;
|
|
168
171
|
export function fontAwesomeMessage(asset, quoted) {
|
|
169
172
|
const { major, kit } = asset;
|
|
@@ -171,14 +174,14 @@ export function fontAwesomeMessage(asset, quoted) {
|
|
|
171
174
|
return `the page loads a Font Awesome kit from \`${quoted}\`, whose version the URL doesn't say: ${ICON_LOADS_NO_FONT}, so keep loading the kit once for the app, from its index.html, or ${INSTALL_FONT_AWESOME}`;
|
|
172
175
|
}
|
|
173
176
|
if (major === null) {
|
|
174
|
-
return `the page loads Font Awesome from \`${quoted}\`, whose version the URL doesn't say: ${ICON_LOADS_NO_FONT} and writes the classes Font Awesome 5 and later read (\`fas fa-<name>\`), so keep loading it once for the app, or ${INSTALL_FONT_AWESOME}, with \`css/v4-shims.min.css\` beside it if the page's names are Font Awesome 4's (\`fa fa-<name>\`)`;
|
|
177
|
+
return `the page loads Font Awesome from \`${quoted}\`, whose version the URL doesn't say: ${ICON_LOADS_NO_FONT} and writes the classes Font Awesome 5 and later read (\`fas fa-<name>\`), so keep loading it once for the app, or ${INSTALL_FONT_AWESOME}, with \`css/v4-shims.min.css\` beside it if the page's names are Font Awesome 4's (\`fa fa-<name>\`); ${OLDER_NAMES}`;
|
|
175
178
|
}
|
|
176
179
|
const loads = `the page loads Font Awesome ${major} from \`${quoted}\``;
|
|
177
180
|
if (major <= 4) {
|
|
178
|
-
return `${loads}, whose classes are \`fa fa-<name>\`: the codemod keeps that \`fa\` on each icon it converts (\`variant="fa"\`), which ${major} styles, but bestax's \`Icon\` given no \`variant\` writes \`fas fa-<name>\`, which ${major} doesn't, so for icons written from here on, ${INSTALL_FONT_AWESOME}, then either import \`css/v4-shims.min.css\` beside it, so the page's ${major} names keep working, or move them to the current names
|
|
181
|
+
return `${loads}, whose classes are \`fa fa-<name>\`: the codemod keeps that \`fa\` on each icon it converts (\`variant="fa"\`), which ${major} styles, but bestax's \`Icon\` given no \`variant\` writes \`fas fa-<name>\`, which ${major} doesn't, so for icons written from here on, ${INSTALL_FONT_AWESOME}, then either import \`css/v4-shims.min.css\` beside it, so the page's ${major} names keep working, or move them to the current names: \`fa-envelope-o\` is \`envelope\` with \`variant="regular"\`, and a brand's glyph (\`fa fa-github\`) needs \`variant="brands"\`, since 5 and later draw brands in a style of their own, and show a missing-glyph box for one under \`fa\` without the shims`;
|
|
179
182
|
}
|
|
180
183
|
if (major === 5) {
|
|
181
|
-
return `${loads}: ${ICON_LOADS_NO_FONT} and writes the \`fas fa-<name>\` classes 5 reads, so the \`<link>\` keeps working from the app's index.html; installed from npm, \`@fortawesome/fontawesome-free\` takes 6 or 7 (bestax-bulma's optional peer range is \`${FONT_AWESOME_PEER_RANGE}\`, and an older one fails \`npm install\` with ERESOLVE), which still read the 5
|
|
184
|
+
return `${loads}: ${ICON_LOADS_NO_FONT} and writes the \`fas fa-<name>\` classes 5 reads, so the \`<link>\` keeps working from the app's index.html; installed from npm, \`@fortawesome/fontawesome-free\` takes 6 or 7 (bestax-bulma's optional peer range is \`${FONT_AWESOME_PEER_RANGE}\`, and an older one fails \`npm install\` with ERESOLVE), which still read 5's names, many of them since renamed (\`search\` is \`magnifying-glass\`), but turned the handsets round: to keep the glyph the page shows, write 5's \`phone\` and \`phone-square\` as \`phone-flip\` and \`square-phone-flip\`, and 5's \`phone-alt\` and \`phone-square-alt\` as \`phone\` and \`square-phone\``;
|
|
182
185
|
}
|
|
183
186
|
if (major <= 7) {
|
|
184
187
|
return `${loads}: ${ICON_LOADS_NO_FONT}, so keep loading it once for the app, from a \`<link>\` in its index.html, or ${INSTALL_FONT_AWESOME}`;
|
|
@@ -212,16 +215,44 @@ export function extensionPackage(name) {
|
|
|
212
215
|
return name.replace(/^@[^/]+\//, '').toLowerCase();
|
|
213
216
|
}
|
|
214
217
|
/**
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
+
* A bulma-social class, captured as the brand it is for: the button color
|
|
219
|
+
* (`is-github`), and the text and background helpers in the brand's color and
|
|
220
|
+
* its two shades (`has-text-github-dark`). Each per-brand stylesheet it ships,
|
|
221
|
+
* `css/single/<brand>/<brand>.min.css` from 2 on, holds all three for its
|
|
222
|
+
* brand, read off each release from 2.0.0 to 3.2.0. Every brand here has one
|
|
223
|
+
* from 3.2.0: `slack`'s came in 2.1.0, `x`'s in 3.1.0 and `twitch`'s in 3.2.0.
|
|
218
224
|
*/
|
|
219
|
-
|
|
225
|
+
const SOCIAL_CLASS = new RegExp(`^(?:is-(${BULMA_SOCIAL.join('|')})|has-(?:text|background)-(${BULMA_SOCIAL.join('|')})(?:-dark|-light)?)$`);
|
|
226
|
+
/** The bulma-social brand a class is for (`github`), or null for any other. */
|
|
227
|
+
export function socialBrand(token) {
|
|
228
|
+
const match = SOCIAL_CLASS.exec(token);
|
|
229
|
+
return match ? (match[1] ?? match[2]) : null;
|
|
230
|
+
}
|
|
231
|
+
/** `a`, `a and b`, `a, b and c`. */
|
|
232
|
+
function inWords(items) {
|
|
233
|
+
return items.length > 1
|
|
234
|
+
? `${items.slice(0, -1).join(', ')} and ${items[items.length - 1]}`
|
|
235
|
+
: items[0];
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* bulma-social's note. It ships a stylesheet per brand beside the one with
|
|
239
|
+
* every brand, a few kB each against about 100 kB (3.2.0's `all.min.css` is
|
|
240
|
+
* 102 kB, its brands 3.6 to 4.6 kB), so the note names the files for the
|
|
241
|
+
* brands the page's markup shows, or the pattern when it shows none.
|
|
242
|
+
*/
|
|
243
|
+
function socialMessage(from, brands) {
|
|
244
|
+
const shown = brands.length > 0
|
|
245
|
+
? `this page's markup shows ${inWords(brands)}: ${inWords(brands.map(brand => `\`bulma-social/css/single/${brand}/${brand}.min.css\``))}`
|
|
246
|
+
: "this page's markup has no brand class, so only the ones a script of the page adds";
|
|
247
|
+
return `the page loads bulma-social, a Bulma extension for brand-colored buttons, ${from}, and bestax has no component for it: keep loading it once for the app, since its classes (\`is-twitter\`, \`is-github\` and the rest) style Bulma's \`.button\`, which bestax's \`Button\` renders, so they go on \`Button\` through \`className\`; it ships a stylesheet for each brand too, \`css/single/<brand>/<brand>.min.css\`, a few kB each against about 100 kB for every brand in \`css/all.min.css\`, so with \`bulma-social\` 3.2.0 or later from npm, the first release with a file for every brand, import only the brands the app shows from its entry (${shown}), or keep the \`<link>\` in its index.html`;
|
|
248
|
+
}
|
|
249
|
+
/** What a page's link to an extension leaves to do. */
|
|
250
|
+
export function extensionMessage(name, quoted, loads, css, facts = {}) {
|
|
251
|
+
const { covered = false, brands = [] } = facts;
|
|
220
252
|
const from = `from ${quoted.map(url => `\`${url}\``).join(' and ')}`;
|
|
221
253
|
const bare = extensionPackage(name);
|
|
222
|
-
if (bare === 'bulma-social')
|
|
223
|
-
return
|
|
224
|
-
}
|
|
254
|
+
if (bare === 'bulma-social')
|
|
255
|
+
return socialMessage(from, brands);
|
|
225
256
|
if (bare === 'bulma-extensions') {
|
|
226
257
|
return `the page loads bulma-extensions, a bundle of Bulma extensions, ${from}: bestax has components for several of them (the bestax-migrate skill's \`references/bulma-classes/unmappables.md\` lists which), so render those in place of the extensions' markup and scripts, and keep loading the bundle only while the app still uses one bestax has no component for`;
|
|
227
258
|
}
|
|
@@ -23,8 +23,9 @@
|
|
|
23
23
|
* file, so the CLI's manifest step reads the module the same way too.
|
|
24
24
|
*
|
|
25
25
|
* Nothing is ever overwritten: a module already beside the page stops it
|
|
26
|
-
* (`html-file:exists`), so a second run changes nothing, and the
|
|
27
|
-
* stays as it was. A
|
|
26
|
+
* (`html-file:exists`), so a second run on the page changes nothing, and the
|
|
27
|
+
* page itself stays as it was. A re-run a TODO asks for is one on the module,
|
|
28
|
+
* which is what each says. A page with no Bulma component class writes nothing (a
|
|
28
29
|
* Vite `index.html` is a page like any other), and a server template
|
|
29
30
|
* (`{{`, `{%`, `<?php`, `<%`) is refused rather than read as HTML.
|
|
30
31
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../../src/sources/bulma-classes/html.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../../src/sources/bulma-classes/html.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA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