stacks 0.48.2 → 0.49.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 (162) hide show
  1. package/README.md +13 -13
  2. package/buddy/README.md +13 -13
  3. package/buddy/node_modules/.bin/unbuild +2 -2
  4. package/buddy/package.json +5 -5
  5. package/buddy/src/cli.ts +2 -3
  6. package/buddy/src/commands/build.ts +2 -2
  7. package/buddy/src/commands/changelog.ts +1 -1
  8. package/buddy/src/commands/create.ts +1 -1
  9. package/buddy/src/commands/dev.ts +13 -4
  10. package/buddy/src/commands/fresh.ts +1 -1
  11. package/buddy/src/commands/key.ts +1 -1
  12. package/buddy/src/commands/lint.ts +1 -1
  13. package/buddy/src/commands/make.ts +1 -1
  14. package/buddy/src/commands/release.ts +1 -1
  15. package/buddy/src/commands/test.ts +6 -6
  16. package/buddy/src/index.ts +1 -1
  17. package/components/vue/main.ts +1 -1
  18. package/components/vue/package.json +1 -1
  19. package/components/web/package.json +1 -1
  20. package/components.d.ts +0 -3
  21. package/core/actions/node_modules/.bin/mkdist +2 -2
  22. package/core/actions/package.json +6 -6
  23. package/core/actions/src/build-core.ts +1 -1
  24. package/core/actions/src/dev-components.ts +5 -0
  25. package/core/actions/src/dev.ts +5 -0
  26. package/core/actions/src/helpers/package-json.ts +1 -1
  27. package/core/actions/src/helpers/utils.ts +5 -1
  28. package/core/actions/src/update.ts +4 -4
  29. package/core/ai/node_modules/.bin/mkdist +2 -2
  30. package/core/ai/package.json +5 -5
  31. package/core/alias/node_modules/.bin/mkdist +2 -2
  32. package/core/alias/package.json +5 -5
  33. package/core/arrays/node_modules/.bin/mkdist +2 -2
  34. package/core/arrays/package.json +5 -5
  35. package/core/auth/node_modules/.bin/mkdist +2 -2
  36. package/core/auth/package.json +5 -5
  37. package/core/build/node_modules/.bin/mkdist +2 -2
  38. package/core/build/node_modules/.bin/unbuild +2 -2
  39. package/core/build/node_modules/.bin/vite +2 -2
  40. package/core/build/node_modules/.bin/vite-ssg +2 -2
  41. package/core/build/package.json +10 -12
  42. package/core/build/src/desktop.ts +0 -5
  43. package/core/build/src/pages.ts +9 -9
  44. package/core/build/src/stacks.ts +26 -21
  45. package/core/build/src/vue-components.ts +11 -5
  46. package/core/build/web-types.ts +2 -2
  47. package/core/cache/node_modules/.bin/mkdist +2 -2
  48. package/core/cache/package.json +6 -6
  49. package/core/chat/node_modules/.bin/mkdist +2 -2
  50. package/core/chat/package.json +9 -9
  51. package/core/cli/README.md +1 -1
  52. package/core/cli/node_modules/.bin/mkdist +2 -2
  53. package/core/cli/package.json +6 -5
  54. package/core/cli/src/actions/run.ts +1 -1
  55. package/core/cli/src/helpers.ts +4 -3
  56. package/core/cloud/node_modules/.bin/mkdist +2 -2
  57. package/core/cloud/package.json +5 -5
  58. package/core/collections/node_modules/.bin/mkdist +2 -2
  59. package/core/collections/package.json +5 -5
  60. package/core/config/node_modules/.bin/mkdist +2 -2
  61. package/core/config/node_modules/.bin/unbuild +2 -2
  62. package/core/config/package.json +6 -6
  63. package/core/dashboard/node_modules/.bin/mkdist +2 -2
  64. package/core/dashboard/package.json +5 -5
  65. package/core/database/node_modules/.bin/mkdist +2 -2
  66. package/core/database/package.json +6 -6
  67. package/core/datetime/node_modules/.bin/mkdist +2 -2
  68. package/core/datetime/package.json +5 -5
  69. package/core/desktop/node_modules/.bin/mkdist +2 -2
  70. package/core/desktop/package.json +5 -5
  71. package/core/docs/node_modules/.bin/mkdist +2 -2
  72. package/core/docs/node_modules/.bin/vitepress +2 -2
  73. package/core/docs/package.json +6 -6
  74. package/core/domains/node_modules/.bin/mkdist +2 -2
  75. package/core/domains/package.json +5 -5
  76. package/core/drivers/node_modules/.bin/mkdist +2 -2
  77. package/core/drivers/package.json +5 -5
  78. package/core/email/node_modules/.bin/mkdist +2 -2
  79. package/core/email/package.json +16 -16
  80. package/core/error-handling/node_modules/.bin/mkdist +2 -2
  81. package/core/error-handling/package.json +5 -5
  82. package/core/events/node_modules/.bin/mkdist +2 -2
  83. package/core/events/package.json +5 -5
  84. package/core/events/src/index.ts +1 -1
  85. package/core/git/node_modules/.bin/mkdist +2 -2
  86. package/core/git/package.json +5 -5
  87. package/core/health/node_modules/.bin/mkdist +2 -2
  88. package/core/health/package.json +5 -5
  89. package/core/lint/node_modules/.bin/eslint +2 -2
  90. package/core/lint/node_modules/.bin/mkdist +2 -2
  91. package/core/lint/package.json +6 -6
  92. package/core/logging/node_modules/.bin/mkdist +2 -2
  93. package/core/logging/package.json +5 -5
  94. package/core/modules/node_modules/.bin/mkdist +2 -2
  95. package/core/modules/package.json +5 -5
  96. package/core/modules/src/i18n.ts +20 -20
  97. package/core/notifications/node_modules/.bin/mkdist +2 -2
  98. package/core/notifications/node_modules/.bin/unbuild +2 -2
  99. package/core/notifications/package.json +27 -27
  100. package/core/objects/node_modules/.bin/mkdist +2 -2
  101. package/core/objects/package.json +5 -5
  102. package/core/path/node_modules/.bin/mkdist +2 -2
  103. package/core/path/package.json +5 -5
  104. package/core/payments/node_modules/.bin/mkdist +2 -2
  105. package/core/payments/package.json +5 -5
  106. package/core/push/node_modules/.bin/mkdist +2 -2
  107. package/core/push/package.json +7 -7
  108. package/core/realtime/node_modules/.bin/mkdist +2 -2
  109. package/core/realtime/package.json +5 -5
  110. package/core/router/node_modules/.bin/mkdist +2 -2
  111. package/core/router/package.json +5 -5
  112. package/core/search-engine/node_modules/.bin/mkdist +2 -2
  113. package/core/search-engine/package.json +6 -6
  114. package/core/search-engine/src/helpers.ts +60 -0
  115. package/core/search-engine/src/index.ts +33 -2
  116. package/core/security/node_modules/.bin/mkdist +2 -2
  117. package/core/security/package.json +6 -6
  118. package/core/server/node_modules/.bin/mkdist +2 -2
  119. package/core/server/node_modules/.bin/vite +2 -2
  120. package/core/server/package.json +6 -6
  121. package/core/server/src/config.ts +3 -2
  122. package/core/sms/node_modules/.bin/mkdist +2 -2
  123. package/core/sms/package.json +15 -15
  124. package/core/storage/node_modules/.bin/mkdist +2 -2
  125. package/core/storage/package.json +5 -5
  126. package/core/strings/node_modules/.bin/mkdist +2 -2
  127. package/core/strings/node_modules/.bin/unbuild +2 -2
  128. package/core/strings/package.json +7 -6
  129. package/core/tables/build.config.ts +17 -0
  130. package/core/tables/dist/index.html +0 -0
  131. package/core/tables/index.html +13 -0
  132. package/core/tables/node_modules/.bin/mkdist +2 -2
  133. package/core/tables/node_modules/.bin/unbuild +2 -2
  134. package/core/tables/node_modules/.bin/vite +17 -0
  135. package/core/tables/old.vite.config.ts +97 -0
  136. package/core/tables/package.json +14 -47
  137. package/core/tables/src/App.vue +23 -0
  138. package/core/tables/src/functions/table.ts +28 -1
  139. package/core/tables/src/main.js +4 -0
  140. package/core/tables/vite.config.ts +26 -0
  141. package/core/testing/node_modules/.bin/mkdist +2 -2
  142. package/core/testing/node_modules/.bin/playwright +2 -2
  143. package/core/testing/node_modules/.bin/vitest +2 -2
  144. package/core/testing/package.json +9 -9
  145. package/core/types/node_modules/.bin/mkdist +2 -2
  146. package/core/types/node_modules/.bin/vitepress +2 -2
  147. package/core/types/package.json +9 -9
  148. package/core/types/src/cli.ts +2 -1
  149. package/core/types/src/markdown.ts +1 -1
  150. package/core/types/src/tables.ts +9 -0
  151. package/core/ui/node_modules/.bin/mkdist +2 -2
  152. package/core/ui/node_modules/.bin/vue-tsc +2 -2
  153. package/core/ui/package.json +8 -8
  154. package/core/utils/node_modules/.bin/mkdist +2 -2
  155. package/core/utils/node_modules/.bin/rimraf +2 -2
  156. package/core/utils/package.json +9 -9
  157. package/core/utils/src/helpers.ts +2 -2
  158. package/core/x-ray/node_modules/.bin/mkdist +2 -2
  159. package/core/x-ray/package.json +5 -5
  160. package/functions/package.json +1 -1
  161. package/package.json +5 -5
  162. package/tsconfig.json +2 -0
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/search-engine",
3
3
  "type": "module",
4
- "version": "0.48.2",
5
- "packageManager": "pnpm@7.21.0",
4
+ "version": "0.49.0",
5
+ "packageManager": "pnpm@7.25.0",
6
6
  "description": "The Stacks search engine integrations.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -40,8 +40,8 @@
40
40
  "README.md"
41
41
  ],
42
42
  "engines": {
43
- "node": ">=v18.12.1",
44
- "pnpm": ">=7.21.0"
43
+ "node": ">=v18.13.0",
44
+ "pnpm": ">=7.25.0"
45
45
  },
46
46
  "scripts": {
47
47
  "build": "mkdist -d",
@@ -52,13 +52,13 @@
52
52
  "peerDependencies": {
53
53
  "@stacksjs/cli": "workspace:*",
54
54
  "@stacksjs/config": "workspace:*",
55
- "@vueuse/core": "^9.9.0",
55
+ "@vueuse/core": "^9.10.0",
56
56
  "meilisearch": "^0.30.0",
57
57
  "vue": "^3.2.45"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@stacksjs/testing": "workspace:*",
61
- "mkdist": "^1.0.0",
61
+ "mkdist": "^1.1.0",
62
62
  "typescript": "^4.9.4"
63
63
  }
64
64
  }
@@ -47,6 +47,66 @@ export interface SearchEngineStore {
47
47
  */
48
48
  hits?: Hits<Record<string, any>>
49
49
 
50
+ /**
51
+ * The search Filter Name
52
+ */
53
+ filterName?: string
54
+
55
+ /**
56
+ * The search filters
57
+ */
58
+ filters?: object
59
+
60
+ /**
61
+ * The next page value
62
+ */
63
+ goToNextPage?: number
64
+
65
+ /**
66
+ * Set to go to a specific page
67
+ */
68
+ goToPage?: number
69
+
70
+ /**
71
+ * Set to go to the previous page
72
+ */
73
+ goToPrevPage?: number
74
+
75
+ /**
76
+ * The last page number value
77
+ */
78
+ lastPageNumber?: number
79
+
80
+ /**
81
+ * The searched term to use for the search
82
+ */
83
+ search?: string
84
+
85
+ /**
86
+ * The search params filters to use for the search
87
+ */
88
+ searchFilters?: object
89
+
90
+ /**
91
+ * The search params to use for the search
92
+ */
93
+ searchParams?: object
94
+
95
+ /**
96
+ * Total hits value to use for the search
97
+ */
98
+ setTotalHits?: number
99
+
100
+ /**
101
+ * The sort value to use for the search
102
+ */
103
+ sort?: string
104
+
105
+ /**
106
+ * The sorts value to use for the search
107
+ */
108
+ sorts?: object
109
+
50
110
  // table related config
51
111
  // actionable?: string | boolean // optional: determines whether the table displays any "action items" (defaults: true)
52
112
  // actions?: string | string[] // optional: the specific type of actions to be displayed/utilized in the table (defaults: 'Edit, Delete')
@@ -8,8 +8,26 @@ const totalHits = table.results?.estimatedTotalHits ?? 1
8
8
 
9
9
  // state
10
10
  const pages: Ref<number[]> = ref([])
11
- const totalPages = ref(0)
12
- const currentPage = computed(() => table.currentPage)
11
+ export const totalPages = ref(0)
12
+ export const currentPage = computed(() => table.currentPage)
13
+ export const filterName = computed(() => table.filterName)
14
+
15
+ export const filters = computed(() => table.filters)
16
+ export const goToNextPage = computed(() => table.goToNextPage)
17
+ export const goToPage = computed(() => table.goToPage)
18
+ export const goToPrevPage = computed(() => table.goToPrevPage)
19
+ export const hits = computed(() => table.hits)
20
+ export const index = computed(() => table.index)
21
+ export const lastPageNumber = computed(() => table.lastPageNumber)
22
+ export const perPage = computed(() => table.perPage)
23
+ export const query = computed(() => table.query)
24
+ export const results = computed(() => table.results)
25
+ export const search = computed(() => table.search)
26
+ export const searchFilters = computed(() => table.searchFilters)
27
+ export const searchParams = computed(() => table.searchParams)
28
+ export const setTotalHits = computed(() => table.setTotalHits)
29
+ export const sort = computed(() => table.sort)
30
+ export const sorts = computed(() => table.sorts)
13
31
 
14
32
  export function client() {
15
33
  if (searchEngine.driver === 'meilisearch')
@@ -53,4 +71,17 @@ export default {
53
71
  search,
54
72
  calculatePagination,
55
73
  currentPage,
74
+ totalPages,
75
+ filterName,
76
+ filters,
77
+ goToNextPage,
78
+ goToPage,
79
+ goToPrevPage,
80
+ hits,
81
+ index,
82
+ searchFilters,
83
+ searchParams,
84
+ setTotalHits,
85
+ sort,
86
+ sorts,
56
87
  }
@@ -11,7 +11,7 @@ else
11
11
  export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.0.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.0.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
17
17
  fi
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/security",
3
3
  "type": "module",
4
- "version": "0.48.2",
5
- "packageManager": "pnpm@7.21.0",
4
+ "version": "0.49.0",
5
+ "packageManager": "pnpm@7.25.0",
6
6
  "description": "The Stacks framework security.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -33,8 +33,8 @@
33
33
  "README.md"
34
34
  ],
35
35
  "engines": {
36
- "node": ">=v18.12.1",
37
- "pnpm": ">=7.21.0"
36
+ "node": ">=v18.13.0",
37
+ "pnpm": ">=7.25.0"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "mkdist -d",
@@ -47,11 +47,11 @@
47
47
  "@stacksjs/types": "workspace:*",
48
48
  "bcryptjs": "^2.4.3",
49
49
  "crypto-js": "^4.1.1",
50
- "js-base64": "^3.7.3"
50
+ "js-base64": "^3.7.4"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@stacksjs/testing": "workspace:*",
54
- "mkdist": "^1.0.0",
54
+ "mkdist": "^1.1.0",
55
55
  "typescript": "^4.9.4"
56
56
  }
57
57
  }
@@ -11,7 +11,7 @@ else
11
11
  export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.0.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.0.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
17
17
  fi
@@ -11,7 +11,7 @@ else
11
11
  export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vite@4.0.3/node_modules/vite/bin/vite.js" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vite@4.0.4/node_modules/vite/bin/vite.js" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/vite@4.0.3/node_modules/vite/bin/vite.js" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/vite@4.0.4/node_modules/vite/bin/vite.js" "$@"
17
17
  fi
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/server",
3
3
  "type": "module",
4
- "version": "0.48.2",
5
- "packageManager": "pnpm@7.21.0",
4
+ "version": "0.49.0",
5
+ "packageManager": "pnpm@7.25.0",
6
6
  "description": "Local development and production-ready.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -36,8 +36,8 @@
36
36
  "README.md"
37
37
  ],
38
38
  "engines": {
39
- "node": ">=v18.12.1",
40
- "pnpm": ">=7.21.0"
39
+ "node": ">=v18.13.0",
40
+ "pnpm": ">=7.25.0"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "mkdist -d",
@@ -49,11 +49,11 @@
49
49
  "@stacksjs/config": "workspace:*",
50
50
  "@stacksjs/path": "workspace:*",
51
51
  "nitropack": "^1.0.0",
52
- "vite": "^4.0.3"
52
+ "vite": "^4.0.4"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@stacksjs/testing": "workspace:*",
56
- "mkdist": "^1.0.0",
56
+ "mkdist": "^1.1.0",
57
57
  "typescript": "^4.9.4"
58
58
  }
59
59
  }
@@ -1,6 +1,7 @@
1
- import { app } from '@stacksjs/config'
1
+ // import { app } from '@stacksjs/config'
2
2
 
3
3
  export const config = {
4
- port: app.port,
4
+ // port: app.port,
5
+ port: 3333,
5
6
  open: true,
6
7
  }
@@ -11,7 +11,7 @@ else
11
11
  export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.0.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.0.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
17
17
  fi
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/sms",
3
3
  "type": "module",
4
- "version": "0.48.2",
5
- "packageManager": "pnpm@7.21.0",
4
+ "version": "0.49.0",
5
+ "packageManager": "pnpm@7.25.0",
6
6
  "description": "The Stacks SMS integration. Painlessly create & manage your inboxes, templates, and send sms.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -40,8 +40,8 @@
40
40
  "README.md"
41
41
  ],
42
42
  "engines": {
43
- "node": ">=v18.12.1",
44
- "pnpm": ">=7.21.0"
43
+ "node": ">=v18.13.0",
44
+ "pnpm": ">=7.25.0"
45
45
  },
46
46
  "scripts": {
47
47
  "build": "mkdist -d",
@@ -51,16 +51,16 @@
51
51
  },
52
52
  "peerDependencies": {
53
53
  "@maizzle/framework": "latest",
54
- "@novu/gupshup": "^0.10.0",
55
- "@novu/nexmo": "^0.10.0",
56
- "@novu/node": "^0.10.0",
57
- "@novu/plivo": "^0.10.0",
58
- "@novu/sms77": "^0.10.0",
59
- "@novu/sns": "^0.10.0",
60
- "@novu/stateless": "^0.10.0",
61
- "@novu/telnyx": "^0.10.0",
62
- "@novu/termii": "^0.10.0",
63
- "@novu/twilio": "^0.10.0",
54
+ "@novu/gupshup": "^0.10.2",
55
+ "@novu/nexmo": "^0.10.2",
56
+ "@novu/node": "^0.10.2",
57
+ "@novu/plivo": "^0.10.2",
58
+ "@novu/sms77": "^0.10.2",
59
+ "@novu/sns": "^0.10.2",
60
+ "@novu/stateless": "^0.10.2",
61
+ "@novu/telnyx": "^0.10.2",
62
+ "@novu/termii": "^0.10.2",
63
+ "@novu/twilio": "^0.10.2",
64
64
  "@stacksjs/cli": "workspace:*",
65
65
  "@stacksjs/config": "workspace:*",
66
66
  "@stacksjs/error-handling": "workspace:*",
@@ -68,7 +68,7 @@
68
68
  },
69
69
  "devDependencies": {
70
70
  "@stacksjs/testing": "workspace:*",
71
- "mkdist": "^1.0.0",
71
+ "mkdist": "^1.1.0",
72
72
  "typescript": "^4.9.4"
73
73
  }
74
74
  }
@@ -11,7 +11,7 @@ else
11
11
  export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.0.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.0.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
17
17
  fi
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/storage",
3
3
  "type": "module",
4
- "version": "0.48.2",
5
- "packageManager": "pnpm@7.21.0",
4
+ "version": "0.49.0",
5
+ "packageManager": "pnpm@7.25.0",
6
6
  "description": "The Stacks file system.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -37,8 +37,8 @@
37
37
  "README.md"
38
38
  ],
39
39
  "engines": {
40
- "node": ">=v18.12.1",
41
- "pnpm": ">=7.21.0"
40
+ "node": ">=v18.13.0",
41
+ "pnpm": ">=7.25.0"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "mkdist -d",
@@ -56,7 +56,7 @@
56
56
  "devDependencies": {
57
57
  "@stacksjs/path": "workspace:*",
58
58
  "@stacksjs/testing": "workspace:*",
59
- "mkdist": "^1.0.0",
59
+ "mkdist": "^1.1.0",
60
60
  "typescript": "^4.9.4"
61
61
  }
62
62
  }
@@ -11,7 +11,7 @@ else
11
11
  export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.0.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.0.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
17
17
  fi
@@ -11,7 +11,7 @@ else
11
11
  export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/unbuild@1.0.2/node_modules/unbuild/dist/cli.mjs" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/unbuild@1.1.1/node_modules/unbuild/dist/cli.mjs" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/unbuild@1.0.2/node_modules/unbuild/dist/cli.mjs" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/unbuild@1.1.1/node_modules/unbuild/dist/cli.mjs" "$@"
17
17
  fi
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/strings",
3
3
  "type": "module",
4
- "version": "0.48.2",
5
- "packageManager": "pnpm@7.21.0",
4
+ "version": "0.49.0",
5
+ "packageManager": "pnpm@7.25.0",
6
6
  "description": "The Stacks string utilities.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -45,8 +45,8 @@
45
45
  "README.md"
46
46
  ],
47
47
  "engines": {
48
- "node": ">=v18.12.1",
49
- "pnpm": ">=7.21.0"
48
+ "node": ">=v18.13.0",
49
+ "pnpm": ">=7.25.0"
50
50
  },
51
51
  "scripts": {
52
52
  "build": "unbuild",
@@ -56,6 +56,7 @@
56
56
  },
57
57
  "peerDependencies": {
58
58
  "@stacksjs/alias": "workspace:*",
59
+ "@stacksjs/types": "workspace:*",
59
60
  "@types/pluralize": "^0.0.29",
60
61
  "@types/validator": "^13.7.10",
61
62
  "change-case": "^4.1.2",
@@ -64,8 +65,8 @@
64
65
  },
65
66
  "devDependencies": {
66
67
  "@stacksjs/testing": "workspace:*",
67
- "mkdist": "^1.0.0",
68
+ "mkdist": "^1.1.0",
68
69
  "typescript": "^4.9.4",
69
- "unbuild": "^1.0.2"
70
+ "unbuild": "^1.1.1"
70
71
  }
71
72
  }
@@ -0,0 +1,17 @@
1
+ import { defineBuildConfig } from 'unbuild'
2
+ import { alias } from '@stacksjs/alias'
3
+
4
+ export default defineBuildConfig({
5
+ failOnWarn: false,
6
+ alias,
7
+ entries: [
8
+ './src/index',
9
+ ],
10
+ declaration: false,
11
+ clean: false,
12
+ externals: ['chalk'],
13
+ rollup: {
14
+ emitCJS: true,
15
+ inlineDependencies: true,
16
+ },
17
+ })
File without changes
@@ -0,0 +1,13 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Vite + Vue</title>
8
+ </head>
9
+ <body>
10
+ <div id="app"></div>
11
+ <script type="module" src="/src/main.js"></script>
12
+ </body>
13
+ </html>
@@ -11,7 +11,7 @@ else
11
11
  export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.0.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.0.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
17
17
  fi
@@ -11,7 +11,7 @@ else
11
11
  export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/unbuild@1.0.2/node_modules/unbuild/dist/cli.mjs" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/unbuild@1.1.1/node_modules/unbuild/dist/cli.mjs" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/unbuild@1.0.2/node_modules/unbuild/dist/cli.mjs" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/unbuild@1.1.1/node_modules/unbuild/dist/cli.mjs" "$@"
17
17
  fi
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vite@4.0.4/node_modules/vite/bin/vite.js" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/vite@4.0.4/node_modules/vite/bin/vite.js" "$@"
17
+ fi
@@ -0,0 +1,97 @@
1
+ import { resolve } from 'path'
2
+ import { defineConfig } from 'vite'
3
+ import Vue from '@vitejs/plugin-vue'
4
+ import Unocss from 'unocss/vite'
5
+ import PresetIcons from '@unocss/preset-icons'
6
+ import AutoImport from 'unplugin-auto-import/vite'
7
+ import Components from 'unplugin-vue-components/vite'
8
+
9
+ /** @type {import('vite').UserConfig} */
10
+ const config = {
11
+ resolve: {
12
+ // dedupe: ['vue'],
13
+ alias: {
14
+ '~': resolve(__dirname, 'src'),
15
+ },
16
+ },
17
+
18
+ optimizeDeps: {
19
+ exclude: ['vue-demi'],
20
+ },
21
+
22
+ plugins: [
23
+ Vue(),
24
+
25
+ Unocss({
26
+ mode: 'vue-scoped',
27
+ presets: [
28
+ PresetIcons({
29
+ prefix: 'i-',
30
+ extraProperties: {
31
+ 'display': 'inline-block',
32
+ 'vertical-align': 'middle',
33
+ },
34
+ }),
35
+ ],
36
+ }),
37
+
38
+ // https://github.com/antfu/unplugin-auto-import
39
+ AutoImport({
40
+ imports: ['vue', '@vueuse/core', {
41
+ '~/composables/dark': ['isDark', 'toggleDark'],
42
+ '~/composables/table': ['useTable'],
43
+ }],
44
+ dts: 'src/auto-imports.d.ts',
45
+ eslintrc: {
46
+ enabled: true,
47
+ },
48
+ }),
49
+
50
+ // https://github.com/antfu/unplugin-vue-components
51
+ Components({
52
+ dirs: ['src/components'],
53
+ // allow auto import and register components used in markdown
54
+ include: [/\.vue$/, /\.vue\?vue/, /\.md$/],
55
+ dts: 'src/components.d.ts',
56
+ }),
57
+ ],
58
+
59
+ build: {
60
+ lib: {
61
+ entry: resolve(__dirname, 'src/main.ts'),
62
+ name: 'table-vue',
63
+ fileName: format => `table-vue.${format}.js`,
64
+ },
65
+
66
+ rollupOptions: {
67
+ external: ['vue', 'vue-demi'],
68
+ output: {
69
+ // exports: 'named',
70
+ globals: {
71
+ 'vue': 'Vue',
72
+ 'vue-demi': 'vue-demi',
73
+ },
74
+ },
75
+ },
76
+
77
+ sourcemap: true,
78
+ minify: true,
79
+ },
80
+
81
+ test: {
82
+ include: ['tests/**/*.test.ts'],
83
+ // environment: 'jsdom',
84
+ deps: {
85
+ inline: ['@vue', '@vueuse', 'vue-demi'],
86
+ },
87
+ },
88
+ }
89
+
90
+ // https://vitejs.dev/config
91
+ export default defineConfig(({ command }) => {
92
+ if (command === 'serve')
93
+ return config
94
+
95
+ // command === 'build'
96
+ return config
97
+ })