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.
Files changed (57) hide show
  1. package/README.md +12 -10
  2. package/dist/sources/_shared/imports.d.ts +28 -0
  3. package/dist/sources/_shared/imports.d.ts.map +1 -1
  4. package/dist/sources/_shared/imports.js +62 -0
  5. package/dist/sources/_shared/jsx-utils.d.ts +17 -0
  6. package/dist/sources/_shared/jsx-utils.d.ts.map +1 -1
  7. package/dist/sources/_shared/jsx-utils.js +49 -1
  8. package/dist/sources/_shared/props.d.ts +17 -0
  9. package/dist/sources/_shared/props.d.ts.map +1 -1
  10. package/dist/sources/_shared/props.js +72 -3
  11. package/dist/sources/_shared/specials-utils.d.ts +49 -3
  12. package/dist/sources/_shared/specials-utils.d.ts.map +1 -1
  13. package/dist/sources/_shared/specials-utils.js +165 -5
  14. package/dist/sources/_shared/viewports.d.ts +17 -0
  15. package/dist/sources/_shared/viewports.d.ts.map +1 -0
  16. package/dist/sources/_shared/viewports.js +32 -0
  17. package/dist/sources/bloomer/deps.d.ts +17 -0
  18. package/dist/sources/bloomer/deps.d.ts.map +1 -0
  19. package/dist/sources/bloomer/deps.js +119 -0
  20. package/dist/sources/bloomer/index.d.ts +3 -0
  21. package/dist/sources/bloomer/index.d.ts.map +1 -0
  22. package/dist/sources/bloomer/index.js +10 -0
  23. package/dist/sources/bloomer/mapping.d.ts +84 -0
  24. package/dist/sources/bloomer/mapping.d.ts.map +1 -0
  25. package/dist/sources/bloomer/mapping.js +988 -0
  26. package/dist/sources/bloomer/responsive.d.ts +39 -0
  27. package/dist/sources/bloomer/responsive.d.ts.map +1 -0
  28. package/dist/sources/bloomer/responsive.js +259 -0
  29. package/dist/sources/bloomer/specials.d.ts +19 -0
  30. package/dist/sources/bloomer/specials.d.ts.map +1 -0
  31. package/dist/sources/bloomer/specials.js +774 -0
  32. package/dist/sources/bloomer/styles.d.ts +13 -0
  33. package/dist/sources/bloomer/styles.d.ts.map +1 -0
  34. package/dist/sources/bloomer/styles.js +17 -0
  35. package/dist/sources/bloomer/transform.d.ts +27 -0
  36. package/dist/sources/bloomer/transform.d.ts.map +1 -0
  37. package/dist/sources/bloomer/transform.js +826 -0
  38. package/dist/sources/rbx/mapping.d.ts.map +1 -1
  39. package/dist/sources/rbx/mapping.js +20 -18
  40. package/dist/sources/rbx/responsive.d.ts.map +1 -1
  41. package/dist/sources/rbx/responsive.js +1 -31
  42. package/dist/sources/rbx/specials.d.ts.map +1 -1
  43. package/dist/sources/rbx/specials.js +36 -98
  44. package/dist/sources/rbx/transform.d.ts.map +1 -1
  45. package/dist/sources/rbx/transform.js +168 -78
  46. package/dist/sources/react-bulma-components/mapping.js +4 -4
  47. package/dist/sources/react-bulma-components/responsive.d.ts.map +1 -1
  48. package/dist/sources/react-bulma-components/responsive.js +2 -14
  49. package/dist/sources/react-bulma-components/specials.d.ts.map +1 -1
  50. package/dist/sources/react-bulma-components/specials.js +45 -18
  51. package/dist/sources/react-bulma-components/transform.d.ts.map +1 -1
  52. package/dist/sources/react-bulma-components/transform.js +168 -78
  53. package/dist/sources/registry.d.ts.map +1 -1
  54. package/dist/sources/registry.js +2 -0
  55. package/dist/types.d.ts +11 -0
  56. package/dist/types.d.ts.map +1 -1
  57. 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"}