bestax-migrate 2.2.1 → 2.3.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/README.md +12 -10
- package/dist/sources/_shared/imports.d.ts +28 -0
- package/dist/sources/_shared/imports.d.ts.map +1 -1
- package/dist/sources/_shared/imports.js +62 -0
- package/dist/sources/_shared/jsx-utils.d.ts +17 -0
- package/dist/sources/_shared/jsx-utils.d.ts.map +1 -1
- package/dist/sources/_shared/jsx-utils.js +49 -1
- package/dist/sources/_shared/props.d.ts +17 -0
- package/dist/sources/_shared/props.d.ts.map +1 -1
- package/dist/sources/_shared/props.js +72 -3
- package/dist/sources/_shared/specials-utils.d.ts +49 -3
- package/dist/sources/_shared/specials-utils.d.ts.map +1 -1
- package/dist/sources/_shared/specials-utils.js +165 -5
- package/dist/sources/_shared/viewports.d.ts +17 -0
- package/dist/sources/_shared/viewports.d.ts.map +1 -0
- package/dist/sources/_shared/viewports.js +32 -0
- package/dist/sources/bloomer/deps.d.ts +17 -0
- package/dist/sources/bloomer/deps.d.ts.map +1 -0
- package/dist/sources/bloomer/deps.js +119 -0
- package/dist/sources/bloomer/index.d.ts +3 -0
- package/dist/sources/bloomer/index.d.ts.map +1 -0
- package/dist/sources/bloomer/index.js +10 -0
- package/dist/sources/bloomer/mapping.d.ts +84 -0
- package/dist/sources/bloomer/mapping.d.ts.map +1 -0
- package/dist/sources/bloomer/mapping.js +988 -0
- package/dist/sources/bloomer/responsive.d.ts +39 -0
- package/dist/sources/bloomer/responsive.d.ts.map +1 -0
- package/dist/sources/bloomer/responsive.js +259 -0
- package/dist/sources/bloomer/specials.d.ts +19 -0
- package/dist/sources/bloomer/specials.d.ts.map +1 -0
- package/dist/sources/bloomer/specials.js +774 -0
- package/dist/sources/bloomer/styles.d.ts +13 -0
- package/dist/sources/bloomer/styles.d.ts.map +1 -0
- package/dist/sources/bloomer/styles.js +17 -0
- package/dist/sources/bloomer/transform.d.ts +27 -0
- package/dist/sources/bloomer/transform.d.ts.map +1 -0
- package/dist/sources/bloomer/transform.js +826 -0
- package/dist/sources/rbx/mapping.d.ts.map +1 -1
- package/dist/sources/rbx/mapping.js +20 -18
- package/dist/sources/rbx/responsive.d.ts.map +1 -1
- package/dist/sources/rbx/responsive.js +1 -31
- package/dist/sources/rbx/specials.d.ts.map +1 -1
- package/dist/sources/rbx/specials.js +36 -98
- package/dist/sources/rbx/transform.d.ts.map +1 -1
- package/dist/sources/rbx/transform.js +168 -78
- package/dist/sources/react-bulma-components/mapping.js +4 -4
- package/dist/sources/react-bulma-components/responsive.d.ts.map +1 -1
- package/dist/sources/react-bulma-components/responsive.js +2 -14
- package/dist/sources/react-bulma-components/specials.d.ts.map +1 -1
- package/dist/sources/react-bulma-components/specials.js +45 -18
- package/dist/sources/react-bulma-components/transform.d.ts.map +1 -1
- package/dist/sources/react-bulma-components/transform.js +168 -78
- package/dist/sources/registry.d.ts.map +1 -1
- package/dist/sources/registry.js +2 -0
- package/dist/types.d.ts +11 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +4 -3
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stylesheet migration for bloomer apps.
|
|
3
|
+
*
|
|
4
|
+
* Same shared factory as every other source — the Bulma 0.9 → v1 rewriting is
|
|
5
|
+
* identical. What differs is that bloomer ships no stylesheet of its own: it
|
|
6
|
+
* never depended on Bulma, and its README tells the app to install `bulma`
|
|
7
|
+
* and import it directly. So there is no source root stylesheet to replace
|
|
8
|
+
* (`rootStylesheetSuffixes` is empty, which the factory tolerates), and the
|
|
9
|
+
* pass only ever rewrites the app's own `bulma/…` imports — which, coming
|
|
10
|
+
* from the 0.6 era, are older than anything the 0.9 → v1 guide describes.
|
|
11
|
+
*/
|
|
12
|
+
export declare const transformStyles: import("../../types.js").StylesTransform;
|
|
13
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/sources/bloomer/styles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,eAAO,MAAM,eAAe,0CAI1B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stylesheet migration for bloomer apps.
|
|
3
|
+
*
|
|
4
|
+
* Same shared factory as every other source — the Bulma 0.9 → v1 rewriting is
|
|
5
|
+
* identical. What differs is that bloomer ships no stylesheet of its own: it
|
|
6
|
+
* never depended on Bulma, and its README tells the app to install `bulma`
|
|
7
|
+
* and import it directly. So there is no source root stylesheet to replace
|
|
8
|
+
* (`rootStylesheetSuffixes` is empty, which the factory tolerates), and the
|
|
9
|
+
* pass only ever rewrites the app's own `bulma/…` imports — which, coming
|
|
10
|
+
* from the 0.6 era, are older than anything the 0.9 → v1 guide describes.
|
|
11
|
+
*/
|
|
12
|
+
import { makeStylesTransform } from '../_shared/make-styles-transform.js';
|
|
13
|
+
export const transformStyles = makeStylesTransform({
|
|
14
|
+
packageName: 'bloomer',
|
|
15
|
+
guideUrl: 'https://bestax.io/docs/guides/getting-started/migration/bloomer',
|
|
16
|
+
rootStylesheetSuffixes: [],
|
|
17
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The bloomer (0.6) → @allxsmith/bestax-bulma transform.
|
|
3
|
+
*
|
|
4
|
+
* Passes, in order:
|
|
5
|
+
* 1. resolve imports (named/namespace) and `const { Item } = Card`-style
|
|
6
|
+
* destructuring into canonical bloomer component paths
|
|
7
|
+
* 2. per-element: structural special → rename → helper flattening
|
|
8
|
+
* (isDisplay / isHidden / Column sizes) → component prop map →
|
|
9
|
+
* universal helper props
|
|
10
|
+
* 3. rewrite imports: drop bloomer, add one merged bestax-bulma import; keep
|
|
11
|
+
* a trimmed bloomer import (with a TODO) only for components that have
|
|
12
|
+
* no bestax equivalent (Tile, the Nav family, …)
|
|
13
|
+
*
|
|
14
|
+
* Anything unsafe gets a `// TODO(bestax-migrate)` comment on the enclosing
|
|
15
|
+
* statement plus an entry in the run report.
|
|
16
|
+
*
|
|
17
|
+
* Next to the bloomer transform this is the plain case: bloomer has no helper
|
|
18
|
+
* props that become wrapping components, no stylesheet of its own and no
|
|
19
|
+
* extension packages — so there is no wrapping pass and the CSS pass only
|
|
20
|
+
* ever sees the app's own Bulma import. Every bloomer export is a flat name,
|
|
21
|
+
* and most of them rename onto a dotted bestax compound; the rename and
|
|
22
|
+
* value-reference passes below build those from the mapping's `target`.
|
|
23
|
+
*/
|
|
24
|
+
import type { API, FileInfo } from 'jscodeshift';
|
|
25
|
+
import type { TransformOptions } from '../../types.js';
|
|
26
|
+
export default function transform(fileInfo: FileInfo, api: API, options?: TransformOptions): string | undefined;
|
|
27
|
+
//# sourceMappingURL=transform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../../src/sources/bloomer/transform.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAuDvD,MAAM,CAAC,OAAO,UAAU,SAAS,CAC/B,QAAQ,EAAE,QAAQ,EAClB,GAAG,EAAE,GAAG,EACR,OAAO,GAAE,gBAAqB,GAC7B,MAAM,GAAG,SAAS,CA06BpB"}
|