@@ -2,14 +2,14 @@ import { provide, inject, computed } from 'vue';
22
33export default function useContentContainer ( { tag, contentTags, rootTags, level } = { } ) {
44 tag = tag || null ;
5- rootTags = rootTags || inject ( 'semanticRelease_rootTags ' , [ 'main' ] ) ;
6- contentTags = contentTags || inject ( 'semanticRelease_contentTags ' , [ 'article' , 'section' ] ) ;
5+ rootTags = rootTags || inject ( 'semanticStructure_rootTags ' , [ 'main' ] ) ;
6+ contentTags = contentTags || inject ( 'semanticStructure_contentTags ' , [ 'article' , 'section' ] ) ;
77 level = level || undefined ;
88
9- provide ( 'semanticRelease_rootTags ' , rootTags ) ;
10- provide ( 'semanticRelease_contentTags ' , contentTags ) ;
9+ provide ( 'semanticStructure_rootTags ' , rootTags ) ;
10+ provide ( 'semanticStructure_contentTags ' , contentTags ) ;
1111
12- const parentLevel = inject ( 'semanticRelease_parentLevel ' , 0 ) ;
12+ const parentLevel = inject ( 'semanticStructure_parentLevel ' , 0 ) ;
1313 const currentLevel = computed ( ( ) => ( level !== undefined ? level : parentLevel + 1 ) ) ;
1414 const currentTag = computed ( ( ) => {
1515 if ( tag ) {
@@ -21,8 +21,8 @@ export default function useContentContainer({ tag, contentTags, rootTags, level
2121 return contentTags [ currentLevel . value % contentTags . length ] ;
2222 } ) ;
2323
24- provide ( 'semanticRelease_rootLevel ' , rootTags . length ) ;
25- provide ( 'semanticRelease_parentLevel ' , currentLevel . value ) ;
24+ provide ( 'semanticStructure_rootLevel ' , rootTags . length ) ;
25+ provide ( 'semanticStructure_parentLevel ' , currentLevel . value ) ;
2626
2727 return {
2828 parentLevel,
0 commit comments