v7.0.0-beta.2 release

This commit is contained in:
HeuJung committed 2026-04-20 20:37:49 +09:00
1 parent 6595fd0eb5
commit fa8eba7a0d
1165 files changed
+107118 -762127

No files matched your search

@@ -1,73 +1,79 @@
{
"meta": {
"name": "user-address-search",
"description": "사용자 화면용 다음 주소 검색 Extension",
"version": "1.0.0",
"extension_point": "address_search_slot",
"plugin": "sirsoft-daum_postcode"
},
"component": {
"type": "basic",
"name": "Button",
"props": {
"type": "button",
"className": "flex-shrink-0 px-4 py-2.5 bg-gray-900 dark:bg-white text-white dark:text-gray-900 rounded-lg text-sm font-medium hover:bg-gray-800 dark:hover:bg-gray-100 transition-colors"
},
"responsive": {
"portable": {
"props": {
"type": "button",
"className": "flex-shrink-0 px-3 py-2 bg-gray-900 dark:bg-white text-white dark:text-gray-900 rounded-lg text-xs font-medium hover:bg-gray-800 dark:hover:bg-gray-100 transition-colors"
}
}
},
"children": [
{
"type": "basic",
"name": "Icon",
"props": { "name": "search", "className": "w-4 h-4 mr-1.5" }
},
{
"type": "basic",
"name": "Span",
"text": "$t:address.search"
}
],
"actions": [
{
"type": "click",
"handler": "openDaumPostcode",
"params": {
"callbackSetState": {
"target": "{{$props.stateTarget || 'local'}}",
"zonecode": "{{$props.zonecodePath || 'shipping.zonecode'}}",
"address": "{{$props.addressPath || 'shipping.address'}}",
"detailFocusField": "{{$props.detailFocusField || 'shipping.addressDetail'}}"
}
}
}
]
},
"translations": {
"ko": {
"address": {
"search": "주소 검색",
"search_placeholder": "주소를 검색해주세요",
"zonecode": "우편번호",
"address_main": "기본주소",
"address_detail": "상세주소",
"address_detail_placeholder": "상세주소를 입력해주세요"
}
},
"en": {
"address": {
"search": "Search Address",
"search_placeholder": "Please search for an address",
"zonecode": "Postal Code",
"address_main": "Address",
"address_detail": "Detail Address",
"address_detail_placeholder": "Please enter detail address"
}
"extension_point": "address_search_slot",
"scripts": [
{
"src": "//t1.daumcdn.net/mapjsapi/bundle/postcode/prod/postcode.v2.js",
"id": "daum_postcode_script"
}
}
],
"components": [
{
"id": "daum_postcode_user_container",
"type": "basic",
"name": "Div",
"props": {
"className": "inline-flex"
},
"lifecycle": {
"onMount": [
{
"comment": "주소 검색 플러그인 마운트 시 지정된 필드를 readOnly로 설정",
"handler": "sirsoft-daum_postcode.setFieldReadOnly",
"params": {
"fields": "{{extensionPointProps.readOnlyFields ?? ['zipcode', 'address']}}",
"readOnly": true
}
}
]
},
"children": [
{
"id": "btn_user_search_address",
"type": "basic",
"name": "Button",
"props": {
"type": "button",
"className": "flex-shrink-0 px-4 py-2.5 border border-blue-500 dark:border-blue-400 text-blue-600 dark:text-blue-400 rounded-lg text-sm font-medium hover:bg-blue-50 dark:hover:bg-blue-900/20 transition-colors"
},
"responsive": {
"portable": {
"props": {
"className": "flex-shrink-0 px-3 py-2 border border-blue-500 dark:border-blue-400 text-blue-600 dark:text-blue-400 rounded-lg text-xs font-medium hover:bg-blue-50 dark:hover:bg-blue-900/20 transition-colors"
}
}
},
"children": [
{
"type": "basic",
"name": "Icon",
"props": { "name": "search", "className": "w-4 h-4 mr-1.5" }
},
{
"type": "basic",
"name": "Span",
"text": "$t:sirsoft-daum_postcode.search_address"
}
],
"actions": [
{
"type": "click",
"handler": "sirsoft-daum_postcode.openPostcode",
"params": {
"displayMode": "{{_global.plugins['sirsoft-daum_postcode']?.display_mode ?? 'layer'}}",
"width": "{{_global.plugins['sirsoft-daum_postcode']?.popup_width ?? 500}}",
"height": "{{_global.plugins['sirsoft-daum_postcode']?.popup_height ?? 600}}",
"theme": {
"searchBgColor": "{{_global.plugins['sirsoft-daum_postcode']?.theme_color ?? '#1D4ED8'}}",
"queryTextColor": "#FFFFFF"
},
"callbackAction": "{{extensionPointCallbacks.onAddressSelect}}",
"targetFields": "{{extensionPointProps.targetFields}}"
}
}
]
}
]
}
],
"priority": 50
}