@pitcher/canvas-ui 2025.12.4-162127 → 2025.12.4-163527-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 CHANGED
@@ -87996,6 +87996,7 @@ function assert(exp, message) {
87996
87996
  const defaultSkipKeys = [
87997
87997
  "id__in",
87998
87998
  "tags__in",
87999
+ "tags__not_in",
87999
88000
  "modified_at__gtr",
88000
88001
  "created_at__gtr",
88001
88002
  "end_at__lt",
@@ -92228,19 +92229,18 @@ const navigateToHome = (skipSetPreviousLocation) => navigateToHome$1({
92228
92229
  const updateHomePageSettings = (homePage) => {
92229
92230
  canvasHomePage.value = homePage;
92230
92231
  };
92231
- const mergeWithArrayReplacement = (...sources) => mergeWith({}, ...sources, (_objValue, srcValue) => {
92232
- if (Array.isArray(srcValue)) {
92233
- return srcValue;
92234
- }
92235
- return void 0;
92236
- });
92237
92232
  const mergeIntoActiveContext = (contextUpdate) => {
92238
92233
  if (!activeCanvas.value) {
92239
92234
  console.warn("[mergeIntoActiveContext] No active canvas to update context");
92240
92235
  return;
92241
92236
  }
92242
92237
  const currentContext = activeCanvas.value.context ?? {};
92243
- const mergedContext = mergeWithArrayReplacement(currentContext, contextUpdate);
92238
+ const mergedContext = mergeWith({}, currentContext, contextUpdate, (_objValue, srcValue) => {
92239
+ if (Array.isArray(srcValue)) {
92240
+ return srcValue;
92241
+ }
92242
+ return void 0;
92243
+ });
92244
92244
  activeCanvas.value = {
92245
92245
  ...activeCanvas.value,
92246
92246
  context: mergedContext
@@ -92409,8 +92409,7 @@ function useCanvas$1() {
92409
92409
  onWizardExit,
92410
92410
  contentAnnotation,
92411
92411
  getSafeContext,
92412
- watchCanvas,
92413
- mergeWithArrayReplacement
92412
+ watchCanvas
92414
92413
  };
92415
92414
  }
92416
92415
 
@@ -167747,9 +167746,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
167747
167746
  setTemporaryContextKeys,
167748
167747
  getSafeContext,
167749
167748
  watchCanvas,
167750
- mergeIntoActiveContext,
167751
- saveCanvasContext,
167752
- mergeWithArrayReplacement
167749
+ mergeIntoActiveContext
167753
167750
  } = useCanvas$1();
167754
167751
  const { updateComponentsWithThemeAssets } = useCanvasNodes();
167755
167752
  const {
@@ -168156,17 +168153,6 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
168156
168153
  props.onEnter?.();
168157
168154
  broadcastCanvasOpenedEvent();
168158
168155
  window.retriggerWizard = retriggerWizard;
168159
- window.getCanvasContext = () => {
168160
- if (!activeCanvas.value) return null;
168161
- return cloneDeep(activeCanvas.value?.context ?? {});
168162
- };
168163
- window.updateCanvasContext = async (context, options) => {
168164
- if (!activeCanvas.value) {
168165
- throw new Error("No active canvas");
168166
- }
168167
- const mergedContext = mergeWithArrayReplacement(activeCanvas.value?.context ?? {}, context);
168168
- await saveCanvasContext(mergedContext, options);
168169
- };
168170
168156
  });
168171
168157
  onBeforeUnmount(() => {
168172
168158
  const canvasId = activeCanvas.value?.id;
@@ -168196,8 +168182,6 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
168196
168182
  window.__scribblePendingRequests.clear();
168197
168183
  }
168198
168184
  window.retriggerWizard = void 0;
168199
- window.getCanvasContext = void 0;
168200
- window.updateCanvasContext = void 0;
168201
168185
  }
168202
168186
  __expose({
168203
168187
  deleteAsset,