@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
18 lines (17 loc) • 630 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getDomAttrs = void 0;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
var getDomAttrs = exports.getDomAttrs = function getDomAttrs(nodeAttrs) {
var attrs = {
'data-panel-type': nodeAttrs.panelType,
'data-panel-icon': nodeAttrs.panelIcon,
'data-panel-icon-id': nodeAttrs.panelIconId,
'data-panel-icon-text': nodeAttrs.panelIconText,
'data-panel-color': nodeAttrs.panelColor,
'data-local-id': (nodeAttrs === null || nodeAttrs === void 0 ? void 0 : nodeAttrs.localId) || undefined
};
return attrs;
};