Skip to content

Commit 13b58ed

Browse files
Merge branch 'main' of github.com:formkit/jsonreader
2 parents 0cb7a30 + 8557892 commit 13b58ed

File tree

10 files changed

+165
-124
lines changed

10 files changed

+165
-124
lines changed

LICENSE.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ This software is available under two licenses:
66

77
Copyright (c) 2025 FormKit Inc
88

9-
Permission is hereby granted, free of charge, to any individual person obtaining a copy of this software and associated documentation files (the "Software"), to use the Software for personal, educational, or non-commercial purposes, including without limitation the rights to use, copy, modify, merge, publish, and/or distribute copies of the Software, subject to the following conditions:
9+
Permission is hereby granted, free of charge, to any individual person obtaining a copy of this software and associated documentation files (the "Software"), to use the Software for personal, educational, or non-commercial purposes, including without limitation the rights to use, copy, modify, merge, subject to the following conditions:
1010

1111
1. The Software may not be used for any commercial purpose.
1212
2. Commercial purpose means any activity where the primary intent is monetary compensation or commercial advantage.
1313
3. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
14+
4. **Redistribution of the Software, whether in its original or modified form, is not permitted if such redistribution would allow the Software to be subsequently used in commercial projects without obtaining the Commercial License. This includes, but is not limited to, incorporating the Software into open-source projects that could then be used commercially.**
15+
5. **Reselling, repackaging, or redistributing the Software as a standalone product with substantially the same functionality as the original Software is prohibited. The Software may only be used as a component of a larger project whose primary purpose differs significantly from that of the Software.**
1416

1517
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1618

@@ -24,9 +26,10 @@ Terms of the Commercial License:
2426
3. Each distinct commercial product or service that uses the Software requires a separate license purchase.
2527
4. The Commercial License applies worldwide and has no expiration date once purchased.
2628
5. There are no restrictions on the number of developers, users, or distributions of the software once the Commercial License is purchased for a specific project.
29+
6. **The Commercial License does not permit reselling or redistributing the Software as a standalone product with substantially the same functionality as the original Software. The Software must be integrated as a component of a larger project whose primary purpose differs significantly from that of the Software.**
2730

2831
To obtain a Commercial License, please visit: https://jsonreader.formkit.com
2932

3033
Upon payment, you will receive a receipt. This receipt serves as the official proof of your Commercial License purchase and must be retained. No additional license key or documentation will be provided; the payment receipt itself constitutes your valid license authorization.
3134

32-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
35+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This is a monorepo for the `@formkit/jsonreader` package and its documentation s
1919
- **Personal Use**: 100% free for personal projects, open source contributions, and learning.
2020
- **Commercial Use**: $10 per project for commercial applications. [Purchase a license](https://buy.stripe.com/14k7uU7jqc7x4jmdQS).
2121

22-
Each commercial project requires a separate license. See the [documentation](https://jsonreader.dev) for more details.
22+
Each commercial project requires a separate license. See the [documentation](https://jsonreader.formkit.com/) for more details.
2323

2424
## Repository Structure
2525

@@ -113,4 +113,4 @@ The documentation site provides comprehensive guides and API references:
113113
pnpm dev:docs
114114
```
115115

116-
See the [jsonreader README](./packages/jsonreader/README.md) for detailed API documentation.
116+
See the [jsonreader README](./packages/jsonreader/README.md) for detailed API documentation.

packages/docs/assets/css/variables.css

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,3 @@
1414
/* Border colors */
1515
--color-border: #e5e7eb; /* gray-200 */
1616
}
17-
18-
@media (prefers-color-scheme: dark) {
19-
:root {
20-
--color-text-primary: #f3f4f6; /* gray-100 */
21-
--color-text-secondary: #d1d5db; /* gray-300 */
22-
23-
--color-bg-card: #1f2937; /* gray-800 */
24-
--color-bg-card-secondary: #111827; /* gray-900 */
25-
26-
--color-border: #374151; /* gray-700 */
27-
}
28-
}

packages/docs/components/CodeBlock.vue

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,14 @@
3030
v-if="showLineNumbers"
3131
class="line-numbers select-none pr-4 opacity-50 text-right"
3232
>
33-
<div
34-
v-for="n in lineCount"
35-
:key="n"
36-
class="text-gray-500 leading-relaxed"
37-
>
33+
<div v-for="n in lineCount" :key="n" class="line-number">
3834
{{ n }}
3935
</div>
4036
</div>
4137

4238
<!-- Code content -->
4339
<pre
44-
class="flex-1 relative z-10 m-0 p-0 bg-transparent overflow-x-auto whitespace-pre"
40+
class="flex-1 relative z-10 m-0 p-0 bg-transparent overflow-x-auto whitespace-pre code-content"
4541
><code :class="`language-${prismLanguage}`" v-html="highlightedCode"></code></pre>
4642
</div>
4743
<template #fallback>
@@ -52,18 +48,14 @@
5248
v-if="showLineNumbers"
5349
class="line-numbers select-none pr-4 opacity-50 text-right"
5450
>
55-
<div
56-
v-for="n in lineCount"
57-
:key="n"
58-
class="text-gray-500 leading-relaxed"
59-
>
51+
<div v-for="n in lineCount" :key="n" class="line-number">
6052
{{ n }}
6153
</div>
6254
</div>
6355

6456
<!-- Code content -->
6557
<pre
66-
class="flex-1 relative z-10 m-0 p-0 bg-transparent overflow-x-auto whitespace-pre"
58+
class="flex-1 relative z-10 m-0 p-0 bg-transparent overflow-x-auto whitespace-pre code-content"
6759
><code>{{ code }}</code></pre>
6860
</div>
6961
</template>
@@ -82,7 +74,7 @@ const props = defineProps({
8274
},
8375
showLineNumbers: {
8476
type: Boolean,
85-
default: true,
77+
default: false,
8678
},
8779
code: {
8880
type: String,
@@ -203,8 +195,27 @@ const copyCode = () => {
203195
.line-numbers {
204196
min-width: 2rem;
205197
font-size: 0.9rem;
206-
line-height: 1.5;
207198
font-family: "JetBrains Mono", monospace;
199+
display: flex;
200+
flex-direction: column;
201+
}
202+
203+
.line-number {
204+
height: 1.5rem; /* Match the line-height of the code */
205+
line-height: 1.5;
206+
display: flex;
207+
align-items: center;
208+
justify-content: flex-end;
209+
}
210+
211+
.code-content {
212+
line-height: 1.5;
213+
}
214+
215+
/* Ensure consistent line height between code and line numbers */
216+
:deep(.token) {
217+
display: inline-block;
218+
line-height: inherit;
208219
}
209220
210221
/* Override Prism.js token colors to match Monokai theme */

packages/docs/layouts/default.vue

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@
1111
<Logo size="small" />
1212
</a>
1313
<nav class="flex items-center space-x-6">
14-
<a
15-
href="/docs/getting-started"
16-
class="text-gray-600 hover:text-accent transition-colors text-sm"
17-
>Docs</a
18-
>
1914
<a
2015
href="https://github.com/formkit/jsonreader"
2116
target="_blank"

packages/docs/nuxt.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default {
3434

3535
// Open Graph tags for social sharing
3636
{ property: "og:type", content: "website" },
37-
{ property: "og:url", content: "https://jsonreader.com" },
37+
{ property: "og:url", content: "https://jsonreader.formkit.com" },
3838
{
3939
property: "og:title",
4040
content: "jsonreader - Stream Processing for AI Tool Calls",
@@ -46,12 +46,12 @@ export default {
4646
},
4747
{
4848
property: "og:image",
49-
content: "https://jsonreader.com/og-image.png",
49+
content: "https://jsonreader.formkit.com/og.png",
5050
},
5151

5252
// Twitter Card tags
5353
{ name: "twitter:card", content: "summary_large_image" },
54-
{ name: "twitter:url", content: "https://jsonreader.com" },
54+
{ name: "twitter:url", content: "https://jsonreader.formkit.com" },
5555
{
5656
name: "twitter:title",
5757
content: "jsonreader - Stream Processing for AI Tool Calls",
@@ -63,7 +63,7 @@ export default {
6363
},
6464
{
6565
name: "twitter:image",
66-
content: "https://jsonreader.com/og-image.png",
66+
content: "https://jsonreader.formkit.com/og.png",
6767
},
6868
],
6969
link: [

packages/docs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"vue-router": "^4.2.5"
2626
},
2727
"dependencies": {
28-
"jsonreader": "workspace:*",
28+
"@formkit/jsonreader": "workspace:*",
2929
"prismjs": "^1.30.0",
3030
"shiki": "^3.2.1"
3131
}
32-
}
32+
}

0 commit comments

Comments
 (0)