@soppiya/app-bridge 1.0.0 → 1.0.4
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/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +2 -1
- package/dist/components/media/MediaPreview.js +1 -1
- package/dist/components/variants-picker/api/query.d.ts +7 -0
- package/dist/components/variants-picker/api/query.js +30 -0
- package/dist/components/variants-picker/index.d.ts +1 -0
- package/dist/components/variants-picker/index.js +2 -0
- package/dist/components/variants-picker/model/useVariants.d.ts +34 -0
- package/dist/components/variants-picker/model/useVariants.js +45 -0
- package/dist/components/variants-picker/ui/VariantsPicker.d.ts +7 -0
- package/dist/components/variants-picker/ui/VariantsPicker.js +113 -0
- package/dist/components/variants-picker/ui/VariantsPicker.stories.d.ts +15 -0
- package/dist/components/variants-picker/ui/VariantsPicker.stories.js +13 -0
- package/dist/shared/graphql/gql.d.ts +5 -0
- package/dist/shared/graphql/gql.js +3 -2
- package/dist/shared/graphql/graphql.d.ts +703 -94
- package/dist/shared/graphql/graphql.js +403 -1
- package/dist/shared/graphql/index.d.ts +0 -1
- package/dist/shared/graphql/index.js +0 -1
- package/dist/shared/lib/index.d.ts +1 -0
- package/dist/shared/lib/index.js +2 -0
- package/dist/shared/lib/useFilterQuery.d.ts +5 -0
- package/dist/shared/lib/useFilterQuery.js +24 -0
- package/dist/styles.css +8 -0
- package/package.json +4 -2
|
@@ -331,6 +331,26 @@ var graphql_MetafieldType = /*#__PURE__*/ function(MetafieldType) {
|
|
|
331
331
|
MetafieldType["weight"] = "weight";
|
|
332
332
|
return MetafieldType;
|
|
333
333
|
}({});
|
|
334
|
+
var graphql_PaymentChargeType = /*#__PURE__*/ function(PaymentChargeType) {
|
|
335
|
+
PaymentChargeType["fixed"] = "fixed";
|
|
336
|
+
PaymentChargeType["percentage"] = "percentage";
|
|
337
|
+
return PaymentChargeType;
|
|
338
|
+
}({});
|
|
339
|
+
var graphql_PaymentSortKeys = /*#__PURE__*/ function(PaymentSortKeys) {
|
|
340
|
+
PaymentSortKeys["_id"] = "_id";
|
|
341
|
+
PaymentSortKeys["instruction"] = "instruction";
|
|
342
|
+
PaymentSortKeys["market"] = "market";
|
|
343
|
+
PaymentSortKeys["name"] = "name";
|
|
344
|
+
PaymentSortKeys["note"] = "note";
|
|
345
|
+
PaymentSortKeys["provider"] = "provider";
|
|
346
|
+
PaymentSortKeys["type"] = "type";
|
|
347
|
+
return PaymentSortKeys;
|
|
348
|
+
}({});
|
|
349
|
+
var graphql_PaymentType = /*#__PURE__*/ function(PaymentType) {
|
|
350
|
+
PaymentType["digital"] = "digital";
|
|
351
|
+
PaymentType["manual"] = "manual";
|
|
352
|
+
return PaymentType;
|
|
353
|
+
}({});
|
|
334
354
|
var graphql_PresetSortKeys = /*#__PURE__*/ function(PresetSortKeys) {
|
|
335
355
|
PresetSortKeys["_id"] = "_id";
|
|
336
356
|
PresetSortKeys["createdAt"] = "createdAt";
|
|
@@ -405,6 +425,50 @@ var graphql_StoreWeightUnit = /*#__PURE__*/ function(StoreWeightUnit) {
|
|
|
405
425
|
StoreWeightUnit["lb"] = "lb";
|
|
406
426
|
return StoreWeightUnit;
|
|
407
427
|
}({});
|
|
428
|
+
var graphql_SupplierSortKeys = /*#__PURE__*/ function(SupplierSortKeys) {
|
|
429
|
+
SupplierSortKeys["_id"] = "_id";
|
|
430
|
+
SupplierSortKeys["address1"] = "address1";
|
|
431
|
+
SupplierSortKeys["address2"] = "address2";
|
|
432
|
+
SupplierSortKeys["city"] = "city";
|
|
433
|
+
SupplierSortKeys["company"] = "company";
|
|
434
|
+
SupplierSortKeys["country"] = "country";
|
|
435
|
+
SupplierSortKeys["email"] = "email";
|
|
436
|
+
SupplierSortKeys["name"] = "name";
|
|
437
|
+
SupplierSortKeys["phone"] = "phone";
|
|
438
|
+
SupplierSortKeys["postal_code"] = "postal_code";
|
|
439
|
+
SupplierSortKeys["reatedAt"] = "reatedAt";
|
|
440
|
+
SupplierSortKeys["updatedAt"] = "updatedAt";
|
|
441
|
+
return SupplierSortKeys;
|
|
442
|
+
}({});
|
|
443
|
+
var graphql_graphql_ThemeSortKeys = /*#__PURE__*/ function(ThemeSortKeys) {
|
|
444
|
+
ThemeSortKeys["_id"] = "_id";
|
|
445
|
+
ThemeSortKeys["createdAt"] = "createdAt";
|
|
446
|
+
ThemeSortKeys["is_published"] = "is_published";
|
|
447
|
+
ThemeSortKeys["updatedAt"] = "updatedAt";
|
|
448
|
+
return ThemeSortKeys;
|
|
449
|
+
}({});
|
|
450
|
+
var graphql_TransferSortKeys = /*#__PURE__*/ function(TransferSortKeys) {
|
|
451
|
+
TransferSortKeys["_id"] = "_id";
|
|
452
|
+
TransferSortKeys["createdAt"] = "createdAt";
|
|
453
|
+
TransferSortKeys["destination"] = "destination";
|
|
454
|
+
TransferSortKeys["expected_arrival"] = "expected_arrival";
|
|
455
|
+
TransferSortKeys["origin"] = "origin";
|
|
456
|
+
TransferSortKeys["reference_number"] = "reference_number";
|
|
457
|
+
TransferSortKeys["serial_id"] = "serial_id";
|
|
458
|
+
TransferSortKeys["shipping_carrier"] = "shipping_carrier";
|
|
459
|
+
TransferSortKeys["status"] = "status";
|
|
460
|
+
TransferSortKeys["tracking_number"] = "tracking_number";
|
|
461
|
+
TransferSortKeys["tracking_url"] = "tracking_url";
|
|
462
|
+
TransferSortKeys["updatedAt"] = "updatedAt";
|
|
463
|
+
return TransferSortKeys;
|
|
464
|
+
}({});
|
|
465
|
+
var graphql_TransferStatus = /*#__PURE__*/ function(TransferStatus) {
|
|
466
|
+
TransferStatus["draft"] = "draft";
|
|
467
|
+
TransferStatus["partial"] = "partial";
|
|
468
|
+
TransferStatus["pending"] = "pending";
|
|
469
|
+
TransferStatus["received"] = "received";
|
|
470
|
+
return TransferStatus;
|
|
471
|
+
}({});
|
|
408
472
|
var graphql_UserDeviceSortKeys = /*#__PURE__*/ function(UserDeviceSortKeys) {
|
|
409
473
|
UserDeviceSortKeys["_id"] = "_id";
|
|
410
474
|
UserDeviceSortKeys["browser_name"] = "browser_name";
|
|
@@ -564,6 +628,11 @@ var graphql_TimezoneSortKeys = /*#__PURE__*/ function(_TimezoneSortKeys) {
|
|
|
564
628
|
_TimezoneSortKeys["offset"] = "offset";
|
|
565
629
|
return _TimezoneSortKeys;
|
|
566
630
|
}({});
|
|
631
|
+
var graphql_EditThemeTemplateType = /*#__PURE__*/ function(EditThemeTemplateType) {
|
|
632
|
+
EditThemeTemplateType["permanent"] = "permanent";
|
|
633
|
+
EditThemeTemplateType["temporary"] = "temporary";
|
|
634
|
+
return EditThemeTemplateType;
|
|
635
|
+
}({});
|
|
567
636
|
const MediasDocument = {
|
|
568
637
|
kind: "Document",
|
|
569
638
|
definitions: [
|
|
@@ -1223,4 +1292,337 @@ const DeleteMediasDocument = {
|
|
|
1223
1292
|
}
|
|
1224
1293
|
]
|
|
1225
1294
|
};
|
|
1226
|
-
|
|
1295
|
+
const VariantsDocument = {
|
|
1296
|
+
kind: "Document",
|
|
1297
|
+
definitions: [
|
|
1298
|
+
{
|
|
1299
|
+
kind: "OperationDefinition",
|
|
1300
|
+
operation: "query",
|
|
1301
|
+
name: {
|
|
1302
|
+
kind: "Name",
|
|
1303
|
+
value: "Variants"
|
|
1304
|
+
},
|
|
1305
|
+
variableDefinitions: [
|
|
1306
|
+
{
|
|
1307
|
+
kind: "VariableDefinition",
|
|
1308
|
+
variable: {
|
|
1309
|
+
kind: "Variable",
|
|
1310
|
+
name: {
|
|
1311
|
+
kind: "Name",
|
|
1312
|
+
value: "after"
|
|
1313
|
+
}
|
|
1314
|
+
},
|
|
1315
|
+
type: {
|
|
1316
|
+
kind: "NamedType",
|
|
1317
|
+
name: {
|
|
1318
|
+
kind: "Name",
|
|
1319
|
+
value: "ID"
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
},
|
|
1323
|
+
{
|
|
1324
|
+
kind: "VariableDefinition",
|
|
1325
|
+
variable: {
|
|
1326
|
+
kind: "Variable",
|
|
1327
|
+
name: {
|
|
1328
|
+
kind: "Name",
|
|
1329
|
+
value: "before"
|
|
1330
|
+
}
|
|
1331
|
+
},
|
|
1332
|
+
type: {
|
|
1333
|
+
kind: "NamedType",
|
|
1334
|
+
name: {
|
|
1335
|
+
kind: "Name",
|
|
1336
|
+
value: "ID"
|
|
1337
|
+
}
|
|
1338
|
+
}
|
|
1339
|
+
},
|
|
1340
|
+
{
|
|
1341
|
+
kind: "VariableDefinition",
|
|
1342
|
+
variable: {
|
|
1343
|
+
kind: "Variable",
|
|
1344
|
+
name: {
|
|
1345
|
+
kind: "Name",
|
|
1346
|
+
value: "first"
|
|
1347
|
+
}
|
|
1348
|
+
},
|
|
1349
|
+
type: {
|
|
1350
|
+
kind: "NamedType",
|
|
1351
|
+
name: {
|
|
1352
|
+
kind: "Name",
|
|
1353
|
+
value: "Int"
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
},
|
|
1357
|
+
{
|
|
1358
|
+
kind: "VariableDefinition",
|
|
1359
|
+
variable: {
|
|
1360
|
+
kind: "Variable",
|
|
1361
|
+
name: {
|
|
1362
|
+
kind: "Name",
|
|
1363
|
+
value: "last"
|
|
1364
|
+
}
|
|
1365
|
+
},
|
|
1366
|
+
type: {
|
|
1367
|
+
kind: "NamedType",
|
|
1368
|
+
name: {
|
|
1369
|
+
kind: "Name",
|
|
1370
|
+
value: "Int"
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
},
|
|
1374
|
+
{
|
|
1375
|
+
kind: "VariableDefinition",
|
|
1376
|
+
variable: {
|
|
1377
|
+
kind: "Variable",
|
|
1378
|
+
name: {
|
|
1379
|
+
kind: "Name",
|
|
1380
|
+
value: "query"
|
|
1381
|
+
}
|
|
1382
|
+
},
|
|
1383
|
+
type: {
|
|
1384
|
+
kind: "NamedType",
|
|
1385
|
+
name: {
|
|
1386
|
+
kind: "Name",
|
|
1387
|
+
value: "String"
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
1391
|
+
],
|
|
1392
|
+
selectionSet: {
|
|
1393
|
+
kind: "SelectionSet",
|
|
1394
|
+
selections: [
|
|
1395
|
+
{
|
|
1396
|
+
kind: "Field",
|
|
1397
|
+
name: {
|
|
1398
|
+
kind: "Name",
|
|
1399
|
+
value: "variants"
|
|
1400
|
+
},
|
|
1401
|
+
arguments: [
|
|
1402
|
+
{
|
|
1403
|
+
kind: "Argument",
|
|
1404
|
+
name: {
|
|
1405
|
+
kind: "Name",
|
|
1406
|
+
value: "after"
|
|
1407
|
+
},
|
|
1408
|
+
value: {
|
|
1409
|
+
kind: "Variable",
|
|
1410
|
+
name: {
|
|
1411
|
+
kind: "Name",
|
|
1412
|
+
value: "after"
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
},
|
|
1416
|
+
{
|
|
1417
|
+
kind: "Argument",
|
|
1418
|
+
name: {
|
|
1419
|
+
kind: "Name",
|
|
1420
|
+
value: "before"
|
|
1421
|
+
},
|
|
1422
|
+
value: {
|
|
1423
|
+
kind: "Variable",
|
|
1424
|
+
name: {
|
|
1425
|
+
kind: "Name",
|
|
1426
|
+
value: "before"
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
},
|
|
1430
|
+
{
|
|
1431
|
+
kind: "Argument",
|
|
1432
|
+
name: {
|
|
1433
|
+
kind: "Name",
|
|
1434
|
+
value: "first"
|
|
1435
|
+
},
|
|
1436
|
+
value: {
|
|
1437
|
+
kind: "Variable",
|
|
1438
|
+
name: {
|
|
1439
|
+
kind: "Name",
|
|
1440
|
+
value: "first"
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
},
|
|
1444
|
+
{
|
|
1445
|
+
kind: "Argument",
|
|
1446
|
+
name: {
|
|
1447
|
+
kind: "Name",
|
|
1448
|
+
value: "last"
|
|
1449
|
+
},
|
|
1450
|
+
value: {
|
|
1451
|
+
kind: "Variable",
|
|
1452
|
+
name: {
|
|
1453
|
+
kind: "Name",
|
|
1454
|
+
value: "last"
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
},
|
|
1458
|
+
{
|
|
1459
|
+
kind: "Argument",
|
|
1460
|
+
name: {
|
|
1461
|
+
kind: "Name",
|
|
1462
|
+
value: "query"
|
|
1463
|
+
},
|
|
1464
|
+
value: {
|
|
1465
|
+
kind: "Variable",
|
|
1466
|
+
name: {
|
|
1467
|
+
kind: "Name",
|
|
1468
|
+
value: "query"
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
],
|
|
1473
|
+
selectionSet: {
|
|
1474
|
+
kind: "SelectionSet",
|
|
1475
|
+
selections: [
|
|
1476
|
+
{
|
|
1477
|
+
kind: "Field",
|
|
1478
|
+
name: {
|
|
1479
|
+
kind: "Name",
|
|
1480
|
+
value: "pageInfo"
|
|
1481
|
+
},
|
|
1482
|
+
selectionSet: {
|
|
1483
|
+
kind: "SelectionSet",
|
|
1484
|
+
selections: [
|
|
1485
|
+
{
|
|
1486
|
+
kind: "Field",
|
|
1487
|
+
name: {
|
|
1488
|
+
kind: "Name",
|
|
1489
|
+
value: "endCursor"
|
|
1490
|
+
}
|
|
1491
|
+
},
|
|
1492
|
+
{
|
|
1493
|
+
kind: "Field",
|
|
1494
|
+
name: {
|
|
1495
|
+
kind: "Name",
|
|
1496
|
+
value: "hasNextPage"
|
|
1497
|
+
}
|
|
1498
|
+
},
|
|
1499
|
+
{
|
|
1500
|
+
kind: "Field",
|
|
1501
|
+
name: {
|
|
1502
|
+
kind: "Name",
|
|
1503
|
+
value: "hasPreviousPage"
|
|
1504
|
+
}
|
|
1505
|
+
},
|
|
1506
|
+
{
|
|
1507
|
+
kind: "Field",
|
|
1508
|
+
name: {
|
|
1509
|
+
kind: "Name",
|
|
1510
|
+
value: "startCursor"
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
]
|
|
1514
|
+
}
|
|
1515
|
+
},
|
|
1516
|
+
{
|
|
1517
|
+
kind: "Field",
|
|
1518
|
+
name: {
|
|
1519
|
+
kind: "Name",
|
|
1520
|
+
value: "edges"
|
|
1521
|
+
},
|
|
1522
|
+
selectionSet: {
|
|
1523
|
+
kind: "SelectionSet",
|
|
1524
|
+
selections: [
|
|
1525
|
+
{
|
|
1526
|
+
kind: "Field",
|
|
1527
|
+
name: {
|
|
1528
|
+
kind: "Name",
|
|
1529
|
+
value: "node"
|
|
1530
|
+
},
|
|
1531
|
+
selectionSet: {
|
|
1532
|
+
kind: "SelectionSet",
|
|
1533
|
+
selections: [
|
|
1534
|
+
{
|
|
1535
|
+
kind: "Field",
|
|
1536
|
+
name: {
|
|
1537
|
+
kind: "Name",
|
|
1538
|
+
value: "_id"
|
|
1539
|
+
}
|
|
1540
|
+
},
|
|
1541
|
+
{
|
|
1542
|
+
kind: "Field",
|
|
1543
|
+
name: {
|
|
1544
|
+
kind: "Name",
|
|
1545
|
+
value: "option1"
|
|
1546
|
+
}
|
|
1547
|
+
},
|
|
1548
|
+
{
|
|
1549
|
+
kind: "Field",
|
|
1550
|
+
name: {
|
|
1551
|
+
kind: "Name",
|
|
1552
|
+
value: "option2"
|
|
1553
|
+
}
|
|
1554
|
+
},
|
|
1555
|
+
{
|
|
1556
|
+
kind: "Field",
|
|
1557
|
+
name: {
|
|
1558
|
+
kind: "Name",
|
|
1559
|
+
value: "option3"
|
|
1560
|
+
}
|
|
1561
|
+
},
|
|
1562
|
+
{
|
|
1563
|
+
kind: "Field",
|
|
1564
|
+
name: {
|
|
1565
|
+
kind: "Name",
|
|
1566
|
+
value: "image"
|
|
1567
|
+
},
|
|
1568
|
+
selectionSet: {
|
|
1569
|
+
kind: "SelectionSet",
|
|
1570
|
+
selections: [
|
|
1571
|
+
{
|
|
1572
|
+
kind: "Field",
|
|
1573
|
+
name: {
|
|
1574
|
+
kind: "Name",
|
|
1575
|
+
value: "_id"
|
|
1576
|
+
}
|
|
1577
|
+
},
|
|
1578
|
+
{
|
|
1579
|
+
kind: "Field",
|
|
1580
|
+
name: {
|
|
1581
|
+
kind: "Name",
|
|
1582
|
+
value: "url"
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
]
|
|
1586
|
+
}
|
|
1587
|
+
},
|
|
1588
|
+
{
|
|
1589
|
+
kind: "Field",
|
|
1590
|
+
name: {
|
|
1591
|
+
kind: "Name",
|
|
1592
|
+
value: "product"
|
|
1593
|
+
},
|
|
1594
|
+
selectionSet: {
|
|
1595
|
+
kind: "SelectionSet",
|
|
1596
|
+
selections: [
|
|
1597
|
+
{
|
|
1598
|
+
kind: "Field",
|
|
1599
|
+
name: {
|
|
1600
|
+
kind: "Name",
|
|
1601
|
+
value: "_id"
|
|
1602
|
+
}
|
|
1603
|
+
},
|
|
1604
|
+
{
|
|
1605
|
+
kind: "Field",
|
|
1606
|
+
name: {
|
|
1607
|
+
kind: "Name",
|
|
1608
|
+
value: "title"
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
]
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1614
|
+
]
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1617
|
+
]
|
|
1618
|
+
}
|
|
1619
|
+
}
|
|
1620
|
+
]
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
]
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
]
|
|
1627
|
+
};
|
|
1628
|
+
export { graphql_AccountEmailIntent as AccountEmailIntent, graphql_AccountEmailUpdateActionIntent as AccountEmailUpdateActionIntent, AddMediasDocument, graphql_graphql_AppSortKeys as AppSortKeys, graphql_ArticleCommentPermission as ArticleCommentPermission, graphql_ArticleSortKeys as ArticleSortKeys, graphql_ArticleStatus as ArticleStatus, graphql_BlogSortKeys as BlogSortKeys, graphql_CheckoutAutoFulfillment as CheckoutAutoFulfillment, graphql_CheckoutContactMethod as CheckoutContactMethod, graphql_CheckoutExcludeRequiredOptional as CheckoutExcludeRequiredOptional, graphql_CheckoutNameRequirement as CheckoutNameRequirement, graphql_CollectionMatchType as CollectionMatchType, graphql_CollectionProductSortkey as CollectionProductSortkey, graphql_CollectionRuleField as CollectionRuleField, graphql_CollectionRuleRelation as CollectionRuleRelation, graphql_CollectionSortBy as CollectionSortBy, graphql_CollectionSortKey as CollectionSortKey, graphql_CollectionType as CollectionType, DeleteMediasDocument, graphql_DomainRecordType as DomainRecordType, graphql_DomainSortkeys as DomainSortkeys, graphql_EditThemeTemplateType as EditThemeTemplateType, graphql_InventorySortKeys as InventorySortKeys, graphql_LinklistSortKeys as LinklistSortKeys, graphql_LinklistType as LinklistType, graphql_LocationSortKeys as LocationSortKeys, graphql_LoginMethod as LoginMethod, graphql_MarketSortKeys as MarketSortKeys, graphql_MarketVariantSortKeys as MarketVariantSortKeys, graphql_MediaSortKeys as MediaSortKeys, graphql_MediaType as MediaType, MediaUsageDocument, MediasDocument, graphql_MetafieldEntryType as MetafieldEntryType, graphql_MetafieldScope as MetafieldScope, graphql_MetafieldSortKeys as MetafieldSortKeys, graphql_MetafieldType as MetafieldType, graphql_PaymentChargeType as PaymentChargeType, graphql_PaymentSortKeys as PaymentSortKeys, graphql_PaymentType as PaymentType, graphql_PresetSortKeys as PresetSortKeys, graphql_PresetType as PresetType, graphql_ProductSortKeys as ProductSortKeys, graphql_ProductStatus as ProductStatus, graphql_RedirectSortKeys as RedirectSortKeys, graphql_StaffAppPermission as StaffAppPermission, graphql_StaffSortKeys as StaffSortKeys, StoragePlanDocument, graphql_StoreLengthUnit as StoreLengthUnit, graphql_StoreSortkeys as StoreSortkeys, graphql_StoreWeightUnit as StoreWeightUnit, graphql_SupplierSortKeys as SupplierSortKeys, graphql_graphql_ThemeSortKeys as ThemeSortKeys, graphql_TransferSortKeys as TransferSortKeys, graphql_TransferStatus as TransferStatus, graphql_UserDeviceSortKeys as UserDeviceSortKeys, graphql_UserPasskeySortKeys as UserPasskeySortKeys, graphql_UserSessionSortKeys as UserSessionSortKeys, graphql_VariantSortKeys as VariantSortKeys, graphql_VariantStatus as VariantStatus, VariantsDocument, graphql_WhoamiType as WhoamiType, graphql_AppSortKeys as _AppSortKeys, graphql_CategorySortKeys as _CategorySortKeys, graphql_ContinentSortKeys as _ContinentSortKeys, graphql_CountrySortKeys as _CountrySortKeys, graphql_CurrencySortKeys as _CurrencySortKeys, graphql_HscodeSortKeys as _HscodeSortKeys, graphql_LanguageSortKeys as _LanguageSortKeys, graphql_PackageSortKeys as _PackageSortKeys, graphql_PaymentGatewaySortKeys as _PaymentGatewaySortKeys, graphql_PaymentProviderSortKeys as _PaymentProviderSortKeys, graphql_PhoneSortKeys as _PhoneSortKeys, graphql_RegionSortKeys as _RegionSortKeys, graphql_SoppiyaPaymentSortKeys as _SoppiyaPaymentSortKeys, graphql_ThemeSortKeys as _ThemeSortKeys, graphql_ThemeVersionSortKeys as _ThemeVersionSortKeys, graphql_TimezoneSortKeys as _TimezoneSortKeys };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useFilterQuery } from "./useFilterQuery";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { useDebounce } from "@uidotdev/usehooks";
|
|
2
|
+
import { useEffect, useRef, useState } from "react";
|
|
3
|
+
const useFilterQuery = (initialQuery = null)=>{
|
|
4
|
+
const _initialQuery = useRef(null);
|
|
5
|
+
const [query, setQuery] = useState(initialQuery);
|
|
6
|
+
const debounceQuery = useDebounce(query, 250);
|
|
7
|
+
const onChangeQuery = (value)=>{
|
|
8
|
+
setQuery(value);
|
|
9
|
+
};
|
|
10
|
+
useEffect(()=>{
|
|
11
|
+
if (!_initialQuery.current && initialQuery) {
|
|
12
|
+
setQuery(initialQuery);
|
|
13
|
+
_initialQuery.current = initialQuery;
|
|
14
|
+
}
|
|
15
|
+
}, [
|
|
16
|
+
initialQuery
|
|
17
|
+
]);
|
|
18
|
+
return {
|
|
19
|
+
query,
|
|
20
|
+
debounceQuery,
|
|
21
|
+
onChangeQuery
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export { useFilterQuery };
|
package/dist/styles.css
CHANGED
|
@@ -307,6 +307,10 @@
|
|
|
307
307
|
position: absolute;
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
+
.fixed {
|
|
311
|
+
position: fixed;
|
|
312
|
+
}
|
|
313
|
+
|
|
310
314
|
.relative {
|
|
311
315
|
position: relative;
|
|
312
316
|
}
|
|
@@ -534,6 +538,10 @@
|
|
|
534
538
|
border-bottom-color: #ebebeb;
|
|
535
539
|
}
|
|
536
540
|
|
|
541
|
+
.border-b-\[\#ebebeb\]\! {
|
|
542
|
+
border-bottom-color: #ebebeb !important;
|
|
543
|
+
}
|
|
544
|
+
|
|
537
545
|
.\!bg-\[\#f7f7f7\] {
|
|
538
546
|
background-color: #f7f7f7 !important;
|
|
539
547
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soppiya/app-bridge",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"@storybook/addon-onboarding": "^9.1.8",
|
|
36
36
|
"@storybook/react": "^9.1.8",
|
|
37
37
|
"@tailwindcss/postcss": "^4.1.13",
|
|
38
|
+
"@types/lodash": "^4.17.20",
|
|
38
39
|
"@types/node": "^24.6.2",
|
|
39
40
|
"@types/react": "^19.1.12",
|
|
40
41
|
"apollo-upload-client": "^19.0.0",
|
|
@@ -58,9 +59,10 @@
|
|
|
58
59
|
},
|
|
59
60
|
"dependencies": {
|
|
60
61
|
"@apollo/client": "^4.0.7",
|
|
61
|
-
"@soppiya/elementus": "
|
|
62
|
+
"@soppiya/elementus": "^1.0.6",
|
|
62
63
|
"@uidotdev/usehooks": "^2.4.1",
|
|
63
64
|
"classnames": "^2.5.1",
|
|
65
|
+
"lodash": "^4.17.21",
|
|
64
66
|
"react-toastify": "^11.0.5"
|
|
65
67
|
}
|
|
66
68
|
}
|