Merge branch 'main' into 'fix-templates'.

This commit is contained in:
Darshan
2025-07-21 18:11:21 +05:30
6 changed files with 169 additions and 116 deletions
+1 -1
View File
@@ -66,7 +66,7 @@
"@typescript-eslint/parser": "^8.28.0",
"@vitest/ui": "^3.0.9",
"color": "^5.0.0",
"eslint": "^9.23.0",
"eslint": "^9.31.0",
"eslint-config-prettier": "^10.1.0",
"eslint-plugin-svelte": "^3.3.3",
"globals": "^16.0.0",
+132 -106
View File
@@ -4,9 +4,6 @@ settings:
autoInstallPeers: true
excludeLinksFromLockfile: false
overrides:
'@eslint/plugin-kit': ^0.3.3
importers:
.:
@@ -27,8 +24,8 @@ importers:
specifier: ^1.0.3
version: 1.0.3
'@appwrite.io/pink-svelte':
specifier: https://pkg.vc/-/@appwrite/@appwrite.io/pink-svelte@95bdb79
version: https://pkg.vc/-/@appwrite/%40appwrite.io%2Fpink-svelte@95bdb79(svelte@5.25.3)
specifier: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@fee5c53
version: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@fee5c53(svelte@5.25.3)
'@popperjs/core':
specifier: ^2.11.8
version: 2.11.8
@@ -85,11 +82,11 @@ importers:
version: 6.3.7
devDependencies:
'@eslint/compat':
specifier: ^1.3.1
version: 1.3.1(eslint@9.23.0)
specifier: ^1.2.7
version: 1.2.7(eslint@9.31.0)
'@eslint/js':
specifier: ^9.31.0
version: 9.31.0
specifier: ^9.24.0
version: 9.24.0
'@melt-ui/pp':
specifier: ^0.3.2
version: 0.3.2(@melt-ui/svelte@0.86.5(svelte@5.25.3))(svelte@5.25.3)
@@ -131,10 +128,10 @@ importers:
version: 2.0.8
'@typescript-eslint/eslint-plugin':
specifier: ^8.28.0
version: 8.28.0(@typescript-eslint/parser@8.28.0(eslint@9.23.0)(typescript@5.8.2))(eslint@9.23.0)(typescript@5.8.2)
version: 8.28.0(@typescript-eslint/parser@8.28.0(eslint@9.31.0)(typescript@5.8.2))(eslint@9.31.0)(typescript@5.8.2)
'@typescript-eslint/parser':
specifier: ^8.28.0
version: 8.28.0(eslint@9.23.0)(typescript@5.8.2)
version: 8.28.0(eslint@9.31.0)(typescript@5.8.2)
'@vitest/ui':
specifier: ^3.0.9
version: 3.0.9(vitest@3.0.9)
@@ -142,14 +139,14 @@ importers:
specifier: ^5.0.0
version: 5.0.0
eslint:
specifier: ^9.23.0
version: 9.23.0
specifier: ^9.31.0
version: 9.31.0
eslint-config-prettier:
specifier: ^10.1.0
version: 10.1.1(eslint@9.23.0)
version: 10.1.1(eslint@9.31.0)
eslint-plugin-svelte:
specifier: ^3.3.3
version: 3.3.3(eslint@9.23.0)(svelte@5.25.3)
version: 3.3.3(eslint@9.31.0)(svelte@5.25.3)
globals:
specifier: ^16.0.0
version: 16.0.0
@@ -191,7 +188,7 @@ importers:
version: 5.8.2
typescript-eslint:
specifier: ^8.30.1
version: 8.30.1(eslint@9.23.0)(typescript@5.8.2)
version: 8.30.1(eslint@9.31.0)(typescript@5.8.2)
vite:
specifier: ^6.2.3
version: 6.2.3(@types/node@22.13.14)(sass@1.86.0)
@@ -264,8 +261,9 @@ packages:
resolution: {tarball: https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@8836b0c}
version: 1.9.0
'@appwrite.io/pink-icons-svelte@2.0.0-RC.1':
resolution: {integrity: sha512-iLFlV55hj8mGuAbmxJGenxN5RaZMmVT4GJb9dv/MP1xBAtYibFq7JvBcxm18qV2KU8c31Rntf+Ub4GL7HwqTYg==}
'@appwrite.io/pink-icons-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@fee5c539136e15c93cd3f2398d25cb217caa8dc8':
resolution: {tarball: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@fee5c539136e15c93cd3f2398d25cb217caa8dc8}
version: 2.0.0-RC.1
peerDependencies:
svelte: ^4.0.0
@@ -284,8 +282,8 @@ packages:
'@appwrite.io/pink-legacy@1.0.3':
resolution: {integrity: sha512-GGde5fmPhs+s6/3aFeMPc/kKADG/gTFkYQSy6oBN8pK0y0XNCLrZZgBv+EBbdhwdtqVEWXa0X85Mv9w7jcIlwQ==}
'@appwrite.io/pink-svelte@https://pkg.vc/-/@appwrite/%40appwrite.io%2Fpink-svelte@95bdb79':
resolution: {tarball: https://pkg.vc/-/@appwrite/%40appwrite.io%2Fpink-svelte@95bdb79}
'@appwrite.io/pink-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@fee5c53':
resolution: {tarball: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@fee5c53}
version: 2.0.0-RC.2
peerDependencies:
svelte: ^4.0.0
@@ -548,25 +546,21 @@ packages:
resolution: {integrity: sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==}
engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0}
'@eslint/compat@1.3.1':
resolution: {integrity: sha512-k8MHony59I5EPic6EQTCNOuPoVBnoYXkP+20xvwFjN7t0qI3ImyvyBgg+hIVPwC8JaxVjjUZld+cLfBLFDLucg==}
'@eslint/compat@1.2.7':
resolution: {integrity: sha512-xvv7hJE32yhegJ8xNAnb62ggiAwTYHBpUCWhRxEj/ksvgDJuSXfoDkBcRYaYNFiJ+jH0IE3K16hd+xXzhBgNbg==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
eslint: ^8.40 || 9
eslint: ^9.10.0
peerDependenciesMeta:
eslint:
optional: true
'@eslint/config-array@0.19.2':
resolution: {integrity: sha512-GNKqxfHG2ySmJOBSHg7LxeUx4xpuCoFjacmlCoYWEbaPXLwvfIjixRI12xCQZeULksQb23uiA8F40w5TojpV7w==}
'@eslint/config-array@0.21.0':
resolution: {integrity: sha512-ENIdc4iLu0d93HeYirvKmrzshzofPw6VkZRKQGe9Nv46ZnWUzcF1xV01dcvEg/1wXUR61OmmlSfyeyO7EvjLxQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@eslint/config-helpers@0.2.0':
resolution: {integrity: sha512-yJLLmLexii32mGrhW29qvU3QBVTu0GUmEf/J4XsBtVhp4JkIUFN/BjWqTF63yRvGApIDpZm5fa97LtYtINmfeQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@eslint/core@0.12.0':
resolution: {integrity: sha512-cmrR6pytBuSMTaBweKoGMwu3EiHiEC+DoyupPmlZ0HxBJBtIxwe+j/E4XPIKNx+Q74c8lXKPwYawBf5glsTkHg==}
'@eslint/config-helpers@0.3.0':
resolution: {integrity: sha512-ViuymvFmcJi04qdZeDc2whTHryouGcDlaxPqarTD0ZE10ISpxGUVZGZDx4w01upyIynL3iu6IXH2bS1NhclQMw==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@eslint/core@0.15.1':
@@ -577,8 +571,8 @@ packages:
resolution: {integrity: sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@eslint/js@9.23.0':
resolution: {integrity: sha512-35MJ8vCPU0ZMxo7zfev2pypqTwWTofFZO6m4KAtdoFhRpLJUpHTZZ+KB3C7Hb1d7bULYwO4lJXGCi5Se+8OMbw==}
'@eslint/js@9.24.0':
resolution: {integrity: sha512-uIY/y3z0uvOGX8cp1C2fiC4+ZmBhp6yZWkojtHL1YEMnRt1Y63HB9TM17proGEmeG7HeUY+UP36F0aknKYTpYA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@eslint/js@9.31.0':
@@ -1352,11 +1346,11 @@ packages:
'@types/prismjs@1.26.5':
resolution: {integrity: sha512-AUZTa7hQ2KY5L7AmtSiqxlhWxb4ina0yd8hNbl4TWuqnv/pFP0nDMb3YrfSBf4hJVGLh2YEIBfKaBW/9UEl6IQ==}
'@types/prop-types@15.7.15':
resolution: {integrity: sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==}
'@types/prop-types@15.7.14':
resolution: {integrity: sha512-gNMvNH49DJ7OJYv+KAKn0Xp45p8PLl6zo2YnvDIbTd4J6MER2BmWN49TG7n9LvkyihINxeKW8+3bfS2yDC9dzQ==}
'@types/react@18.3.23':
resolution: {integrity: sha512-/LDXMQh55EzZQ0uVAZmKKhfENivEvWz6E+EYzh+/MCjMhNsotd+ZHhBGIjFDTi6+fz0OhQQQLbTgdQIxxCsC0w==}
'@types/react@18.3.22':
resolution: {integrity: sha512-vUhG0YmQZ7kL/tmKLrD3g5zXbXXreZXB3pmROW8bg3CnLnpjkRVwUlLne7Ufa2r9yJ8+/6B73RzhAek5TBKh2Q==}
'@types/remarkable@2.0.8':
resolution: {integrity: sha512-eKXqPZfpQl1kOADjdKchHrp2gwn9qMnGXhH/AtZe0UrklzhGJkawJo/Y/D0AlWcdWoWamFNIum8+/nkAISQVGg==}
@@ -1545,6 +1539,11 @@ packages:
engines: {node: '>=0.4.0'}
hasBin: true
acorn@8.15.0:
resolution: {integrity: sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==}
engines: {node: '>=0.4.0'}
hasBin: true
agent-base@6.0.2:
resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==}
engines: {node: '>= 6.0.0'}
@@ -2081,6 +2080,10 @@ packages:
resolution: {integrity: sha512-pUNxi75F8MJ/GdeKtVLSbYg4ZI34J6C0C7sbL4YOp2exGwen7ZsuBqKzUhXd0qMQ362yET3z+uPwKeg/0C2XCQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
eslint-scope@8.4.0:
resolution: {integrity: sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
eslint-visitor-keys@3.4.3:
resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -2089,8 +2092,12 @@ packages:
resolution: {integrity: sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
eslint@9.23.0:
resolution: {integrity: sha512-jV7AbNoFPAY1EkFYpLq5bslU9NLNO8xnEeQXwErNibVryjk67wHVmddTBilc5srIttJDBrB0eMHKZBFbSIABCw==}
eslint-visitor-keys@4.2.1:
resolution: {integrity: sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
eslint@9.31.0:
resolution: {integrity: sha512-QldCVh/ztyKJJZLr4jXNUByx3gR+TDYZCRXEktiZoUR3PGy4qCmSbkxcIle8GEwGpb5JBZazlaJ/CxLidXdEbQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
hasBin: true
peerDependencies:
@@ -2106,6 +2113,10 @@ packages:
resolution: {integrity: sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
espree@10.4.0:
resolution: {integrity: sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
esprima@4.0.1:
resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==}
engines: {node: '>=4'}
@@ -3652,7 +3663,7 @@ snapshots:
'@appwrite.io/console@https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@8836b0c': {}
'@appwrite.io/pink-icons-svelte@2.0.0-RC.1(svelte@5.25.3)':
'@appwrite.io/pink-icons-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@fee5c539136e15c93cd3f2398d25cb217caa8dc8(svelte@5.25.3)':
dependencies:
svelte: 5.25.3
@@ -3669,9 +3680,9 @@ snapshots:
'@appwrite.io/pink-icons': 1.0.0
the-new-css-reset: 1.11.3
'@appwrite.io/pink-svelte@https://pkg.vc/-/@appwrite/%40appwrite.io%2Fpink-svelte@95bdb79(svelte@5.25.3)':
'@appwrite.io/pink-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@fee5c53(svelte@5.25.3)':
dependencies:
'@appwrite.io/pink-icons-svelte': 2.0.0-RC.1(svelte@5.25.3)
'@appwrite.io/pink-icons-svelte': https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@fee5c539136e15c93cd3f2398d25cb217caa8dc8(svelte@5.25.3)
'@floating-ui/dom': 1.6.13
'@melt-ui/pp': 0.3.2(@melt-ui/svelte@0.86.6(svelte@5.25.3))(svelte@5.25.3)
'@melt-ui/svelte': 0.86.6(svelte@5.25.3)
@@ -3890,18 +3901,18 @@ snapshots:
'@esbuild/win32-x64@0.25.1':
optional: true
'@eslint-community/eslint-utils@4.5.1(eslint@9.23.0)':
'@eslint-community/eslint-utils@4.5.1(eslint@9.31.0)':
dependencies:
eslint: 9.23.0
eslint: 9.31.0
eslint-visitor-keys: 3.4.3
'@eslint-community/regexpp@4.12.1': {}
'@eslint/compat@1.3.1(eslint@9.23.0)':
'@eslint/compat@1.2.7(eslint@9.31.0)':
optionalDependencies:
eslint: 9.23.0
eslint: 9.31.0
'@eslint/config-array@0.19.2':
'@eslint/config-array@0.21.0':
dependencies:
'@eslint/object-schema': 2.1.6
debug: 4.4.0
@@ -3909,11 +3920,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
'@eslint/config-helpers@0.2.0': {}
'@eslint/core@0.12.0':
dependencies:
'@types/json-schema': 7.0.15
'@eslint/config-helpers@0.3.0': {}
'@eslint/core@0.15.1':
dependencies:
@@ -3923,7 +3930,7 @@ snapshots:
dependencies:
ajv: 6.12.6
debug: 4.4.0
espree: 10.3.0
espree: 10.4.0
globals: 14.0.0
ignore: 5.3.2
import-fresh: 3.3.1
@@ -3933,7 +3940,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
'@eslint/js@9.23.0': {}
'@eslint/js@9.24.0': {}
'@eslint/js@9.31.0': {}
@@ -4816,11 +4823,11 @@ snapshots:
'@types/prismjs@1.26.5': {}
'@types/prop-types@15.7.15': {}
'@types/prop-types@15.7.14': {}
'@types/react@18.3.23':
'@types/react@18.3.22':
dependencies:
'@types/prop-types': 15.7.15
'@types/prop-types': 15.7.14
csstype: 3.1.3
'@types/remarkable@2.0.8': {}
@@ -4833,15 +4840,15 @@ snapshots:
'@types/unist@3.0.3': {}
'@typescript-eslint/eslint-plugin@8.28.0(@typescript-eslint/parser@8.28.0(eslint@9.23.0)(typescript@5.8.2))(eslint@9.23.0)(typescript@5.8.2)':
'@typescript-eslint/eslint-plugin@8.28.0(@typescript-eslint/parser@8.28.0(eslint@9.31.0)(typescript@5.8.2))(eslint@9.31.0)(typescript@5.8.2)':
dependencies:
'@eslint-community/regexpp': 4.12.1
'@typescript-eslint/parser': 8.28.0(eslint@9.23.0)(typescript@5.8.2)
'@typescript-eslint/parser': 8.28.0(eslint@9.31.0)(typescript@5.8.2)
'@typescript-eslint/scope-manager': 8.28.0
'@typescript-eslint/type-utils': 8.28.0(eslint@9.23.0)(typescript@5.8.2)
'@typescript-eslint/utils': 8.28.0(eslint@9.23.0)(typescript@5.8.2)
'@typescript-eslint/type-utils': 8.28.0(eslint@9.31.0)(typescript@5.8.2)
'@typescript-eslint/utils': 8.28.0(eslint@9.31.0)(typescript@5.8.2)
'@typescript-eslint/visitor-keys': 8.28.0
eslint: 9.23.0
eslint: 9.31.0
graphemer: 1.4.0
ignore: 5.3.2
natural-compare: 1.4.0
@@ -4850,15 +4857,15 @@ snapshots:
transitivePeerDependencies:
- supports-color
'@typescript-eslint/eslint-plugin@8.30.1(@typescript-eslint/parser@8.30.1(eslint@9.23.0)(typescript@5.8.2))(eslint@9.23.0)(typescript@5.8.2)':
'@typescript-eslint/eslint-plugin@8.30.1(@typescript-eslint/parser@8.30.1(eslint@9.31.0)(typescript@5.8.2))(eslint@9.31.0)(typescript@5.8.2)':
dependencies:
'@eslint-community/regexpp': 4.12.1
'@typescript-eslint/parser': 8.30.1(eslint@9.23.0)(typescript@5.8.2)
'@typescript-eslint/parser': 8.30.1(eslint@9.31.0)(typescript@5.8.2)
'@typescript-eslint/scope-manager': 8.30.1
'@typescript-eslint/type-utils': 8.30.1(eslint@9.23.0)(typescript@5.8.2)
'@typescript-eslint/utils': 8.30.1(eslint@9.23.0)(typescript@5.8.2)
'@typescript-eslint/type-utils': 8.30.1(eslint@9.31.0)(typescript@5.8.2)
'@typescript-eslint/utils': 8.30.1(eslint@9.31.0)(typescript@5.8.2)
'@typescript-eslint/visitor-keys': 8.30.1
eslint: 9.23.0
eslint: 9.31.0
graphemer: 1.4.0
ignore: 5.3.2
natural-compare: 1.4.0
@@ -4867,26 +4874,26 @@ snapshots:
transitivePeerDependencies:
- supports-color
'@typescript-eslint/parser@8.28.0(eslint@9.23.0)(typescript@5.8.2)':
'@typescript-eslint/parser@8.28.0(eslint@9.31.0)(typescript@5.8.2)':
dependencies:
'@typescript-eslint/scope-manager': 8.28.0
'@typescript-eslint/types': 8.28.0
'@typescript-eslint/typescript-estree': 8.28.0(typescript@5.8.2)
'@typescript-eslint/visitor-keys': 8.28.0
debug: 4.4.0
eslint: 9.23.0
eslint: 9.31.0
typescript: 5.8.2
transitivePeerDependencies:
- supports-color
'@typescript-eslint/parser@8.30.1(eslint@9.23.0)(typescript@5.8.2)':
'@typescript-eslint/parser@8.30.1(eslint@9.31.0)(typescript@5.8.2)':
dependencies:
'@typescript-eslint/scope-manager': 8.30.1
'@typescript-eslint/types': 8.30.1
'@typescript-eslint/typescript-estree': 8.30.1(typescript@5.8.2)
'@typescript-eslint/visitor-keys': 8.30.1
debug: 4.4.0
eslint: 9.23.0
eslint: 9.31.0
typescript: 5.8.2
transitivePeerDependencies:
- supports-color
@@ -4901,23 +4908,23 @@ snapshots:
'@typescript-eslint/types': 8.30.1
'@typescript-eslint/visitor-keys': 8.30.1
'@typescript-eslint/type-utils@8.28.0(eslint@9.23.0)(typescript@5.8.2)':
'@typescript-eslint/type-utils@8.28.0(eslint@9.31.0)(typescript@5.8.2)':
dependencies:
'@typescript-eslint/typescript-estree': 8.28.0(typescript@5.8.2)
'@typescript-eslint/utils': 8.28.0(eslint@9.23.0)(typescript@5.8.2)
'@typescript-eslint/utils': 8.28.0(eslint@9.31.0)(typescript@5.8.2)
debug: 4.4.0
eslint: 9.23.0
eslint: 9.31.0
ts-api-utils: 2.1.0(typescript@5.8.2)
typescript: 5.8.2
transitivePeerDependencies:
- supports-color
'@typescript-eslint/type-utils@8.30.1(eslint@9.23.0)(typescript@5.8.2)':
'@typescript-eslint/type-utils@8.30.1(eslint@9.31.0)(typescript@5.8.2)':
dependencies:
'@typescript-eslint/typescript-estree': 8.30.1(typescript@5.8.2)
'@typescript-eslint/utils': 8.30.1(eslint@9.23.0)(typescript@5.8.2)
'@typescript-eslint/utils': 8.30.1(eslint@9.31.0)(typescript@5.8.2)
debug: 4.4.0
eslint: 9.23.0
eslint: 9.31.0
ts-api-utils: 2.1.0(typescript@5.8.2)
typescript: 5.8.2
transitivePeerDependencies:
@@ -4955,24 +4962,24 @@ snapshots:
transitivePeerDependencies:
- supports-color
'@typescript-eslint/utils@8.28.0(eslint@9.23.0)(typescript@5.8.2)':
'@typescript-eslint/utils@8.28.0(eslint@9.31.0)(typescript@5.8.2)':
dependencies:
'@eslint-community/eslint-utils': 4.5.1(eslint@9.23.0)
'@eslint-community/eslint-utils': 4.5.1(eslint@9.31.0)
'@typescript-eslint/scope-manager': 8.28.0
'@typescript-eslint/types': 8.28.0
'@typescript-eslint/typescript-estree': 8.28.0(typescript@5.8.2)
eslint: 9.23.0
eslint: 9.31.0
typescript: 5.8.2
transitivePeerDependencies:
- supports-color
'@typescript-eslint/utils@8.30.1(eslint@9.23.0)(typescript@5.8.2)':
'@typescript-eslint/utils@8.30.1(eslint@9.31.0)(typescript@5.8.2)':
dependencies:
'@eslint-community/eslint-utils': 4.5.1(eslint@9.23.0)
'@eslint-community/eslint-utils': 4.5.1(eslint@9.31.0)
'@typescript-eslint/scope-manager': 8.30.1
'@typescript-eslint/types': 8.30.1
'@typescript-eslint/typescript-estree': 8.30.1(typescript@5.8.2)
eslint: 9.23.0
eslint: 9.31.0
typescript: 5.8.2
transitivePeerDependencies:
- supports-color
@@ -5102,8 +5109,14 @@ snapshots:
dependencies:
acorn: 8.14.1
acorn-jsx@5.3.2(acorn@8.15.0):
dependencies:
acorn: 8.15.0
acorn@8.14.1: {}
acorn@8.15.0: {}
agent-base@6.0.2:
dependencies:
debug: 4.4.0
@@ -5666,21 +5679,21 @@ snapshots:
escape-string-regexp@4.0.0: {}
eslint-compat-utils@0.6.4(eslint@9.23.0):
eslint-compat-utils@0.6.4(eslint@9.31.0):
dependencies:
eslint: 9.23.0
eslint: 9.31.0
semver: 7.7.1
eslint-config-prettier@10.1.1(eslint@9.23.0):
eslint-config-prettier@10.1.1(eslint@9.31.0):
dependencies:
eslint: 9.23.0
eslint: 9.31.0
eslint-plugin-svelte@3.3.3(eslint@9.23.0)(svelte@5.25.3):
eslint-plugin-svelte@3.3.3(eslint@9.31.0)(svelte@5.25.3):
dependencies:
'@eslint-community/eslint-utils': 4.5.1(eslint@9.23.0)
'@eslint-community/eslint-utils': 4.5.1(eslint@9.31.0)
'@jridgewell/sourcemap-codec': 1.5.0
eslint: 9.23.0
eslint-compat-utils: 0.6.4(eslint@9.23.0)
eslint: 9.31.0
eslint-compat-utils: 0.6.4(eslint@9.31.0)
esutils: 2.0.3
known-css-properties: 0.35.0
postcss: 8.5.3
@@ -5698,19 +5711,26 @@ snapshots:
esrecurse: 4.3.0
estraverse: 5.3.0
eslint-scope@8.4.0:
dependencies:
esrecurse: 4.3.0
estraverse: 5.3.0
eslint-visitor-keys@3.4.3: {}
eslint-visitor-keys@4.2.0: {}
eslint@9.23.0:
eslint-visitor-keys@4.2.1: {}
eslint@9.31.0:
dependencies:
'@eslint-community/eslint-utils': 4.5.1(eslint@9.23.0)
'@eslint-community/eslint-utils': 4.5.1(eslint@9.31.0)
'@eslint-community/regexpp': 4.12.1
'@eslint/config-array': 0.19.2
'@eslint/config-helpers': 0.2.0
'@eslint/core': 0.12.0
'@eslint/config-array': 0.21.0
'@eslint/config-helpers': 0.3.0
'@eslint/core': 0.15.1
'@eslint/eslintrc': 3.3.1
'@eslint/js': 9.23.0
'@eslint/js': 9.31.0
'@eslint/plugin-kit': 0.3.3
'@humanfs/node': 0.16.6
'@humanwhocodes/module-importer': 1.0.1
@@ -5722,9 +5742,9 @@ snapshots:
cross-spawn: 7.0.6
debug: 4.4.0
escape-string-regexp: 4.0.0
eslint-scope: 8.3.0
eslint-visitor-keys: 4.2.0
espree: 10.3.0
eslint-scope: 8.4.0
eslint-visitor-keys: 4.2.1
espree: 10.4.0
esquery: 1.6.0
esutils: 2.0.3
fast-deep-equal: 3.1.3
@@ -5750,6 +5770,12 @@ snapshots:
acorn-jsx: 5.3.2(acorn@8.14.1)
eslint-visitor-keys: 4.2.0
espree@10.4.0:
dependencies:
acorn: 8.15.0
acorn-jsx: 5.3.2(acorn@8.15.0)
eslint-visitor-keys: 4.2.1
esprima@4.0.1: {}
esquery@1.6.0:
@@ -6779,7 +6805,7 @@ snapshots:
svelte-motion@0.12.2(svelte@5.25.3):
dependencies:
'@types/react': 18.3.23
'@types/react': 18.3.22
framesync: 6.1.2
popmotion: 11.0.5
style-value-types: 5.1.2
@@ -6932,12 +6958,12 @@ snapshots:
dependencies:
prelude-ls: 1.2.1
typescript-eslint@8.30.1(eslint@9.23.0)(typescript@5.8.2):
typescript-eslint@8.30.1(eslint@9.31.0)(typescript@5.8.2):
dependencies:
'@typescript-eslint/eslint-plugin': 8.30.1(@typescript-eslint/parser@8.30.1(eslint@9.23.0)(typescript@5.8.2))(eslint@9.23.0)(typescript@5.8.2)
'@typescript-eslint/parser': 8.30.1(eslint@9.23.0)(typescript@5.8.2)
'@typescript-eslint/utils': 8.30.1(eslint@9.23.0)(typescript@5.8.2)
eslint: 9.23.0
'@typescript-eslint/eslint-plugin': 8.30.1(@typescript-eslint/parser@8.30.1(eslint@9.31.0)(typescript@5.8.2))(eslint@9.31.0)(typescript@5.8.2)
'@typescript-eslint/parser': 8.30.1(eslint@9.31.0)(typescript@5.8.2)
'@typescript-eslint/utils': 8.30.1(eslint@9.31.0)(typescript@5.8.2)
eslint: 9.31.0
typescript: 5.8.2
transitivePeerDependencies:
- supports-color
@@ -4,9 +4,12 @@ import { sdk } from '$lib/stores/sdk';
import { Query } from '@appwrite.io/console';
import type { PageLoad } from './$types';
import { queries, queryParamToMap } from '$lib/components/filters';
import { buildWildcardAttributesQuery } from './document-[document]/attributes/store';
export const load: PageLoad = async ({ params, depends, url, route }) => {
export const load: PageLoad = async ({ params, depends, url, route, parent }) => {
const { collection } = await parent();
depends(Dependencies.DOCUMENTS);
const page = getPage(url);
const limit = getLimit(url, route, PAGE_LIMIT);
const view = getView(url, route, View.Grid);
@@ -15,6 +18,7 @@ export const load: PageLoad = async ({ params, depends, url, route }) => {
const paramQueries = url.searchParams.get('query');
const parsedQueries = queryParamToMap(paramQueries || '[]');
queries.set(parsedQueries);
return {
@@ -28,7 +32,8 @@ export const load: PageLoad = async ({ params, depends, url, route }) => {
Query.limit(limit),
Query.offset(offset),
Query.orderDesc(''),
...parsedQueries.values()
...parsedQueries.values(),
...buildWildcardAttributesQuery(collection)
])
};
};
@@ -4,14 +4,20 @@ import type { LayoutLoad } from './$types';
import Breadcrumbs from './breadcrumbs.svelte';
import Header from './header.svelte';
import type { Attributes } from '../store';
import { buildWildcardAttributesQuery } from './attributes/store';
export const load: LayoutLoad = async ({ params, parent, depends }) => {
depends(Dependencies.DOCUMENT);
const { collection } = await parent();
depends(Dependencies.DOCUMENT);
const document = await sdk
.forProject(params.region, params.project)
.databases.getDocument(params.database, params.collection, params.document);
.databases.getDocument(
params.database,
params.collection,
params.document,
buildWildcardAttributesQuery(collection)
);
/**
* Sanitize DateTime to remove UTC Timezone section.
@@ -39,8 +39,6 @@
}
}
documentList = await getDocuments();
if (editing && $doc?.[attribute.key]) {
if ($doc[attribute.key]?.length) {
relatedList =
@@ -59,7 +57,10 @@
});
async function getDocuments(search: string = null) {
const queries = search ? [Query.startsWith('$id', search), Query.orderDesc('')] : [];
const queries = search
? [Query.select(['$id']), Query.startsWith('$id', search), Query.orderDesc('')]
: [Query.select(['$id'])];
return await sdk
.forProject(page.params.region, page.params.project)
.databases.listDocuments(databaseId, attribute.relatedCollection, queries);
@@ -103,7 +104,7 @@
showInput = false;
}
//Reactive statements
// Reactive statements
$: getDocuments(search).then((res) => (documentList = res));
$: paginatedItems = editing
@@ -1,4 +1,4 @@
import type { Models } from '@appwrite.io/console';
import { type Models, Query } from '@appwrite.io/console';
import type { Attributes } from '../../store';
export function isRelationshipToMany(attribute: Models.AttributeRelationship) {
@@ -20,3 +20,18 @@ export function isString(attribute: Attributes): attribute is Models.AttributeSt
if (!attribute) return false;
return attribute?.type === 'string';
}
/**
* Returns select queries for all main and related fields in a collection.
*/
export function buildWildcardAttributesQuery(
collection: Models.Collection | null = null
): string[] {
return [
...(collection?.attributes
?.filter((attr) => isRelationship(attr))
?.map((attr) => Query.select([`${attr.key}.*`])) ?? []),
Query.select(['*'])
];
}