@lapikit/repl 0.0.3 → 0.0.5

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 (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +7 -13
  3. package/package.json +2 -2
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Nycolaide <https://github.com/Nycolaide>.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -2,14 +2,12 @@
2
2
 
3
3
  @lapikit/repl is a Svelte component for Lapikit. It's a add-on package for Lapikit library.
4
4
 
5
-
6
5
  ## Installation
7
6
 
8
7
  ```bash
9
8
  npm install -D @lapikit/repl
10
9
  ```
11
10
 
12
-
13
11
  ```javascript
14
12
  // svelte.config.js
15
13
 
@@ -30,7 +28,6 @@ export default config;
30
28
  <kit:repl content="console.log('hello')" />
31
29
  ```
32
30
 
33
-
34
31
  ```svelte
35
32
  <script lang="ts">
36
33
  import sampleCounter from './samples/counter.svelte?raw';
@@ -42,7 +39,6 @@ export default config;
42
39
  </kit:repl>
43
40
  ```
44
41
 
45
-
46
42
  ```svelte
47
43
  <script lang="ts">
48
44
  import sampleJson from './samples/json.json?raw';
@@ -56,14 +52,13 @@ export default config;
56
52
  content={{
57
53
  'Counter.svelte': { code: sampleCounter, lang: 'svelte' },
58
54
  'file.json': { code: sampleJson, lang: 'json' },
59
- 'Styles.css': { code: sampleCss, lang: 'css' },
55
+ 'Styles.css': { code: sampleCss, lang: 'css' }
60
56
  }}
61
57
  >
62
58
  <Counter />
63
59
  </kit:repl>
64
60
  ```
65
61
 
66
-
67
62
  ```svelte
68
63
  <script lang="ts">
69
64
  import sampleJson from './samples/json.json?raw';
@@ -76,18 +71,17 @@ export default config;
76
71
  content={{
77
72
  'Counter.svelte': { code: sampleCounter, lang: 'svelte' },
78
73
  'file.json': { code: sampleJson, lang: 'json' },
79
- 'Styles.css': { code: sampleCss, lang: 'css' },
74
+ 'Styles.css': { code: sampleCss, lang: 'css' }
80
75
  }}
81
76
  >
82
77
  <Counter />
83
78
  </kit:repl>
84
79
  ```
85
80
 
86
-
87
81
  ## Props
88
82
 
89
- | Prop | Type | Default | Description |
90
- | ----------- | --------------------------- | --------- | ------------------------------------------------------------ |
91
- | content | string \| Record<string, { code: string; lang?: string }> | '' | The code content to be displayed in the REPL. It can be a single string or an object representing multiple files. |
92
- | presentation | boolean | false | If true, the REPL will be in presentation mode, showing only the output without the code editor. |
93
- | tiltle | string | '' | The title displayed on the REPL toolbar. |
83
+ | Prop | Type | Default | Description |
84
+ | ------------ | --------------------------------------------------------- | ------- | ----------------------------------------------------------------------------------------------------------------- |
85
+ | content | string \| Record<string, { code: string; lang?: string }> | '' | The code content to be displayed in the REPL. It can be a single string or an object representing multiple files. |
86
+ | presentation | boolean | false | If true, the REPL will be in presentation mode, showing only the output without the code editor. |
87
+ | tiltle | string | '' | The title displayed on the REPL toolbar. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lapikit/repl",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "repository": {
13
13
  "type": "git",
14
- "url": "git+https://github.com/Nycolaide/lapikit.git"
14
+ "url": "git+https://github.com/lapikit/lapikit-repl.git"
15
15
  },
16
16
  "scripts": {
17
17
  "dev": "vite dev",