@karagoz/hayali 0.0.0-stage → 0.6.0

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 (51) hide show
  1. package/LICENSE +21 -0
  2. package/dist/karagoz-hayali.css +3 -0
  3. package/dist/karagoz-hayali.js +3869 -0
  4. package/dist/karagoz-hayali.umd.cjs +15 -0
  5. package/dist/karagoz-logo.svg +3 -0
  6. package/dist/parse.cjs +3 -0
  7. package/dist/parse.js +521 -0
  8. package/dist/src/App.vue.d.ts +3 -0
  9. package/dist/src/callouts.d.ts +28 -0
  10. package/dist/src/components/KrgzHayali.vue.d.ts +49 -0
  11. package/dist/src/components/LessonToolbar.vue.d.ts +17 -0
  12. package/dist/src/components/StepBody.vue.d.ts +7 -0
  13. package/dist/src/components/StepList.vue.d.ts +15 -0
  14. package/dist/src/components/StepLockAlert.vue.d.ts +8 -0
  15. package/dist/src/components/TocDropdown.vue.d.ts +14 -0
  16. package/dist/src/composables/useCounter.d.ts +4 -0
  17. package/dist/src/composables/useIsolationWarning.d.ts +5 -0
  18. package/dist/src/composables/useLessonPosition.d.ts +30 -0
  19. package/dist/src/composables/useLessonReset.d.ts +34 -0
  20. package/dist/src/composables/useStepEntry.d.ts +59 -0
  21. package/dist/src/composables/useStepLocks.d.ts +24 -0
  22. package/dist/src/examples/DefaultExample.vue.d.ts +3 -0
  23. package/dist/src/examples/ParserExample.vue.d.ts +3 -0
  24. package/dist/src/i18n.d.ts +1739 -0
  25. package/dist/src/index.d.ts +11 -0
  26. package/dist/src/layout/breakpoints.d.ts +16 -0
  27. package/dist/src/layout/layoutCss.d.ts +5 -0
  28. package/dist/src/lesson.d.ts +9 -0
  29. package/dist/src/locales/ar.d.ts +25 -0
  30. package/dist/src/locales/de.d.ts +25 -0
  31. package/dist/src/locales/en.d.ts +25 -0
  32. package/dist/src/locales/index.d.ts +1743 -0
  33. package/dist/src/main.d.ts +3 -0
  34. package/dist/src/parse/blocks.d.ts +31 -0
  35. package/dist/src/parse/body.d.ts +7 -0
  36. package/dist/src/parse/fenceInfo.d.ts +8 -0
  37. package/dist/src/parse/fileSource.d.ts +18 -0
  38. package/dist/src/parse/index.d.ts +2 -0
  39. package/dist/src/parse/parseLesson.d.ts +3 -0
  40. package/dist/src/parse/resolve.d.ts +37 -0
  41. package/dist/src/parse/tree.d.ts +11 -0
  42. package/dist/src/parse/types.d.ts +32 -0
  43. package/dist/src/typedoc-entry.d.ts +7 -0
  44. package/dist/src/types.d.ts +69 -0
  45. package/dist/src/validateLesson.d.ts +22 -0
  46. package/dist/tsconfig.tsbuildinfo +1 -0
  47. package/dist/types.d.ts +1943 -0
  48. package/package.json +87 -3
  49. package/src/layout.css +218 -0
  50. package/src/lib.css +50 -0
  51. package/README.md +0 -3
package/package.json CHANGED
@@ -1,6 +1,90 @@
1
1
  {
2
2
  "name": "@karagoz/hayali",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.6.0",
4
+ "private": false,
5
+ "homepage": "https://karagoz.dev",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/frontendat/karagoz.git"
9
+ },
10
+ "files": [
11
+ "dist",
12
+ "src/lib.css",
13
+ "src/layout.css"
14
+ ],
15
+ "type": "module",
16
+ "main": "./dist/karagoz-hayali.umd.cjs",
17
+ "module": "./dist/karagoz-hayali.js",
18
+ "types": "./dist/types.d.ts",
19
+ "exports": {
20
+ ".": {
21
+ "import": {
22
+ "types": "./dist/types.d.ts",
23
+ "default": "./dist/karagoz-hayali.js"
24
+ },
25
+ "require": {
26
+ "types": "./dist/types.d.ts",
27
+ "default": "./dist/karagoz-hayali.umd.cjs"
28
+ }
29
+ },
30
+ "./dist/karagoz-hayali.css": {
31
+ "import": "./dist/karagoz-hayali.css",
32
+ "require": "./dist/karagoz-hayali.css"
33
+ },
34
+ "./parse": {
35
+ "import": {
36
+ "types": "./dist/src/parse/index.d.ts",
37
+ "default": "./dist/parse.js"
38
+ },
39
+ "require": {
40
+ "types": "./dist/src/parse/index.d.ts",
41
+ "default": "./dist/parse.cjs"
42
+ }
43
+ },
44
+ "./style.css": "./src/lib.css"
45
+ },
46
+ "publishConfig": {
47
+ "access": "public"
48
+ },
49
+ "dependencies": {
50
+ "@vueuse/core": "^14.3.0",
51
+ "ignore": "^6.0.2",
52
+ "markdown-it": "^14.2.0",
53
+ "markdown-it-container": "^4.0.0",
54
+ "radix-vue": "^1.9.17",
55
+ "vue-markdown-render": "^2.3.1",
56
+ "yaml": "^2.9.1",
57
+ "@karagoz/sandbox": "^0.6.0",
58
+ "@karagoz/shared": "^0.6.0"
59
+ },
60
+ "peerDependencies": {
61
+ "vue": "^3.5.21",
62
+ "vue-i18n": "^11.4.6"
63
+ },
64
+ "devDependencies": {
65
+ "@types/markdown-it": "^14.1.2",
66
+ "@types/markdown-it-container": "^4.0.1",
67
+ "jiti": "^2.7.0"
68
+ },
69
+ "scripts": {
70
+ "dev": "pnpm --filter @karagoz/hayali --parallel /^watch:/",
71
+ "dev-hmr": "vite",
72
+ "build": "vite build && vite build -c vite.parse.config.ts && vue-tsc --declaration --emitDeclarationOnly",
73
+ "prepublish": "pnpm build",
74
+ "preview": "vite preview",
75
+ "watch:vite": "vite build --watch",
76
+ "watch:vite-parse": "vite build -c vite.parse.config.ts --watch",
77
+ "watch:vue-tsc": "vue-tsc --declaration --emitDeclarationOnly --watch",
78
+ "lint": "oxlint src",
79
+ "lint:fix": "oxlint --fix src",
80
+ "fmt": "oxfmt src",
81
+ "fmt:check": "oxfmt --check src",
82
+ "docs": "pnpm docs:typescript && sleep 1 && pnpm docs:components && pnpm docs:copy",
83
+ "docs:components": "vue-docgen -c docs/docgen.config.cjs",
84
+ "docs:typescript": "typedoc --options docs/typedoc.json && rm ./docs/.generated-docs/README.md",
85
+ "docs:copy": "cp -a ./docs/.generated-docs/. ../../apps/docs/content/en/hayali/4.api-reference/",
86
+ "gen:layout": "jiti scripts/gen-layout.ts && oxfmt src/layout.css",
87
+ "test": "vitest run",
88
+ "test:watch": "vitest"
89
+ }
6
90
  }
package/src/layout.css ADDED
@@ -0,0 +1,218 @@
1
+ /* Generated by src/layout/layoutCss.ts (pnpm gen:layout). Do not edit. */
2
+ .hf [data-hf-pane] {
3
+ min-width: 0;
4
+ }
5
+ .hf [data-hf-pane='lesson'] {
6
+ min-width: var(--hf-lesson-minw, 0);
7
+ }
8
+ .hf [data-hf-pane='sandbox'] {
9
+ min-width: var(--hf-sandbox-minw, 0);
10
+ }
11
+ .hf[data-panel='lesson'] [data-hf-pane='sandbox'],
12
+ .hf[data-panel='sandbox'] [data-hf-pane='lesson'] {
13
+ display: var(--hf-pane-display, none);
14
+ }
15
+ .hf [data-hf-handle] {
16
+ display: var(--hf-handle-display, none);
17
+ }
18
+ .hf [data-hf-toggle] {
19
+ display: var(--hf-toggle-display, block);
20
+ }
21
+
22
+ @container hayali (min-width: 20rem) {
23
+ .hf-root[data-from='xs'] {
24
+ --hf-pane-display: block;
25
+ --hf-handle-display: flex;
26
+ --hf-toggle-display: none;
27
+ --hf-tb-order: -1;
28
+ --hf-tb-bw: 0 0 1px 0;
29
+ --hf-tb-px: 1.75rem;
30
+ --hf-next-order: 0;
31
+ --hf-next-me: 0px;
32
+ --hf-toc-flex: 0 1 auto;
33
+ --hf-toc-justify: flex-start;
34
+ --hf-lesson-minw: 300px;
35
+ --hf-sandbox-minw: 460px;
36
+ --hf-sandbox-me: 1.25rem;
37
+ }
38
+ }
39
+
40
+ @container hayali (min-width: 24rem) {
41
+ .hf-root[data-from='sm'] {
42
+ --hf-pane-display: block;
43
+ --hf-handle-display: flex;
44
+ --hf-toggle-display: none;
45
+ --hf-tb-order: -1;
46
+ --hf-tb-bw: 0 0 1px 0;
47
+ --hf-tb-px: 1.75rem;
48
+ --hf-next-order: 0;
49
+ --hf-next-me: 0px;
50
+ --hf-toc-flex: 0 1 auto;
51
+ --hf-toc-justify: flex-start;
52
+ --hf-lesson-minw: 300px;
53
+ --hf-sandbox-minw: 460px;
54
+ --hf-sandbox-me: 1.25rem;
55
+ }
56
+ }
57
+
58
+ @container hayali (min-width: 28rem) {
59
+ .hf-root[data-from='md'] {
60
+ --hf-pane-display: block;
61
+ --hf-handle-display: flex;
62
+ --hf-toggle-display: none;
63
+ --hf-tb-order: -1;
64
+ --hf-tb-bw: 0 0 1px 0;
65
+ --hf-tb-px: 1.75rem;
66
+ --hf-next-order: 0;
67
+ --hf-next-me: 0px;
68
+ --hf-toc-flex: 0 1 auto;
69
+ --hf-toc-justify: flex-start;
70
+ --hf-lesson-minw: 300px;
71
+ --hf-sandbox-minw: 460px;
72
+ --hf-sandbox-me: 1.25rem;
73
+ }
74
+ }
75
+
76
+ @container hayali (min-width: 32rem) {
77
+ .hf-root[data-from='lg'] {
78
+ --hf-pane-display: block;
79
+ --hf-handle-display: flex;
80
+ --hf-toggle-display: none;
81
+ --hf-tb-order: -1;
82
+ --hf-tb-bw: 0 0 1px 0;
83
+ --hf-tb-px: 1.75rem;
84
+ --hf-next-order: 0;
85
+ --hf-next-me: 0px;
86
+ --hf-toc-flex: 0 1 auto;
87
+ --hf-toc-justify: flex-start;
88
+ --hf-lesson-minw: 300px;
89
+ --hf-sandbox-minw: 460px;
90
+ --hf-sandbox-me: 1.25rem;
91
+ }
92
+ }
93
+
94
+ @container hayali (min-width: 36rem) {
95
+ .hf-root[data-from='xl'] {
96
+ --hf-pane-display: block;
97
+ --hf-handle-display: flex;
98
+ --hf-toggle-display: none;
99
+ --hf-tb-order: -1;
100
+ --hf-tb-bw: 0 0 1px 0;
101
+ --hf-tb-px: 1.75rem;
102
+ --hf-next-order: 0;
103
+ --hf-next-me: 0px;
104
+ --hf-toc-flex: 0 1 auto;
105
+ --hf-toc-justify: flex-start;
106
+ --hf-lesson-minw: 300px;
107
+ --hf-sandbox-minw: 460px;
108
+ --hf-sandbox-me: 1.25rem;
109
+ }
110
+ }
111
+
112
+ @container hayali (min-width: 42rem) {
113
+ .hf-root[data-from='2xl'] {
114
+ --hf-pane-display: block;
115
+ --hf-handle-display: flex;
116
+ --hf-toggle-display: none;
117
+ --hf-tb-order: -1;
118
+ --hf-tb-bw: 0 0 1px 0;
119
+ --hf-tb-px: 1.75rem;
120
+ --hf-next-order: 0;
121
+ --hf-next-me: 0px;
122
+ --hf-toc-flex: 0 1 auto;
123
+ --hf-toc-justify: flex-start;
124
+ --hf-lesson-minw: 300px;
125
+ --hf-sandbox-minw: 460px;
126
+ --hf-sandbox-me: 1.25rem;
127
+ }
128
+ }
129
+
130
+ @container hayali (min-width: 48rem) {
131
+ .hf-root[data-from='3xl'] {
132
+ --hf-pane-display: block;
133
+ --hf-handle-display: flex;
134
+ --hf-toggle-display: none;
135
+ --hf-tb-order: -1;
136
+ --hf-tb-bw: 0 0 1px 0;
137
+ --hf-tb-px: 1.75rem;
138
+ --hf-next-order: 0;
139
+ --hf-next-me: 0px;
140
+ --hf-toc-flex: 0 1 auto;
141
+ --hf-toc-justify: flex-start;
142
+ --hf-lesson-minw: 300px;
143
+ --hf-sandbox-minw: 460px;
144
+ --hf-sandbox-me: 1.25rem;
145
+ }
146
+ }
147
+
148
+ @container hayali (min-width: 56rem) {
149
+ .hf-root[data-from='4xl'] {
150
+ --hf-pane-display: block;
151
+ --hf-handle-display: flex;
152
+ --hf-toggle-display: none;
153
+ --hf-tb-order: -1;
154
+ --hf-tb-bw: 0 0 1px 0;
155
+ --hf-tb-px: 1.75rem;
156
+ --hf-next-order: 0;
157
+ --hf-next-me: 0px;
158
+ --hf-toc-flex: 0 1 auto;
159
+ --hf-toc-justify: flex-start;
160
+ --hf-lesson-minw: 300px;
161
+ --hf-sandbox-minw: 460px;
162
+ --hf-sandbox-me: 1.25rem;
163
+ }
164
+ }
165
+
166
+ @container hayali (min-width: 64rem) {
167
+ .hf-root[data-from='5xl'] {
168
+ --hf-pane-display: block;
169
+ --hf-handle-display: flex;
170
+ --hf-toggle-display: none;
171
+ --hf-tb-order: -1;
172
+ --hf-tb-bw: 0 0 1px 0;
173
+ --hf-tb-px: 1.75rem;
174
+ --hf-next-order: 0;
175
+ --hf-next-me: 0px;
176
+ --hf-toc-flex: 0 1 auto;
177
+ --hf-toc-justify: flex-start;
178
+ --hf-lesson-minw: 300px;
179
+ --hf-sandbox-minw: 460px;
180
+ --hf-sandbox-me: 1.25rem;
181
+ }
182
+ }
183
+
184
+ @container hayali (min-width: 72rem) {
185
+ .hf-root[data-from='6xl'] {
186
+ --hf-pane-display: block;
187
+ --hf-handle-display: flex;
188
+ --hf-toggle-display: none;
189
+ --hf-tb-order: -1;
190
+ --hf-tb-bw: 0 0 1px 0;
191
+ --hf-tb-px: 1.75rem;
192
+ --hf-next-order: 0;
193
+ --hf-next-me: 0px;
194
+ --hf-toc-flex: 0 1 auto;
195
+ --hf-toc-justify: flex-start;
196
+ --hf-lesson-minw: 300px;
197
+ --hf-sandbox-minw: 460px;
198
+ --hf-sandbox-me: 1.25rem;
199
+ }
200
+ }
201
+
202
+ @container hayali (min-width: 80rem) {
203
+ .hf-root[data-from='7xl'] {
204
+ --hf-pane-display: block;
205
+ --hf-handle-display: flex;
206
+ --hf-toggle-display: none;
207
+ --hf-tb-order: -1;
208
+ --hf-tb-bw: 0 0 1px 0;
209
+ --hf-tb-px: 1.75rem;
210
+ --hf-next-order: 0;
211
+ --hf-next-me: 0px;
212
+ --hf-toc-flex: 0 1 auto;
213
+ --hf-toc-justify: flex-start;
214
+ --hf-lesson-minw: 300px;
215
+ --hf-sandbox-minw: 460px;
216
+ --hf-sandbox-me: 1.25rem;
217
+ }
218
+ }
package/src/lib.css ADDED
@@ -0,0 +1,50 @@
1
+ @import './layout.css';
2
+
3
+ @plugin '@tailwindcss/typography';
4
+
5
+ @custom-variant dark (&:where(.dark, .dark *));
6
+
7
+ /* Color tokens resolve to the CSS variables defined by @karagoz/shared's stylesheet. */
8
+ @theme inline {
9
+ --color-border: hsl(var(--border));
10
+ --color-input: hsl(var(--input));
11
+ --color-ring: hsl(var(--ring));
12
+ --color-background: hsl(var(--background));
13
+ --color-foreground: hsl(var(--foreground));
14
+ --color-primary: hsl(var(--primary));
15
+ --color-primary-foreground: hsl(var(--primary-foreground));
16
+ --color-secondary: hsl(var(--secondary));
17
+ --color-secondary-foreground: hsl(var(--secondary-foreground));
18
+ --color-destructive: hsl(var(--destructive));
19
+ --color-destructive-foreground: hsl(var(--destructive-foreground));
20
+ --color-muted: hsl(var(--muted));
21
+ --color-muted-foreground: hsl(var(--muted-foreground));
22
+ --color-accent: hsl(var(--accent));
23
+ --color-accent-foreground: hsl(var(--accent-foreground));
24
+ --color-popover: hsl(var(--popover));
25
+ --color-popover-foreground: hsl(var(--popover-foreground));
26
+ --color-card: hsl(var(--card));
27
+ --color-card-foreground: hsl(var(--card-foreground));
28
+
29
+ --radius-xl: calc(var(--radius) + 4px);
30
+ --radius-lg: var(--radius);
31
+ --radius-md: calc(var(--radius) - 2px);
32
+ --radius-sm: calc(var(--radius) - 4px);
33
+
34
+ --animate-accordion-down: accordion-down 0.2s ease-out;
35
+ --animate-accordion-up: accordion-up 0.2s ease-out;
36
+ --animate-collapsible-down: collapsible-down 0.2s ease-in-out;
37
+ --animate-collapsible-up: collapsible-up 0.2s ease-in-out;
38
+ }
39
+
40
+ @layer base {
41
+ *,
42
+ ::before,
43
+ ::after {
44
+ border-color: hsl(var(--border));
45
+ }
46
+
47
+ body {
48
+ @apply bg-background text-foreground;
49
+ }
50
+ }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.