@compiiile/compiiile 2.14.1 → 2.14.3

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/.compiiile/src/components/ContentWrapper.vue +2 -2
  2. package/.compiiile/src/components/SlidesContent.vue +2 -2
  3. package/.compiiile/src/components/TableOfContent.vue +1 -1
  4. package/.compiiile/src/components/layout/HamburgerButton.vue +1 -1
  5. package/.compiiile/src/components/layout/ThemeSwitcher.vue +1 -1
  6. package/.compiiile/src/components/layout/navBar/NavBar.vue +1 -1
  7. package/.compiiile/src/components/layout/navBar/NavListItem.vue +1 -1
  8. package/.compiiile/src/components/searchBar/SearchBar.vue +1 -1
  9. package/.compiiile/src/components/searchBar/SearchResult.vue +1 -1
  10. package/.compiiile/src/style/{index.scss → index.css} +5 -5
  11. package/.compiiile/src/utils/styles.js +1 -1
  12. package/bin/config.js +1 -0
  13. package/package.json +15 -16
  14. package/.compiiile/.astro/settings.json +0 -5
  15. package/.compiiile/.astro/types.d.ts +0 -1
  16. package/bin/.compiiile/node_modules/.vite/deps_temp_6e4c3b91/@astrojs_vue_client__js.js +0 -62
  17. package/bin/.compiiile/node_modules/.vite/deps_temp_6e4c3b91/@astrojs_vue_client__js.js.map +0 -7
  18. package/bin/.compiiile/node_modules/.vite/deps_temp_6e4c3b91/astro___aria-query.js +0 -7084
  19. package/bin/.compiiile/node_modules/.vite/deps_temp_6e4c3b91/astro___aria-query.js.map +0 -7
  20. package/bin/.compiiile/node_modules/.vite/deps_temp_6e4c3b91/astro___axobject-query.js +0 -3862
  21. package/bin/.compiiile/node_modules/.vite/deps_temp_6e4c3b91/astro___axobject-query.js.map +0 -7
  22. package/bin/.compiiile/node_modules/.vite/deps_temp_6e4c3b91/chunk-5RSW42KR.js +0 -45
  23. package/bin/.compiiile/node_modules/.vite/deps_temp_6e4c3b91/chunk-5RSW42KR.js.map +0 -7
  24. package/bin/.compiiile/node_modules/.vite/deps_temp_6e4c3b91/chunk-MBCBSM2B.js +0 -11402
  25. package/bin/.compiiile/node_modules/.vite/deps_temp_6e4c3b91/chunk-MBCBSM2B.js.map +0 -7
  26. package/bin/.compiiile/node_modules/.vite/deps_temp_6e4c3b91/chunk-Y2F7D3TJ.js +0 -9
  27. package/bin/.compiiile/node_modules/.vite/deps_temp_6e4c3b91/chunk-Y2F7D3TJ.js.map +0 -7
  28. package/bin/.compiiile/node_modules/.vite/deps_temp_6e4c3b91/package.json +0 -3
  29. package/bin/.compiiile/node_modules/.vite/deps_temp_6e4c3b91/vue.js +0 -324
  30. package/bin/.compiiile/node_modules/.vite/deps_temp_6e4c3b91/vue.js.map +0 -7
  31. package/bin/.compiiile/node_modules/.vite/deps_temp_c6d3f53d/@astrojs_vue_client__js.js +0 -62
  32. package/bin/.compiiile/node_modules/.vite/deps_temp_c6d3f53d/@astrojs_vue_client__js.js.map +0 -7
  33. package/bin/.compiiile/node_modules/.vite/deps_temp_c6d3f53d/astro___aria-query.js +0 -7084
  34. package/bin/.compiiile/node_modules/.vite/deps_temp_c6d3f53d/astro___aria-query.js.map +0 -7
  35. package/bin/.compiiile/node_modules/.vite/deps_temp_c6d3f53d/astro___axobject-query.js +0 -3862
  36. package/bin/.compiiile/node_modules/.vite/deps_temp_c6d3f53d/astro___axobject-query.js.map +0 -7
  37. package/bin/.compiiile/node_modules/.vite/deps_temp_c6d3f53d/chunk-5RSW42KR.js +0 -45
  38. package/bin/.compiiile/node_modules/.vite/deps_temp_c6d3f53d/chunk-5RSW42KR.js.map +0 -7
  39. package/bin/.compiiile/node_modules/.vite/deps_temp_c6d3f53d/chunk-MBCBSM2B.js +0 -11402
  40. package/bin/.compiiile/node_modules/.vite/deps_temp_c6d3f53d/chunk-MBCBSM2B.js.map +0 -7
  41. package/bin/.compiiile/node_modules/.vite/deps_temp_c6d3f53d/chunk-Y2F7D3TJ.js +0 -9
  42. package/bin/.compiiile/node_modules/.vite/deps_temp_c6d3f53d/chunk-Y2F7D3TJ.js.map +0 -7
  43. package/bin/.compiiile/node_modules/.vite/deps_temp_c6d3f53d/package.json +0 -3
  44. package/bin/.compiiile/node_modules/.vite/deps_temp_c6d3f53d/vue.js +0 -324
  45. package/bin/.compiiile/node_modules/.vite/deps_temp_c6d3f53d/vue.js.map +0 -7
  46. /package/.compiiile/src/style/{code-theme.scss → code-theme.css} +0 -0
  47. /package/.compiiile/src/style/{layouts.scss → layouts.css} +0 -0
  48. /package/.compiiile/src/style/{print.scss → print.css} +0 -0
  49. /package/.compiiile/src/style/{slides.scss → slides.css} +0 -0
  50. /package/.compiiile/src/style/{texts.scss → texts.css} +0 -0
  51. /package/.compiiile/src/style/{variables.scss → variables.css} +0 -0
@@ -106,7 +106,7 @@
106
106
  },
107
107
  fileSiblings() {
108
108
  let visibleFiles = this.$context.fileList
109
- if (!this.file.meta.hidden) {
109
+ if (this.file && !this.file.meta.hidden) {
110
110
  visibleFiles = visibleFiles.filter((file) => !file.meta.hidden)
111
111
  }
112
112
  const newIndex = visibleFiles.findIndex((file) => file.uuid === this.name)
@@ -120,7 +120,7 @@
120
120
  }
121
121
  </script>
122
122
 
123
- <style scoped lang="scss">
123
+ <style scoped>
124
124
  :deep(.markdown-content) {
125
125
  margin-right: calc(var(--toc-width) + 80px);
126
126
 
@@ -72,10 +72,10 @@
72
72
  }
73
73
  </script>
74
74
 
75
- <style lang="scss">
75
+ <style>
76
76
  @import "reveal.js/dist/reveal.css";
77
77
  @import "reveal.js/dist/theme/black.css";
78
- @import "../style/slides.scss";
78
+ @import "../style/slides.css";
79
79
 
80
80
  :global(#app) {
81
81
  height: 100%;
@@ -24,7 +24,7 @@
24
24
  }
25
25
  </script>
26
26
 
27
- <style scoped lang="scss">
27
+ <style scoped>
28
28
  .toc {
29
29
  width: var(--toc-width);
30
30
  position: sticky;
@@ -26,7 +26,7 @@
26
26
  }
27
27
  </script>
28
28
 
29
- <style lang="scss" scoped>
29
+ <style scoped>
30
30
  .hamburger {
31
31
  display: flex;
32
32
  flex-direction: column;
@@ -50,7 +50,7 @@
50
50
  }
51
51
  </script>
52
52
 
53
- <style lang="scss" scoped>
53
+ <style scoped>
54
54
  .theme-switcher {
55
55
  position: relative;
56
56
  margin-left: 6px;
@@ -19,7 +19,7 @@
19
19
  }
20
20
  </script>
21
21
 
22
- <style scoped lang="scss">
22
+ <style scoped>
23
23
  nav {
24
24
  width: var(--nav-bar-width);
25
25
  background-color: var(--darker-background-color);
@@ -175,7 +175,7 @@
175
175
  }
176
176
  </script>
177
177
 
178
- <style scoped lang="scss">
178
+ <style scoped>
179
179
  .nav-list-item-children {
180
180
  list-style-type: none;
181
181
  padding-left: 20px;
@@ -262,7 +262,7 @@
262
262
  }
263
263
  </script>
264
264
 
265
- <style scoped lang="scss">
265
+ <style scoped>
266
266
  .search-bar-wrapper {
267
267
  position: fixed;
268
268
  top: 0;
@@ -33,7 +33,7 @@
33
33
  }
34
34
  </script>
35
35
 
36
- <style scoped lang="scss">
36
+ <style scoped>
37
37
  .search-result,
38
38
  .search-result-header {
39
39
  background-color: var(--search-background-color);
@@ -1,8 +1,8 @@
1
- @import "variables";
2
- @import "texts";
3
- @import "layouts";
4
- @import "print";
5
- @import "code-theme";
1
+ @import "./variables.css";
2
+ @import "./texts.css";
3
+ @import "./layouts.css";
4
+ @import "./print.css";
5
+ @import "./code-theme.css";
6
6
 
7
7
  *,
8
8
  *::before,
@@ -1,4 +1,4 @@
1
- import "../style/index.scss"
1
+ import "../style/index.css"
2
2
  /* Importing global fonts */
3
3
  import "@fontsource-variable/archivo/wdth.css"
4
4
  import "@fontsource-variable/archivo/wdth-italic.css"
package/bin/config.js CHANGED
@@ -206,6 +206,7 @@ const astroConfig = {
206
206
  "@vue/reactivity": resolve("@vue/reactivity"),
207
207
  "@vue/shared": resolve("@vue/shared"),
208
208
  fzf: resolve("fzf"),
209
+ "@oslojs/encoding": resolve("@oslojs/encoding"),
209
210
  "@astrojs/internal-helpers": resolve("@astrojs/internal-helpers") + "/dist"
210
211
  }
211
212
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@compiiile/compiiile",
3
3
  "private": false,
4
- "version": "2.14.1",
4
+ "version": "2.14.3",
5
5
  "description": "The most convenient way to render a folder containing markdown files. Previewing and searching markdown files has never been that easy.",
6
6
  "author": "AlbanCrepel <alban.crepel@gmail.com>",
7
7
  "license": "GPL-3.0-only",
@@ -23,40 +23,39 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@astrojs/mdx": "^2.3.1",
26
- "@astrojs/sitemap": "^3.1.6",
27
- "@astrojs/vue": "^4.5.0",
26
+ "@astrojs/sitemap": "^3.2.0",
27
+ "@astrojs/vue": "^4.5.2",
28
28
  "@babel/core": "^7.0.0-0",
29
29
  "@babel/eslint-parser": "^7.22.15",
30
- "@compiiile/compiiile-pro": "^1.1.6",
30
+ "@compiiile/compiiile-pro": "^1.1.7",
31
31
  "@fontsource-variable/archivo": "^5.0.16",
32
32
  "@fontsource-variable/dm-sans": "^5.0.3",
33
33
  "@fontsource-variable/jetbrains-mono": "^5.0.18",
34
- "astro": "^4.14.5",
34
+ "astro": "^4.16.2",
35
35
  "astro-seo": "^0.8.4",
36
- "c12": "^1.11.1",
37
- "eslint": "^8.51.0",
38
- "eslint-config-prettier": "^9.0.0",
39
- "eslint-plugin-vue": "^9.17.0",
36
+ "c12": "^2.0.1",
37
+ "eslint": "^9.12.0",
38
+ "eslint-config-prettier": "^9.1.0",
39
+ "eslint-plugin-vue": "^9.29.0",
40
40
  "fzf": "^0.5.2",
41
41
  "hastscript": "^9.0.0",
42
42
  "minimatch": "^10.0.1",
43
- "node-emoji": "^2.1.0",
43
+ "node-emoji": "^2.1.3",
44
44
  "parse-gitignore": "^2.0.0",
45
- "pkg-dir": "^7.0.0",
46
- "prettier": "^3.0.3",
45
+ "pkg-dir": "^8.0.0",
46
+ "prettier": "^3.3.3",
47
47
  "rehype-autolink-headings": "^7.1.0",
48
48
  "rehype-slug": "^6.0.0",
49
- "remark-emoji": "^5.0.0",
49
+ "remark-emoji": "^5.0.1",
50
50
  "requireg": "^0.2.2",
51
51
  "resolve-package-path": "^4.0.3",
52
52
  "reveal.js": "^5.1.0",
53
- "sass": "^1.66.1",
54
53
  "slugify": "^1.6.6",
55
54
  "typescript": "^5.5.4",
56
55
  "uuid": "^9.0.1",
57
56
  "vfile-matter": "^5.0.0",
58
- "vite": "^5.3.5",
59
- "vue": "^3.4.38",
57
+ "vite": "^5.4.8",
58
+ "vue": "^3.5.12",
60
59
  "yargs": "^17.7.2",
61
60
  "zod": "^3.23.8"
62
61
  },
@@ -1,5 +0,0 @@
1
- {
2
- "_variables": {
3
- "lastUpdateCheck": 1725988838449
4
- }
5
- }
@@ -1 +0,0 @@
1
- /// <reference types="astro/client" />
@@ -1,62 +0,0 @@
1
- import {
2
- Suspense,
3
- createApp,
4
- createSSRApp,
5
- defineComponent,
6
- h
7
- } from "./chunk-MBCBSM2B.js";
8
- import "./chunk-Y2F7D3TJ.js";
9
-
10
- // node_modules/@astrojs/vue/static-html.js
11
- var StaticHtml = defineComponent({
12
- props: {
13
- value: String,
14
- name: String,
15
- hydrate: {
16
- type: Boolean,
17
- default: true
18
- }
19
- },
20
- setup({ name, value, hydrate }) {
21
- if (!value)
22
- return () => null;
23
- let tagName = hydrate ? "astro-slot" : "astro-static-slot";
24
- return () => h(tagName, { name, innerHTML: value });
25
- }
26
- });
27
- var static_html_default = StaticHtml;
28
-
29
- // node_modules/@astrojs/vue/client.js
30
- import { setup } from "virtual:@astrojs/vue/app";
31
- var client_default = (element) => async (Component, props, slotted, { client }) => {
32
- if (!element.hasAttribute("ssr"))
33
- return;
34
- const name = Component.name ? `${Component.name} Host` : void 0;
35
- const slots = {};
36
- for (const [key, value] of Object.entries(slotted)) {
37
- slots[key] = () => h(static_html_default, { value, name: key === "default" ? void 0 : key });
38
- }
39
- const isHydrate = client !== "only";
40
- const bootstrap = isHydrate ? createSSRApp : createApp;
41
- const app = bootstrap({
42
- name,
43
- render() {
44
- let content = h(Component, props, slots);
45
- if (isAsync(Component.setup)) {
46
- content = h(Suspense, null, content);
47
- }
48
- return content;
49
- }
50
- });
51
- await setup(app);
52
- app.mount(element, isHydrate);
53
- element.addEventListener("astro:unmount", () => app.unmount(), { once: true });
54
- };
55
- function isAsync(fn) {
56
- const constructor = fn == null ? void 0 : fn.constructor;
57
- return constructor && constructor.name === "AsyncFunction";
58
- }
59
- export {
60
- client_default as default
61
- };
62
- //# sourceMappingURL=@astrojs_vue_client__js.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../node_modules/@astrojs/vue/static-html.js", "../../../../../node_modules/@astrojs/vue/client.js"],
4
- "sourcesContent": ["import { defineComponent, h } from 'vue';\n\n/**\n * Astro passes `children` as a string of HTML, so we need\n * a wrapper `div` to render that content as VNodes.\n *\n * This is the Vue + JSX equivalent of using `<div v-html=\"value\" />`\n */\nconst StaticHtml = defineComponent({\n\tprops: {\n\t\tvalue: String,\n\t\tname: String,\n\t\thydrate: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\n\t\t},\n\t},\n\tsetup({ name, value, hydrate }) {\n\t\tif (!value) return () => null;\n\t\tlet tagName = hydrate ? 'astro-slot' : 'astro-static-slot';\n\t\treturn () => h(tagName, { name, innerHTML: value });\n\t},\n});\n\n/**\n * Other frameworks have `shouldComponentUpdate` in order to signal\n * that this subtree is entirely static and will not be updated\n *\n * Fortunately, Vue is smart enough to figure that out without any\n * help from us, so this just works out of the box!\n */\n\nexport default StaticHtml;\n", "import { Suspense, createApp, createSSRApp, h } from 'vue';\nimport StaticHtml from './static-html.js';\nimport { setup } from 'virtual:@astrojs/vue/app';\n\nexport default (element) =>\n\tasync (Component, props, slotted, { client }) => {\n\t\tif (!element.hasAttribute('ssr')) return;\n\n\t\t// Expose name on host component for Vue devtools\n\t\tconst name = Component.name ? `${Component.name} Host` : undefined;\n\t\tconst slots = {};\n\t\tfor (const [key, value] of Object.entries(slotted)) {\n\t\t\tslots[key] = () => h(StaticHtml, { value, name: key === 'default' ? undefined : key });\n\t\t}\n\n\t\tconst isHydrate = client !== 'only';\n\t\tconst bootstrap = isHydrate ? createSSRApp : createApp;\n\t\tconst app = bootstrap({\n\t\t\tname,\n\t\t\trender() {\n\t\t\t\tlet content = h(Component, props, slots);\n\t\t\t\t// related to https://github.com/withastro/astro/issues/6549\n\t\t\t\t// if the component is async, wrap it in a Suspense component\n\t\t\t\tif (isAsync(Component.setup)) {\n\t\t\t\t\tcontent = h(Suspense, null, content);\n\t\t\t\t}\n\t\t\t\treturn content;\n\t\t\t},\n\t\t});\n\t\tawait setup(app);\n\t\tapp.mount(element, isHydrate);\n\n\t\telement.addEventListener('astro:unmount', () => app.unmount(), { once: true });\n\t};\n\nfunction isAsync(fn) {\n\tconst constructor = fn?.constructor;\n\treturn constructor && constructor.name === 'AsyncFunction';\n}\n"],
5
- "mappings": ";;;;;;;;;;AAQA,IAAM,aAAa,gBAAgB;AAAA,EAClC,OAAO;AAAA,IACN,OAAO;AAAA,IACP,MAAM;AAAA,IACN,SAAS;AAAA,MACR,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,EACD;AAAA,EACA,MAAM,EAAE,MAAM,OAAO,QAAQ,GAAG;AAC/B,QAAI,CAAC;AAAO,aAAO,MAAM;AACzB,QAAI,UAAU,UAAU,eAAe;AACvC,WAAO,MAAM,EAAE,SAAS,EAAE,MAAM,WAAW,MAAM,CAAC;AAAA,EACnD;AACD,CAAC;AAUD,IAAO,sBAAQ;;;AC9Bf,SAAS,aAAa;AAEtB,IAAO,iBAAQ,CAAC,YACf,OAAO,WAAW,OAAO,SAAS,EAAE,OAAO,MAAM;AAChD,MAAI,CAAC,QAAQ,aAAa,KAAK;AAAG;AAGlC,QAAM,OAAO,UAAU,OAAO,GAAG,UAAU,IAAI,UAAU;AACzD,QAAM,QAAQ,CAAC;AACf,aAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQ,OAAO,GAAG;AACnD,UAAM,GAAG,IAAI,MAAM,EAAE,qBAAY,EAAE,OAAO,MAAM,QAAQ,YAAY,SAAY,IAAI,CAAC;AAAA,EACtF;AAEA,QAAM,YAAY,WAAW;AAC7B,QAAM,YAAY,YAAY,eAAe;AAC7C,QAAM,MAAM,UAAU;AAAA,IACrB;AAAA,IACA,SAAS;AACR,UAAI,UAAU,EAAE,WAAW,OAAO,KAAK;AAGvC,UAAI,QAAQ,UAAU,KAAK,GAAG;AAC7B,kBAAU,EAAE,UAAU,MAAM,OAAO;AAAA,MACpC;AACA,aAAO;AAAA,IACR;AAAA,EACD,CAAC;AACD,QAAM,MAAM,GAAG;AACf,MAAI,MAAM,SAAS,SAAS;AAE5B,UAAQ,iBAAiB,iBAAiB,MAAM,IAAI,QAAQ,GAAG,EAAE,MAAM,KAAK,CAAC;AAC9E;AAED,SAAS,QAAQ,IAAI;AACpB,QAAM,cAAc,yBAAI;AACxB,SAAO,eAAe,YAAY,SAAS;AAC5C;",
6
- "names": []
7
- }