pukaad-ui-lib 1.95.0 → 1.96.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.
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
3
  "configKey": "pukaadUI",
4
- "version": "1.95.0",
4
+ "version": "1.96.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { defineNuxtModule, createResolver, addImportsDir, addComponentsDir, addImports, addTemplate, installModule, addPlugin } from '@nuxt/kit';
1
+ import { defineNuxtModule, createResolver, addImportsDir, addComponentsDir, installModule, addPlugin } from '@nuxt/kit';
2
2
  import tailwindcss from '@tailwindcss/vite';
3
3
 
4
4
  const module$1 = defineNuxtModule({
@@ -16,16 +16,6 @@ const module$1 = defineNuxtModule({
16
16
  prefix: "",
17
17
  global: true
18
18
  });
19
- addImports({
20
- name: "dayjs",
21
- as: "dayjs",
22
- from: "#dayjs"
23
- });
24
- addTemplate({
25
- filename: "dayjs.imports.mjs",
26
- getContents: () => generateImportDayJs(),
27
- write: true
28
- });
29
19
  await installModule("@nuxt/icon", {
30
20
  mode: "svg",
31
21
  customCollections: [
@@ -79,7 +69,6 @@ const module$1 = defineNuxtModule({
79
69
  });
80
70
  addPlugin(resolver.resolve("./runtime/plugins/re-captcha"));
81
71
  addPlugin(resolver.resolve("./runtime/plugins/loadingPage"));
82
- addPlugin(resolver.resolve("./runtime/plugins/dayjs"));
83
72
  addPlugin(resolver.resolve("./runtime/plugins/alert"));
84
73
  addPlugin(resolver.resolve("./runtime/plugins/toast"));
85
74
  addPlugin(resolver.resolve("./runtime/plugins/quill.client"));
@@ -101,37 +90,10 @@ const module$1 = defineNuxtModule({
101
90
  });
102
91
  _nuxt.options.runtimeConfig.public.BASE_URL_API = process.env.BASE_URL_API ?? "";
103
92
  _nuxt.options.runtimeConfig.public.RECAPTCHA_KEY = process.env.RECAPTCHA_KEY ?? "";
104
- _nuxt.options.alias["#dayjs"] = resolver.resolve(
105
- _nuxt.options.buildDir,
106
- "dayjs.imports.mjs"
107
- );
108
93
  _nuxt.hook("prepare:types", ({ references }) => {
109
- references.push(
110
- { types: "dayjs/plugin/buddhistEra" },
111
- { types: "dayjs/plugin/minMax" },
112
- { types: "dayjs/plugin/updateLocale" },
113
- { path: resolver.resolve("./types/convert.d.ts") }
114
- );
94
+ references.push({ path: resolver.resolve("./types/convert.d.ts") });
115
95
  });
116
96
  }
117
97
  });
118
- const generateImportDayJs = () => {
119
- return `
120
- import dayjs from "dayjs";
121
- import buddhistEra from "dayjs/plugin/buddhistEra";
122
- import minMax from "dayjs/plugin/minMax";
123
- import updateLocale from "dayjs/plugin/updateLocale";
124
- import duration from "dayjs/plugin/duration";
125
- import "dayjs/locale/th";
126
-
127
- dayjs.extend(updateLocale);
128
- dayjs.extend(buddhistEra);
129
- dayjs.extend(minMax);
130
- dayjs.extend(duration);
131
- dayjs.locale("th");
132
-
133
- export default dayjs;
134
- `;
135
- };
136
98
 
137
99
  export { module$1 as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
- "version": "1.95.0",
3
+ "version": "1.96.0",
4
4
  "description": "pukaad-ui for MeMSG",
5
5
  "repository": {
6
6
  "type": "git",