Skip to content

Commit 4a556eb

Browse files
authored
Migrate to Adaptive Card 1.3 Version (#243)
Code changes commit for webexpythonsdk's Adaptive Card 1.1 to 1.3 version upgrade. Changes involve code files restructuring inline with Adaptive Card's official documentation (https://adaptivecards.io/explorer/).
2 parents 5d29998 + ad65a86 commit 4a556eb

13 files changed

+5141
-720
lines changed

Diff for: src/webexpythonsdk/models/cards/__init__.py

+51-17
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Webex Adaptive Cards data models.
1+
"""Webex Adaptive Card - Init File.
22
33
Copyright (c) 2016-2024 Cisco and/or its affiliates.
44
@@ -21,30 +21,64 @@
2121
SOFTWARE.
2222
"""
2323

24-
from .adaptive_card_component import AdaptiveCardComponent
25-
from .card import AdaptiveCard
26-
from .components import (
27-
Choice,
28-
Column,
29-
Fact,
24+
from webexpythonsdk.models.cards.adaptive_card_component import (
25+
AdaptiveCardComponent
26+
)
27+
from webexpythonsdk.models.cards.cards import (
28+
AdaptiveCard
29+
)
30+
from webexpythonsdk.models.cards.card_elements import (
31+
TextBlock,
3032
Image,
3133
Media,
3234
MediaSource,
33-
TextBlock,
35+
RichTextBlock,
36+
TextRun,
3437
)
35-
from .container import ColumnSet, Container, FactSet, ImageSet
36-
from .inputs import Choices, Date, Number, Text, Time, Toggle
37-
from .options import (
38-
BlockElementHeight,
39-
ChoiceInputStyle,
40-
Colors,
41-
ContainerStyle,
38+
from webexpythonsdk.models.cards.containers import (
39+
ActionSet,
40+
Container,
41+
ColumnSet,
42+
Column,
43+
FactSet,
44+
Fact,
45+
ImageSet,
46+
)
47+
from webexpythonsdk.models.cards.actions import (
48+
OpenUrl,
49+
Submit,
50+
ShowCard,
51+
ToggleVisibility,
52+
TargetElement,
53+
)
54+
from webexpythonsdk.models.cards.inputs import (
55+
Text,
56+
Number,
57+
Date,
58+
Time,
59+
Toggle,
60+
ChoiceSet,
61+
Choice,
62+
)
63+
from webexpythonsdk.models.cards.types import (
64+
BackgroundImage,
65+
)
66+
from webexpythonsdk.models.cards.options import (
67+
AbstractOption,
4268
FontSize,
69+
FontType,
4370
FontWeight,
71+
Colors,
72+
BlockElementHeight,
73+
VerticalContentAlignment,
4474
HorizontalAlignment,
75+
Spacing,
4576
ImageSize,
4677
ImageStyle,
47-
Spacing,
78+
ContainerStyle,
4879
TextInputStyle,
49-
VerticalContentAlignment,
80+
ChoiceInputStyle,
81+
ActionStyle,
82+
AssociatedInputs,
83+
ImageFillMode,
5084
)

0 commit comments

Comments
 (0)