Files
klz-cables.com/.pnpm-store/v10/files/5e/3b43333cf3382efff2ce978e7797a9636db21a38f392b3ea952272f973ed85eb4e9cde7d6595c0115f4897bdb86b7c0a7f1dea4e5db16b5384dd4facd08597
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

56 lines
1.2 KiB
Plaintext

/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import { DecoratorNode } from 'lexical';
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
class DecoratorBlockNode extends DecoratorNode {
constructor(format, key) {
super(key);
this.__format = format || '';
}
exportJSON() {
return {
...super.exportJSON(),
format: this.__format || ''
};
}
updateFromJSON(serializedNode) {
return super.updateFromJSON(serializedNode).setFormat(serializedNode.format || '');
}
canIndent() {
return false;
}
createDOM() {
return document.createElement('div');
}
updateDOM() {
return false;
}
setFormat(format) {
const self = this.getWritable();
self.__format = format;
return self;
}
isInline() {
return false;
}
}
function $isDecoratorBlockNode(node) {
return node instanceof DecoratorBlockNode;
}
export { $isDecoratorBlockNode, DecoratorBlockNode };