@lowdefy/blocks-algolia 4.5.2 → 4.7.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/dist/blocks/DocSearch/DocSearch.js +1 -1
- package/dist/blocks/DocSearch/schema.js +52 -0
- package/dist/blocks.js +1 -1
- package/dist/schemas.js +15 -0
- package/dist/types.js +1 -1
- package/package.json +5 -15
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/ export default {
|
|
16
|
+
type: 'object',
|
|
17
|
+
properties: {
|
|
18
|
+
type: 'object',
|
|
19
|
+
additionalProperties: false,
|
|
20
|
+
properties: {
|
|
21
|
+
apiKey: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
description: 'Your Algolia Search API key.'
|
|
24
|
+
},
|
|
25
|
+
appId: {
|
|
26
|
+
type: 'string',
|
|
27
|
+
description: 'Your Algolia application ID.'
|
|
28
|
+
},
|
|
29
|
+
disableUserPersonalization: {
|
|
30
|
+
type: 'boolean',
|
|
31
|
+
description: 'Disable saving recent searches and favorites to the local storage.'
|
|
32
|
+
},
|
|
33
|
+
indexName: {
|
|
34
|
+
type: 'string',
|
|
35
|
+
description: 'Your Algolia index name.'
|
|
36
|
+
},
|
|
37
|
+
initialQuery: {
|
|
38
|
+
type: 'string',
|
|
39
|
+
description: 'The search input initial query.'
|
|
40
|
+
},
|
|
41
|
+
maxResultsPerGroup: {
|
|
42
|
+
type: 'number',
|
|
43
|
+
description: 'The maximum number of results to display per search group. Default is 5.'
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
events: {
|
|
48
|
+
type: 'object',
|
|
49
|
+
additionalProperties: false,
|
|
50
|
+
properties: {}
|
|
51
|
+
}
|
|
52
|
+
};
|
package/dist/blocks.js
CHANGED
package/dist/schemas.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/ export { default as DocSearch } from './blocks/DocSearch/schema.js';
|
package/dist/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/blocks-algolia",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.7.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Algolia Lowdefy blocks.",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"exports": {
|
|
33
33
|
"./*": "./dist/*",
|
|
34
34
|
"./blocks": "./dist/blocks.js",
|
|
35
|
+
"./schemas": "./dist/schemas.js",
|
|
35
36
|
"./types": "./dist/types.js"
|
|
36
37
|
},
|
|
37
38
|
"files": [
|
|
@@ -39,24 +40,14 @@
|
|
|
39
40
|
],
|
|
40
41
|
"dependencies": {
|
|
41
42
|
"@docsearch/react": "3.5.2",
|
|
42
|
-
"@lowdefy/block-utils": "4.
|
|
43
|
+
"@lowdefy/block-utils": "4.7.0",
|
|
43
44
|
"react": "18.2.0",
|
|
44
45
|
"react-dom": "18.2.0"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
|
-
"@emotion/jest": "11.10.5",
|
|
48
|
-
"@lowdefy/block-dev": "4.5.2",
|
|
49
|
-
"@lowdefy/jest-yaml-transform": "4.5.2",
|
|
50
48
|
"@swc/cli": "0.1.63",
|
|
51
49
|
"@swc/core": "1.3.99",
|
|
52
|
-
"
|
|
53
|
-
"@testing-library/dom": "8.19.1",
|
|
54
|
-
"@testing-library/react": "13.4.0",
|
|
55
|
-
"@testing-library/user-event": "14.4.3",
|
|
56
|
-
"copyfiles": "2.4.1",
|
|
57
|
-
"jest": "28.1.3",
|
|
58
|
-
"jest-environment-jsdom": "28.1.3",
|
|
59
|
-
"jest-serializer-html": "7.1.0"
|
|
50
|
+
"copyfiles": "2.4.1"
|
|
60
51
|
},
|
|
61
52
|
"publishConfig": {
|
|
62
53
|
"access": "public"
|
|
@@ -64,7 +55,6 @@
|
|
|
64
55
|
"scripts": {
|
|
65
56
|
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start && pnpm copyfiles",
|
|
66
57
|
"clean": "rm -rf dist",
|
|
67
|
-
"copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.yaml\" -e \"./src/**/*.snap\""
|
|
68
|
-
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
|
|
58
|
+
"copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.yaml\" -e \"./src/**/*.snap\""
|
|
69
59
|
}
|
|
70
60
|
}
|