mce 0.29.7 → 0.29.9

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/README.md CHANGED
@@ -178,7 +178,7 @@ npm i mce
178
178
  src: '/fonts/SourceHanSansCN-Normal.woff',
179
179
  },
180
180
  },
181
- customUpload: async (blob) => URL.createObjectURL(blob),
181
+ uploader: async (blob) => URL.createObjectURL(blob),
182
182
  customContextMenu: (menu) => menu,
183
183
  doc: {
184
184
  children: [
@@ -252,8 +252,8 @@ editor.exec('tidyUp')
252
252
 
253
253
  // Design tokens / variables
254
254
  const collection = editor.exec('createVariableCollection', 'Theme', 'Light')
255
- const dark = editor.exec('addVariableMode', collection, 'Dark')
256
- const brand = editor.exec('addVariable', collection, { name: 'brand', type: 'color', value: '#ff0000' })
255
+ const dark = editor.exec('createVariableMode', collection, 'Dark')
256
+ const brand = editor.exec('createVariable', collection, { name: 'brand', type: 'color', value: '#ff0000' })
257
257
  editor.exec('setVariableValue', brand, dark, '#0000ff')
258
258
  editor.exec('bindVariable', 'fill.color', brand) // bind selected element's fill
259
259
  editor.exec('setActiveVariableMode', collection, dark) // theme switch → canvas recolors
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.d.ts CHANGED
@@ -23,6 +23,8 @@ export * from './types';
23
23
  export type { AnimationPreset, PresetCategory, PresetChannels } from './utils/animationPresets';
24
24
  export { base64ToBytes, base64ToText } from './utils/base64';
25
25
  export * from './utils/create';
26
+ export type { Pipeline } from './utils/imagePipeline';
27
+ export { materializePipelines } from './utils/imagePipeline';
26
28
  export type { Keyframe } from './utils/keyframes';
27
29
  export { matchSource } from './utils/source';
28
30
  export type { MatchSourceOptions } from './utils/source';