@planningcenter/tapestry-migration-cli 4.0.0-rc.2 → 4.0.0-rc.20
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/tapestry-react-shim.cjs +115 -31
- package/package.json +3 -3
|
@@ -353,7 +353,7 @@ const radio0 = "M8,1c3.864,0 7,3.136 7,7c0,3.864 -3.136,7 -7,7c-3.864,0 -7,-3.13
|
|
|
353
353
|
const radio1 = "M8,5c1.62669,0.042 2.92353,1.37277 2.92353,3c0,1.62723 -1.29685,2.958 -2.92353,3c-1.62669,-0.042 -2.92353,-1.37277 -2.92353,-3c0,-1.62723 1.29685,-2.958 2.92353,-3";
|
|
354
354
|
const rightChevron = "M11.175,8l-5,5l-1.175,-1.175l3.817,-3.825l-3.817,-3.825l1.175,-1.175z";
|
|
355
355
|
const upChevron = "M13,10l-1.175,1.175l-3.825,-3.817l-3.825,3.817l-1.175,-1.175l5,-5z";
|
|
356
|
-
const r$
|
|
356
|
+
const r$6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
357
357
|
__proto__: null,
|
|
358
358
|
checkbox0,
|
|
359
359
|
checkbox1,
|
|
@@ -2539,33 +2539,6 @@ const React$1 = /* @__PURE__ */ _mergeNamespaces({
|
|
|
2539
2539
|
function LoadingSpinner() {
|
|
2540
2540
|
return React.createElement("div", { className: "tds-loading-spinner" });
|
|
2541
2541
|
}
|
|
2542
|
-
const COMPONENT_KIND_CLASS_MAP = {
|
|
2543
|
-
delete: "tds-btn--delete",
|
|
2544
|
-
ghost: "tds-btn--ghost-neutral",
|
|
2545
|
-
"ghost-delete": "tds-btn--ghost-delete",
|
|
2546
|
-
"ghost-interaction": "tds-btn--ghost-interaction",
|
|
2547
|
-
"inline-text": "tds-btn--inline-text",
|
|
2548
|
-
neutral: "tds-btn--neutral",
|
|
2549
|
-
"neutral-inline": "tds-btn--neutral-inline",
|
|
2550
|
-
pill: "tds-btn--pill",
|
|
2551
|
-
primary: "tds-btn--interaction",
|
|
2552
|
-
"primary-page-header": "tds-btn--primary-page-header",
|
|
2553
|
-
secondary: "tds-btn--outline-neutral",
|
|
2554
|
-
"secondary-delete": "tds-btn--outline-delete",
|
|
2555
|
-
"secondary-interaction": "tds-btn--outline-interaction",
|
|
2556
|
-
"secondary-page-header": "tds-btn--secondary-page-header",
|
|
2557
|
-
"staff-only": "tds-btn--staff-only"
|
|
2558
|
-
};
|
|
2559
|
-
const COMPONENT_SIZE_CLASS_MAP = {
|
|
2560
|
-
lg: "tds-btn--lg",
|
|
2561
|
-
md: "",
|
|
2562
|
-
sm: "tds-btn--sm",
|
|
2563
|
-
xl: "tds-btn--xl",
|
|
2564
|
-
xs: "tds-btn--xs"
|
|
2565
|
-
};
|
|
2566
|
-
function wrapStringWithSpan(content) {
|
|
2567
|
-
return typeof content === "string" ? React.createElement("span", null, content) : content;
|
|
2568
|
-
}
|
|
2569
2542
|
var classnames = { exports: {} };
|
|
2570
2543
|
/*!
|
|
2571
2544
|
Copyright (c) 2018 Jed Watson.
|
|
@@ -2631,12 +2604,123 @@ function requireClassnames() {
|
|
|
2631
2604
|
}
|
|
2632
2605
|
var classnamesExports = requireClassnames();
|
|
2633
2606
|
const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
|
|
2634
|
-
|
|
2607
|
+
let $390e54f620492c70$export$d41a04c74483c6ef = /* @__PURE__ */ new Map();
|
|
2608
|
+
if (typeof FinalizationRegistry !== "undefined") new FinalizationRegistry((heldValue) => {
|
|
2609
|
+
$390e54f620492c70$export$d41a04c74483c6ef.delete(heldValue);
|
|
2610
|
+
});
|
|
2611
|
+
function $390e54f620492c70$export$cd8c9cb68f842629(idA, idB) {
|
|
2612
|
+
if (idA === idB) return idA;
|
|
2613
|
+
let setIdsA = $390e54f620492c70$export$d41a04c74483c6ef.get(idA);
|
|
2614
|
+
if (setIdsA) {
|
|
2615
|
+
setIdsA.forEach((ref) => ref.current = idB);
|
|
2616
|
+
return idB;
|
|
2617
|
+
}
|
|
2618
|
+
let setIdsB = $390e54f620492c70$export$d41a04c74483c6ef.get(idB);
|
|
2619
|
+
if (setIdsB) {
|
|
2620
|
+
setIdsB.forEach((ref) => ref.current = idA);
|
|
2621
|
+
return idA;
|
|
2622
|
+
}
|
|
2623
|
+
return idB;
|
|
2624
|
+
}
|
|
2625
|
+
function $a4e76a5424781910$export$e08e3b67e392101e(...callbacks) {
|
|
2626
|
+
return (...args) => {
|
|
2627
|
+
for (let callback of callbacks) if (typeof callback === "function") callback(...args);
|
|
2628
|
+
};
|
|
2629
|
+
}
|
|
2630
|
+
function $4064df0d6f9620e1$export$c9058316764c140e(...refs) {
|
|
2631
|
+
if (refs.length === 1 && refs[0]) return refs[0];
|
|
2632
|
+
return (value) => {
|
|
2633
|
+
let hasCleanup = false;
|
|
2634
|
+
const cleanups = refs.map((ref) => {
|
|
2635
|
+
const cleanup = $4064df0d6f9620e1$var$setRef(ref, value);
|
|
2636
|
+
hasCleanup ||= typeof cleanup == "function";
|
|
2637
|
+
return cleanup;
|
|
2638
|
+
});
|
|
2639
|
+
if (hasCleanup) return () => {
|
|
2640
|
+
cleanups.forEach((cleanup, i2) => {
|
|
2641
|
+
if (typeof cleanup === "function") cleanup();
|
|
2642
|
+
else $4064df0d6f9620e1$var$setRef(refs[i2], null);
|
|
2643
|
+
});
|
|
2644
|
+
};
|
|
2645
|
+
};
|
|
2646
|
+
}
|
|
2647
|
+
function $4064df0d6f9620e1$var$setRef(ref, value) {
|
|
2648
|
+
if (typeof ref === "function") return ref(value);
|
|
2649
|
+
else if (ref != null) ref.current = value;
|
|
2650
|
+
}
|
|
2651
|
+
function r$5(e2) {
|
|
2652
|
+
var t2, f2, n2 = "";
|
|
2653
|
+
if ("string" == typeof e2 || "number" == typeof e2) n2 += e2;
|
|
2654
|
+
else if ("object" == typeof e2) if (Array.isArray(e2)) {
|
|
2655
|
+
var o2 = e2.length;
|
|
2656
|
+
for (t2 = 0; t2 < o2; t2++) e2[t2] && (f2 = r$5(e2[t2])) && (n2 && (n2 += " "), n2 += f2);
|
|
2657
|
+
} else for (f2 in e2) e2[f2] && (n2 && (n2 += " "), n2 += f2);
|
|
2658
|
+
return n2;
|
|
2659
|
+
}
|
|
2660
|
+
function clsx() {
|
|
2661
|
+
for (var e2, t2, f2 = 0, n2 = "", o2 = arguments.length; f2 < o2; f2++) (e2 = arguments[f2]) && (t2 = r$5(e2)) && (n2 && (n2 += " "), n2 += t2);
|
|
2662
|
+
return n2;
|
|
2663
|
+
}
|
|
2664
|
+
function $bbaa08b3cd72f041$export$9d1611c77c2fe928(...args) {
|
|
2665
|
+
let result = {
|
|
2666
|
+
...args[0]
|
|
2667
|
+
};
|
|
2668
|
+
for (let i2 = 1; i2 < args.length; i2++) {
|
|
2669
|
+
let props = args[i2];
|
|
2670
|
+
for (let key in props) {
|
|
2671
|
+
let a2 = result[key];
|
|
2672
|
+
let b2 = props[key];
|
|
2673
|
+
if (typeof a2 === "function" && typeof b2 === "function" && // This is a lot faster than a regex.
|
|
2674
|
+
key[0] === "o" && key[1] === "n" && key.charCodeAt(2) >= /* 'A' */
|
|
2675
|
+
65 && key.charCodeAt(2) <= /* 'Z' */
|
|
2676
|
+
90) result[key] = $a4e76a5424781910$export$e08e3b67e392101e(a2, b2);
|
|
2677
|
+
else if ((key === "className" || key === "UNSAFE_className") && typeof a2 === "string" && typeof b2 === "string") result[key] = clsx(a2, b2);
|
|
2678
|
+
else if (key === "id" && a2 && b2) result.id = $390e54f620492c70$export$cd8c9cb68f842629(a2, b2);
|
|
2679
|
+
else if (key === "ref" && a2 && b2) result.ref = $4064df0d6f9620e1$export$c9058316764c140e(a2, b2);
|
|
2680
|
+
else result[key] = b2 !== void 0 ? b2 : a2;
|
|
2681
|
+
}
|
|
2682
|
+
}
|
|
2683
|
+
return result;
|
|
2684
|
+
}
|
|
2685
|
+
const TooltipTriggerContext = reactExports.createContext(null);
|
|
2686
|
+
const COMPONENT_KIND_CLASS_MAP = {
|
|
2687
|
+
delete: "tds-btn--delete",
|
|
2688
|
+
ghost: "tds-btn--ghost-neutral",
|
|
2689
|
+
"ghost-delete": "tds-btn--ghost-delete",
|
|
2690
|
+
"ghost-interaction": "tds-btn--ghost-interaction",
|
|
2691
|
+
"inline-text": "tds-btn--inline-text",
|
|
2692
|
+
neutral: "tds-btn--neutral",
|
|
2693
|
+
"neutral-inline": "tds-btn--neutral-inline",
|
|
2694
|
+
pill: "tds-btn--pill",
|
|
2695
|
+
primary: "tds-btn--interaction",
|
|
2696
|
+
"primary-page-header": "tds-btn--primary-page-header",
|
|
2697
|
+
secondary: "tds-btn--outline-neutral",
|
|
2698
|
+
"secondary-delete": "tds-btn--outline-delete",
|
|
2699
|
+
"secondary-interaction": "tds-btn--outline-interaction",
|
|
2700
|
+
"secondary-page-header": "tds-btn--secondary-page-header",
|
|
2701
|
+
"staff-only": "tds-btn--staff-only"
|
|
2702
|
+
};
|
|
2703
|
+
const COMPONENT_SIZE_CLASS_MAP = {
|
|
2704
|
+
lg: "tds-btn--lg",
|
|
2705
|
+
md: "",
|
|
2706
|
+
sm: "tds-btn--sm",
|
|
2707
|
+
xl: "tds-btn--xl",
|
|
2708
|
+
xs: "tds-btn--xs"
|
|
2709
|
+
};
|
|
2710
|
+
function wrapStringWithSpan(content) {
|
|
2711
|
+
return typeof content === "string" ? React.createElement("span", null, content) : content;
|
|
2712
|
+
}
|
|
2713
|
+
const BaseButton = reactExports.forwardRef(({ "aria-describedby": ariaDescribedBy, "aria-label": ariaLabel, className, disabled = false, fullWidth, kind = "secondary", label, loading = false, loadingAriaLabel = "Loading...", prefix, size, suffix, ...restProps }, ref) => {
|
|
2714
|
+
const tooltip = reactExports.useContext(TooltipTriggerContext);
|
|
2715
|
+
const { "aria-describedby": tooltipId, ...tooltipTriggerProps } = tooltip?.triggerProps ?? {};
|
|
2716
|
+
const mergedProps = tooltip ? $bbaa08b3cd72f041$export$9d1611c77c2fe928(restProps, tooltipTriggerProps) : restProps;
|
|
2717
|
+
const mergedRef = tooltip ? $4064df0d6f9620e1$export$c9058316764c140e(ref, tooltip.ref) : ref;
|
|
2718
|
+
const describedBy = [ariaDescribedBy, tooltipId].filter(Boolean).join(" ") || void 0;
|
|
2635
2719
|
const combinedClassName = classNames(kind && "tds-btn", size && size !== "md" && COMPONENT_SIZE_CLASS_MAP[size], kind && COMPONENT_KIND_CLASS_MAP[kind], fullWidth && "tds-btn--full-width", loading && "tds-btn--loading", className, { "tds-btn--prefix": prefix, "tds-btn--suffix": suffix });
|
|
2636
2720
|
const isDisabled = disabled || loading;
|
|
2637
2721
|
return React.createElement(
|
|
2638
2722
|
"button",
|
|
2639
|
-
{ type: "button", className: combinedClassName, ref, ...
|
|
2723
|
+
{ type: "button", className: combinedClassName, ref: mergedRef, ...mergedProps, "aria-busy": loading || void 0, "aria-describedby": describedBy, "aria-disabled": isDisabled || void 0, disabled: isDisabled, "aria-label": loading ? loadingAriaLabel : ariaLabel },
|
|
2640
2724
|
loading && React.createElement(LoadingSpinner, null),
|
|
2641
2725
|
wrapStringWithSpan(prefix),
|
|
2642
2726
|
loading ? React.createElement("span", null, label) : label,
|
|
@@ -4747,7 +4831,7 @@ var o$3 = { create: { create35: token("--t-fill-color-control-secondary") }, int
|
|
|
4747
4831
|
function c$2(l2) {
|
|
4748
4832
|
return l2 ? s$1[l2] : s$1;
|
|
4749
4833
|
}
|
|
4750
|
-
var c$1 = { boxSizes: i$2, breakpoints: { lg: 960, md: 720, sm: 600, xl: 1200, xs: 480 }, button: { themes: e$6 }, calendar: { weekStartsOn: 0 }, checkbox: { checkedFill: token("--t-fill-color-control"), checkedStroke: token("--t-fill-color-control"), disabled: { checkedFill: token("--t-fill-color-control-disabled"), checkedStroke: token("--t-border-color-control-disabled"), fill: token("--t-fill-color-neutral-070"), stroke: token("--t-border-color-control-disabled") }, fill: token("--t-surface-color-card"), focusStroke: token("--t-fill-color-control"), stroke: token("--t-border-color-control-neutral") }, colors: s$1, elevations: ["0 2px 5px rgba(0,0,0,0.043)", "0 4px 12px rgba(0,0,0,0.12)", "0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23)", "0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)", "0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22)", "0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22)"], fontSizes: [30, 21, 18, 16, 14, 12, 10], group: { radius: 3 }, icons: { general: o$5, tapestry: r$
|
|
4834
|
+
var c$1 = { boxSizes: i$2, breakpoints: { lg: 960, md: 720, sm: 600, xl: 1200, xs: 480 }, button: { themes: e$6 }, calendar: { weekStartsOn: 0 }, checkbox: { checkedFill: token("--t-fill-color-control"), checkedStroke: token("--t-fill-color-control"), disabled: { checkedFill: token("--t-fill-color-control-disabled"), checkedStroke: token("--t-border-color-control-disabled"), fill: token("--t-fill-color-neutral-070"), stroke: token("--t-border-color-control-disabled") }, fill: token("--t-surface-color-card"), focusStroke: token("--t-fill-color-control"), stroke: token("--t-border-color-control-neutral") }, colors: s$1, elevations: ["0 2px 5px rgba(0,0,0,0.043)", "0 4px 12px rgba(0,0,0,0.12)", "0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23)", "0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)", "0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22)", "0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22)"], fontSizes: [30, 21, 18, 16, 14, 12, 10], group: { radius: 3 }, icons: { general: o$5, tapestry: r$6 }, pageBody: { backgroundColor: token("--t-surface-color-card") }, id: "default", lineHeights: [40, 32, 24, 24, 20, 16, 16], spinner: { color: token("--t-fill-color-neutral-010"), sizes: { lg: 3, md: 2.5, sm: 2, xl: 5, xs: 1.75, xxl: 8, xxs: 1.5 }, thickness: { lg: 5, md: 4, sm: 3, xl: 7, xs: 3, xxl: 9, xxs: 3 }, trackColor: token("--t-fill-color-transparency-dark-020") }, toggleSwitch: { backgroundColor: token("--t-fill-color-control") } };
|
|
4751
4835
|
var _baseFindIndex;
|
|
4752
4836
|
var hasRequired_baseFindIndex;
|
|
4753
4837
|
function require_baseFindIndex() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@planningcenter/tapestry-migration-cli",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.20",
|
|
4
4
|
"description": "CLI tool for Tapestry migrations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@emotion/react": "^11.14.0",
|
|
33
|
-
"@planningcenter/tapestry": "^4.0.0-rc.
|
|
33
|
+
"@planningcenter/tapestry": "^4.0.0-rc.20",
|
|
34
34
|
"@planningcenter/tapestry-react": "^4.11.5",
|
|
35
35
|
"@types/jscodeshift": "^17.3.0",
|
|
36
36
|
"@types/node": "^20.0.0",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "e45176dc554f62e58dc87bce4de1e1715b1b1991"
|
|
54
54
|
}
|