@fjell/core 4.4.12 → 4.4.13

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.
Files changed (2) hide show
  1. package/docs/src/App.tsx +17 -18
  2. package/package.json +1 -1
package/docs/src/App.tsx CHANGED
@@ -564,15 +564,15 @@ Please check back soon for comprehensive content.`
564
564
  return (
565
565
  <button
566
566
  className="code-example-link"
567
- onClick={async () => {
568
- try {
569
- const response = await fetch(href.startsWith('/') ? `/core${href}` : `/core/${href}`)
570
- if (response.ok) {
571
- const code = await response.text()
572
- // Create a modal or section to display the code
573
- const codeSection = document.createElement('div')
574
- codeSection.className = 'code-example-modal'
575
- codeSection.innerHTML = `
567
+ onClick={async () => {
568
+ try {
569
+ const response = await fetch(href.startsWith('/') ? `/core${href}` : `/core/${href}`)
570
+ if (response.ok) {
571
+ const code = await response.text()
572
+ // Create a modal or section to display the code
573
+ const codeSection = document.createElement('div')
574
+ codeSection.className = 'code-example-modal'
575
+ codeSection.innerHTML = `
576
576
  <div class="code-example-content">
577
577
  <div class="code-example-header">
578
578
  <h3>${href}</h3>
@@ -581,14 +581,14 @@ Please check back soon for comprehensive content.`
581
581
  <pre><code class="language-typescript">${code}</code></pre>
582
582
  </div>
583
583
  `
584
- document.body.appendChild(codeSection)
585
- } else {
586
- console.error('Failed to load code example:', href)
587
- }
588
- } catch (error) {
589
- console.error('Error loading code example:', error)
590
- }
591
- }}
584
+ document.body.appendChild(codeSection)
585
+ } else {
586
+ console.error('Failed to load code example:', href)
587
+ }
588
+ } catch (error) {
589
+ console.error('Error loading code example:', error)
590
+ }
591
+ }}
592
592
  style={{
593
593
  background: 'none',
594
594
  border: 'none',
@@ -598,7 +598,6 @@ Please check back soon for comprehensive content.`
598
598
  padding: 0,
599
599
  font: 'inherit'
600
600
  }}
601
- {...props}
602
601
  >
603
602
  {children}
604
603
  </button>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fjell/core",
3
3
  "description": "Core Item and Key Framework for Fjell",
4
- "version": "4.4.12",
4
+ "version": "4.4.13",
5
5
  "keywords": [
6
6
  "core",
7
7
  "fjell"