hash
stringlengths 40
40
| date
stringdate 2020-04-17 22:01:00
2025-03-21 18:34:11
| author
stringclasses 90
values | commit_message
stringlengths 9
197
| is_merge
bool 1
class | masked_commit_message
stringlengths 4
170
| type
stringclasses 8
values | git_diff
stringlengths 160
5.96M
⌀ |
|---|---|---|---|---|---|---|---|
027264588b3732357ce43d3745a62097a730534f
|
2024-04-02 21:43:12
|
Alessio Gravili
|
chore: versions test improvements
| false
|
versions test improvements
|
chore
|
diff --git a/test/versions/e2e.spec.ts b/test/versions/e2e.spec.ts
index 4f186965c5e..4a11fa21bf4 100644
--- a/test/versions/e2e.spec.ts
+++ b/test/versions/e2e.spec.ts
@@ -416,7 +416,10 @@ describe('versions', () => {
// create and save first doc
await page.goto(autosaveURL.create)
// Should redirect from /create to /[collectionslug]/[new id] due to auto-save
- await page.waitForURL(`${autosaveURL.list}/**`) // TODO: Make sure this doesnt match for list view and /create view, but only for the ID edit view
+ await page.waitForURL(`${autosaveURL.list}/**`)
+ await expect(() => expect(page.url()).not.toContain(`/preview`)).toPass({
+ timeout: POLL_TOPASS_TIMEOUT,
+ }) // Make sure this doesnt match for list view and /create view, but only for the ID edit view
await page.locator('#field-title').fill('first post title')
await page.locator('#field-description').fill('first post description')
@@ -427,6 +430,9 @@ describe('versions', () => {
await page.goto(autosaveURL.create)
// Should redirect from /create to /[collectionslug]/[new id] due to auto-save
await page.waitForURL(`${autosaveURL.list}/**`)
+ await expect(() => expect(page.url()).not.toContain(`/preview`)).toPass({
+ timeout: POLL_TOPASS_TIMEOUT,
+ }) // Make sure this doesnt match for list view and /create view, but only for the ID edit view
await page.locator('#field-title').fill('second post title')
await page.locator('#field-description').fill('second post description')
// publish changes
|
339f7503a41802421bb38c8cf5da0f0f1573bdd6
|
2021-03-14 23:10:45
|
James
|
feat: provides field access control with document data
| false
|
provides field access control with document data
|
feat
|
diff --git a/demo/collections/LocalizedArray.ts b/demo/collections/LocalizedArray.ts
index 6a3a72127f7..97771890bc2 100644
--- a/demo/collections/LocalizedArray.ts
+++ b/demo/collections/LocalizedArray.ts
@@ -1,4 +1,16 @@
import { PayloadCollectionConfig } from '../../src/collections/config/types';
+import { FieldAccess } from '../../src/fields/config/types';
+import checkRole from '../access/checkRole';
+
+const PublicReadabilityAccess: FieldAccess = ({ req: { user }, siblingData }) => {
+ if (checkRole(['admin'], user)) {
+ return true;
+ }
+
+ if (siblingData.allowPublicReadability) return true;
+
+ return false;
+};
const LocalizedArrays: PayloadCollectionConfig = {
slug: 'localized-arrays',
@@ -22,17 +34,31 @@ const LocalizedArrays: PayloadCollectionConfig = {
{
type: 'row',
fields: [
+ {
+ name: 'allowPublicReadability',
+ label: 'Allow Public Readability',
+ type: 'checkbox',
+ },
{
name: 'arrayText1',
label: 'Array Text 1',
type: 'text',
required: true,
+ admin: {
+ width: '50%',
+ },
+ access: {
+ read: PublicReadabilityAccess,
+ },
},
{
name: 'arrayText2',
label: 'Array Text 2',
type: 'text',
required: true,
+ admin: {
+ width: '50%',
+ },
},
],
},
diff --git a/docs/access-control/fields.mdx b/docs/access-control/fields.mdx
index 2e2f1feb4b1..0e8f74cd948 100644
--- a/docs/access-control/fields.mdx
+++ b/docs/access-control/fields.mdx
@@ -43,9 +43,11 @@ Returns a boolean which allows or denies the ability to set a field's value when
**Available argument properties:**
-| Option | Description |
-| --------- | ----------- |
-| **`req`** | The Express `request` object containing the currently authenticated `user` |
+| Option | Description |
+| ----------------- | ----------- |
+| **`req`** | The Express `request` object containing the currently authenticated `user` |
+| **`data`** | The full data passed to create the document. |
+| **`siblingData`** | Immediately adjacent field data passed to create the document. |
### Read
@@ -53,10 +55,12 @@ Returns a boolean which allows or denies the ability to read a field's value. If
**Available argument properties:**
-| Option | Description |
-| --------- | ----------- |
-| **`req`** | The Express `request` object containing the currently authenticated `user` |
-| **`id`** | `id` of the document being read |
+| Option | Description |
+| ----------------- | ----------- |
+| **`req`** | The Express `request` object containing the currently authenticated `user` |
+| **`id`** | `id` of the document being read |
+| **`data`** | The full data of the document being read. |
+| **`siblingData`** | Immediately adjacent field data of the document being read. |
### Update
@@ -64,7 +68,9 @@ Returns a boolean which allows or denies the ability to update a field's value.
**Available argument properties:**
-| Option | Description |
-| --------- | ----------- |
-| **`req`** | The Express `request` object containing the currently authenticated `user` |
-| **`id`** | `id` of the document being updated |
+| Option | Description |
+| ----------------- | ----------- |
+| **`req`** | The Express `request` object containing the currently authenticated `user` |
+| **`id`** | `id` of the document being updated |
+| **`data`** | The full data passed to update the document. |
+| **`siblingData`** | Immediately adjacent field data passed to update the document with. |
diff --git a/src/collections/tests/collections.spec.js b/src/collections/tests/collections.spec.js
index 8e80bd7cc65..ceee276dc44 100644
--- a/src/collections/tests/collections.spec.js
+++ b/src/collections/tests/collections.spec.js
@@ -464,4 +464,60 @@ describe('Collections - REST', () => {
expect(sortedData.docs[1].id).toStrictEqual(id1);
});
});
+
+ describe('Field Access', () => {
+ it('should properly prevent / allow public users from reading a restricted field', async () => {
+ const firstArrayText1 = 'test 1';
+ const firstArrayText2 = 'test 2';
+
+ const response = await fetch(`${url}/api/localized-arrays`, {
+ body: JSON.stringify({
+ array: [
+ {
+ arrayText1: firstArrayText1,
+ arrayText2: 'test 2',
+ arrayText3: 'test 3',
+ allowPublicReadability: true,
+ },
+ {
+ arrayText1: firstArrayText2,
+ arrayText2: 'test 2',
+ arrayText3: 'test 3',
+ allowPublicReadability: false,
+ },
+ ],
+ }),
+ headers,
+ method: 'post',
+ });
+
+ const data = await response.json();
+ const docId = data.doc.id;
+ expect(response.status).toBe(201);
+ expect(data.doc.array[1].arrayText1).toStrictEqual(firstArrayText2);
+
+ const unauthenticatedResponse = await fetch(`${url}/api/localized-arrays/${docId}`, {
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ });
+ expect(unauthenticatedResponse.status).toBe(200);
+ const unauthenticatedData = await unauthenticatedResponse.json();
+
+ // This string should be allowed to come back
+ expect(unauthenticatedData.array[0].arrayText1).toBe(firstArrayText1);
+
+ // This string should be prevented from coming back
+ expect(unauthenticatedData.array[1].arrayText1).toBeUndefined();
+
+ const authenticatedResponse = await fetch(`${url}/api/localized-arrays/${docId}`, {
+ headers,
+ });
+
+ const authenticatedData = await authenticatedResponse.json();
+
+ // If logged in, we should get this field back
+ expect(authenticatedData.array[1].arrayText1).toStrictEqual(firstArrayText2);
+ });
+ });
});
diff --git a/src/fields/accessPromise.ts b/src/fields/accessPromise.ts
index 373e88b6b4a..5c197f4b6dc 100644
--- a/src/fields/accessPromise.ts
+++ b/src/fields/accessPromise.ts
@@ -6,6 +6,7 @@ import { PayloadRequest } from '../express/types';
type Arguments = {
data: Record<string, unknown>
+ fullData: Record<string, unknown>
originalDoc: Record<string, unknown>
field: Field
operation: Operation
@@ -21,6 +22,7 @@ type Arguments = {
const accessPromise = async ({
data,
+ fullData,
originalDoc,
field,
operation,
@@ -45,7 +47,7 @@ const accessPromise = async ({
}
if (field.access && field.access[accessOperation]) {
- const result = overrideAccess ? true : await field.access[accessOperation]({ req, id });
+ const result = overrideAccess ? true : await field.access[accessOperation]({ req, id, siblingData: data, data: fullData });
if (!result && accessOperation === 'update' && originalDoc[field.name] !== undefined) {
resultingData[field.name] = originalDoc[field.name];
diff --git a/src/fields/config/types.ts b/src/fields/config/types.ts
index b4fc0e12f67..20b67f6ac68 100644
--- a/src/fields/config/types.ts
+++ b/src/fields/config/types.ts
@@ -2,7 +2,6 @@
import { CSSProperties } from 'react';
import { Editor } from 'slate';
import { PayloadRequest } from '../../express/types';
-import { Access } from '../../config/types';
import { Document } from '../../types';
import { ConditionalDateProps } from '../../admin/components/elements/DatePicker/types';
@@ -16,6 +15,13 @@ export type FieldHook = (args: {
req: PayloadRequest
}) => Promise<unknown> | unknown;
+export type FieldAccess = (args: {
+ req: PayloadRequest
+ id?: string
+ data: Record<string, unknown>
+ siblingData: Record<string, unknown>
+}) => Promise<boolean> | boolean;
+
type Admin = {
position?: string;
width?: string;
@@ -60,9 +66,9 @@ export interface FieldBase {
}
admin?: Admin;
access?: {
- create?: Access;
- read?: Access;
- update?: Access;
+ create?: FieldAccess;
+ read?: FieldAccess;
+ update?: FieldAccess;
};
}
diff --git a/src/fields/traverseFields.ts b/src/fields/traverseFields.ts
index 3fa55701968..1cbafe73604 100644
--- a/src/fields/traverseFields.ts
+++ b/src/fields/traverseFields.ts
@@ -138,6 +138,7 @@ const traverseFields = (args: Arguments): void => {
accessPromises.push(accessPromise({
data,
+ fullData,
originalDoc,
field,
operation,
|
8987ce1f69717be9847dc9b5933fb1c27ccdb4e8
|
2021-11-02 08:01:32
|
James
|
chore: scaffolds relationship filter
| false
|
scaffolds relationship filter
|
chore
|
diff --git a/src/admin/components/elements/WhereBuilder/Condition/Relationship/index.scss b/src/admin/components/elements/WhereBuilder/Condition/Relationship/index.scss
new file mode 100644
index 00000000000..a8e4cbf5f7a
--- /dev/null
+++ b/src/admin/components/elements/WhereBuilder/Condition/Relationship/index.scss
@@ -0,0 +1,5 @@
+@import '../../../../../scss/styles.scss';
+
+.condition-value-relationship {
+ @include formInput;
+}
diff --git a/src/admin/components/elements/WhereBuilder/Condition/Relationship/index.tsx b/src/admin/components/elements/WhereBuilder/Condition/Relationship/index.tsx
new file mode 100644
index 00000000000..c4a6e3b50b7
--- /dev/null
+++ b/src/admin/components/elements/WhereBuilder/Condition/Relationship/index.tsx
@@ -0,0 +1,22 @@
+import React from 'react';
+import { Props } from './types';
+
+import './index.scss';
+
+const baseClass = 'condition-value-relationship';
+
+const RelationshipField: React.FC<Props> = (props) => {
+ const { onChange, value } = props;
+ console.log(props);
+ return (
+ <input
+ placeholder="Enter a value"
+ className={baseClass}
+ type="number"
+ onChange={(e) => onChange(e.target.value)}
+ value={value}
+ />
+ );
+};
+
+export default RelationshipField;
diff --git a/src/admin/components/elements/WhereBuilder/Condition/Relationship/types.ts b/src/admin/components/elements/WhereBuilder/Condition/Relationship/types.ts
new file mode 100644
index 00000000000..b2abc4c5cda
--- /dev/null
+++ b/src/admin/components/elements/WhereBuilder/Condition/Relationship/types.ts
@@ -0,0 +1,4 @@
+export type Props = {
+ onChange: (val: string) => void,
+ value: string,
+}
diff --git a/src/admin/components/elements/WhereBuilder/Condition/index.tsx b/src/admin/components/elements/WhereBuilder/Condition/index.tsx
index 4cb96043b56..8763f979ca8 100644
--- a/src/admin/components/elements/WhereBuilder/Condition/index.tsx
+++ b/src/admin/components/elements/WhereBuilder/Condition/index.tsx
@@ -6,6 +6,7 @@ import Button from '../../Button';
import Date from './Date';
import Number from './Number';
import Text from './Text';
+import Relationship from './Relationship';
import useDebounce from '../../../../hooks/useDebounce';
import { FieldCondition } from '../types';
@@ -15,6 +16,7 @@ const valueFields = {
Date,
Number,
Text,
+ Relationship,
};
const baseClass = 'condition';
@@ -93,6 +95,7 @@ const Condition: React.FC<Props> = (props) => {
DefaultComponent={ValueComponent}
componentProps={{
...activeField?.props,
+ operator: operatorValue,
value: internalValue,
onChange: setInternalValue,
}}
diff --git a/src/admin/components/elements/WhereBuilder/field-types.tsx b/src/admin/components/elements/WhereBuilder/field-types.tsx
index 6839f7829e3..92c6b6c52f5 100644
--- a/src/admin/components/elements/WhereBuilder/field-types.tsx
+++ b/src/admin/components/elements/WhereBuilder/field-types.tsx
@@ -100,7 +100,7 @@ const fieldTypeConditions = {
operators: [...base],
},
relationship: {
- component: 'Text',
+ component: 'Relationship',
operators: [...base],
},
select: {
|
15db0a801831703e2cadc8bc9b4834809971a259
|
2024-04-29 22:24:00
|
Jarrod Flesch
|
fix: conditions throwing errors break form state (#6113)
| false
|
conditions throwing errors break form state (#6113)
|
fix
|
diff --git a/packages/next/src/routes/rest/buildFormState.ts b/packages/next/src/routes/rest/buildFormState.ts
index fa026e04f4d..18c27ebea2e 100644
--- a/packages/next/src/routes/rest/buildFormState.ts
+++ b/packages/next/src/routes/rest/buildFormState.ts
@@ -9,6 +9,7 @@ import type { FieldSchemaMap } from '../../utilities/buildFieldSchemaMap/types.j
import { buildFieldSchemaMap } from '../../utilities/buildFieldSchemaMap/index.js'
import { headersWithCors } from '../../utilities/headersWithCors.js'
+import { routeError } from './routeError.js'
let cached = global._payload_fieldSchemaMap
@@ -226,14 +227,10 @@ export const buildFormState = async ({ req }: { req: PayloadRequestWithData }) =
status: httpStatus.OK,
})
} catch (err) {
- return Response.json(
- {
- message: 'There was an error building form state',
- },
- {
- headers,
- status: httpStatus.BAD_REQUEST,
- },
- )
+ return routeError({
+ config: req.payload.config,
+ err,
+ req,
+ })
}
}
|
82145f7bb0425e9bf9f71ef50468f193536d6e55
|
2024-11-26 05:56:54
|
Paul
|
fix(ui): remove overflow hidden from app-header wrappers since it breaks any popout elements (#9525)
| false
|
remove overflow hidden from app-header wrappers since it breaks any popout elements (#9525)
|
fix
|
diff --git a/packages/ui/src/elements/AppHeader/index.scss b/packages/ui/src/elements/AppHeader/index.scss
index 6a56b0c5313..f20821792d2 100644
--- a/packages/ui/src/elements/AppHeader/index.scss
+++ b/packages/ui/src/elements/AppHeader/index.scss
@@ -90,7 +90,6 @@
display: flex;
align-items: center;
flex-grow: 1;
- overflow: hidden;
width: 100%;
}
@@ -128,7 +127,6 @@
gap: calc(var(--base) / 2);
flex-shrink: 0;
max-width: 600px;
- overflow: auto;
white-space: nowrap;
&::-webkit-scrollbar {
|
0b9d5a5ae49c161739034d06f52d60358109d301
|
2024-11-16 01:20:21
|
Said Akhrarov
|
docs: fix links in operators table for within and intersects (#9232)
| false
|
fix links in operators table for within and intersects (#9232)
|
docs
|
diff --git a/docs/queries/overview.mdx b/docs/queries/overview.mdx
index be5e397f351..ae9a1729f6b 100644
--- a/docs/queries/overview.mdx
+++ b/docs/queries/overview.mdx
@@ -52,8 +52,8 @@ The following operators are available for use in queries:
| `all` | The value must contain all values provided in the comma-delimited list. |
| `exists` | Only return documents where the value either exists (`true`) or does not exist (`false`). |
| `near` | For distance related to a [Point Field](../fields/point) comma separated as `<longitude>, <latitude>, <maxDistance in meters (nullable)>, <minDistance in meters (nullable)>`. |
-| `within` | For [point fields][../fields/point] to filter documents based on whether points are inside of the given area defined in GeoJSON. [Example](../fields/point#querying---within) |
-| `intersects` | For [point fields][../fields/point] to filter documents based on whether points intersect with the given area defined in GeoJSON. [Example](../fields/point#querying---intersects) |
+| `within` | For [Point Fields](../fields/point) to filter documents based on whether points are inside of the given area defined in GeoJSON. [Example](../fields/point#querying-within) |
+| `intersects` | For [Point Fields](../fields/point) to filter documents based on whether points intersect with the given area defined in GeoJSON. [Example](../fields/point#querying-intersects) |
<Banner type="success">
<strong>Tip:</strong>
|
4983da7efa3b3e787fc438d6beb6fa2f835d603d
|
2024-03-12 22:16:47
|
Alessio Gravili
|
chore(eslint-config-payload): improve @typescript-eslint/no-unused-vars rule (#4793)
| false
|
improve @typescript-eslint/no-unused-vars rule (#4793)
|
chore
|
diff --git a/packages/eslint-config-payload/eslint-config/index.js b/packages/eslint-config-payload/eslint-config/index.js
index 1706cc87740..787d3eb6929 100644
--- a/packages/eslint-config-payload/eslint-config/index.js
+++ b/packages/eslint-config-payload/eslint-config/index.js
@@ -62,7 +62,18 @@ module.exports = {
// This rule makes no sense when overriding class methods. This is used a lot in richtext-lexical.
'class-methods-use-this': 'off',
// By default, it errors for unused variables. This is annoying, warnings are enough.
- '@typescript-eslint/no-unused-vars': 'warn',
+ '@typescript-eslint/no-unused-vars': [
+ 'warn',
+ {
+ vars: 'all',
+ args: 'after-used',
+ ignoreRestSiblings: false,
+ argsIgnorePattern: '^_',
+ varsIgnorePattern: '^_',
+ destructuredArrayIgnorePattern: '^_',
+ caughtErrorsIgnorePattern: '^ignore',
+ },
+ ],
'@typescript-eslint/no-use-before-define': 'off',
'arrow-body-style': 0,
'import/prefer-default-export': 'off',
|
8ac0906ff097c9a868c11549c4a29691498abee0
|
2023-02-18 03:37:34
|
James
|
chore(release): v1.6.12
| false
|
v1.6.12
|
chore
|
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7f1e8468983..54050a88a4b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,20 @@
+## [1.6.12](https://github.com/payloadcms/payload/compare/v1.6.11...v1.6.12) (2023-02-17)
+
+
+### Bug Fixes
+
+* ensures only valid fields can be queried on ([1930bc2](https://github.com/payloadcms/payload/commit/1930bc260e721c5c7a10793b5d2a7809694089f3))
+
+
+### Features
+
+* adds gql auth example ([#2115](https://github.com/payloadcms/payload/issues/2115)) ([fa32c27](https://github.com/payloadcms/payload/commit/fa32c2771637af11d7ef0fb21b2f1f3cceae1ead))
+* auth example ([c076c77](https://github.com/payloadcms/payload/commit/c076c77db4a26cf514a040b1048de25b1141f0cb))
+* separates admin root component from DOM render logic ([ff4d1f6](https://github.com/payloadcms/payload/commit/ff4d1f6ac26f5cac56b6c5b7b67b99f50067cb8d))
+* virtual fields example ([#1990](https://github.com/payloadcms/payload/issues/1990)) ([2af0c04](https://github.com/payloadcms/payload/commit/2af0c04c8ae5892b317af240c1502bc21bb65253))
+
## [1.6.11](https://github.com/payloadcms/payload/compare/v1.6.10...v1.6.11) (2023-02-15)
diff --git a/package.json b/package.json
index 619ac1439ce..1872a3eb6f0 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "payload",
- "version": "1.6.11",
+ "version": "1.6.12",
"description": "Node, React and MongoDB Headless CMS and Application Framework",
"license": "MIT",
"engines": {
|
f8bae0e7b0711bb0f057f39630293ce11834c01c
|
2024-10-10 07:39:31
|
Elliot DeNolf
|
ci: remove payload as valid scope, payload is implied if no scope
| false
|
remove payload as valid scope, payload is implied if no scope
|
ci
|
diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml
index 30efc4bd54f..991881ce2f9 100644
--- a/.github/workflows/pr-title.yml
+++ b/.github/workflows/pr-title.yml
@@ -47,7 +47,6 @@ jobs:
live-preview
live-preview-react
next
- payload
plugin-cloud
plugin-cloud-storage
plugin-form-builder
|
03101f0f5423ae61eaaea5865d41d404219f8253
|
2023-10-25 02:11:50
|
dependabot[bot]
|
chore(deps): bump next in /examples/draft-preview/next-app (#3853)
| false
|
bump next in /examples/draft-preview/next-app (#3853)
|
chore
|
diff --git a/examples/draft-preview/next-app/package.json b/examples/draft-preview/next-app/package.json
index 6b89a38b76f..1081aaea31b 100644
--- a/examples/draft-preview/next-app/package.json
+++ b/examples/draft-preview/next-app/package.json
@@ -10,7 +10,7 @@
},
"dependencies": {
"escape-html": "^1.0.3",
- "next": "^13.4.8",
+ "next": "^13.5.0",
"payload-admin-bar": "^1.0.6",
"react": "18.2.0",
"react-dom": "18.2.0"
diff --git a/examples/draft-preview/next-app/yarn.lock b/examples/draft-preview/next-app/yarn.lock
index 00834d1b469..254a625e8e8 100644
--- a/examples/draft-preview/next-app/yarn.lock
+++ b/examples/draft-preview/next-app/yarn.lock
@@ -65,10 +65,10 @@
resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45"
integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==
-"@next/[email protected]":
- version "13.4.8"
- resolved "https://registry.yarnpkg.com/@next/env/-/env-13.4.8.tgz#8048ef3c3d770a3f3d1dd51d159593acfbd4e517"
- integrity sha512-twuSf1klb3k9wXI7IZhbZGtFCWvGD4wXTY2rmvzIgVhXhs7ISThrbNyutBx3jWIL8Y/Hk9+woytFz5QsgtcRKQ==
+"@next/[email protected]":
+ version "13.5.0"
+ resolved "https://registry.yarnpkg.com/@next/env/-/env-13.5.0.tgz#a61dee2f29b09985847eabcc4c8a815031267a36"
+ integrity sha512-mxhf/BskjPURT+qEjNP7wBvqre2q6OXEIbydF8BrH+duSSJQnB4/vzzuJDoahYwTXiUaXpouAnMWHZdG0HU62g==
"@next/[email protected]":
version "13.4.3"
@@ -84,50 +84,50 @@
dependencies:
glob "7.1.7"
-"@next/[email protected]":
- version "13.4.8"
- resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.4.8.tgz#3838d7c96750b7f427ac47b97503fc013734f6e6"
- integrity sha512-MSFplVM4dTWOuKAUv0XR9gY7AWtMSBu9os9f+kp+s5rWhM1I2CdR3obFttd6366nS/W/VZxbPM5oEIdlIa46zA==
-
-"@next/[email protected]":
- version "13.4.8"
- resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-13.4.8.tgz#3de9c26a2ee7b189f22433bf8137256a2517f258"
- integrity sha512-Reox+UXgonon9P0WNDE6w85DGtyBqGitl/ryznOvn6TvfxEaZIpTgeu3ZrJLU9dHSMhiK7YAM793mE/Zii2/Qw==
-
-"@next/[email protected]":
- version "13.4.8"
- resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-13.4.8.tgz#9536314c931b9e78f20e4a424eace9993015c6e1"
- integrity sha512-kdyzYvAYtqQVgzIKNN7e1rLU8aZv86FDSRqPlOkKZlvqudvTO0iohuTPmnEEDlECeBM6qRPShNffotDcU/R2KA==
-
-"@next/[email protected]":
- version "13.4.8"
- resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-13.4.8.tgz#a894ec6a078edd28f5cfab60593a61e05b6b605b"
- integrity sha512-oWxx4yRkUGcR81XwbI+T0zhZ3bDF6V1aVLpG+C7hSG50ULpV8gC39UxVO22/bv93ZlcfMY4zl8xkz9Klct6dpQ==
-
-"@next/[email protected]":
- version "13.4.8"
- resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-13.4.8.tgz#b8af198dc0b4a8c64deb0494ae285e3e1a465910"
- integrity sha512-anhtvuO6eE9YRhYnaEGTfbpH3L5gT/9qPFcNoi6xS432r/4DAtpJY8kNktqkTVevVIC/pVumqO8tV59PR3zbNg==
-
-"@next/[email protected]":
- version "13.4.8"
- resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-13.4.8.tgz#d2ad24001020665a78405f595995c22750ec63c4"
- integrity sha512-aR+J4wWfNgH1DwCCBNjan7Iumx0lLtn+2/rEYuhIrYLY4vnxqSVGz9u3fXcgUwo6Q9LT8NFkaqK1vPprdq+BXg==
-
-"@next/[email protected]":
- version "13.4.8"
- resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-13.4.8.tgz#e5c4bfaa105fbe2bdb21a6d01467edd39a29cf37"
- integrity sha512-OWBKIrJwQBTqrat0xhxEB/jcsjJR3+diD9nc/Y8F1mRdQzsn4bPsomgJyuqPVZs6Lz3K18qdIkvywmfSq75SsQ==
-
-"@next/[email protected]":
- version "13.4.8"
- resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-13.4.8.tgz#c49c4d9f91845855bf544d5d14e8e13311da9931"
- integrity sha512-agiPWGjUndXGTOn4ChbKipQXRA6/UPkywAWIkx7BhgGv48TiJfHTK6MGfBoL9tS6B4mtW39++uy0wFPnfD0JWg==
-
-"@next/[email protected]":
- version "13.4.8"
- resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.4.8.tgz#22c5c8fa05680f2775a29c6c5a74cf04b8cc9d90"
- integrity sha512-UIRKoByVKbuR6SnFG4JM8EMFlJrfEGuUQ1ihxzEleWcNwRMMiVaCj1KyqfTOW8VTQhJ0u8P1Ngg6q1RwnIBTtw==
+"@next/[email protected]":
+ version "13.5.0"
+ resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.5.0.tgz#45ea191e13593088572d0048d4ddfc1fcdb3c8ed"
+ integrity sha512-DavPD8oRjSoCRJana5DCAWdRZ4nbS7/pPw13DlnukFfMPJUk5hCAC3+NbqEyekS/X1IBFdZWSV2lJIdzTn4s6w==
+
+"@next/[email protected]":
+ version "13.5.0"
+ resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-13.5.0.tgz#582e8df7d563c057581bc118fff1cea79391d6e7"
+ integrity sha512-s5QSKKB0CTKFWp3CNMC5GH1YOipH1Jjr5P3w+RQTC4Aybo6xPqeWp/UyDW0fxmLRq0e1zgnOMgDQRdxAkoThrw==
+
+"@next/[email protected]":
+ version "13.5.0"
+ resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-13.5.0.tgz#7ee0a43b6635eca1e80a887304b7bfe31254a4a6"
+ integrity sha512-E0fCKA8F2vfgZWwcv4iq642No75EiACSNUBNGvc5lx/ylqAUdNwE/9+x2SHv+LPUXFhZ6hZLR0Qox/oKgZqFlg==
+
+"@next/[email protected]":
+ version "13.5.0"
+ resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-13.5.0.tgz#99a1efd6b68a4d0dfdc24b81f14cd8b8251425a9"
+ integrity sha512-jG/blDDLndFRUcafCQO4TOI3VuoIZh3jQriZ7JaVCgAEZe0D1EUrxKdbBarZ74isutHZ6DpNGRDi/0OHFZpJAA==
+
+"@next/[email protected]":
+ version "13.5.0"
+ resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-13.5.0.tgz#7c85acd45879a20d8fb102b3212e792924d02e93"
+ integrity sha512-6JWR7U41uNL6HGwNbGg3Oedt+FN4YuA126sHWKTq3ic5kkhEusIIdVo7+WcswVJl8nTMB1yT3gEPwygQbVYVUA==
+
+"@next/[email protected]":
+ version "13.5.0"
+ resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-13.5.0.tgz#23aad9ab7621f53bb947b727e659d85e74b0e31a"
+ integrity sha512-uY+wrYfD5QUossqznwidOpJYmmcBwojToZx55shihtbTl6afVYzOxsUbRXLdWmZAa36ckxXpqkvuFNS8icQuug==
+
+"@next/[email protected]":
+ version "13.5.0"
+ resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-13.5.0.tgz#5a45686335e5f54342faf9d9ed25f55a4107ce7f"
+ integrity sha512-lWZ5vJTULxTOdLcRmrllNgAdDRSDwk8oqJMyDxpqS691NG5uhle9ZwRj3g1F1/vHNkDa+B7PmWhQgG0nmlbKZg==
+
+"@next/[email protected]":
+ version "13.5.0"
+ resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-13.5.0.tgz#b9990965762aaa109bdeb7b49cbdc7e4af7f9014"
+ integrity sha512-jirQXnVCU9hi3cHzgd33d4qSBXn1/0gUT/KtXqy9Ux9OTcIcjJT3TcAzoLJLTdhRg7op3MZoSnuFeWl8kmGGNw==
+
+"@next/[email protected]":
+ version "13.5.0"
+ resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.5.0.tgz#4385c5d9c0db39c2623aed566b3ec7fedaf6f190"
+ integrity sha512-Q8QYLyWcMMUp3DohI04VyJbLNCfFMNTxYNhujvJD2lowuqnqApUBP2DxI/jCZRMFWgKi76n5u8UboLVeYXn6jA==
"@nodelib/[email protected]":
version "2.1.5"
@@ -172,10 +172,10 @@
resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.3.2.tgz#31b9c510d8cada9683549e1dbb4284cca5001faf"
integrity sha512-V+MvGwaHH03hYhY+k6Ef/xKd6RYlc4q8WBx+2ANmipHJcKuktNcI/NgEsJgdSUF6Lw32njT6OnrRsKYCdgHjYw==
-"@swc/[email protected]":
- version "0.5.1"
- resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.5.1.tgz#e9031491aa3f26bfcc974a67f48bd456c8a5357a"
- integrity sha512-sJ902EfIzn1Fa+qYmjdQqh8tPsoxyBz+8yBKC2HKUxyezKJFwPGOn7pv4WY6QuQW//ySQi5lJjA/ZT9sNWWNTg==
+"@swc/[email protected]":
+ version "0.5.2"
+ resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.5.2.tgz#85ea0c76450b61ad7d10a37050289eded783c27d"
+ integrity sha512-E4KcWTpoLHqwPHLxidpOqQbcrZVgi0rsmmZXUle1jXmJfuIf/UWpczUJ7MZZ5tlxytgJXyp0w4PGkkeLiuIdZw==
dependencies:
tslib "^2.4.0"
@@ -1729,13 +1729,13 @@ natural-compare@^1.4.0:
resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7"
integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==
-next@^13.4.8:
- version "13.4.8"
- resolved "https://registry.yarnpkg.com/next/-/next-13.4.8.tgz#72245bf4fdf328970147ee30de97142c39b1cb3f"
- integrity sha512-lxUjndYKjZHGK3CWeN2RI+/6ni6EUvjiqGWXAYPxUfGIdFGQ5XoisrqAJ/dF74aP27buAfs8MKIbIMMdxjqSBg==
+next@^13.5.0:
+ version "13.5.0"
+ resolved "https://registry.yarnpkg.com/next/-/next-13.5.0.tgz#3a3ce5b8c89c4fff9c6f0b2452bcb03f63d8c84c"
+ integrity sha512-mhguN5JPZXhhrD/nNcezXgKoxN8GT8xZvvGhUQV2ETiaNm+KHRWT1rCbrF5FlbG2XCcLRKOmOe3D5YQgXmJrDQ==
dependencies:
- "@next/env" "13.4.8"
- "@swc/helpers" "0.5.1"
+ "@next/env" "13.5.0"
+ "@swc/helpers" "0.5.2"
busboy "1.6.0"
caniuse-lite "^1.0.30001406"
postcss "8.4.14"
@@ -1743,15 +1743,15 @@ next@^13.4.8:
watchpack "2.4.0"
zod "3.21.4"
optionalDependencies:
- "@next/swc-darwin-arm64" "13.4.8"
- "@next/swc-darwin-x64" "13.4.8"
- "@next/swc-linux-arm64-gnu" "13.4.8"
- "@next/swc-linux-arm64-musl" "13.4.8"
- "@next/swc-linux-x64-gnu" "13.4.8"
- "@next/swc-linux-x64-musl" "13.4.8"
- "@next/swc-win32-arm64-msvc" "13.4.8"
- "@next/swc-win32-ia32-msvc" "13.4.8"
- "@next/swc-win32-x64-msvc" "13.4.8"
+ "@next/swc-darwin-arm64" "13.5.0"
+ "@next/swc-darwin-x64" "13.5.0"
+ "@next/swc-linux-arm64-gnu" "13.5.0"
+ "@next/swc-linux-arm64-musl" "13.5.0"
+ "@next/swc-linux-x64-gnu" "13.5.0"
+ "@next/swc-linux-x64-musl" "13.5.0"
+ "@next/swc-win32-arm64-msvc" "13.5.0"
+ "@next/swc-win32-ia32-msvc" "13.5.0"
+ "@next/swc-win32-x64-msvc" "13.5.0"
normalize-path@^3.0.0, normalize-path@~3.0.0:
version "3.0.0"
|
a0d03667c5a91c81eceefc39039577eff8eea8b1
|
2022-11-24 02:51:44
|
Jarrod Flesch
|
docs: updates messsy components banner
| false
|
updates messsy components banner
|
docs
|
diff --git a/docs/admin/components.mdx b/docs/admin/components.mdx
index 97c66da1774..655736a3dec 100644
--- a/docs/admin/components.mdx
+++ b/docs/admin/components.mdx
@@ -163,11 +163,7 @@ const CustomTextField: React.FC<Props> = ({ path }) => {
<Banner type="success">
For more information regarding the hooks that are available to you while you
- build custom components, including the <strong>useField</strong> hook,{" "}
- <a href="/docs/admin/hooks" style={{ color: "black" }}>
- click here
- </a>
- .
+ build custom components, including the <strong>useField</strong> hook, <a href="/docs/admin/hooks" style={{ color: "black" }}>click here</a>.
</Banner>
## Custom routes
|
End of preview. Expand
in Data Studio
No dataset card yet
- Downloads last month
- 9