@planningcenter/tapestry-migration-cli 2.6.0-rc.1 → 3.0.0-rc.3

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.
@@ -2725,8 +2725,8 @@ const tokens = {
2725
2725
  "--t-border-radius-lg": "8px",
2726
2726
  "--t-border-radius-xl": "16px",
2727
2727
  "--t-border-radius-round": "56px",
2728
- "--t-border-radius-default": "4px",
2729
- "--t-border-width-default": "1px",
2728
+ "--t-border-radius": "4px",
2729
+ "--t-border-width": "1px",
2730
2730
  "--t-border-width-thick": "2px",
2731
2731
  "--t-border-size-default": "1px",
2732
2732
  "--t-border-size-thick": "2px",
@@ -2771,13 +2771,13 @@ const tokens = {
2771
2771
  "--t-avatar-size-48": "48px",
2772
2772
  "--t-avatar-size-72": "72px",
2773
2773
  "--t-avatar-size-112": "112px",
2774
- "--t-text-color-default-headline": "hsl(0, 0%, 12%)",
2775
- "--t-text-color-default-primary": "hsl(0, 0%, 24%)",
2776
- "--t-text-color-default-secondary": "hsl(0, 0%, 42%)",
2777
- "--t-text-color-default-disabled": "hsl(0, 0%, 81%)",
2778
- "--t-text-color-default-placeholder": "hsl(0, 0%, 58%)",
2779
- "--t-text-color-default-inverted": "hsl(0, 0%, 100%)",
2780
- "--t-text-color-interaction-primary": "hsl(204, 100%, 40%)",
2774
+ "--t-text-color-headline": "hsl(0, 0%, 12%)",
2775
+ "--t-text-color": "hsl(0, 0%, 24%)",
2776
+ "--t-text-color-secondary": "hsl(0, 0%, 42%)",
2777
+ "--t-text-color-disabled": "hsl(0, 0%, 81%)",
2778
+ "--t-text-color-placeholder": "hsl(0, 0%, 58%)",
2779
+ "--t-text-color-inverted": "hsl(0, 0%, 100%)",
2780
+ "--t-text-color-interaction": "hsl(204, 100%, 40%)",
2781
2781
  "--t-text-color-interaction-hover": "hsl(204, 100%, 35%)",
2782
2782
  "--t-text-color-interaction-active": "hsl(204, 100%, 30%)",
2783
2783
  "--t-text-color-interaction-visited": "hsl(204, 100%, 30%)",
@@ -2808,21 +2808,21 @@ const tokens = {
2808
2808
  "--t-text-color-tag-bold-pink": "hsl(327, 88%, 20%)",
2809
2809
  "--t-text-color-tag-bold-purple": "hsl(268, 71%, 27%)",
2810
2810
  "--t-text-color-tag-bold-magenta": "hsl(285, 71%, 20%)",
2811
- "--t-icon-color-default-primary": "hsl(0, 0%, 24%)",
2812
- "--t-icon-color-default-secondary": "hsl(0, 0%, 42%)",
2813
- "--t-icon-color-default-dim": "hsl(0, 0%, 58%)",
2814
- "--t-icon-color-default-disabled": "hsl(0, 0%, 81%)",
2815
- "--t-icon-color-default-inverted": "hsl(0, 0%, 100%)",
2816
- "--t-icon-color-status-neutral-primary": "hsl(0, 0%, 42%)",
2811
+ "--t-icon-color": "hsl(0, 0%, 24%)",
2812
+ "--t-icon-color-secondary": "hsl(0, 0%, 42%)",
2813
+ "--t-icon-color-dim": "hsl(0, 0%, 58%)",
2814
+ "--t-icon-color-disabled": "hsl(0, 0%, 81%)",
2815
+ "--t-icon-color-inverted": "hsl(0, 0%, 100%)",
2816
+ "--t-icon-color-status-neutral": "hsl(0, 0%, 42%)",
2817
2817
  "--t-icon-color-status-neutral-secondary": "hsl(0, 0%, 58%)",
2818
2818
  "--t-icon-color-status-neutral-bold": "hsl(0, 0%, 24%)",
2819
2819
  "--t-icon-color-status-neutral-dark": "hsl(0, 0%, 24%)",
2820
- "--t-icon-color-status-info-primary": "hsl(204, 100%, 40%)",
2820
+ "--t-icon-color-status-info": "hsl(204, 100%, 40%)",
2821
2821
  "--t-icon-color-status-info-secondary": "hsl(204, 100%, 40%)",
2822
- "--t-icon-color-status-success-primary": "hsl(96, 57%, 33%)",
2822
+ "--t-icon-color-status-success": "hsl(96, 57%, 33%)",
2823
2823
  "--t-icon-color-status-success-secondary": "hsl(97, 57%, 40%)",
2824
- "--t-icon-color-status-warning-primary": "hsl(42, 84%, 49%)",
2825
- "--t-icon-color-status-error-primary": "hsl(8, 60%, 47%)",
2824
+ "--t-icon-color-status-warning": "hsl(42, 84%, 49%)",
2825
+ "--t-icon-color-status-error": "hsl(8, 60%, 47%)",
2826
2826
  "--t-fill-color-neutral-100": "hsl(0, 0%, 100%)",
2827
2827
  "--t-fill-color-neutral-000": "hsl(0, 0%, 12%)",
2828
2828
  "--t-fill-color-neutral-010": "hsl(0, 0%, 24%)",
@@ -2835,36 +2835,41 @@ const tokens = {
2835
2835
  "--t-fill-color-neutral-070": "hsl(0, 0%, 95%)",
2836
2836
  "--t-fill-color-neutral-080": "hsl(0, 0%, 97%)",
2837
2837
  "--t-fill-color-neutral-090": "hsl(0, 0%, 98%)",
2838
- "--t-fill-color-interaction-default": "hsl(204, 100%, 40%)",
2838
+ "--t-fill-color-interaction": "hsl(204, 100%, 40%)",
2839
2839
  "--t-fill-color-interaction-hover": "hsl(204, 100%, 35%)",
2840
2840
  "--t-fill-color-interaction-active": "hsl(204, 100%, 30%)",
2841
2841
  "--t-fill-color-interaction-disabled": "hsl(0, 0%, 81%)",
2842
2842
  "--t-fill-color-control-neutral-off": "hsl(0, 0%, 58%)",
2843
2843
  "--t-fill-color-control-neutral-on": "hsl(0, 0%, 24%)",
2844
- "--t-fill-color-control-primary": "hsl(204, 100%, 40%)",
2844
+ "--t-fill-color-control": "hsl(204, 100%, 40%)",
2845
2845
  "--t-fill-color-control-secondary": "hsl(97, 57%, 40%)",
2846
2846
  "--t-fill-color-control-error": "hsl(8, 60%, 47%)",
2847
2847
  "--t-fill-color-control-disabled": "hsl(0, 0%, 81%)",
2848
- "--t-fill-color-status-neutral-solid": "hsl(0, 0%, 42%)",
2848
+ "--t-fill-color-status-neutral": "hsl(0, 0%, 42%)",
2849
2849
  "--t-fill-color-status-neutral-ghost": "hsl(0, 0%, 93%)",
2850
2850
  "--t-fill-color-status-neutral-dim": "hsl(0, 0%, 97%)",
2851
- "--t-fill-color-status-info-solid": "hsl(204, 100%, 40%)",
2851
+ "--t-fill-color-status-neutral-solid": "hsl(0, 0%, 42%)",
2852
+ "--t-fill-color-status-info": "hsl(204, 100%, 40%)",
2852
2853
  "--t-fill-color-status-info-ghost": "hsl(203, 94%, 94%)",
2853
2854
  "--t-fill-color-status-info-dim": "hsl(204, 100%, 97%)",
2854
- "--t-fill-color-status-success-solid": "hsl(96, 57%, 33%)",
2855
+ "--t-fill-color-status-info-solid": "hsl(204, 100%, 40%)",
2856
+ "--t-fill-color-status-success": "hsl(96, 57%, 33%)",
2855
2857
  "--t-fill-color-status-success-ghost": "hsl(97, 57%, 90%)",
2856
2858
  "--t-fill-color-status-success-dim": "hsl(96, 60%, 95%)",
2857
- "--t-fill-color-status-warning-solid": "hsl(42, 84%, 63%)",
2859
+ "--t-fill-color-status-success-solid": "hsl(96, 57%, 33%)",
2860
+ "--t-fill-color-status-warning": "hsl(42, 84%, 63%)",
2858
2861
  "--t-fill-color-status-warning-ghost": "hsl(42, 87%, 94%)",
2859
2862
  "--t-fill-color-status-warning-dim": "hsl(42, 87%, 97%)",
2860
- "--t-fill-color-status-error-solid": "hsl(8, 60%, 47%)",
2863
+ "--t-fill-color-status-warning-solid": "hsl(42, 84%, 63%)",
2864
+ "--t-fill-color-status-error": "hsl(8, 60%, 47%)",
2861
2865
  "--t-fill-color-status-error-ghost": "hsl(9, 59%, 93%)",
2862
2866
  "--t-fill-color-status-error-dim": "hsl(7, 60%, 97%)",
2867
+ "--t-fill-color-status-error-solid": "hsl(8, 60%, 47%)",
2863
2868
  "--t-fill-color-alert-info": "hsl(204, 94%, 49%)",
2864
2869
  "--t-fill-color-alert-success": "hsl(122, 60%, 41%)",
2865
2870
  "--t-fill-color-alert-warning": "hsl(43, 96%, 58%)",
2866
2871
  "--t-fill-color-alert-error": "hsl(4, 77%, 59%)",
2867
- "--t-fill-color-tooltip-primary": "hsla(0, 0%, 12%, 0.9)",
2872
+ "--t-fill-color-tooltip": "hsla(0, 0%, 12%, 0.9)",
2868
2873
  "--t-fill-color-product-accounts-010": "hsl(212, 54%, 93%)",
2869
2874
  "--t-fill-color-product-accounts-020": "hsl(209, 53%, 90%)",
2870
2875
  "--t-fill-color-product-accounts-030": "hsl(210, 56%, 70%)",
@@ -2945,7 +2950,7 @@ const tokens = {
2945
2950
  "--t-fill-color-product-services-060": "hsl(89, 62%, 31%)",
2946
2951
  "--t-fill-color-product-services-070": "hsl(89, 62%, 26%)",
2947
2952
  "--t-fill-color-product-services-080": "hsl(89, 63%, 21%)",
2948
- "--t-fill-color-product-staff-base": "hsl(328, 100%, 45%)",
2953
+ "--t-fill-color-product-staff": "hsl(328, 100%, 45%)",
2949
2954
  "--t-fill-color-product-staff-dark": "hsl(328, 100%, 38%)",
2950
2955
  "--t-fill-color-product-staff-darker": "hsl(328, 100%, 33%)",
2951
2956
  "--t-fill-color-product-accounts-gradient-brand": "linear-gradient(135deg, hsl(203, 86%, 57%), hsl(220, 76%, 57%))",
@@ -3025,36 +3030,44 @@ const tokens = {
3025
3030
  "--t-fill-color-tag-indigo-020": "hsl(233, 79%, 87%)",
3026
3031
  "--t-fill-color-tag-indigo-030": "hsl(233, 77%, 81%)",
3027
3032
  "--t-fill-color-tag-indigo-040": "hsl(236, 79%, 74%)",
3028
- "--t-fill-color-button-neutral-solid-default": "hsl(0, 0%, 93%)",
3033
+ "--t-fill-color-button-neutral-solid": "hsl(0, 0%, 93%)",
3029
3034
  "--t-fill-color-button-neutral-solid-hover": "hsl(0, 0%, 88%)",
3030
3035
  "--t-fill-color-button-neutral-solid-active": "hsl(0, 0%, 81%)",
3031
3036
  "--t-fill-color-button-neutral-solid-disabled": "hsl(0, 0%, 95%)",
3032
- "--t-fill-color-button-neutral-outline-dim-default": "hsla(0, 0%, 100%, 0)",
3033
- "--t-fill-color-button-neutral-outline-dim-hover": "hsl(0, 0%, 95%)",
3034
- "--t-fill-color-button-neutral-outline-dim-active": "hsl(0, 0%, 93%)",
3035
- "--t-fill-color-button-neutral-outline-dim-disabled": "hsl(0, 0%, 98%)",
3036
- "--t-fill-color-button-neutral-outline-dim-disabled-solid": "hsl(0, 0%, 98%)",
3037
- "--t-fill-color-button-neutral-ghost-default": "hsla(0, 0%, 100%, 0)",
3037
+ "--t-fill-color-button-neutral-outline": "hsla(0, 0%, 100%, 0)",
3038
+ "--t-fill-color-button-neutral-outline-hover": "hsl(0, 0%, 95%)",
3039
+ "--t-fill-color-button-neutral-outline-active": "hsl(0, 0%, 93%)",
3040
+ "--t-fill-color-button-neutral-outline-disabled": "hsl(0, 0%, 98%)",
3041
+ "--t-fill-color-button-neutral-ghost": "hsla(0, 0%, 100%, 0)",
3038
3042
  "--t-fill-color-button-neutral-ghost-hover": "hsl(0, 0%, 95%)",
3039
3043
  "--t-fill-color-button-neutral-ghost-active": "hsl(0, 0%, 93%)",
3040
3044
  "--t-fill-color-button-neutral-ghost-disabled": "hsla(0, 0%, 100%, 0)",
3041
3045
  "--t-fill-color-button-neutral-ghost-disabled-solid": "hsl(0, 0%, 98%)",
3042
- "--t-fill-color-button-neutral-responsive-header-default": "hsla(0, 0%, 0%, 0.1)",
3046
+ "--t-fill-color-button-neutral-responsive-header": "hsla(0, 0%, 0%, 0.1)",
3043
3047
  "--t-fill-color-button-neutral-responsive-header-hover": "hsla(0, 0%, 0%, 0.2)",
3044
3048
  "--t-fill-color-button-neutral-responsive-header-active": "hsla(0, 0%, 0%, 0.3)",
3045
3049
  "--t-fill-color-button-neutral-responsive-header-disabled": "hsla(0, 0%, 0%, 0.05)",
3046
- "--t-fill-color-button-interaction-solid-default": "hsl(204, 100%, 40%)",
3050
+ "--t-fill-color-button-neutral-outline-dim-default": "hsla(0, 0%, 100%, 0)",
3051
+ "--t-fill-color-button-neutral-outline-dim-hover": "hsl(0, 0%, 95%)",
3052
+ "--t-fill-color-button-neutral-outline-dim-active": "hsl(0, 0%, 93%)",
3053
+ "--t-fill-color-button-neutral-outline-dim-disabled": "hsl(0, 0%, 98%)",
3054
+ "--t-fill-color-button-neutral-outline-dim-disabled-solid": "hsl(0, 0%, 98%)",
3055
+ "--t-fill-color-button-interaction-solid": "hsl(204, 100%, 40%)",
3047
3056
  "--t-fill-color-button-interaction-solid-hover": "hsl(204, 100%, 35%)",
3048
3057
  "--t-fill-color-button-interaction-solid-active": "hsl(204, 100%, 30%)",
3049
3058
  "--t-fill-color-button-interaction-solid-disabled": "hsl(0, 0%, 95%)",
3059
+ "--t-fill-color-button-interaction-outline": "hsla(0, 0%, 100%, 0)",
3060
+ "--t-fill-color-button-interaction-outline-hover": "hsl(204, 100%, 97%)",
3061
+ "--t-fill-color-button-interaction-outline-active": "hsl(203, 94%, 94%)",
3062
+ "--t-fill-color-button-interaction-outline-disabled": "hsl(0, 0%, 98%)",
3063
+ "--t-fill-color-button-interaction-ghost": "hsla(0, 0%, 100%, 0)",
3064
+ "--t-fill-color-button-interaction-ghost-hover": "hsl(204, 100%, 97%)",
3065
+ "--t-fill-color-button-interaction-ghost-active": "hsl(203, 94%, 94%)",
3066
+ "--t-fill-color-button-interaction-ghost-disabled": "hsla(0, 0%, 100%, 0)",
3050
3067
  "--t-fill-color-button-interaction-outline-dim-default": "hsla(0, 0%, 100%, 0)",
3051
3068
  "--t-fill-color-button-interaction-outline-dim-hover": "hsl(204, 100%, 97%)",
3052
3069
  "--t-fill-color-button-interaction-outline-dim-active": "hsl(203, 94%, 94%)",
3053
3070
  "--t-fill-color-button-interaction-outline-dim-disabled": "hsl(0, 0%, 98%)",
3054
- "--t-fill-color-button-interaction-ghost-default": "hsla(0, 0%, 100%, 0)",
3055
- "--t-fill-color-button-interaction-ghost-hover": "hsl(204, 100%, 97%)",
3056
- "--t-fill-color-button-interaction-ghost-active": "hsl(203, 94%, 94%)",
3057
- "--t-fill-color-button-interaction-ghost-disabled": "hsla(0, 0%, 100%, 0)",
3058
3071
  "--t-fill-color-button-create-solid-default": "hsl(96, 57%, 33%)",
3059
3072
  "--t-fill-color-button-create-solid-hover": "hsl(97, 57%, 28%)",
3060
3073
  "--t-fill-color-button-create-solid-active": "hsl(97, 57%, 23%)",
@@ -3063,19 +3076,23 @@ const tokens = {
3063
3076
  "--t-fill-color-button-create-ghost-hover": "hsl(96, 60%, 95%)",
3064
3077
  "--t-fill-color-button-create-ghost-active": "hsl(97, 57%, 90%)",
3065
3078
  "--t-fill-color-button-create-ghost-disabled": "hsla(0, 0%, 100%, 0)",
3066
- "--t-fill-color-button-delete-solid-default": "hsl(8, 60%, 47%)",
3079
+ "--t-fill-color-button-delete-solid": "hsl(8, 60%, 47%)",
3067
3080
  "--t-fill-color-button-delete-solid-hover": "hsl(8, 60%, 45%)",
3068
3081
  "--t-fill-color-button-delete-solid-active": "hsl(8, 60%, 40%)",
3069
3082
  "--t-fill-color-button-delete-solid-disabled": "hsl(0, 0%, 95%)",
3083
+ "--t-fill-color-button-delete-outline": "hsla(0, 0%, 100%, 0)",
3084
+ "--t-fill-color-button-delete-outline-hover": "hsl(7, 60%, 97%)",
3085
+ "--t-fill-color-button-delete-outline-active": "hsl(9, 59%, 93%)",
3086
+ "--t-fill-color-button-delete-outline-disabled": "hsl(0, 0%, 98%)",
3087
+ "--t-fill-color-button-delete-ghost": "hsla(0, 0%, 100%, 0)",
3088
+ "--t-fill-color-button-delete-ghost-hover": "hsl(7, 60%, 97%)",
3089
+ "--t-fill-color-button-delete-ghost-active": "hsl(9, 59%, 93%)",
3090
+ "--t-fill-color-button-delete-ghost-disabled": "hsla(0, 0%, 100%, 0)",
3070
3091
  "--t-fill-color-button-delete-outline-dim-default": "hsla(0, 0%, 100%, 0)",
3071
3092
  "--t-fill-color-button-delete-outline-dim-hover": "hsl(7, 60%, 97%)",
3072
3093
  "--t-fill-color-button-delete-outline-dim-active": "hsl(9, 59%, 93%)",
3073
3094
  "--t-fill-color-button-delete-outline-dim-disabled": "hsl(0, 0%, 98%)",
3074
- "--t-fill-color-button-delete-ghost-default": "hsla(0, 0%, 100%, 0)",
3075
- "--t-fill-color-button-delete-ghost-hover": "hsl(7, 60%, 97%)",
3076
- "--t-fill-color-button-delete-ghost-active": "hsl(9, 59%, 93%)",
3077
- "--t-fill-color-button-delete-ghost-disabled": "hsla(0, 0%, 100%, 0)",
3078
- "--t-fill-color-button-pill-default": "hsl(0, 0%, 93%)",
3095
+ "--t-fill-color-button-pill": "hsl(0, 0%, 93%)",
3079
3096
  "--t-fill-color-button-pill-hover": "hsl(0, 0%, 88%)",
3080
3097
  "--t-fill-color-button-pill-active": "hsl(0, 0%, 88%)",
3081
3098
  "--t-fill-color-button-pill-disabled": "hsl(0, 0%, 93%)",
@@ -3108,13 +3125,13 @@ const tokens = {
3108
3125
  "--t-fill-color-transparency-dark-static-090": "hsla(0, 0%, 0%, 0.9)",
3109
3126
  "--t-surface-color-card": "hsl(0, 0%, 100%)",
3110
3127
  "--t-surface-color-canvas": "hsl(0, 0%, 100%)",
3111
- "--t-border-color-default-base": "hsl(0, 0%, 88%)",
3112
- "--t-border-color-default-dark": "hsl(0, 0%, 81%)",
3113
- "--t-border-color-default-darker": "hsl(0, 0%, 68%)",
3114
- "--t-border-color-default-darkest": "hsl(0, 0%, 58%)",
3115
- "--t-border-color-default-disabled": "hsl(0, 0%, 88%)",
3116
- "--t-border-color-default-dim": "hsl(0, 0%, 95%)",
3117
- "--t-border-color-default-white": "hsl(0, 0%, 100%)",
3128
+ "--t-border-color": "hsl(0, 0%, 88%)",
3129
+ "--t-border-color-dark": "hsl(0, 0%, 81%)",
3130
+ "--t-border-color-darker": "hsl(0, 0%, 68%)",
3131
+ "--t-border-color-darkest": "hsl(0, 0%, 58%)",
3132
+ "--t-border-color-disabled": "hsl(0, 0%, 88%)",
3133
+ "--t-border-color-dim": "hsl(0, 0%, 95%)",
3134
+ "--t-border-color-white": "hsl(0, 0%, 100%)",
3118
3135
  "--t-border-color-status-neutral": "hsl(0, 0%, 58%)",
3119
3136
  "--t-border-color-status-info": "hsl(204, 100%, 40%)",
3120
3137
  "--t-border-color-status-success": "hsl(97, 57%, 40%)",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@planningcenter/tapestry-migration-cli",
3
- "version": "2.6.0-rc.1",
3
+ "version": "3.0.0-rc.3",
4
4
  "description": "CLI tool for Tapestry migrations",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -51,5 +51,5 @@
51
51
  "publishConfig": {
52
52
  "access": "public"
53
53
  },
54
- "gitHead": "3a70dfe425ce2ed9b17d5226ef57833173d15125"
54
+ "gitHead": "011db79d39979086a0d8ad4622e008efe2d36778"
55
55
  }
@@ -30,7 +30,8 @@ export default function Test() {
30
30
  expect(result).toContain(
31
31
  'import { Button, Tooltip } from "@planningcenter/tapestry-react"'
32
32
  )
33
- expect(result).toContain('<Tooltip {...{ title: "Save this item" }}>')
33
+ expect(result).toContain('<Tooltip {...{ title: "Save this item" }}')
34
+ expect(result).toContain("refAsInnerRef={false}")
34
35
  expect(result).toContain("<Button>Save</Button>")
35
36
  expect(result).toContain("</Tooltip>")
36
37
  expect(result).not.toContain("tooltip=")
@@ -47,7 +48,8 @@ export default function Test() {
47
48
 
48
49
  const result = applyTransform(input)
49
50
 
50
- expect(result).toContain('<Tooltip {...{ title: "Save this item" }}>')
51
+ expect(result).toContain('<Tooltip {...{ title: "Save this item" }}')
52
+ expect(result).toContain("refAsInnerRef={false}")
51
53
  expect(result).toContain("<Button>Save</Button>")
52
54
  expect(result).not.toContain("tooltip=")
53
55
  })
@@ -63,9 +65,8 @@ export default function Test() {
63
65
 
64
66
  const result = applyTransform(input)
65
67
 
66
- expect(result).toContain(
67
- '<Tooltip {...{text: "Save", placement: "top"}}>'
68
- )
68
+ expect(result).toContain('<Tooltip {...{text: "Save", placement: "top"}}')
69
+ expect(result).toContain("refAsInnerRef={false}")
69
70
  expect(result).toContain("<Button>Save</Button>")
70
71
  expect(result).not.toContain("tooltip=")
71
72
  })
@@ -81,7 +82,8 @@ export default function Test() {
81
82
 
82
83
  const result = applyTransform(input)
83
84
 
84
- expect(result).toContain('<Tooltip {...{title: "Help"}}>')
85
+ expect(result).toContain('<Tooltip {...{title: "Help"}}')
86
+ expect(result).toContain("refAsInnerRef={false}")
85
87
  expect(result).toContain(
86
88
  '<Button variant="primary" onClick={handler} disabled>Save</Button>'
87
89
  )
@@ -99,7 +101,8 @@ export default function Test() {
99
101
 
100
102
  const result = applyTransform(input)
101
103
 
102
- expect(result).toContain('<Tooltip {...{title: "Icon button"}}>')
104
+ expect(result).toContain('<Tooltip {...{title: "Icon button"}}')
105
+ expect(result).toContain("refAsInnerRef={false}")
103
106
  expect(result).toContain("<Button />")
104
107
  expect(result).toContain("</Tooltip>")
105
108
  expect(result).not.toContain("tooltip=")
@@ -121,7 +124,8 @@ export default function Test() {
121
124
  expect(result).toContain(
122
125
  'import { Button, Link, Tooltip } from "@planningcenter/tapestry-react"'
123
126
  )
124
- expect(result).toContain('<Tooltip {...{title: "Save"}}>')
127
+ expect(result).toContain('<Tooltip {...{title: "Save"}}')
128
+ expect(result).toContain("refAsInnerRef={false}")
125
129
  })
126
130
 
127
131
  it("should not add duplicate Tooltip import", () => {
@@ -197,8 +201,9 @@ export default function Test() {
197
201
  expect(result).toContain(
198
202
  'import { Button, Tooltip } from "@planningcenter/tapestry-react"'
199
203
  )
200
- expect(result).toContain('<Tooltip {...{title: "Save the document"}}>')
201
- expect(result).toContain('<Tooltip {...{title: "Cancel operation"}}>')
204
+ expect(result).toContain('<Tooltip {...{title: "Save the document"}}')
205
+ expect(result).toContain('<Tooltip {...{title: "Cancel operation"}}')
206
+ expect(result).toContain("refAsInnerRef={false}")
202
207
  expect(result).not.toContain("tooltip=")
203
208
  })
204
209
 
@@ -218,7 +223,8 @@ export default function Test() {
218
223
 
219
224
  const result = applyTransform(input)
220
225
 
221
- expect(result).toContain('<Tooltip {...{title: "Has tooltip"}}>')
226
+ expect(result).toContain('<Tooltip {...{title: "Has tooltip"}}')
227
+ expect(result).toContain("refAsInnerRef={false}")
222
228
  expect(result).toContain("<Button>With Tooltip</Button>")
223
229
  expect(result).toContain("<Button>Without Tooltip</Button>")
224
230
  // Only one Tooltip wrapper should be created
@@ -282,7 +288,8 @@ export default function Test() {
282
288
  expect(result).toContain(
283
289
  'import { Button as TapestryButton, Tooltip } from "@planningcenter/tapestry-react"'
284
290
  )
285
- expect(result).toContain('<Tooltip {...{title: "Save item"}}>')
291
+ expect(result).toContain('<Tooltip {...{title: "Save item"}}')
292
+ expect(result).toContain("refAsInnerRef={false}")
286
293
  expect(result).toContain("<TapestryButton>Save</TapestryButton>")
287
294
  expect(result).not.toContain("tooltip=")
288
295
  })
@@ -307,8 +314,9 @@ export default function Test({ items }) {
307
314
  const result = applyTransform(input)
308
315
 
309
316
  expect(result).toContain(
310
- "<Tooltip key={item.id} {...`Save ${item.name}`}>"
317
+ "<Tooltip key={item.id} {...`Save ${item.name}`}"
311
318
  )
319
+ expect(result).toContain("refAsInnerRef={false}")
312
320
  expect(result).toContain("<Button onClick={() => save(item)}>")
313
321
  expect(result).not.toContain("tooltip=")
314
322
  })
@@ -324,7 +332,8 @@ export default function Test() {
324
332
 
325
333
  const result = applyTransform(input)
326
334
 
327
- expect(result).toContain("<Tooltip>")
335
+ expect(result).toContain("<Tooltip")
336
+ expect(result).toContain("refAsInnerRef={false}")
328
337
  expect(result).toContain("<Button>Save</Button>")
329
338
  expect(result).toContain("</Tooltip>")
330
339
  expect(result).not.toContain("tooltip")
@@ -359,11 +368,12 @@ export default function Test() {
359
368
  expect(result).toContain(
360
369
  'import { Button, Link, Tooltip } from "@planningcenter/tapestry-react"'
361
370
  )
362
- expect(result).toContain('<Tooltip {...{title: "Submit the form"}}>')
371
+ expect(result).toContain('<Tooltip {...{title: "Submit the form"}}')
372
+ expect(result).toContain("refAsInnerRef={false}")
363
373
  expect(result).toContain('type="submit" variant="primary"')
364
374
  expect(result).toContain("Submit")
365
375
  expect(result).toContain(
366
- '<Tooltip {...{text: "Reset form", placement: "bottom"}}>'
376
+ '<Tooltip {...{text: "Reset form", placement: "bottom"}}'
367
377
  )
368
378
  expect(result).toContain('type="reset"')
369
379
  expect(result).toContain("Reset")
@@ -384,8 +394,9 @@ export default function Test() {
384
394
  const result = applyTransform(input)!
385
395
 
386
396
  expect(result.replace(/(\s*)?\n(\s*)?/gm, " ")).toContain(
387
- '<Tooltip {...{ title: "Click me" }}>'
397
+ '<Tooltip {...{ title: "Click me" }}'
388
398
  )
399
+ expect(result).toContain("refAsInnerRef={false}")
389
400
  expect(result).toContain("<Button>Click</Button>")
390
401
  expect(result).not.toContain("tooltip=")
391
402
  })
@@ -1,3 +1,4 @@
1
+ import { addAttribute } from "../../shared/actions/addAttribute"
1
2
  import { createWrapper } from "../../shared/actions/createWrapper"
2
3
  import { getAttributeValueAsProps } from "../../shared/actions/getAttributeValueAsProps"
3
4
  import { removeAttribute } from "../../shared/actions/removeAttribute"
@@ -18,7 +19,7 @@ const transform = attributeTransformFactory({
18
19
 
19
20
  removeAttribute("tooltip", { element, j, source })
20
21
 
21
- createWrapper({
22
+ const wrapperElement = createWrapper({
22
23
  conflictAlias: "TRTooltip",
23
24
  element,
24
25
  j,
@@ -28,6 +29,13 @@ const transform = attributeTransformFactory({
28
29
  wrapperProps,
29
30
  })
30
31
 
32
+ addAttribute({
33
+ element: wrapperElement,
34
+ j,
35
+ name: "refAsInnerRef",
36
+ value: false,
37
+ })
38
+
31
39
  return true
32
40
  },
33
41
  })