Add comprehensive library expansion with new components and demos
- Add new libraries: ui-accessibility, ui-animations, ui-backgrounds, ui-code-display, ui-data-utils, ui-font-manager, hcl-studio - Add extensive layout components: gallery-grid, infinite-scroll-container, kanban-board, masonry, split-view, sticky-layout - Add comprehensive demo components for all new features - Update project configuration and dependencies - Expand component exports and routing structure - Add UI landing pages planning document 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
21
projects/ui-code-display/node_modules/prismjs/plugins/remove-initial-line-feed/prism-remove-initial-line-feed.js
generated
vendored
Normal file
21
projects/ui-code-display/node_modules/prismjs/plugins/remove-initial-line-feed/prism-remove-initial-line-feed.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
(function () {
|
||||
|
||||
if (typeof Prism === 'undefined' || typeof document === 'undefined') {
|
||||
return;
|
||||
}
|
||||
|
||||
Prism.hooks.add('before-sanity-check', function (env) {
|
||||
if (env.code) {
|
||||
var pre = env.element.parentNode;
|
||||
var clsReg = /(?:^|\s)keep-initial-line-feed(?:\s|$)/;
|
||||
if (
|
||||
pre && pre.nodeName.toLowerCase() === 'pre' &&
|
||||
// Apply only if nor the <pre> or the <code> have the class
|
||||
(!clsReg.test(pre.className) && !clsReg.test(env.element.className))
|
||||
) {
|
||||
env.code = env.code.replace(/^(?:\r?\n|\r)/, '');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
}());
|
||||
1
projects/ui-code-display/node_modules/prismjs/plugins/remove-initial-line-feed/prism-remove-initial-line-feed.min.js
generated
vendored
Normal file
1
projects/ui-code-display/node_modules/prismjs/plugins/remove-initial-line-feed/prism-remove-initial-line-feed.min.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"undefined"!=typeof Prism&&"undefined"!=typeof document&&Prism.hooks.add("before-sanity-check",(function(e){if(e.code){var n=e.element.parentNode,o=/(?:^|\s)keep-initial-line-feed(?:\s|$)/;!n||"pre"!==n.nodeName.toLowerCase()||o.test(n.className)||o.test(e.element.className)||(e.code=e.code.replace(/^(?:\r?\n|\r)/,""))}}));
|
||||
Reference in New Issue
Block a user