@wix/headless-bookings 0.0.1 → 0.0.2
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/cjs/dist/react/ServiceList.d.ts +50 -0
- package/cjs/dist/react/ServiceList.js +100 -0
- package/cjs/dist/react/ServiceListSort.d.ts +37 -0
- package/cjs/dist/react/ServiceListSort.js +35 -0
- package/cjs/dist/react/core/Service.d.ts +91 -0
- package/cjs/dist/react/core/Service.js +73 -0
- package/cjs/dist/react/core/ServiceList.d.ts +218 -0
- package/cjs/dist/react/core/ServiceList.js +199 -0
- package/cjs/dist/react/index.d.ts +4 -0
- package/cjs/dist/react/index.js +5 -0
- package/cjs/dist/react/test-ids.d.ts +18 -0
- package/cjs/dist/react/test-ids.js +24 -0
- package/cjs/dist/react/types.d.ts +52 -0
- package/cjs/dist/react/types.js +1 -0
- package/cjs/dist/services/index.d.ts +1 -0
- package/cjs/dist/services/index.js +1 -0
- package/cjs/dist/services/service-service.d.ts +136 -0
- package/cjs/dist/services/service-service.js +140 -0
- package/cjs/dist/services/services-list-service.d.ts +184 -0
- package/cjs/dist/services/services-list-service.js +168 -0
- package/cjs/package.json +3 -0
- package/dist/react/ServiceList.d.ts +50 -0
- package/dist/react/ServiceList.js +100 -0
- package/dist/react/ServiceListSort.d.ts +37 -0
- package/dist/react/ServiceListSort.js +35 -0
- package/dist/react/core/Service.d.ts +91 -0
- package/dist/react/core/Service.js +73 -0
- package/dist/react/core/ServiceList.d.ts +218 -0
- package/dist/react/core/ServiceList.js +199 -0
- package/dist/react/index.d.ts +4 -0
- package/dist/react/index.js +5 -0
- package/dist/react/test-ids.d.ts +18 -0
- package/dist/react/test-ids.js +24 -0
- package/dist/react/types.d.ts +52 -0
- package/dist/react/types.js +1 -0
- package/dist/services/index.d.ts +1 -0
- package/dist/services/index.js +1 -0
- package/dist/services/service-service.d.ts +136 -0
- package/dist/services/service-service.js +140 -0
- package/dist/services/services-list-service.d.ts +184 -0
- package/dist/services/services-list-service.js +168 -0
- package/package.json +58 -13
- package/react/package.json +4 -0
- package/services/package.json +4 -0
- package/src/react/index.tsx +0 -3
- package/tsconfig.json +0 -25
package/package.json
CHANGED
|
@@ -1,14 +1,59 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
"name": "@wix/headless-bookings",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"prebuild": "cd ../media && yarn build && cd ../ecom && yarn build",
|
|
7
|
+
"build": "npm run build:esm && npm run build:cjs",
|
|
8
|
+
"build:esm": "tsc -p tsconfig.json",
|
|
9
|
+
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
10
|
+
"test": "vitest",
|
|
11
|
+
"lint:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md}\"",
|
|
12
|
+
"lint:check": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json,md}\""
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist",
|
|
16
|
+
"cjs",
|
|
17
|
+
"react",
|
|
18
|
+
"services",
|
|
19
|
+
"server-actions",
|
|
20
|
+
"astro"
|
|
21
|
+
],
|
|
22
|
+
"exports": {
|
|
23
|
+
"./react": {
|
|
24
|
+
"types": "./dist/react/index.d.ts",
|
|
25
|
+
"import": "./dist/react/index.js",
|
|
26
|
+
"require": "./cjs/dist/react/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./services": {
|
|
29
|
+
"types": "./dist/services/index.d.ts",
|
|
30
|
+
"import": "./dist/services/index.js",
|
|
31
|
+
"require": "./cjs/dist/services/index.js"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@wix/bookings": "^1.0.122",
|
|
36
|
+
"@wix/headless-media": "0.0.13",
|
|
37
|
+
"@wix/headless-utils": "0.0.3",
|
|
38
|
+
"@wix/services-definitions": "^0.1.4",
|
|
39
|
+
"@wix/services-manager-react": "^0.1.26",
|
|
40
|
+
"react": "^18.2.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@testing-library/dom": "^10.4.0",
|
|
44
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
45
|
+
"@testing-library/react": "^16.3.0",
|
|
46
|
+
"@types/node": "^20.9.0",
|
|
47
|
+
"@types/react": "^18.2.0",
|
|
48
|
+
"@types/react-dom": "^18.2.0",
|
|
49
|
+
"@vitest/ui": "^3.1.4",
|
|
50
|
+
"jsdom": "^26.1.0",
|
|
51
|
+
"prettier": "^3.4.2",
|
|
52
|
+
"typescript": "^5.8.3",
|
|
53
|
+
"vitest": "^3.1.4"
|
|
54
|
+
},
|
|
55
|
+
"peerDependencies": {
|
|
56
|
+
"@wix/headless-components": "0.0.13",
|
|
57
|
+
"react": "^18.2.0"
|
|
58
|
+
}
|
|
59
|
+
}
|
package/src/react/index.tsx
DELETED
package/tsconfig.json
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ESNext" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
|
|
4
|
-
"module": "ESNext" /* Specify what module code is generated. */,
|
|
5
|
-
"moduleResolution": "bundler" /* Specify how TypeScript looks up a file from a given module specifier. */,
|
|
6
|
-
"resolveJsonModule": true /* Enable importing .json files. */,
|
|
7
|
-
"rootDir": "./src" /* Specify the root folder within your source files. */,
|
|
8
|
-
"outDir": "./dist" /* Specify an output folder for all emitted files. */,
|
|
9
|
-
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
|
|
10
|
-
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
|
|
11
|
-
"noImplicitAny": true /* Enable error reporting for expressions and declarations with an implied 'any' type. */,
|
|
12
|
-
"noImplicitThis": true /* Enable error reporting when 'this' is given the type 'any'. */,
|
|
13
|
-
"useUnknownInCatchVariables": true /* Default catch clause variables as 'unknown' instead of 'any'. */,
|
|
14
|
-
"noUnusedLocals": true /* Enable error reporting when local variables aren't read. */,
|
|
15
|
-
"noUnusedParameters": true /* Raise an error when a function parameter isn't read. */,
|
|
16
|
-
"noUncheckedIndexedAccess": true /* Add 'undefined' to a type when accessed using an index. */,
|
|
17
|
-
"noPropertyAccessFromIndexSignature": true /* Enforces using indexed accessors for keys declared using an indexed type. */,
|
|
18
|
-
"skipLibCheck": true /* Skip type checking all .d.ts files. */,
|
|
19
|
-
"declaration": true,
|
|
20
|
-
"strict": true,
|
|
21
|
-
"noEmitOnError": false,
|
|
22
|
-
"jsx": "react-jsx"
|
|
23
|
-
},
|
|
24
|
-
"include": ["src/**/*"]
|
|
25
|
-
}
|