You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: decode file-storage data URLs at read sites instead of @Property transforms
The ad4m Rust executor silently drops JS-function @Property transforms.
Properties with resolveLanguage: FILE_STORAGE_LANGUAGE always arrive as
data URI strings (data:<mime>;base64,<b64>), never as decoded values.
- CollectionBlock.editorState: remove transform, type string | null
- Template.schema: remove decodeFileAsJson transform, type string | null
- Theme.css / Theme.overrides: remove both transforms, type string | null
- TemplateStore: decode template.schema via decodeFileAsJson() at read time
(fixes silent skip of all custom templates - typeof str !== 'object')
- BlockRenderer / BlockComposer: decode editorState data URL before passing
to Lexical parseEditorState (fixes 'type undefined not found' error)
- Extract decodeEditorState helper to @we/block-shared utils
- Export decodeFileAsString / decodeFileAsJson from @we/models public API
- Simplify fileTransforms.ts: remove dead FileData branch
0 commit comments