Skip to content

Commit

Permalink
Migrate to Adaptive Card 1.3 Version (#243)
Browse files Browse the repository at this point in the history
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/).
  • Loading branch information
Joezanini authored Oct 28, 2024
2 parents 5d29998 + ad65a86 commit 4a556eb
Show file tree
Hide file tree
Showing 13 changed files with 5,141 additions and 720 deletions.
68 changes: 51 additions & 17 deletions src/webexpythonsdk/models/cards/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Webex Adaptive Cards data models.
"""Webex Adaptive Card - Init File.
Copyright (c) 2016-2024 Cisco and/or its affiliates.
Expand All @@ -21,30 +21,64 @@
SOFTWARE.
"""

from .adaptive_card_component import AdaptiveCardComponent
from .card import AdaptiveCard
from .components import (
Choice,
Column,
Fact,
from webexpythonsdk.models.cards.adaptive_card_component import (
AdaptiveCardComponent
)
from webexpythonsdk.models.cards.cards import (
AdaptiveCard
)
from webexpythonsdk.models.cards.card_elements import (
TextBlock,
Image,
Media,
MediaSource,
TextBlock,
RichTextBlock,
TextRun,
)
from .container import ColumnSet, Container, FactSet, ImageSet
from .inputs import Choices, Date, Number, Text, Time, Toggle
from .options import (
BlockElementHeight,
ChoiceInputStyle,
Colors,
ContainerStyle,
from webexpythonsdk.models.cards.containers import (
ActionSet,
Container,
ColumnSet,
Column,
FactSet,
Fact,
ImageSet,
)
from webexpythonsdk.models.cards.actions import (
OpenUrl,
Submit,
ShowCard,
ToggleVisibility,
TargetElement,
)
from webexpythonsdk.models.cards.inputs import (
Text,
Number,
Date,
Time,
Toggle,
ChoiceSet,
Choice,
)
from webexpythonsdk.models.cards.types import (
BackgroundImage,
)
from webexpythonsdk.models.cards.options import (
AbstractOption,
FontSize,
FontType,
FontWeight,
Colors,
BlockElementHeight,
VerticalContentAlignment,
HorizontalAlignment,
Spacing,
ImageSize,
ImageStyle,
Spacing,
ContainerStyle,
TextInputStyle,
VerticalContentAlignment,
ChoiceInputStyle,
ActionStyle,
AssociatedInputs,
ImageFillMode,
)
Loading

0 comments on commit 4a556eb

Please sign in to comment.