-
Notifications
You must be signed in to change notification settings - Fork 96
Feat/block contributors block #241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
iftakharul-islam
wants to merge
5
commits into
develop
Choose a base branch
from
feat/Block-Contributors-Block
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
1f47892
Add contributor
iftakharul-islam 39a0c77
Showing multiple authors
iftakharul-islam f970a6f
WIP
iftakharul-islam 88a0274
Merge branch 'develop' into feat/Block-Contributors-Block
Rubaiyat-E-Mohammad d8983b5
Merge branch 'feat/Block-Contributors-Block' of https://github.com/we…
iftakharul-islam File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| /*!***************************************************************************************************************************************************************************************************************************************************************!*\ | ||
| !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/blocks/TableOfContents/editor.scss ***! | ||
| \***************************************************************************************************************************************************************************************************************************************************************/ | ||
| /** | ||
| * The following styles get applied inside the editor only. | ||
| */ | ||
| .wp-block-wedocs-table-of-contents .toc-mobile-notice { | ||
| background-color: rgba(0, 115, 170, 0.1); | ||
| padding: 5px 10px; | ||
| border-radius: 3px; | ||
| border-right: 3px solid #0073aa; | ||
| color: #0073aa; | ||
| font-size: 12px; | ||
| } | ||
| .wp-block-wedocs-table-of-contents .toc-content .toc-list li a { | ||
| cursor: default; | ||
| } | ||
| .wp-block-wedocs-table-of-contents .toc-content .toc-list li a:hover { | ||
| color: #0073aa; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| <?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '5c13835270f8b2070a23'); | ||
| <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '7538b3e8f8a29fdf8862'); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,333 @@ | ||
| { | ||
| "$schema": "https://schemas.wp.org/trunk/block.json", | ||
| "apiVersion": 3, | ||
| "name": "wedocs/contributors", | ||
| "version": "1.0.0", | ||
| "title": "Doc Contributors", | ||
| "icon": "groups", | ||
| "category": "widgets", | ||
| "description": "Display the author(s)/contributors of a doc along with the last updated date.", | ||
| "supports": { | ||
| "html": false | ||
| }, | ||
| "editorScript": "file:./index.js", | ||
| "editorStyle": "file:./index.css", | ||
| "style": "file:./style-index.css", | ||
| "render": "file:./render.php", | ||
| "attributes": { | ||
| "showTitle": { | ||
| "type": "boolean", | ||
| "default": true | ||
| }, | ||
| "title": { | ||
| "type": "string", | ||
| "default": "Contributors" | ||
| }, | ||
| "contributorDisplayMode": { | ||
| "type": "string", | ||
| "default": "all", | ||
| "enum": [ | ||
| "all", | ||
| "manual", | ||
| "main_author" | ||
| ] | ||
| }, | ||
| "selectedContributors": { | ||
| "type": "array", | ||
| "default": [] | ||
| }, | ||
| "showLastUpdated": { | ||
| "type": "boolean", | ||
| "default": true | ||
| }, | ||
| "dateFormat": { | ||
| "type": "string", | ||
| "default": "wp_default" | ||
| }, | ||
| "customDateFormat": { | ||
| "type": "string", | ||
| "default": "F j, Y" | ||
| }, | ||
| "datePrefix": { | ||
| "type": "string", | ||
| "default": "Updated on" | ||
| }, | ||
| "showAvatar": { | ||
| "type": "boolean", | ||
| "default": true | ||
| }, | ||
| "avatarType": { | ||
| "type": "string", | ||
| "default": "user_avatar", | ||
| "enum": [ | ||
| "user_avatar", | ||
| "common_icon" | ||
| ] | ||
| }, | ||
| "avatarShape": { | ||
| "type": "string", | ||
| "default": "circle", | ||
| "enum": [ | ||
| "circle", | ||
| "rounded", | ||
| "square" | ||
| ] | ||
| }, | ||
| "avatarHoverEffect": { | ||
| "type": "boolean", | ||
| "default": false | ||
| }, | ||
| "additionalCssClass": { | ||
| "type": "string", | ||
| "default": "" | ||
| }, | ||
| "enableSchema": { | ||
| "type": "boolean", | ||
| "default": false | ||
| }, | ||
| "linkBehavior": { | ||
| "type": "string", | ||
| "default": "user_profile", | ||
| "enum": [ | ||
| "user_profile", | ||
| "no_link", | ||
| "custom_link" | ||
| ] | ||
| }, | ||
| "customLinkUrl": { | ||
| "type": "string", | ||
| "default": "" | ||
| }, | ||
| "contributorGap": { | ||
| "type": "string", | ||
| "default": "10px" | ||
| }, | ||
| "typographyControls": { | ||
| "type": "object", | ||
| "default": { | ||
| "desktop": { | ||
| "fontFamily": null, | ||
| "fontSize": null, | ||
| "fontAppearance": null, | ||
| "lineHeight": null, | ||
| "letterSpacing": null, | ||
| "textDecoration": null, | ||
| "textTransform": null | ||
| }, | ||
| "tablet": { | ||
| "fontFamily": null, | ||
| "fontSize": null, | ||
| "fontAppearance": null, | ||
| "lineHeight": null, | ||
| "letterSpacing": null, | ||
| "textDecoration": null, | ||
| "textTransform": null | ||
| }, | ||
| "mobile": { | ||
| "fontFamily": null, | ||
| "fontSize": null, | ||
| "fontAppearance": null, | ||
| "lineHeight": null, | ||
| "letterSpacing": null, | ||
| "textDecoration": null, | ||
| "textTransform": null | ||
| } | ||
| } | ||
| }, | ||
| "colorsControls": { | ||
| "type": "object", | ||
| "default": { | ||
| "desktop": { | ||
| "textColor": "#333333", | ||
| "backgroundColor": "#f9f9f9", | ||
| "linkColor": "#0073aa", | ||
| "linkHoverColor": "#005177" | ||
| }, | ||
| "tablet": { | ||
| "textColor": null, | ||
| "backgroundColor": null, | ||
| "linkColor": null, | ||
| "linkHoverColor": null | ||
| }, | ||
| "mobile": { | ||
| "textColor": null, | ||
| "backgroundColor": null, | ||
| "linkColor": null, | ||
| "linkHoverColor": null | ||
| } | ||
| } | ||
| }, | ||
| "dimensionsControls": { | ||
| "type": "object", | ||
| "default": { | ||
| "desktop": { | ||
| "width": null, | ||
| "minWidth": null, | ||
| "maxWidth": null, | ||
| "height": null, | ||
| "minHeight": null, | ||
| "maxHeight": null, | ||
| "padding": { | ||
| "top": "15px", | ||
| "right": "15px", | ||
| "bottom": "15px", | ||
| "left": "15px" | ||
| }, | ||
| "margin": { | ||
| "top": "10px", | ||
| "right": "0px", | ||
| "bottom": "10px", | ||
| "left": "0px" | ||
| }, | ||
| "blockSpacing": { | ||
| "horizontal": null, | ||
| "vertical": null | ||
| } | ||
| }, | ||
| "tablet": { | ||
| "width": null, | ||
| "minWidth": null, | ||
| "maxWidth": null, | ||
| "height": null, | ||
| "minHeight": null, | ||
| "maxHeight": null, | ||
| "padding": null, | ||
| "margin": null, | ||
| "blockSpacing": null | ||
| }, | ||
| "mobile": { | ||
| "width": null, | ||
| "minWidth": null, | ||
| "maxWidth": null, | ||
| "height": null, | ||
| "minHeight": null, | ||
| "maxHeight": null, | ||
| "padding": null, | ||
| "margin": null, | ||
| "blockSpacing": null | ||
| } | ||
| } | ||
| }, | ||
| "alignmentControls": { | ||
| "type": "object", | ||
| "default": { | ||
| "desktop": { | ||
| "textAlign": null, | ||
| "alignItems": "center", | ||
| "justifyContent": "flex-start", | ||
| "direction": "row" | ||
| }, | ||
| "tablet": { | ||
| "textAlign": null, | ||
| "alignItems": null, | ||
| "justifyContent": null, | ||
| "direction": null | ||
| }, | ||
| "mobile": { | ||
| "textAlign": null, | ||
| "alignItems": null, | ||
| "justifyContent": null, | ||
| "direction": null | ||
| } | ||
| } | ||
| }, | ||
| "backgroundImageControls": { | ||
| "type": "object", | ||
| "default": { | ||
| "desktop": { | ||
| "bgUrl": null, | ||
| "bgId": null, | ||
| "bgFocalPoint": null, | ||
| "bgFixed": null, | ||
| "bgSize": "cover", | ||
| "bgWidth": "auto", | ||
| "bgRepeat": false | ||
| }, | ||
| "tablet": { | ||
| "bgUrl": null, | ||
| "bgId": null, | ||
| "bgFocalPoint": null, | ||
| "bgFixed": null, | ||
| "bgSize": null, | ||
| "bgWidth": null, | ||
| "bgRepeat": null | ||
| }, | ||
| "mobile": { | ||
| "bgUrl": null, | ||
| "bgId": null, | ||
| "bgFocalPoint": null, | ||
| "bgFixed": null, | ||
| "bgSize": null, | ||
| "bgWidth": null, | ||
| "bgRepeat": null | ||
| } | ||
| } | ||
| }, | ||
| "borderAndShadowControls": { | ||
| "type": "object", | ||
| "default": { | ||
| "desktop": { | ||
| "borderStyle": "solid", | ||
| "borderWidth": { | ||
| "top": "1px", | ||
| "right": "1px", | ||
| "bottom": "1px", | ||
| "left": "1px" | ||
| }, | ||
| "borderColor": "#dddddd", | ||
| "borderRadius": { | ||
| "topLeft": "4px", | ||
| "topRight": "4px", | ||
| "bottomLeft": "4px", | ||
| "bottomRight": "4px" | ||
| }, | ||
| "boxShadow": { | ||
| "enabled": false, | ||
| "horizontal": "0px", | ||
| "vertical": "2px", | ||
| "blur": "4px", | ||
| "spread": "0px", | ||
| "color": "rgba(0,0,0,0.1)" | ||
| } | ||
| }, | ||
| "tablet": { | ||
| "borderStyle": null, | ||
| "borderWidth": null, | ||
| "borderColor": null, | ||
| "borderRadius": null, | ||
| "boxShadow": null | ||
| }, | ||
| "mobile": { | ||
| "borderStyle": null, | ||
| "borderWidth": null, | ||
| "borderColor": null, | ||
| "borderRadius": null, | ||
| "boxShadow": null | ||
| } | ||
| } | ||
| }, | ||
| "displayControls": { | ||
| "type": "object", | ||
| "default": { | ||
| "desktop": { | ||
| "display": "block", | ||
| "visibility": "visible", | ||
| "overflow": "visible", | ||
| "zIndex": null | ||
| }, | ||
| "tablet": { | ||
| "display": null, | ||
| "visibility": null, | ||
| "overflow": null, | ||
| "zIndex": null | ||
| }, | ||
| "mobile": { | ||
| "display": null, | ||
| "visibility": null, | ||
| "overflow": null, | ||
| "zIndex": null | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '97793add38006e81f8ac'); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
Critical: Potential block name collision.
The block name is
wedocs/contributors(line 4), which may conflict with another Contributors block mentioned in the AI summary (assets/build/blocks/Contributors/block.json). Each block must have a unique name in WordPress.Verify whether there's a naming conflict:
If both blocks are intended to be separate, one should be renamed (e.g.,
wedocs/advance-contributorsvswedocs/contributors).🏁 Script executed:
Length of output: 15571
Rename AdvanceContributors block name: Change the block name in src/blocks/AdvanceContributors/block.json and assets/build/blocks/AdvanceContributors/block.json from
wedocs/contributorstowedocs/advance-contributorsto avoid collision with the existing Contributors block.🤖 Prompt for AI Agents