@compsych-ui-components/shared 3.2.5 → 4.0.1

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.1",
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,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ _export_star(require("./types"), exports);
6
+ _export_star(require("./tokens"), exports);
7
+ _export_star(require("./utils"), exports);
8
+ function _export_star(from, to) {
9
+ Object.keys(from).forEach(function(k) {
10
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
11
+ Object.defineProperty(to, k, {
12
+ enumerable: true,
13
+ get: function() {
14
+ return from[k];
15
+ }
16
+ });
17
+ }
18
+ });
19
+ return from;
20
+ }
21
+
22
+ //# 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":";;;;qBAAc;qBACA;qBACA"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ // Design tokens: colors, spacing, typography
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ //# 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"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ // Shared TypeScript types and interfaces
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ //# 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"}
@@ -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,17 @@
1
+ /**
2
+ * Displays a browser alert dialog with the provided message.
3
+ */ "use strict";
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ Object.defineProperty(exports, "showAlert", {
8
+ enumerable: true,
9
+ get: function() {
10
+ return showAlert;
11
+ }
12
+ });
13
+ function showAlert(message) {
14
+ alert(message);
15
+ }
16
+
17
+ //# 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;;;;+BACeA;;;eAAAA;;;AAAT,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
- // Design tokens: colors, spacing, typography
2
- export {};
@@ -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