@creopse/bridge 0.1.12 → 0.1.14

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.
@@ -0,0 +1,17 @@
1
+ import "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/lodash.js";
2
+ import "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/browser-image-compression@2.0.2/node_modules/browser-image-compression/dist/browser-image-compression.mjs";
3
+ import r from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/dayjs.min.js";
4
+ import "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/locale/fr.js";
5
+ import e from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/plugin/customParseFormat.js";
6
+ import a from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/plugin/relativeTime.js";
7
+ r.extend(e);
8
+ r.extend(a);
9
+ function D(t) {
10
+ return t.replace(/[^a-z0-9\/-]/g, "").replace(/\//g, "-");
11
+ }
12
+ var d = "PluginDashboard", g = "PluginSettings";
13
+ export {
14
+ d as D,
15
+ g as S,
16
+ D as s
17
+ };
@@ -1,4 +1,4 @@
1
- import { Plugin } from 'vite';
1
+ import { PluginOption } from 'vite';
2
2
  export interface CreopseReactPluginOptions {
3
3
  /**
4
4
  * Path to the manifest.jsonc file, relative to the project root.
@@ -37,4 +37,4 @@ export interface CreopseReactPluginOptions {
37
37
  */
38
38
  eslintAutoImport?: boolean;
39
39
  }
40
- export declare function CreopseReactPlugin(options?: CreopseReactPluginOptions): Plugin;
40
+ export declare function CreopseReactPlugin(options?: CreopseReactPluginOptions): PluginOption[];
@@ -1,16 +1,16 @@
1
- import { DASHBOARD_MODULE_NAME as y, SETTINGS_MODULE_NAME as b, sanitizeId as L } from "@creopse/utils/helpers";
2
- import S from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/@originjs+vite-plugin-federation@1.4.1/node_modules/@originjs/vite-plugin-federation/dist/index.mjs";
3
- import D from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/@vitejs+plugin-basic-ssl@2.3.0_vite@7.0.5_@types+node@24.0.15_jiti@2.6.1_tsx@4.21.0_/node_modules/@vitejs/plugin-basic-ssl/dist/index.mjs";
4
- import x from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/@vitejs+plugin-react@4.6.0_vite@7.0.5_@types+node@24.0.15_jiti@2.6.1_tsx@4.21.0_/node_modules/@vitejs/plugin-react/dist/index.mjs";
5
- import { stringify as C, parse as M } from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/comment-json@4.6.2/node_modules/comment-json/src/index.js";
6
- import O from "fs";
1
+ import { D as S, S as b, s as D } from "../index-C8b1StIO.js";
2
+ import L from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/@originjs+vite-plugin-federation@1.4.1/node_modules/@originjs/vite-plugin-federation/dist/index.mjs";
3
+ import x from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/@vitejs+plugin-basic-ssl@2.3.0_vite@7.0.5_@types+node@24.0.15_jiti@2.6.1_tsx@4.21.0_/node_modules/@vitejs/plugin-basic-ssl/dist/index.mjs";
4
+ import C from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/@vitejs+plugin-react@4.6.0_vite@7.0.5_@types+node@24.0.15_jiti@2.6.1_tsx@4.21.0_/node_modules/@vitejs/plugin-react/dist/index.mjs";
5
+ import { stringify as M, parse as O } from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/comment-json@4.6.2/node_modules/comment-json/src/index.js";
6
+ import j from "fs";
7
7
  import s from "path";
8
- import j from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/rollup-plugin-copy@3.5.0/node_modules/rollup-plugin-copy/dist/index.module.js";
9
- import k from "vite-plugin-auto-import-lite";
10
- import N from "vite-plugin-i18next-loader";
11
- import B from "vite-plugin-json5";
12
- import $ from "vite-plugin-top-level-await";
13
- function Q(A = {}) {
8
+ import k from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/rollup-plugin-copy@3.5.0/node_modules/rollup-plugin-copy/dist/index.module.js";
9
+ import N from "vite-plugin-auto-import-lite";
10
+ import B from "vite-plugin-i18next-loader";
11
+ import $ from "vite-plugin-json5";
12
+ import z from "vite-plugin-top-level-await";
13
+ function X(A = {}) {
14
14
  const {
15
15
  manifestPath: p = "./manifest.jsonc",
16
16
  srcDir: c = "./src",
@@ -22,42 +22,42 @@ function Q(A = {}) {
22
22
  } = A;
23
23
  let r, e, u, g, o, v, P, h;
24
24
  function I() {
25
- const a = s.resolve(r, p), m = O.readFileSync(a, "utf-8");
26
- if (e = M(m || "{}"), o = {}, e.pages && Array.isArray(e.pages))
27
- for (const l of e.pages)
28
- o[`./${l.name}`] = l.module;
25
+ const l = s.resolve(r, p), m = j.readFileSync(l, "utf-8");
26
+ if (e = O(m || "{}"), o = {}, e.pages && Array.isArray(e.pages))
27
+ for (const a of e.pages)
28
+ o[`./${a.name}`] = a.module;
29
29
  const n = e.dashboard;
30
- n?.module && (o[`./${y}`] = n.module);
30
+ n?.module && (o[`./${S}`] = n.module);
31
31
  const i = e.settings;
32
32
  i?.module && (o[`./${b}`] = i.module);
33
33
  const t = e.development;
34
- u = L(String(e.id)) || "creopse-plugin", g = e.entry || "remoteEntry.js", v = t?.previewPort || 2160, P = t?.serverPort || 2161, h = t?.ssl || !1;
34
+ u = D(String(e.id)) || "creopse-plugin", g = e.entry || "remoteEntry.js", v = t?.previewPort || 2160, P = t?.serverPort || 2161, h = t?.ssl || !1;
35
35
  }
36
- return {
36
+ const y = {
37
37
  name: "creopse-react-plugin",
38
- config(a) {
39
- r = a.root || process.cwd(), I();
38
+ config(l) {
39
+ r = l.root || process.cwd(), I();
40
40
  const m = process.env.APP_IS_PREVIEW === "true", n = f ? s.resolve(r, f) : s.resolve(r, c, "i18n/locales"), i = ["react", "react-dom", "zustand", ...E];
41
41
  return {
42
42
  envPrefix: "APP_",
43
43
  plugins: [
44
- x(),
45
- S({
44
+ C(),
45
+ L({
46
46
  name: u,
47
47
  filename: g,
48
48
  exposes: o,
49
49
  shared: i
50
50
  }),
51
- $({
51
+ z({
52
52
  promiseExportName: "__tla",
53
53
  promiseImportName: (t) => `__tla_${t}`
54
54
  }),
55
- B(),
56
- N({
55
+ // json5Plugin(),
56
+ B({
57
57
  paths: [n],
58
58
  include: ["**/*.json"]
59
59
  }),
60
- k({
60
+ N({
61
61
  dirs: _,
62
62
  imports: ["react"],
63
63
  vueTemplate: !1,
@@ -69,7 +69,7 @@ function Q(A = {}) {
69
69
  }
70
70
  } : {}
71
71
  }),
72
- ...h ? [D()] : []
72
+ ...h ? [x()] : []
73
73
  ],
74
74
  resolve: {
75
75
  alias: [
@@ -85,16 +85,16 @@ function Q(A = {}) {
85
85
  outDir: d,
86
86
  rollupOptions: {
87
87
  plugins: [
88
- j({
88
+ k({
89
89
  targets: [
90
90
  {
91
91
  src: s.resolve(r, p),
92
92
  dest: d,
93
93
  transform() {
94
- return e?.mode && (e.mode = m ? "development" : "production"), ((l) => l.replace(/(,)\s*\n/g, `,
94
+ return e?.mode && (e.mode = m ? "development" : "production"), ((a) => a.replace(/(,)\s*\n/g, `,
95
95
 
96
96
  `))(
97
- C(e, null, 2)
97
+ M(e, null, 2)
98
98
  );
99
99
  }
100
100
  }
@@ -126,7 +126,8 @@ function Q(A = {}) {
126
126
  };
127
127
  }
128
128
  };
129
+ return [$(), y];
129
130
  }
130
131
  export {
131
- Q as CreopseReactPlugin
132
+ X as CreopseReactPlugin
132
133
  };
@@ -1,4 +1,4 @@
1
- import { Plugin } from 'vite';
1
+ import { PluginOption } from 'vite';
2
2
  export interface CreopseVuePluginOptions {
3
3
  /**
4
4
  * Path to the manifest.jsonc file, relative to the project root.
@@ -32,4 +32,4 @@ export interface CreopseVuePluginOptions {
32
32
  */
33
33
  shared?: string[];
34
34
  }
35
- export declare function CreopseVuePlugin(options?: CreopseVuePluginOptions): Plugin;
35
+ export declare function CreopseVuePlugin(options?: CreopseVuePluginOptions): PluginOption[];
package/dist/vite/vue.js CHANGED
@@ -1,92 +1,92 @@
1
- import { DASHBOARD_MODULE_NAME as y, SETTINGS_MODULE_NAME as I, sanitizeId as b } from "@creopse/utils/helpers";
2
- import L from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/@originjs+vite-plugin-federation@1.4.1/node_modules/@originjs/vite-plugin-federation/dist/index.mjs";
3
- import S from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/@vitejs+plugin-basic-ssl@2.3.0_vite@7.0.5_@types+node@24.0.15_jiti@2.6.1_tsx@4.21.0_/node_modules/@vitejs/plugin-basic-ssl/dist/index.mjs";
4
- import D from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/@vitejs+plugin-vue@6.0.5_vite@7.0.5_@types+node@24.0.15_jiti@2.6.1_tsx@4.21.0__vue@3.5.32_typescript@5.8.3_/node_modules/@vitejs/plugin-vue/dist/index.mjs";
5
- import { stringify as x, parse as C } from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/comment-json@4.6.2/node_modules/comment-json/src/index.js";
6
- import M from "fs";
7
- import s from "path";
8
- import O from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/rollup-plugin-copy@3.5.0/node_modules/rollup-plugin-copy/dist/index.module.js";
9
- import N from "vite-plugin-auto-import-lite";
10
- import j from "vite-plugin-i18next-loader";
11
- import B from "vite-plugin-json5";
12
- import $ from "vite-plugin-top-level-await";
13
- function K(h = {}) {
1
+ import { D as I, S, s as b } from "../index-C8b1StIO.js";
2
+ import D from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/@originjs+vite-plugin-federation@1.4.1/node_modules/@originjs/vite-plugin-federation/dist/index.mjs";
3
+ import L from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/@vitejs+plugin-basic-ssl@2.3.0_vite@7.0.5_@types+node@24.0.15_jiti@2.6.1_tsx@4.21.0_/node_modules/@vitejs/plugin-basic-ssl/dist/index.mjs";
4
+ import x from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/@vitejs+plugin-vue@6.0.5_vite@7.0.5_@types+node@24.0.15_jiti@2.6.1_tsx@4.21.0__vue@3.5.32_typescript@5.8.3_/node_modules/@vitejs/plugin-vue/dist/index.mjs";
5
+ import { stringify as C, parse as M } from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/comment-json@4.6.2/node_modules/comment-json/src/index.js";
6
+ import O from "fs";
7
+ import t from "path";
8
+ import N from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/rollup-plugin-copy@3.5.0/node_modules/rollup-plugin-copy/dist/index.module.js";
9
+ import j from "vite-plugin-auto-import-lite";
10
+ import B from "vite-plugin-i18next-loader";
11
+ import $ from "vite-plugin-json5";
12
+ import k from "vite-plugin-top-level-await";
13
+ function Q(h = {}) {
14
14
  const {
15
15
  manifestPath: m = "./manifest.jsonc",
16
16
  srcDir: c = "./src",
17
- outDir: d = "frontend",
18
- i18nLocalesPath: u,
17
+ outDir: u = "frontend",
18
+ i18nLocalesPath: d,
19
19
  composablesDirs: _ = ["src/composables"],
20
20
  shared: E = []
21
21
  } = h;
22
- let r, e, f, v, t, g, P, A;
22
+ let r, e, f, v, s, g, P, A;
23
23
  function w() {
24
- const a = s.resolve(r, m), p = M.readFileSync(a, "utf-8");
25
- if (e = C(p || "{}"), t = {}, e.pages && Array.isArray(e.pages))
24
+ const a = t.resolve(r, m), p = O.readFileSync(a, "utf-8");
25
+ if (e = M(p || "{}"), s = {}, e.pages && Array.isArray(e.pages))
26
26
  for (const l of e.pages)
27
- t[`./${l.name}`] = l.module;
28
- const i = e.dashboard;
29
- i?.module && (t[`./${y}`] = i.module);
30
- const n = e.settings;
31
- n?.module && (t[`./${I}`] = n.module);
27
+ s[`./${l.name}`] = l.module;
28
+ const n = e.dashboard;
29
+ n?.module && (s[`./${I}`] = n.module);
30
+ const i = e.settings;
31
+ i?.module && (s[`./${S}`] = i.module);
32
32
  const o = e.development;
33
33
  f = b(String(e.id)) || "creopse-plugin", v = e.entry || "remoteEntry.js", g = o?.previewPort || 2160, P = o?.serverPort || 2161, A = o?.ssl || !1;
34
34
  }
35
- return {
35
+ const y = {
36
36
  name: "creopse-vue-plugin",
37
37
  config(a) {
38
38
  r = a.root || process.cwd(), w();
39
- const p = process.env.APP_IS_PREVIEW === "true", i = u ? s.resolve(r, u) : s.resolve(r, c, "i18n/locales"), n = ["vue", "pinia", ...E];
39
+ const p = process.env.APP_IS_PREVIEW === "true", n = d ? t.resolve(r, d) : t.resolve(r, c, "i18n/locales"), i = ["vue", "pinia", ...E];
40
40
  return {
41
41
  envPrefix: "APP_",
42
42
  plugins: [
43
- D(),
44
- L({
43
+ x(),
44
+ D({
45
45
  name: f,
46
46
  filename: v,
47
- exposes: t,
48
- shared: n
47
+ exposes: s,
48
+ shared: i
49
49
  }),
50
- $({
50
+ k({
51
51
  promiseExportName: "__tla",
52
52
  promiseImportName: (o) => `__tla_${o}`
53
53
  }),
54
- B(),
55
- j({
56
- paths: [i],
54
+ // json5Plugin(),
55
+ B({
56
+ paths: [n],
57
57
  include: ["**/*.json"]
58
58
  }),
59
- N({
59
+ j({
60
60
  dirs: _,
61
61
  imports: ["vue", "pinia"],
62
62
  vueTemplate: !0
63
63
  }),
64
- ...A ? [S()] : []
64
+ ...A ? [L()] : []
65
65
  ],
66
66
  resolve: {
67
67
  alias: [
68
68
  {
69
69
  find: "@",
70
- replacement: s.resolve(r, c)
70
+ replacement: t.resolve(r, c)
71
71
  }
72
72
  ],
73
73
  dedupe: ["vue"]
74
74
  },
75
75
  build: {
76
76
  target: "esnext",
77
- outDir: d,
77
+ outDir: u,
78
78
  rollupOptions: {
79
79
  plugins: [
80
- O({
80
+ N({
81
81
  targets: [
82
82
  {
83
- src: s.resolve(r, m),
84
- dest: d,
83
+ src: t.resolve(r, m),
84
+ dest: u,
85
85
  transform() {
86
86
  return e?.mode && (e.mode = p ? "development" : "production"), ((l) => l.replace(/(,)\s*\n/g, `,
87
87
 
88
88
  `))(
89
- x(e, null, 2)
89
+ C(e, null, 2)
90
90
  );
91
91
  }
92
92
  }
@@ -118,7 +118,8 @@ function K(h = {}) {
118
118
  };
119
119
  }
120
120
  };
121
+ return [$(), y];
121
122
  }
122
123
  export {
123
- K as CreopseVuePlugin
124
+ Q as CreopseVuePlugin
124
125
  };
@@ -1,14 +1,14 @@
1
1
  export declare const useResponsive: () => {
2
- is2XlScreen: import('vue').Ref<boolean, boolean>;
3
- isXlScreen: import('vue').Ref<boolean, boolean>;
4
- isLgScreen: import('vue').Ref<boolean, boolean>;
5
- isMdScreen: import('vue').Ref<boolean, boolean>;
6
- isSmScreen: import('vue').Ref<boolean, boolean>;
7
- fromSm: import('vue').Ref<boolean, boolean>;
8
- fromMd: import('vue').Ref<boolean, boolean>;
9
- fromLg: import('vue').Ref<boolean, boolean>;
10
- fromXl: import('vue').Ref<boolean, boolean>;
11
- from2Xl: import('vue').Ref<boolean, boolean>;
2
+ is2XlScreen: import('vue').ComputedRef<boolean>;
3
+ isXlScreen: import('vue').ComputedRef<boolean>;
4
+ isLgScreen: import('vue').ComputedRef<boolean>;
5
+ isMdScreen: import('vue').ComputedRef<boolean>;
6
+ isSmScreen: import('vue').ComputedRef<boolean>;
7
+ fromSm: import('vue').ComputedRef<boolean>;
8
+ fromMd: import('vue').ComputedRef<boolean>;
9
+ fromLg: import('vue').ComputedRef<boolean>;
10
+ fromXl: import('vue').ComputedRef<boolean>;
11
+ from2Xl: import('vue').ComputedRef<boolean>;
12
12
  isMobile: import('vue').ComputedRef<boolean>;
13
13
  isTablet: import('vue').ComputedRef<boolean>;
14
14
  isDesktop: import('vue').ComputedRef<boolean>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@creopse/bridge",
3
3
  "description": "Creopse Bridge Toolkit",
4
- "version": "0.1.12",
4
+ "version": "0.1.14",
5
5
  "private": false,
6
6
  "author": "Noé Gnanih <noegnanih@gmail.com>",
7
7
  "license": "MIT",
@@ -33,30 +33,15 @@
33
33
  "README.md"
34
34
  ],
35
35
  "peerDependencies": {
36
- "@iconify/react": "^6.0.2",
37
- "@iconify/vue": "^5.0.0",
38
- "@vueuse/core": "^10.11.1",
39
- "naive-ui": "^2.44.1",
36
+ "vue": "^3.5.27",
37
+ "vue-i18n": "^11.3.0",
40
38
  "pinia": "^3.0.0",
41
39
  "react": "^19.2.4",
42
40
  "react-dom": "^19.2.4",
43
- "vue": "^3.5.27",
44
- "vue-i18n": "^11.3.0",
45
- "zustand": "^5.0.12"
41
+ "zustand": "^5.0.12",
42
+ "vite": "^7.0.5"
46
43
  },
47
44
  "peerDependenciesMeta": {
48
- "naive-ui": {
49
- "optional": true
50
- },
51
- "@vueuse/core": {
52
- "optional": true
53
- },
54
- "@iconify/vue": {
55
- "optional": true
56
- },
57
- "@iconify/react": {
58
- "optional": true
59
- },
60
45
  "vue": {
61
46
  "optional": true
62
47
  },
@@ -74,29 +59,35 @@
74
59
  },
75
60
  "zustand": {
76
61
  "optional": true
62
+ },
63
+ "vite": {
64
+ "optional": false
77
65
  }
78
66
  },
79
67
  "dependencies": {
68
+ "@iconify/react": "^6.0.2",
69
+ "@iconify/vue": "^5.0.0",
70
+ "@vueuse/core": "^14.2.1",
71
+ "naive-ui": "^2.44.1",
80
72
  "framer-motion": "^12.23.9",
81
- "@creopse/utils": "0.1.9"
82
- },
83
- "devDependencies": {
84
73
  "@originjs/vite-plugin-federation": "^1.4.1",
85
- "@types/react": "^19.2.4",
86
- "@types/react-dom": "^19.1.6",
87
74
  "@vitejs/plugin-basic-ssl": "^2.3.0",
88
75
  "@vitejs/plugin-react": "^4.6.0",
89
76
  "@vitejs/plugin-vue": "^6.0.5",
90
77
  "comment-json": "^4.6.2",
91
78
  "rollup-plugin-copy": "^3.5.0",
92
- "tsx": "^4.21.0",
93
- "typescript": "~5.8.3",
94
- "vite": "^7.0.5",
95
79
  "vite-plugin-auto-import-lite": "^0.0.2",
96
- "vite-plugin-dts": "^4.5.4",
97
80
  "vite-plugin-i18next-loader": "^3.1.3",
98
81
  "vite-plugin-json5": "^1.2.0",
99
- "vite-plugin-top-level-await": "^1.6.0"
82
+ "vite-plugin-top-level-await": "^1.6.0",
83
+ "@creopse/utils": "0.1.9"
84
+ },
85
+ "devDependencies": {
86
+ "@types/react": "^19.2.4",
87
+ "@types/react-dom": "^19.1.6",
88
+ "tsx": "^4.21.0",
89
+ "typescript": "~5.8.3",
90
+ "vite-plugin-dts": "^4.5.4"
100
91
  },
101
92
  "repository": {
102
93
  "type": "git",