@compsych-ui-components/shared 3.2.5 → 4.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compsych-ui-components/shared",
3
- "version": "3.2.5",
3
+ "version": "4.0.0",
4
4
  "description": "Shared types, design tokens, utilities, and assets for compsych UI components",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -13,5 +13,6 @@
13
13
  "publishConfig": {
14
14
  "access": "public",
15
15
  "registry": "https://registry.npmjs.org/"
16
- }
17
- }
16
+ },
17
+ "type": "commonjs"
18
+ }
package/src/index.js ADDED
@@ -0,0 +1,5 @@
1
+ export * from './types';
2
+ export * from './tokens';
3
+ export * from './utils';
4
+
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../packages/shared/src/index.ts"],"sourcesContent":["export * from './types';\nexport * from './tokens';\nexport * from './utils';\n"],"names":[],"mappings":"AAAA,cAAc,UAAU;AACxB,cAAc,WAAW;AACzB,cAAc,UAAU"}
@@ -0,0 +1 @@
1
+ export {};
@@ -1,2 +1,4 @@
1
1
  // Design tokens: colors, spacing, typography
2
- export {};
2
+ export { };
3
+
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../packages/shared/src/tokens/index.ts"],"sourcesContent":["// Design tokens: colors, spacing, typography\nexport {};\n"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,WAAU"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ // Shared TypeScript types and interfaces
2
+ export { };
3
+
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../packages/shared/src/types/index.ts"],"sourcesContent":["// Shared TypeScript types and interfaces\nexport {};\n"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,WAAU"}
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Displays a browser alert dialog with the provided message.
3
+ */
4
+ export declare function showAlert(message: string): void;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Displays a browser alert dialog with the provided message.
3
+ */ export function showAlert(message) {
4
+ alert(message);
5
+ }
6
+
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../packages/shared/src/utils/index.ts"],"sourcesContent":["/**\n * Displays a browser alert dialog with the provided message.\n */\nexport function showAlert(message: string): void {\n alert(message);\n}\n"],"names":["showAlert","message","alert"],"mappings":"AAAA;;CAEC,GACD,OAAO,SAASA,UAAUC,OAAe;IACvCC,MAAMD;AACR"}
package/.gitkeep DELETED
File without changes
package/.swcrc DELETED
@@ -1,19 +0,0 @@
1
- {
2
- "jsc": {
3
- "target": "es2022",
4
- "parser": {
5
- "syntax": "typescript",
6
- "tsx": false,
7
- "decorators": true,
8
- "dynamicImport": true
9
- },
10
- "transform": {
11
- "decoratorMetadata": true
12
- }
13
- },
14
- "module": {
15
- "type": "nodenext"
16
- },
17
- "sourceMaps": true,
18
- "exclude": [".*\\.spec\\.tsx?$"]
19
- }
package/project.json DELETED
@@ -1,24 +0,0 @@
1
- {
2
- "name": "shared",
3
- "$schema": "../../node_modules/nx/schemas/project-schema.json",
4
- "sourceRoot": "packages/shared/src",
5
- "projectType": "library",
6
- "targets": {
7
- "build": {
8
- "executor": "@nx/js:swc",
9
- "outputs": ["{options.outputPath}"],
10
- "options": {
11
- "outputPath": "dist/packages/shared",
12
- "main": "packages/shared/src/index.ts",
13
- "tsConfig": "packages/shared/tsconfig.lib.json",
14
- "assets": [
15
- {
16
- "input": "packages/shared/src/assets",
17
- "glob": "**/*",
18
- "output": "assets"
19
- }
20
- ]
21
- }
22
- }
23
- }
24
- }
@@ -1,2 +0,0 @@
1
- // Shared TypeScript types and interfaces
2
- export {};
@@ -1,6 +0,0 @@
1
- /**
2
- * Displays a browser alert dialog with the provided message.
3
- */
4
- export function showAlert(message: string): void {
5
- alert(message);
6
- }
package/tsconfig.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.base.json",
3
- "compilerOptions": {
4
- "outDir": "../../dist/out-tsc",
5
- "declarationDir": "../../dist/out-tsc"
6
- },
7
- "include": ["src/**/*.ts"]
8
- }
package/tsconfig.lib.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "types": []
6
- },
7
- "exclude": ["**/*.spec.ts"]
8
- }
File without changes