fansunited-frontend-components 0.0.1-RC3 → 0.0.1-RC4

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/package.json CHANGED
@@ -1,30 +1,8 @@
1
1
  {
2
2
  "name": "fansunited-frontend-components",
3
- "version": "0.0.1-RC3",
3
+ "version": "0.0.1-RC4",
4
4
  "description": "Various user centric components for Fans United features",
5
- "type": "module",
6
- "main": "./dist/esm/components.js",
7
- "module": "./dist/esm/components.js",
8
- "exports": {
9
- ".": {
10
- "import": "./dist/esm/components.js",
11
- "require": "./dist/esm/components.js"
12
- }
13
- },
14
- "scripts": {
15
- "build": "yarn build:esm",
16
- "build:esm": "tsc -b && vite build --config vite.config.ts",
17
- "build:umd": "tsc -b && vite build --config vite.config.umd.ts",
18
- "publish:npm": "yarn publish --non-interactive"
19
- },
20
- "devDependencies": {
21
- "vite": "^5.0.0",
22
- "vite-plugin-dts": "^3.0.0",
23
- "@vitejs/plugin-react": "^4.0.0",
24
- "typescript": "^5.0.0"
25
- },
26
- "peerDependencies": {
27
- "react": ">=16.8.0",
28
- "react-dom": ">=16.8.0"
29
- }
5
+ "main": "components.js",
6
+ "author": "Fans United",
7
+ "homepage": "https://fansunitedmedia.com/"
30
8
  }
@@ -1,3 +0,0 @@
1
- import ClassicQuizPlay from "@fansunited/classic-quiz-play";
2
- export { ClassicQuizPlay };
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,CAAC"}
package/dist/src/index.js DELETED
@@ -1,2 +0,0 @@
1
- import ClassicQuizPlay from "@fansunited/classic-quiz-play";
2
- export { ClassicQuizPlay };
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=indexUmd.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"indexUmd.d.ts","sourceRoot":"","sources":["../../src/indexUmd.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- import ClassicQuizPlay from "@fansunited/classic-quiz-play";
2
- if (typeof window !== "undefined") {
3
- window.ClassicQuizPlay = ClassicQuizPlay;
4
- }
@@ -1 +0,0 @@
1
- {"root":["../src/index.ts","../src/indexumd.ts","../vite.config.ts","../vite.config.umd.ts"],"version":"5.6.3"}
@@ -1,3 +0,0 @@
1
- declare const _default: import("vite").UserConfig;
2
- export default _default;
3
- //# sourceMappingURL=vite.config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../vite.config.ts"],"names":[],"mappings":";AAKA,wBAoCG"}
@@ -1,38 +0,0 @@
1
- import { defineConfig } from "vite";
2
- import { resolve } from "path";
3
- import react from "@vitejs/plugin-react";
4
- import dts from "vite-plugin-dts";
5
- export default defineConfig({
6
- plugins: [
7
- react(),
8
- dts({
9
- insertTypesEntry: true,
10
- }),
11
- ],
12
- resolve: {
13
- alias: {
14
- "@fansunited/common": resolve(__dirname, "../common/src"),
15
- "@fansunited/classic-quiz-play": resolve(__dirname, "../classic-quiz-play/src"),
16
- },
17
- },
18
- build: {
19
- outDir: "dist/esm",
20
- lib: {
21
- entry: resolve(__dirname, "src/index.ts"),
22
- name: "FansUnitedFrontendComponents",
23
- formats: ["es"],
24
- fileName(_, __) {
25
- return `components.js`;
26
- },
27
- },
28
- rollupOptions: {
29
- external: ["react", "react-dom"],
30
- output: {
31
- globals: {
32
- react: "React",
33
- "react-dom": "ReactDOM",
34
- },
35
- },
36
- },
37
- },
38
- });
@@ -1,3 +0,0 @@
1
- declare const _default: import("vite").UserConfig;
2
- export default _default;
3
- //# sourceMappingURL=vite.config.umd.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vite.config.umd.d.ts","sourceRoot":"","sources":["../vite.config.umd.ts"],"names":[],"mappings":";AAKA,wBAiCG"}
@@ -1,35 +0,0 @@
1
- import { defineConfig } from "vite";
2
- import { resolve } from "path";
3
- import react from "@vitejs/plugin-react";
4
- import dts from "vite-plugin-dts";
5
- export default defineConfig({
6
- plugins: [
7
- react(),
8
- dts({
9
- insertTypesEntry: true,
10
- }),
11
- ],
12
- resolve: {
13
- alias: {
14
- // "@": resolve(__dirname, "./src"),
15
- "@fansunited/common": resolve(__dirname, "../common/src"),
16
- "@fansunited/classic-quiz-play": resolve(__dirname, "../classic-quiz-play/src"),
17
- },
18
- },
19
- build: {
20
- outDir: "dist/umd",
21
- lib: {
22
- entry: resolve(__dirname, "src/indexUmd.ts"),
23
- fileName(_, __) {
24
- return `components.js`;
25
- },
26
- name: "FansUnitedFrontendComponents",
27
- formats: ["umd"],
28
- },
29
- rollupOptions: {
30
- output: {
31
- globals: {},
32
- },
33
- },
34
- },
35
- });
package/src/index.ts DELETED
@@ -1,3 +0,0 @@
1
- import ClassicQuizPlay from "@fansunited/classic-quiz-play";
2
-
3
- export { ClassicQuizPlay };
package/src/indexUmd.ts DELETED
@@ -1,5 +0,0 @@
1
- import ClassicQuizPlay from "@fansunited/classic-quiz-play";
2
-
3
- if (typeof window !== "undefined") {
4
- (window as any).ClassicQuizPlay = ClassicQuizPlay;
5
- }
package/tsconfig.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.base.json",
3
- "compilerOptions": {
4
- "outDir": "./dist",
5
- "declaration": true,
6
- "declarationMap": true
7
- },
8
- "include": ["src/**/*", "vite.config.ts", "vite.config.umd.ts"],
9
- "exclude": ["dist", "node_modules"]
10
- }
package/vite.config.ts DELETED
@@ -1,42 +0,0 @@
1
- import { defineConfig } from "vite";
2
- import { resolve } from "path";
3
- import react from "@vitejs/plugin-react";
4
- import dts from "vite-plugin-dts";
5
-
6
- export default defineConfig({
7
- plugins: [
8
- react(),
9
- dts({
10
- insertTypesEntry: true,
11
- }),
12
- ],
13
- resolve: {
14
- alias: {
15
- "@fansunited/common": resolve(__dirname, "../common/src"),
16
- "@fansunited/classic-quiz-play": resolve(
17
- __dirname,
18
- "../classic-quiz-play/src"
19
- ),
20
- },
21
- },
22
- build: {
23
- outDir: "dist/esm",
24
- lib: {
25
- entry: resolve(__dirname, "src/index.ts"),
26
- name: "FansUnitedFrontendComponents",
27
- formats: ["es"],
28
- fileName(_, __) {
29
- return `components.js`;
30
- },
31
- },
32
- rollupOptions: {
33
- external: ["react", "react-dom"],
34
- output: {
35
- globals: {
36
- react: "React",
37
- "react-dom": "ReactDOM",
38
- },
39
- },
40
- },
41
- },
42
- });
@@ -1,39 +0,0 @@
1
- import { defineConfig } from "vite";
2
- import { resolve } from "path";
3
- import react from "@vitejs/plugin-react";
4
- import dts from "vite-plugin-dts";
5
-
6
- export default defineConfig({
7
- plugins: [
8
- react(),
9
- dts({
10
- insertTypesEntry: true,
11
- }),
12
- ],
13
- resolve: {
14
- alias: {
15
- // "@": resolve(__dirname, "./src"),
16
- "@fansunited/common": resolve(__dirname, "../common/src"),
17
- "@fansunited/classic-quiz-play": resolve(
18
- __dirname,
19
- "../classic-quiz-play/src"
20
- ),
21
- },
22
- },
23
- build: {
24
- outDir: "dist/umd",
25
- lib: {
26
- entry: resolve(__dirname, "src/indexUmd.ts"),
27
- fileName(_, __) {
28
- return `components.js`;
29
- },
30
- name: "FansUnitedFrontendComponents",
31
- formats: ["umd"],
32
- },
33
- rollupOptions: {
34
- output: {
35
- globals: {},
36
- },
37
- },
38
- },
39
- });
package/vite.config_2.ts DELETED
@@ -1,30 +0,0 @@
1
- import { defineConfig } from "vite";
2
- import react from "@vitejs/plugin-react";
3
- import dts from "vite-plugin-dts";
4
- import { resolve } from "path";
5
-
6
- export default defineConfig({
7
- plugins: [
8
- react(),
9
- dts({
10
- insertTypesEntry: true,
11
- }),
12
- ],
13
- build: {
14
- lib: {
15
- entry: resolve(__dirname, "src/index.ts"),
16
- name: "FansUnitedFrontendComponents",
17
- formats: ["es", "umd"],
18
- fileName: (format) => `index.${format === "es" ? "js" : "umd.js"}`,
19
- },
20
- rollupOptions: {
21
- external: ["react", "react-dom"],
22
- output: {
23
- globals: {
24
- react: "React",
25
- "react-dom": "ReactDOM",
26
- },
27
- },
28
- },
29
- },
30
- });
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes