@pitcher/canvas-ui 2026.1.9-131543-beta → 2026.1.9-133201-beta
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/canvas-ui.js +7 -2
- package/canvas-ui.js.map +1 -1
- package/package.json +1 -1
package/canvas-ui.js
CHANGED
|
@@ -120824,7 +120824,11 @@ const _sfc_main$4k = /* @__PURE__ */ defineComponent({
|
|
|
120824
120824
|
|
|
120825
120825
|
function useCanvasContext() {
|
|
120826
120826
|
const { activeCanvas, isPrintDisplayMode, builderCache } = useCanvas$1();
|
|
120827
|
-
const {
|
|
120827
|
+
const { getDefaultCrmShape } = useCrmShape();
|
|
120828
|
+
const myUser = inject(
|
|
120829
|
+
"myUser",
|
|
120830
|
+
computed(() => null)
|
|
120831
|
+
);
|
|
120828
120832
|
const sectionListSectionInfo = inject(
|
|
120829
120833
|
"sectionListSectionInfo",
|
|
120830
120834
|
computed(() => null)
|
|
@@ -120852,9 +120856,10 @@ function useCanvasContext() {
|
|
|
120852
120856
|
builderCache.value[sectionOverrideKey] = mergedCtx;
|
|
120853
120857
|
return mergedCtx;
|
|
120854
120858
|
};
|
|
120859
|
+
const crmShape = computed(() => getDefaultCrmShape({ myUser: myUser.value }));
|
|
120855
120860
|
const crmShapeWithSectionCtx = computed(() => {
|
|
120856
120861
|
const mergedCtx = getSectionCtx();
|
|
120857
|
-
return !isEmpty(crmShape.value) ?
|
|
120862
|
+
return !isEmpty(crmShape.value) ? { ...mergedCtx, ...crmShape.value } : mergedCtx;
|
|
120858
120863
|
});
|
|
120859
120864
|
return {
|
|
120860
120865
|
getSectionCtx,
|