Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
2d65ed0
fix: Handled Active Eelement of Table of Content
SB-venkatyadavilli Nov 7, 2025
28e5492
fix: handled initial values of Context API.
SB-venkatyadavilli Nov 10, 2025
603f1fe
fix:moved ContextAPI provider from dev-portal to elements-core
SB-venkatyadavilli Nov 11, 2025
8066688
fix: handled initial values of contextAPI & implemented isActiveGroup…
SB-venkatyadavilli Nov 11, 2025
d083d55
fix: updated the Unit test cases
SB-venkatyadavilli Nov 12, 2025
e06ed81
fix: removed log
SB-venkatyadavilli Nov 12, 2025
acef357
fix:added groupId & groupIndex in TableOfContents.stories.tsx
SB-venkatyadavilli Nov 12, 2025
0ad3499
fix:removed onLickClick from handleClick
SB-venkatyadavilli Nov 13, 2025
56efdab
fix: optimise the updateTree functionality
SB-venkatyadavilli Nov 14, 2025
4541511
fix: added parentId as 3rd property to identify the activeElement
SB-venkatyadavilli Nov 14, 2025
9a3b416
Merge branch 'main' of https://github.com/stoplightio/elements into S…
SB-venkatyadavilli Nov 17, 2025
27ca65f
fix: renamed the functionaliy to updateTocTree and removed logs.
SB-venkatyadavilli Nov 17, 2025
c119367
Merge branch 'main' of https://github.com/stoplightio/elements into S…
SB-venkatyadavilli Nov 17, 2025
8b732bd
fix: added useMemo to contextAPI.
SB-venkatyadavilli Nov 19, 2025
d0a3bab
fix: removed log
SB-venkatyadavilli Nov 25, 2025
b9a8209
fix:implemented unique key approach for each Tree elements
SB-venkatyadavilli Nov 26, 2025
7159de5
fix: uncommented expect statement
SB-venkatyadavilli Nov 26, 2025
1915ac1
fix: used '-' symbol as seperator in index unique key
SB-venkatyadavilli Nov 27, 2025
0ba88bb
fix: added types
SB-venkatyadavilli Nov 27, 2025
bff902b
chore(deps): bump up elements, elements-core & elements-dev-portal
SB-venkatyadavilli Nov 27, 2025
2a1c227
Updated the resourse_class from xlarge to medium in the config.yml
SB-pankajyadav Nov 28, 2025
42bc51d
.circleci config file modified
SB-venkatyadavilli Nov 28, 2025
89efd3e
fix: added index property
SB-venkatyadavilli Nov 28, 2025
5a2bef4
fix: added all properties into single ContextAPI and removed 2nd Cont…
SB-venkatyadavilli Dec 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
working_directory: /mnt/ramdisk/project
docker:
- image: cimg/node:18.20
resource_class: xlarge
resource_class: large
environment:
CYPRESS_CACHE_FOLDER: /mnt/ramdisk/.cache/Cypress
YARN_CACHE_FOLDER: /mnt/ramdisk/.cache/yarn
Expand All @@ -47,7 +47,7 @@ jobs:
- run: yarn build.docs
run-e2e-tests:
executor: cypress-default
resource_class: xlarge
resource_class: large
working_directory: /mnt/ramdisk/project
environment:
CYPRESS_CACHE_FOLDER: /mnt/ramdisk/.cache/Cypress
Expand Down
2 changes: 1 addition & 1 deletion packages/elements-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stoplight/elements-core",
"version": "9.0.12",
"version": "9.0.13",
"sideEffects": [
"web-components.min.js",
"src/web-components/**",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ describe('TableOfContents', () => {
slug: 'target',
type: 'article',
meta: '',
index: '0-',
},
],
},
Expand Down Expand Up @@ -55,6 +56,7 @@ describe('TableOfContents', () => {
slug: 'target',
type: 'article',
meta: '',
index: '0-',
},
],
},
Expand Down Expand Up @@ -87,8 +89,10 @@ describe('TableOfContents', () => {
slug: 'target',
type: 'article',
meta: '',
index: '0-0-',
},
],
index: '0-',
},
],
},
Expand Down Expand Up @@ -119,6 +123,7 @@ describe('TableOfContents', () => {
slug: 'target',
type: 'article',
meta: '',
index: '0-',
},
],
},
Expand Down Expand Up @@ -154,6 +159,7 @@ describe('TableOfContents', () => {
slug: 'target',
type: 'article',
meta: '',
index: '0-',
},
],
},
Expand Down Expand Up @@ -191,6 +197,7 @@ describe('TableOfContents', () => {
items: [],
meta: '',
version: '2',
index: '0-',
},
{
id: 'def',
Expand All @@ -199,6 +206,7 @@ describe('TableOfContents', () => {
type: 'model',
meta: '',
version: '1.0.1',
index: '1-',
},
{
id: 'ghi',
Expand All @@ -207,6 +215,7 @@ describe('TableOfContents', () => {
type: 'http_operation',
meta: 'get',
version: '1.0.2',
index: '2-',
},
],
},
Expand Down Expand Up @@ -238,13 +247,15 @@ describe('utils', () => {
type: 'article',
slug: 'abc-doc',
meta: '',
index: '0-',
},
{
id: 'targetId',
title: 'Target',
slug: 'target',
type: 'article',
meta: '',
index: '1-',
},
],
},
Expand All @@ -258,6 +269,7 @@ describe('utils', () => {
type: 'article',
slug: 'abc-doc',
meta: '',
index: '0-',
});
});

Expand All @@ -276,13 +288,15 @@ describe('utils', () => {
slug: 'def-get-todo',
type: 'http_operation',
meta: 'get',
index: '0-',
},
{
id: 'ghi',
title: 'Add Todo',
slug: 'ghi-add-todo',
type: 'http_operation',
meta: 'post',
index: '1-',
},
],
},
Expand All @@ -295,6 +309,7 @@ describe('utils', () => {
slug: 'def-get-todo',
type: 'http_operation',
meta: 'get',
index: '0-',
});
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,51 +27,59 @@ Playground.args = {
title: 'Overview',
type: 'overview',
meta: '',
index: '0-',
},
{
title: 'Endpoints',
index: '1-',
},
{
id: '/operations/get-todos',
slug: '/operations/get-todos',
title: 'List Todos',
type: 'http_operation',
meta: 'get',
index: '2-',
},
{
id: '/operations/post-todos',
slug: '/operations/post-todos',
title: 'Create Todo',
type: 'http_operation',
meta: 'post',
index: '3-',
},
{
id: '/operations/get-todos-id',
slug: '/operations/get-todos-id',
title: 'Get Todo',
type: 'http_operation',
meta: 'get',
index: '4-',
},
{
id: '/operations/put-todos-id',
slug: '/operations/put-todos-id',
title: 'Replace Todo',
type: 'http_operation',
meta: 'put',
index: '5-',
},
{
id: '/operations/delete-todos-id',
slug: '/operations/delete-todos-id',
title: 'Delete Todo',
type: 'http_operation',
meta: 'delete',
index: '6-',
},
{
id: '/operations/patch-todos-id',
slug: '/operations/patch-todos-id',
title: 'Update Todo',
type: 'http_operation',
meta: 'patch',
index: '7-',
},
{
title: 'Users',
Expand All @@ -82,25 +90,30 @@ Playground.args = {
title: 'Get User',
type: 'http_operation',
meta: 'get',
index: '8-0-',
},
{
id: '/operations/delete-users-userID',
slug: '/operations/delete-users-userID',
title: 'Delete User',
type: 'http_operation',
meta: 'delete',
index: '8-1-',
},
{
id: '/operations/post-users-userID',
slug: '/operations/post-users-userID',
title: 'Create User',
type: 'http_operation',
meta: 'post',
index: '8-2-',
},
],
index: '8-',
},
{
title: 'Schemas',
index: '9-',
},
{
id: '/schemas/Todos',
Expand All @@ -109,13 +122,15 @@ Playground.args = {
type: 'model',
meta: '',
version: '1.0.2',
index: '10-',
},
{
id: '/schemas/User',
slug: '/schemas/User',
title: 'User',
type: 'model',
meta: '',
index: '11-',
},
],
};
Loading