pankosmia-rcl 0.3.1 → 0.4.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/README.md CHANGED
@@ -1,3 +1,22 @@
1
1
  # core-client-rcl
2
2
 
3
- A React Component Library pour Pankosmia
3
+ A React Component Library for Pankosmia.
4
+
5
+ ## Build
6
+
7
+ ​`bash
8
+ npm run build
9
+ ​`
10
+
11
+ This uses Vite to create two folders:
12
+
13
+ - **`build`** — used by the app
14
+ - **`exported-rcl`** — what will be published to npm
15
+
16
+ ## Debugging
17
+
18
+ To check which files will be exported before publishing, run:
19
+
20
+ ​`bash
21
+ npm pack --dry-run
22
+ ​`
@@ -0,0 +1,17 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <link rel="icon" href="/api/clients/main/favicon.ico" />
6
+ <link rel="stylesheet" href="/api/webfonts/_webfonts.css" />
7
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
8
+ <meta name="theme-color" content="#000000" />
9
+ <meta name="description" content="Pankosmia" />
10
+ <link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
11
+ <title>Pankosmia</title>
12
+ </head>
13
+ <body>
14
+ <noscript>You need to enable JavaScript to run this app.</noscript>
15
+ <div id="root"></div>
16
+ </body>
17
+ </html>
@@ -1,4 +1,4 @@
1
- (function(Ae,$){typeof exports=="object"&&typeof module<"u"?$(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],$):(Ae=typeof globalThis<"u"?globalThis:Ae||self,$(Ae["pankosmia-rcl"]={},Ae.React,Ae.ReactDOM))})(this,(function(Ae,$,ln){"use strict";var k1=Object.defineProperty;var P1=(Ae,$,ln)=>$ in Ae?k1(Ae,$,{enumerable:!0,configurable:!0,writable:!0,value:ln}):Ae[$]=ln;var fi=(Ae,$,ln)=>P1(Ae,typeof $!="symbol"?$+"":$,ln);function Jl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const v=Jl($),Ff=Jl(ln);function Zl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mi={exports:{}},sr={};/**
1
+ (function(Ae,$){typeof exports=="object"&&typeof module<"u"?$(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],$):(Ae=typeof globalThis<"u"?globalThis:Ae||self,$(Ae.pankosmiaRcl={},Ae.React,Ae.ReactDOM))})(this,(function(Ae,$,ln){"use strict";var k1=Object.defineProperty;var P1=(Ae,$,ln)=>$ in Ae?k1(Ae,$,{enumerable:!0,configurable:!0,writable:!0,value:ln}):Ae[$]=ln;var fi=(Ae,$,ln)=>P1(Ae,typeof $!="symbol"?$+"":$,ln);function Jl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const v=Jl($),Ff=Jl(ln);function Zl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mi={exports:{}},sr={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
package/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "pankosmia-rcl",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "private": false,
5
5
  "homepage": "/clients/core-client-rcl",
6
- "main": "build/pankosmia-rcl.umd.js",
7
- "module": "build/pankosmia-rcl.es.js",
6
+ "main": "exported-rcl/pankosmia-rcl.umd.js",
7
+ "module": "exported-rcl/pankosmia-rcl.es.js",
8
+ "files": [
9
+ "exported-rcl"
10
+ ],
8
11
  "dependencies": {
9
12
  "@emotion/react": "^11.13.3",
10
13
  "@emotion/styled": "^11.13.0",
@@ -16,11 +19,9 @@
16
19
  "notistack": "^3.0.2",
17
20
  "pankosmia-lib": "^0.0.3",
18
21
  "react": "^17.0.0 || ^18.0.0",
19
- "react-dom": "^17.0.0 || ^18.0.0",
20
- "react-scripts": "^5.0.1"
22
+ "react-dom": "^17.0.0 || ^18.0.0"
21
23
  },
22
24
  "devDependencies": {
23
- "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
24
25
  "@vitejs/plugin-react": "^4.3.4",
25
26
  "husky": "^9.1.7",
26
27
  "prettier": "3.8.1",
@@ -31,12 +32,10 @@
31
32
  "react-dom": "^17.0.0 || ^18.0.0"
32
33
  },
33
34
  "scripts": {
34
- "start": "react-scripts start",
35
- "build": "react-scripts build",
36
- "build:vite": "vite build",
35
+ "build": "vite build && vite build --mode rcl",
36
+ "build:rcl": "vite build --mode rcl",
37
37
  "build:package": "vite build",
38
38
  "dev": "vite",
39
- "prepublishOnly": "rm -rf ./build && npm run build:vite",
40
39
  "prepare": "husky"
41
40
  },
42
41
  "eslintConfig": {
package/.prettierignore DELETED
@@ -1,2 +0,0 @@
1
- build
2
- node_modules
package/vite.config.js DELETED
@@ -1,39 +0,0 @@
1
- import path from "path";
2
- import { defineConfig } from "vite";
3
- import react from "@vitejs/plugin-react";
4
-
5
- // https://vitejs.dev/config/
6
- export default defineConfig({
7
- plugins: [react()],
8
- server: {
9
- port: 5174, // Unique port for new_project
10
- strictPort: true,
11
- host: true,
12
- cors: true,
13
- origin: "http://localhost:8000",
14
- proxy: {
15
- "/api": {
16
- target: "http://127.0.0.1:19119", // Backend server
17
- changeOrigin: true, // Ensure the request appears to come from the frontend server
18
- },
19
- },
20
- },
21
- build: {
22
- outDir: "build",
23
- emptyOutDir: true,
24
- sourcemap: true,
25
- rollupOptions: {
26
- external: ["react", "react-dom"],
27
- /* output: {
28
- name: "pankosmia-rcl",
29
- globals: { 'react': 'React', 'react-dom': 'ReactDom' }
30
- }*/
31
- },
32
- lib: {
33
- entry: path.resolve(__dirname, "./src/rcl/index.js"),
34
- name: "pankosmia-rcl",
35
- fileName: (format) => `pankosmia-rcl.${format}.js`,
36
- },
37
- },
38
- base: "/clients/core-client-rcl/",
39
- });
File without changes
File without changes
File without changes