@milofly/theme-sdk 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/LICENSE +21 -0
- package/README.md +38 -2
- package/package.json +31 -4
- package/src/component-schema.d.ts +42 -0
- package/src/component-schema.js +29 -0
- package/src/index.d.ts +166 -0
- package/src/index.js +223 -0
- package/vendor/component-contracts.mjs +1185 -0
- package/vendor/dinamik-alan-sozlesmesi.json +52 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"surum": 1,
|
|
3
|
+
"kod": "[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)*",
|
|
4
|
+
"jeton": "\\{\\{[ \\t]*([a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)*)(?::([a-z0-9_]+))?[ \\t]*\\}\\}",
|
|
5
|
+
"hamJeton": "\\{\\{[^{}]*\\}\\}",
|
|
6
|
+
"yerelAdAlani": "bu",
|
|
7
|
+
"zenginMetinOzniteligi": "data-alan",
|
|
8
|
+
"canliOzniteligi": "data-alan-canli",
|
|
9
|
+
"degerTipleri": {
|
|
10
|
+
"text": { "bicimler": ["duz"] },
|
|
11
|
+
"number": { "bicimler": ["sayi"] },
|
|
12
|
+
"number_range": { "bicimler": ["birimli", "aralik", "en_fazla"] },
|
|
13
|
+
"money": { "bicimler": ["tam", "kusuratsiz"] },
|
|
14
|
+
"percent": { "bicimler": ["tam"] },
|
|
15
|
+
"date": { "bicimler": ["gun_ay", "gun_ay_yil"] },
|
|
16
|
+
"date_range": { "bicimler": ["gun_ay", "haftanin_gunu"] },
|
|
17
|
+
"time": { "bicimler": ["saat"] },
|
|
18
|
+
"state": { "bicimler": [] },
|
|
19
|
+
"rich_text": { "bicimler": ["duz"], "yalnizZenginMetinAlani": true },
|
|
20
|
+
"table": { "bicimler": ["duz"], "yalnizZenginMetinAlani": true, "blok": true }
|
|
21
|
+
},
|
|
22
|
+
"baglamlar": ["product", "category", "cart", "customer", "return"],
|
|
23
|
+
"yuzeyler": ["storefront", "mail", "document", "message"],
|
|
24
|
+
"cozumAnlari": ["static", "visit"],
|
|
25
|
+
"metinAlanTurleri": ["text", "textarea", "rich_text", "string_list", "qa_pairs", "card_rows"],
|
|
26
|
+
"htmlBeyaniTurleri": ["text", "textarea"],
|
|
27
|
+
"zenginMetinAlanTurleri": ["rich_text"],
|
|
28
|
+
"gizlemeBloklari": ["p", "li", "h1", "h2", "h3", "h4", "h5", "h6", "tr", "div"],
|
|
29
|
+
"zenginMetinEtiketleri": { "satirIci": "span", "blok": "div" },
|
|
30
|
+
"zenginMetinEnCokOge": 40,
|
|
31
|
+
"tablo": { "hucreTipleri": ["money", "number", "percent", "text"], "enCokSatir": 36, "enCokSutun": 16 },
|
|
32
|
+
"zenginMetinYuzeyleri": {
|
|
33
|
+
"product.description": { "baglamlar": ["product"], "kaynaklar": ["sunucu"] },
|
|
34
|
+
"product.custom_tabs": { "baglamlar": ["product"], "kaynaklar": ["sunucu"] },
|
|
35
|
+
"component.product": { "baglamlar": ["product"], "kaynaklar": ["sunucu"] }
|
|
36
|
+
},
|
|
37
|
+
"bilesenBaglamYuzeyleri": { "product": "component.product" },
|
|
38
|
+
"bilesenMetniYuzeyi": { "alanTurleri": ["text", "textarea"], "baglamlar": [], "kaynaklar": ["sunucu"], "tipler": ["text"] },
|
|
39
|
+
"alanListesiTuru": "dynamic_field_list",
|
|
40
|
+
"alanListesiEnFazla": 12,
|
|
41
|
+
"alanListesiNotu": { "anahtar": "not", "enCokKarakter": 300 },
|
|
42
|
+
"kosulCumlesiOneki": "storefront.dynamic_field.condition",
|
|
43
|
+
"adetSeciciTeklifi": { "kind": "cart", "code": "quantity" },
|
|
44
|
+
"teslimGunCumleleri": {
|
|
45
|
+
"business_days": "storefront.product.delivery_days",
|
|
46
|
+
"calendar_days": "storefront.product.delivery_days_calendar"
|
|
47
|
+
},
|
|
48
|
+
"teslimGunBirimleri": {
|
|
49
|
+
"business_days": "storefront.dynamic_field.delivery_days_unit",
|
|
50
|
+
"calendar_days": "storefront.dynamic_field.delivery_days_unit_calendar"
|
|
51
|
+
}
|
|
52
|
+
}
|